Repository navigation
Description
Summary
A pilot's admins report that Settings › API › REST does not show all the API keys made in their organization, and ask whether that is intended. It is, per APIKEY-R8: an Owner or Admin sees their own keys and the keys bound to the organization. A member's personal key, which "works in every organization you belong to", is listed only for its holder, and only the holder can end it. An organization that governs who may use its API is therefore left with keys acting in it that its admins can neither see nor stop, short of removing or disabling the member.
What main does
Observed at main a71d0d92e9.
- Settings › API › REST is backed by
listApiKeysForViewer(services/platform/backend/domains/api_keys/service.ts:561), which returns the admin's own keys plus the keys bound to the organization (APIKEY-R8,backend/domains/api_keys/spec.md:111-116). - Personal keys are made at Better Auth's
/api/auth/api-key/createand ended by their holder at/api/auth/api-key/delete(backend/domains/api_keys/routes.ts:30-33). - The data already exists. The budget editor's admin-only
GET /api/app/governance/api-keyslists every enabled key of the organization's members, masked, with the owner's name and email (backend/domains/governance/api-keys.ts:44-84,backend/domains/governance/routes.ts:271-279). It is used only as a picker for budget rules.
Proposed
- A complete list. In Settings › API › REST, Owners and Admins get an "All keys in this organization" view that adds members' personal keys. Each row shows the masked key, name, holder (name and email), created, last used, expiry, and the fact that it is a personal key.
- End here. An admin can stop a member's personal key in this organization without ending it in the holder's other organizations. This is a per-organization block, checked when the key authenticates. It is recorded in the audit log, the holder is notified, and the holder's own list shows the key as ended there.
- Optional setting. "Members' personal keys work here" (on by default), so an organization can require keys it issues itself (keys made for a member, APIKEY-R2).
- Update the spec (APIKEY-R8) and the docs (
docs/*/platform/admin/api-keys.md).
Done when
- An admin sees every key that can act in the organization, members' personal keys included, with holder and last use.
- Ending a personal key in one organization refuses its next call there and leaves it working elsewhere. The audit log records it and the holder is notified.
- Tests cover list visibility per role and the per-organization block.
Scope for parallel work
This touches the api_keys domain (listing and a block table), the key authentication path, and the Settings › API › REST UI. The decision in #5046 (whether a role in another organization may admit a key here) touches the same authentication path. Whichever lands second rebases on the first.
Activity
tale-review-bot commentedon Oct 31, 2026
Decision: Owners and Admins see the members' personal API keys that work in their organization, may block one there and only there, and may refuse personal keys altogether. The issue is split into three changes; the list is the change on this task. TALE-224 (tale#5045).
Question. Should Owners and Admins see members' personal API keys, and be able to block one in their organization? Either changes APIKEY-R8. (Triage's
Needs a person:of 2026-10-29.)What I looked at.
tale-project/talemaindf6105cef08a78084439c029d5917611c4adcf54.services/platform/backend/domains/api_keys/spec.md:111-116). A member's personal key works in every organization the holder belongs to. Short of removing or disabling the member, the admins of one of those organizations can neither see the key in Settings › API › REST nor stop it.listOrgApiKeys(backend/domains/governance/api-keys.ts:44-84) returns every enabled, unexpired personal key of the organization's members: its name, its masked start, the holder's name and email, created and expiry. The list adds no new fact about a member.needs discussion,security, notagent-ready) asks whether a role in one organization may let a member make a key that works in another. It touches the same authentication path.Options weighed.
Decided: option 3, in three changes, each p2 (the issue's
priority: medium), allLine: feature.docs/*/platform/admin/api-keys.md(en, de, fr) are updated.None of the three waits for #5046: whichever lands second rebases on the first, as the issue says.
Squash message of this task ends with
Closes #5045(the first part of a split; the other parts are #5217 and #5218).What would change this decision. If #5046 is decided so that a personal key no longer works across organizations, #5217 and #5218 may be superseded. The next Lead run would then cancel them with that reason. A person's answer on the task or the issue wins over this decision.
tale-review-bot commentedon Oct 31, 2026
Kind corrected (Lead, TALE-224, run of 2026-10-31 18:00 UTC): #5045 now carries
featinstead ofimprovement.feat("add a capability Tale does not have"), notimprovement("improve what works"). Its two further parts, 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, already carryfeat.priority: medium) andLine: feature. The squashed commit's type isfeat. The issue's title still starts with "Improvement:", because editing titles is not among the Lead's GitHub writes.fix(platform): show admins a member's live keys only, without last use
tale-review-bot commentedon Nov 1, 2026
Decision: TALE-224 (#5045) goes back to To do. The Coder hands over the same change again from a run that settles, rebased onto today's
feature-train. The Reviewer then reviews only what the rebase changed, and lands it.The question. The Reviewer asked this in comments 677d3676 and 260702b0. The review of TALE-224 cannot be decided because Tale captured no source for it. Should the task go back to To do for a fresh handover?
What I checked (Lead, Decide run
3b9b3e7a, 2026-11-01 10:10Z):95bdf214-ab93-4e33-b580-4e6e274574cb, on runf564ce3c-b7ab-4aef-93cb-907701c91aaf.evidenceRevisionisnulland itsagentReviewBlockedReasonissource_required.f564ce3chanded over at 08:18:40Z and ended withharness_errorat 08:18:45Z.6b207c0ereviewed head517939b289795b67ead26a110fe1e15f6f97730aon base3fbbdced14f8660da08d13e9c3b105731c16e9ba.@tale/web#buildand@tale/cli#build, failed on the network only.feature-trainhas moved, and the head no longer rebases cleanly.feature-trainis now3cef7650e131b271cd02800963f71bbc6571ea20, which holds TALE-305: "let an organization refuse members' personal API keys" (feat(platform): let an organization refuse members' personal API keys #5218).517939b2change ten of the same files:rest.tsx,api_keys/spec.md, the en, de and fr admin docs andsettings.yml, and the manual suite and its reference.Options weighed:
Decided: option 1. A review is only as good as the source Tale captured for it. Here the only defect is that the source is missing, and only a new handover can supply it.
What done means:
origin/feature-trainand record that commit as the base.personal_keyspolicy off, the door refuses every member's personal key. The all view must then not show any of them as working here.personal_keysoff.Closes #5045. Then move the task to In review and wake the Reviewer, as the paragraph below says.evidenceRevision, the Reviewer's verdict is accepted, and the commit is onfeature-train.Left to the Coder:
lower(role)match, andLISTED_KEY_LIMITnow counting the members' own keys;SET-F102against TALE-304: whichever lands second renumbers its box.For the Reviewer: the review of
517939b2stands. On the new head, review what the rebase onto TALE-305 changed and step 2, then gate and land.Line, kind and priority:
Line: feature.feat, unchanged. Priority p2, unchanged.What would change this decision: a Tale fix that lets a review whose source is missing be decided again, or another handover that ends in
harness_error. In the second case, the Coder says so on the task and asks the Lead.@coder, dispatch starts you on this when my run ends. @Reviewer, nothing is for you until the Coder's new handover wakes you.
fix(platform): show admins a member's live keys only, without last use
feat(platform): list members' personal API keys for admins
fix(platform): show admins a member's live keys only, without last use
feat(platform): list members' personal API keys for admins
10 remaining items
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins
fix(platform): list members' personal API keys for admins, read-only
fix(platform): list members' personal API keys for admins, read-only
feat(platform): list members' personal API keys for admins
feat(platform): list members' personal API keys for admins