Audit(#66): RevokeApiKey missing the Owner/Admin gate — any Member can kill tenant integrations #105
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#105
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?
Mint (ApiKeyFeature.cs:68) and Rotate (:167) call RequireOwnerOrAdminAsync; Revoke (:207-229) does not — introduced in 8.2 (PR #100).
Trigger: a Member-role user sends DELETE /api/keys/api-keys/{id} → 204; the production integration dies instantly and the rotation grace is wiped (PreviousSecretHash nulled).
Fix: the same RequireOwnerOrAdminAsync call at the top of RevokeApiKey.Handle + a Revoke_AsMember_Returns403 test.
M1.5 close audit (#66). Bug introduced in the 8.2 slice itself.