No reviewers
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!52
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/a4-authz-sessions"
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?
Batch A4: closes #2 (scopes + fixed subject template; identity proofing deferred), #6, #14, #15.
Changes
enroll,renew,revoke,status,status_full,admin) stored on the client record, read on every request and enforced per route (403 otherwise). Certificates now carry only CN, serialNumber and C; CSR O/OU/email/locality and all extensions (SAN) are ignored. Clients are treated as trusted RAs: no per-IC binding and no out-of-band identity proofing here.activestored row (indexedjti). New admin endpoints revoke a token or suspend/reactivate a client. An admin cannot suspend itself.POST /logoutwith CSRF (GET removed); 8h session TTL./statusomitsx509Certwithoutstatus_full; per-client throttle (60/60s) returns 429.Behaviour changes / deploy notes
/statusuntil grantedstatus_full, and have noadmin.GET /logoutis gone. The session cookie issecureat compile time, so a release is HTTPS-only (dev config disables it).Tests and coverage
mix test: 256/258 pass. The 2 failures (TrustgateLifecycleTest) also fail on main.Coverage of changed modules: Scopes 100%, RequestThrottle 100%, RequireScope 100%, RequireSessionAuth 100%, AdminController 82%, Token 91%, PageController 91%. Project total 72.1% (no project minimum stated; changed code above 80% except the jti/client Mnesia data-store modules at 74%/73%, whose untested lines are pre-existing code paths).
Review
Pass 1 (complexity) clean. Pass 2 (security review): no critical issues; fixed the per-call index check and
recreate_clientscope loss; documented the rest.🤖 Generated with Claude Code