lukaszraczylo and GitHub
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 and GitHub
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 and GitHub
6b31e5c4c0
Little code cleanup. ( #19 )
2024-10-10 10:34:23 +01:00
lukaszraczylo and GitHub
b10a28bf52
General code optimisations. ( #16 )
...
* General code optimisations.
2024-06-28 12:31:01 +01:00
lukaszraczylo
b29733e435
fixup! fixup! Update go.mod and go.sum
2024-06-28 00:46:34 +01:00
lukaszraczylo and GitHub
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
371d51f96f
Update dependencies.
2024-06-11 11:35:49 +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
4cf27e0e3b
Missed on files requiring json encoding.
2024-02-05 15:37:24 +00: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
dd25e4a4a5
fixup! Remove last leftover of internal libraries.
2023-10-10 22:31:11 +01:00
lukaszraczylo and GitHub
bc128493b0
Add tests ( #2 )
...
* Initial tests draft.
* Add tests for parsing jwt token
* Further code optimisations
2023-10-10 13:54:03 +01:00
lukaszraczylo
ac44056a00
Add role ratelimit ( #1 )
...
* Add ratelimit configuration.
* Add rate limiting :party:
2023-10-09 17:46:50 +01:00