Preparation
- Identify every runtime, worker, scheduled task, and secret reference using the old key.
- Record the old key’s name and scope without copying the secret value.
- Confirm who has the required IT, HR, or Company-Admin portal permission.
- Choose a maintenance window if the client cannot reload secrets dynamically.
- Prepare a rollback path that re-enables the old key only when it is still trusted.
Rotation flow
Verification requests
Use a protected read that is valid for the key scope.GET /health is insufficient because it does not authenticate.
Emergency replacement
If a key may be compromised:- Deactivate it immediately.
- Stop affected integration instances if necessary.
- Review request IDs, times, tenants, and operations in available logs.
- Create a replacement with the minimum required scope.
- Deploy and verify the replacement.
- Delete the old key when the investigation and rollback decision permit.
Completion checklist
- Every runtime uses the replacement secret version
- A protected request succeeded for every required tenant context
- No new
INVALID_API_KEYfailures are caused by stale instances - The old key is inactive
- The old key is deleted when rollback is no longer required
- Rotation date, operator, scope, and verification request IDs are recorded
