11 Commits

Author SHA1 Message Date
admin 691dabfb26 fixed region fetching in user_attributes 2026-04-16 14:46:33 +08:00
admin 29cf10c379 fixed region fetching in user_attributes 2026-04-16 13:42:50 +08:00
admin bd0fdf89f3 fix test files 2026-01-27 10:45:15 +08:00
admin e6b3e3b3ae fixed sonarqube issues 2025-12-17 09:42:18 +08:00
admin 2f2e44d6fc fix: enable all skipped tests and resolve critical logic issues
- Remove all t.Skip() calls (22+ tests) and implement proper mocking
- Fix impossible nil check causing compiler warning in error_logging_test
- Make rate limiter fail-open consistently when Redis unavailable
- Add case sensitivity documentation to policy comparison operators
- Update repository tests with correct SQL query expectations
- Make tests handle DB/Redis unavailability gracefully without panics
2025-12-16 13:55:27 +08:00
admin 5828a2ff21 fixed unit testing 2025-12-16 13:26:07 +08:00
admin 7e42d04fde added more comprehensive unit test cases 2025-12-16 11:18:35 +08:00
admin 7d6efecb41 added unit testing 2025-12-16 10:57:26 +08:00
admin 1b6f63e6ac cleaned 2025-12-16 10:13:24 +08:00
admin 0d8f5b9600 feat: implement horizontal scaling optimizations for authz service
- Add /health and /ready endpoints for load balancer health checks
- Replace in-memory JWT token cache with Redis for multi-replica support
- Reduce DB connection pool from 100 to 25 connections per replica
- Add distributed rate limiting (100 req/min + 20 burst) using Redis
- Implement circuit breakers for DB and Redis to prevent cascading failures

This enables the service to scale horizontally with multiple replicas
behind a load balancer without exhausting database connections or
maintaining separate token caches per instance.
2025-12-16 10:03:18 +08:00
admin 60992c1e44 init 2025-12-04 10:55:25 +08:00