-
Notifications
You must be signed in to change notification settings - Fork 26
fix(api): revoke every existing API key #2198
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: bashtwigs/api-key-create-consistency
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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| -- sdp:migration-compat: breaking | ||
| UPDATE api_keys SET status = 'revoked', revoked_at = sdp_datetime_now() WHERE status = 'active'; | ||
|
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.
If more than 10,000 keys are active when this runs, the update gives them the same How this was verified: Authentication accepts cached active keys, and cache repair does not remove their database rows from the reconciler’s limited query. Knowledge Base Used: Platform API service |
||
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.
This update has no devnet-only condition. The migration runner applies it to every database receiving this release, including production. If production has active API keys, deploying this migration will revoke them and their clients will lose access, contrary to the stated devnet-only rollout.