fix(m2m,keys,identity): #110 SHOULD batch A — SA race, LastUsedAt throttle, M2M audits, default scopes, setup-confirm guard, durable HMAC replay #127
No reviewers
Labels
No labels
epic
phase-0
phase-1
phase-2
phase-3
phase-4
phase-5
phase-6
phase-7
phase-8
phase-9
priority/P0
priority/P1
priority/P2
type/backend
type/client
type/docs
type/ops
type/security
type/spike
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
primatekuntech/failsulit!127
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/110-should-batch-a"
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?
#110 SHOULD batch A (items 2/7/8/9-main already landed via #120 slices and PR #114). Seven fixes:
m2m.auth.failed(both 401 legs, actor null + IP detail) andm2m.scope.denied(actor = principal, target = key/SA id, required_scope detail) — Category=security, matching thesecurity.ratelimitedpattern.files:read activity:readviaM2mAuthMiddleware.DefaultServiceAccountScopes— write must be granted deliberately. Scope refresh/admin surface deferred to the client phases.security.totp_decrypt_failedaudit (same contract as TotpVerify from PR #114).Reviewed no-fix (per the audit's 're-rank' clause): #7-secondary TotpRecovery send-failure 503 (SMTP-infra path, not attacker-differentiable) and EmailRegister invite-gated 409 (reachable only with a VALID invitation whose email the holder already knows).
Tests: 7 new (throttle double-call, stale refresh, both audit rows, default-scope const, setup-confirm 401+audit, cold-cache replay rejection). Suite 952/0/39 (Release+Debug), coverage 87.74%. Batch B (test hygiene + CI composite action + Dockerfile) follows.