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

Relationships

#1470 access token rotate: add --vault flag to override inherited vault

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

Summary

swamp access token rotate inherits the vault from the original token record (server_token_model.ts:205). There is no --vault flag to override which vault the rotated token is stored in.

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

access token rotate has no --vault flag. So the safe path is unavailable for rotation — rotate can only print. The workaround is revoke then mint --vault, which is more steps and leaves a revoked entry behind.

Note: as of the fix for #1466, rotate no longer prints the plaintext either — it shows a vault retrieval command. The --vault flag on rotate would let users change which vault the rotated token is stored in.

Relevant code

  • CLI command: src/cli/commands/access_token_rotate.ts (no --vault option)
  • Model method: src/domain/models/access/server_token_model.ts:194-223 (uses existing.vaultName)
  • Libswamp: src/libswamp/access/token_rotate.ts
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 4 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

7/30/2026, 1:10:40 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/30/2026, 12:46:14 AM

Sign in to post a ripple.