Rotate a provider key
Replace a provider credential without breaking active workloads.
Rotate a provider key by adding its replacement first. Keep the existing key active until requests succeed with the new credential.
When to rotate a provider key
A provider key has been compromised, or you suspect it has.
Your organization has a periodic key rotation policy.
You're migrating traffic to a new provider account.
Rotate the key
Create a new API key in your provider's dashboard. Do not revoke the existing key yet.
In otari.ai, select Organization and then Providers.
Click Add provider key. Select the same provider, enter a distinct Key Name, and paste the new API key.
Set the new key as the provider's default by clicking its star icon.
For each workspace that pins the old key, click Edit and select Always use this key for the new key.
Send a test request from each affected workspace. Confirm it completes successfully in the Usage tab.
Remove the old key
Once requests are flowing through the new key, revoke the old key in the upstream provider dashboard.
Return to Organization → Providers in Otari.
Remove the old provider key.
If you suspect compromise, create and assign the replacement immediately. Then revoke the exposed key with the provider.
Last updated
Was this helpful?
