Commit Graph
1 Commits
Author SHA1 Message Date
Admin Bot e1a5aca7d6 fix: Lazy-load JWKS in JWT validator + add unit tests
CI / Vet, test, build (push) Successful in 2m14s
CI / Build and push image (push) Failing after 13s
Changes:
- Make JWT validator lazy-load JWKS on first use (not on init)
- Thread-safe JWKS loading with mutex
- Fixes test failures (JWKS 404 was panicking on NewValidator)
- Add unit tests for JWT validation logic

Tests now pass:
   Check permissions (sqs:read, sqs:write, wildcard)
   Reject empty/invalid/malformed tokens
   Handle missing permissions claim

All 100% passing with no external dependencies.
2026-08-27 15:13:49 -07:00