Skip to content

Release 2026071700#351

Merged
stophecom merged 3 commits into
mainfrom
dev
Jul 17, 2026
Merged

Release 2026071700#351
stophecom merged 3 commits into
mainfrom
dev

Conversation

@stophecom

Copy link
Copy Markdown
Owner
  • API keys for org

stophecom and others added 3 commits July 17, 2026 11:28
Owners and admins of an organization can now create and revoke API keys
on the org level, from a new "API Keys" tab.

Organization keys are gated on the org's own plan (Top Secret Service is
the only org plan with apiAccess) and are restricted to the org's
white-label domain: requests must send X-Host matching a white-label site
owned by that organization, otherwise they are rejected. Limits are
resolved from the organization's tier rather than the creator's, so a key
keeps working as configured if the creator downgrades or leaves the org.

Keys carry the creator in userId, so secrets created via an org key stay
attributed to a person; personal key queries now filter on a null
organizationId so org keys don't leak onto the user's own API page.

Also fixes two pre-existing bugs in the secrets endpoint that this work
touched: revoked keys kept working until the nightly cron deleted the row
(the lookup never filtered `revoked`), and an unknown X-Host threw on
`.id` of undefined instead of returning a 400.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The five org tabs need more width than a phone viewport, so the bar pushed
the whole page ~75px wider than the screen at 375px and wrapped labels onto
two lines. Scroll the bar horizontally instead and stop the tabs shrinking.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat(api-keys): allow organizations to create API keys
@stophecom stophecom self-assigned this Jul 17, 2026
@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
scrt-link-v2 Ready Ready Preview, Comment Jul 17, 2026 10:25am

Request Review

@stophecom
stophecom merged commit 60d5570 into main Jul 17, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant