lukaszraczylo
3aa83d4480
chore(security,refactor): extract sanitization and improve code quality ( #41 )
...
* chore(security,refactor): extract sanitization and improve code quality
- [x] Extract sanitization functions to dedicated sanitization.go module
- [x] Add comprehensive golangci-lint v2 configuration with security rules
- [x] Replace interface{} with any type throughout codebase
- [x] Add admin API authentication security warning
- [x] Extract WebSocket and stats streaming constants
- [x] Add best-effort error handling comments for resource cleanup
- [x] Expand sensitive field patterns for improved PII redaction
- [x] Simplify safety checks and remove redundant nil validations
- [x] Improve test coverage for password field redaction patterns
* refactor: replace interface{} with any type alias
- [x] Replace all `map[string]interface{}` with `map[string]any`
- [x] Replace all `interface{}` with `any` in function signatures and type definitions
- [x] Update sync.Pool New function returns from `interface{}` to `any`
- [x] Add package documentation comments to 8 package files
- [x] Update type assertions and casts to work with `any` type
2026-01-17 00:04:12 +00:00
lukaszraczylo
da8ec5f21d
Add LRU cache support.
2025-12-03 10:22:33 +00:00
lukaszraczylo
39dc7b49cf
Improve caching by adding user ids and roles to hash.
2025-11-22 17:02:16 +00:00
lukaszraczylo
cedee416a8
improvements mid may 2025 ( #24 )
...
* General improvements and bug fixes.
* Improve tests coverage.
* fixup! Improve tests coverage.
* Update README.md with latest changes.
* Fix the uint32
* Resolve issue with race condition for logging.
* fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* Fix the test of the rate limiter
* Add default ratelimit.json file
* Update dependencies.
* Significant refactor.
* fixup! Significant refactor.
* fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* fixup! fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* fixup! fixup! fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* fixup! fixup! fixup! fixup! fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* fixup! fixup! fixup! fixup! fixup! fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* fixup! fixup! fixup! fixup! fixup! fixup! fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
* fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Merge remote-tracking branch 'origin/main' into improvements-mid-apr-2025
2025-09-30 18:27:33 +01:00
lukaszraczylo
839e211790
fixup! New release.
2024-08-19 15:52:40 +01:00
lukaszraczylo
ae9a44033b
New release.
...
Includes the panic when cache is completely disabled.
2024-08-19 15:43:42 +01:00
lukaszraczylo
dc9e0906fd
Resolve issue when proxy could panic.
...
Issue occured when cache was disabled via environment variables but
graphql queries contained the cache directive.
2024-08-19 11:27:06 +01:00
lukaszraczylo
a24e6c8c4d
fixup! Fix the introduced bug where RO endpoint could've been accidentally used. ( #17 )
2024-06-29 08:52:41 +01:00
lukaszraczylo
d141fe3c04
Fix the introduced bug where RO endpoint could've been accidentally used. ( #17 )
...
* Fix the introduced bug where RO endpoint could've been accidentally used.
2024-06-28 21:48:39 +01:00
lukaszraczylo
f7babe93d9
fixup! Disable caller as it's not necessary and generates slight delay.
2024-06-20 08:41:33 +01:00
lukaszraczylo
61d7a45d00
Update cache library, use miniredis for testing, add additional benchmarks. ( #14 )
...
Update cache library,
Update logging library,
use miniredis for testing, add additional benchmarks.
2024-06-19 23:10:36 +01:00
lukaszraczylo
12e0294945
Add distibuted cache with Redis
2024-06-11 11:35:50 +01:00
lukaszraczylo
a9fd6b3d0a
Release: Add cache operations via API + support distributed redis cache.
2024-06-11 11:35:46 +01:00
lukaszraczylo
5a01ec3876
Improve logging and cache sub-packages to decrease the number of allocations
...
and improve performance.
2024-05-14 09:21:16 +01:00
lukaszraczylo
b19b17b7c4
Realign the structs to decrease memory footprint.
...
Add the timeout settings to address the connection drops.
2023-12-14 17:16:38 +00:00
lukaszraczylo
4255f87efd
Add cache compression.
2023-10-20 11:21:01 +01:00
lukaszraczylo
6ac3937066
Fix leaky bytes allocation for cache.
2023-10-13 16:29:52 +01:00
lukaszraczylo
089d05b7c3
Improve cache mechanism using sync map
2023-10-13 15:37:57 +01:00
lukaszraczylo
7293583a99
Resources allocation improvement.
2023-10-13 15:26:24 +01:00
lukaszraczylo
dbd005bdcf
Remove external library dependency, use homebrewed cache instead.
2023-10-13 15:22:47 +01:00