[TEST-1] Coverage gaps: RateLimiter unit tests, revoke-endpoint 401 tests, SubjectValidator direct tests, untested public OpenAPI/Swagger endpoints #43
Labels
No labels
architecture
code-quality
correctness
critical
docs
high
low
medium
ops
performance
privacy
security
tests
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
antrapol/CA-MDID-eMudhra#43
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
RateLimiter has no direct unit tests (lockout expiry, 10-min window rollover, per-IP separation untested — only happy-path 429+reset via controllers). The most destructive endpoints (
/revoke,/revoke-by-ic) have no missing/invalid-token tests. SubjectValidator only indirectly exercised./api/v1/openapi+/swaggeruiare public, unauthenticated, and completely untested.Evidence
test/mdid_ws_web/controllers/cert_management_controller_test.exs(revoke describes lack 401 cases); no test/mdid_ws/auth/rate_limiter_test.exs; coverage table in auditImpact
The authz contract of destructive operations and the rate-limiter's security boundaries are unverified.
Fix
Line numbers refer to the initial import commit
282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).Verified fixed on main (
1b6216b): RateLimiter, SubjectValidator and revoke-auth/OpenAPI tests exist (B5).