Repository navigation
Description
Summary
On the stable 0.5 line an Admin can see a member's personal API key but cannot stop it. A customer's acceptance list requires that administrators can create, manage and, when needed, revoke personal access tokens (requirement M5.3). The customer is testing on 0.5.x, and this part of the requirement is still open there.
The feature line already has the missing part: #5217 lets an Owner or Admin block a member's personal key in one organization, and #5218 lets an organization refuse members' personal keys. Neither is on the stable line.
What the stable line does today
Re-tested as an Admin on the preview (v0.5.101) with a Developer's personal key:
- Settings › API › REST › "All keys in this organization" lists the Developer's key, marked "Personal key", with the holder's name and e-mail (a10133d).
- That row has no select box and no row menu. The view is read-only by design: the key works in every organization its holder belongs to, so a plain revoke would end it everywhere.
POST /api/auth/api-key/deletewith the key's id answers404 KEY_NOT_FOUND;DELETE /api/app/api-keys/<id>?orgId=…answers404 API_KEY_NOT_FOUND.- Keys made for a member, a team, a project or the organization are bound to the organization, and an Admin can end those. So the workaround today is to create a member's key for them ("Belongs to: Another member") instead of letting them create a personal one. It does not help for personal keys that already exist.
The commit message of a10133d states the choice: it "ports the listing of the feature line's #5045 to the stable line, without what rests on that line's per-organization key blocks and its switch for members' personal keys".
Options (no preference)
- Port feat(platform): let admins block a member's personal API key in their organization only #5217 (block in this organization only) to the stable line, so an Admin can stop a personal key here without ending it elsewhere.
- Port feat(platform): let admins block a member's personal API key in their organization only #5217 and feat(platform): let an organization refuse members' personal API keys #5218 (the organization-wide switch) together, as the feature line has them.
- Keep the stable line read-only and let the customer move to the feature line for this requirement.
Questions
- Does the stable line take a change of this size, or only fixes? The customer was told it gets fixes only until the end of its test phase.
- Does the port depend on Decision: should a role in one organization let a member create an API key that works in another? #5046 (whether a role in one organization may admit a key made in another)?
Related
- Improvement: let admins see and end every API key that works in their organization, members' personal keys included #5045, feat(platform): let admins block a member's personal API key in their organization only #5217, feat(platform): let an organization refuse members' personal API keys #5218 (feature line)
- Decision: should a role in one organization let a member create an API key that works in another? #5046
Activity
fix(platform): let admins block a member's personal API key here
yannickmonney commentedon Nov 6, 2026
Decision (owner, 2026-11-06): option 1. #5217 comes to the stable line without #5218's switch for members' personal keys. It rides the merge train #5408 as
80ca60f07(fix(platform): let admins block a member's personal API key here) and ships as v0.5.102.0231_api_key_org_blocks.sql, byte-identical to the feature line's. The two lines share migration numbers.3.53.0.Follow-ups filed:
API_KEY_BLOCKEDstill list the organization that blocked the key.