Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLI
Assigneesstack72

Relationships

#1471 access token mint: allow reusing a revoked token name

Opened by stack72 · 7/29/2026· Shipped 7/30/2026

Summary

swamp access token mint refuses to create a token with the same name as a revoked token (server_token_model.ts:106):

Server token '<name>' already exists — revoke it first

This was noted as a papercut in swamp-club#1466 by @dougschaefer:

mint refuses a name that already exists even when that name is revoked. After revoke alice, mint alice fails, so every rotation needs a fresh name (alice-01, alice-02). Combined with no --vault on rotate, this makes routine rotation awkward. Grants attach to the principal rather than the token name, so the rename is harmless — it is just noise that accumulates in token list.

Relevant code

  • Guard: src/domain/models/access/server_token_model.ts:104-109
  • The check uses readResource which returns the existing record regardless of state
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 4 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

7/30/2026, 9:47:49 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/30/2026, 9:11:42 PM

Sign in to post a ripple.