Audit(#66): Tenant.Disabled is never enforced — the admin kill switch is a no-op #106

Closed
opened 2026-11-07 19:22:53 +01:00 by amiryahaya · 0 comments
Owner

UpdateTenant.cs:34-35 sets Tenant.Disabled; it is audited (tenant.disabled) and shown in listings, but ZERO code reads it for enforcement (repo-wide grep: display reads only). ApiKeyAuthentication.ValidateAsync checks revoked/expired/grace but not the tenant.

Trigger: platform admin disables an abusive tenant → its API keys keep listing/creating folders and reading activity forever.

Fix: in ValidateAsync, load the tenant with the key and reject when Disabled; longer term also gate session/user surfaces.

M1.5 close audit (#66).

UpdateTenant.cs:34-35 sets `Tenant.Disabled`; it is audited (`tenant.disabled`) and shown in listings, but ZERO code reads it for enforcement (repo-wide grep: display reads only). ApiKeyAuthentication.ValidateAsync checks revoked/expired/grace but not the tenant. **Trigger**: platform admin disables an abusive tenant → its API keys keep listing/creating folders and reading activity forever. **Fix**: in ValidateAsync, load the tenant with the key and reject when Disabled; longer term also gate session/user surfaces. M1.5 close audit (#66).
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/failsulit#106
No description provided.