Repository navigation
docs: document revoking the previous root key on regeneration #5050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -118,6 +118,15 @@ Revoking a key takes effect immediately and cannot be reversed. Requests using t | |
|
|
||
| Removing a team member does not revoke keys they created. Review and revoke their keys separately when their access changes. | ||
|
|
||
| ### Regenerate the root key | ||
|
|
||
| The key marked **Root** on the API keys page has a **Regenerate…** action in its row menu. Regenerating issues a new root key for the environment, and you choose what happens to the previous one: | ||
|
|
||
| - **Keep the previous key working for 24 hours** (the default): roll out the new key to your environment variables without downtime. The previous key stops working after 24 hours. | ||
| - **Revoke the previous key immediately**: choose this if the key may have leaked. The previous key stops working now, along with any older root key still in its 24-hour window. Deployments and services still using them fail until you update them with the new key. | ||
|
|
||
| The page always lists the root key. If the root key is hidden, it appears masked to its last 4 characters. You can regenerate a hidden root key, but you can't reveal or copy it. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔍 Hidden root key instructions conflict with dashboard After visibility is disabled, Was this helpful? React with 👍 or 👎 to provide feedback. |
||
|
|
||
| ## Create public access tokens | ||
|
|
||
| API keys can be used to create scoped [Public Access Tokens](/realtime/auth) using `auth.createPublicToken()`. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟨 Older leaked root keys stay valid
When an older root key remains in its 24-hour window, selecting
revokeImmediatelydoes not revoke it. regenerateApiKey leaves existing grace records intact, so a leaked older key continues authenticating.Was this helpful? React with 👍 or 👎 to provide feedback.