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
fix(auth): revoke account scope matches the account UUID only, and rejected API keys still list as active #534
The revoke scope check matches the account UUID only, while History matches the external account id plus the account name. Separately, API keys rejected by the password_version check can still list as active.
A scoped user whose allow-list uses account names, or whose row has only an external AccountID, sees the row in History and gets 403 when revoking it.
Suggested fix
Look up the account with lookupCloudAccount and fall back to AccountID. For the key list, mark a key stale when key.PasswordVersion != user.PasswordVersion.
Activity