Skip to content

docs(auth): accepted-risk constraint note on per-process failed-auth throttle (S-7) - #215

Merged
brownjuly2003-code merged 2 commits into
mainfrom
docs/s7-accepted-risk
Jul 20, 2026
Merged

docs(auth): accepted-risk constraint note on per-process failed-auth throttle (S-7)#215
brownjuly2003-code merged 2 commits into
mainfrom
docs/s7-accepted-risk

Conversation

@brownjuly2003-code

Copy link
Copy Markdown
Owner

Closes audit finding S-7 as accept-with-rationale (the audit itself scored it low and offered acceptance given key entropy).

_failed_auth_windows is per-process while the request rate limiter is Redis-shared — on N replicas the effective failed-auth budget is N× the configured value. Accepted because API keys are 256-bit random values (brute force infeasible at any realistic replica multiple) and the throttle's job is blunting log-flooding/scanning, not being the security boundary. The comment states the two conditions under which this must be revisited (moving the throttle to Redis alongside check_rate_limit): key entropy drops, or failed-auth alerting starts keying off this counter.

Comment-only change; auth mutation suite (92 tests) green locally.

🤖 Generated with Claude Code

…(S-7)

The failed-auth IP throttle is in-process while the request rate limiter is
Redis-shared, so N replicas give an attacker N x the intended failed-auth
budget. Accepted: API keys are 256-bit random values, brute force stays
infeasible at any realistic replica count, and the throttle only needs to
blunt log-flooding/scanning. Constraint comment documents when to revisit
(key entropy drop, or alerting keying off this counter).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown

DORA Metrics

  • Window: last 30 days
  • Branch: main
  • Deployment frequency: 111 total / 25.9 per week
  • Lead time for changes: avg 0.59h / median 0.0h
  • Change failure rate: 76.58% (85/111)
  • MTTR: 20.13h across 5 incident(s)

@brownjuly2003-code
brownjuly2003-code merged commit 7362903 into main Jul 20, 2026
27 checks passed
@brownjuly2003-code
brownjuly2003-code deleted the docs/s7-accepted-risk branch July 20, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants