What happens
The key stops authenticating at once. Anything using it — a script, a CI job, a scheduled integration — starts failing on its next request. There’s no grace period and no way to un-revoke; recovering means creating a new key and updating every consumer.Revoke when
- The key leaked. Committed to a repository, pasted into a chat, included in a screenshot. Revoke first and investigate afterwards — a key carries full organization access, so the cost of a false alarm is far lower than the cost of waiting.
- Someone with access left. Keys aren’t tied to a person and keep working after a member is removed from the organization. Removing someone from Team does not revoke keys they created or held.
- The integration is retired. Decommissioned service, cancelled project, abandoned experiment.
- It’s never been used. A key with no last-used date is a live credential doing nothing.
Rotating a key
There’s no rotate action, so do it in this order to avoid downtime:- Create a new key with a name marking it as the replacement.
- Update every consumer to the new key.
- Confirm the new key is working — check its Last used on the key list.
- Revoke the old key.