You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: admin audit export is not audited and auth silently caps audit retention #467
main at d939969 (static source review; not executed against a deployment). Node/OS/deployment: not applicable.
Minimal reproduction
Reported by review, not independently reproduced.
Audit export is not itself audited.GET /audit/export (packages/admin/src/admin.ts lines 199-203, packages/admin/src/admin-audit-export.ts) checks auth.audit.read and auth.audit.export. It writes no audit event, and it requires neither a reason nor a recent sign-in. packages/admin/THREAT-MODEL.md:17 lists "audited reveal/export" as a mitigation.
Fix: record an audit event (actor, range, count) for each export, require a reason, and require fresh authentication as other sensitive admin actions do. Or correct the threat model.
Silent audit retention cap.packages/auth/src/auth-store.ts:253 deletes all but the newest 100,000 audit rows. The cap is not documented, and nothing tells the operator when rows are dropped.
Fix: document the retention bound in the auth operations/security docs, make it configurable, and emit a metric or log line when rows are pruned.
Activity
fix(auth): close account-enumeration, rate-limit and flow-binding gaps
fix(admin,auth): wire role/status hooks to every path; audit the audi…
fix(auth): close account-enumeration, rate-limit and flow-binding gaps
fix(admin,auth): wire role/status hooks to every path; audit the audi…
Fix account-enumeration, rate-limit, CSRF-binding and store-lock secu…