Revoke an api key
access-control
Revoke an api key
Revoke a key (immediate: next request fails to auth). Deletes the key record, its
enforced policy row, and its live context; the user’s ac_policy version history
is deliberately NOT touched (it belongs to the identity, so a key later re-created
for the same user_id resumes that history).
No version bump here, unlike every other mutation on this surface: revocation’s
cache-buster is atomic with the policy-row delete inside
:func:~tai42_skeleton.access_control.management.revoke_api_key, so no fault in the
steps behind it can leave the revoked key’s authority live in a warm cache slot.
DELETE
Revoke an api key

