Skip to main content
← Back to list
01Issue
FeatureShippedSwamp CLIPublic
Assigneeszack

Relationships

#4689 Supported way to rotate a connected worker's enrollment token over its own connection

Opened by zack · 11/12/2026· Shipped 11/13/2026

Split out of swamp-club#4680.

Worker tokens are a hard deadline: when a token expires, its worker is disconnected and has to be bootstrapped again, usually over SSH. There is no supported way to deliver a successor token to a connected worker before then. Serve reserves every worker-token-* secret key from dispatched steps (src/serve/dispatch_secret_authorization.ts, the reserved_secret refusal), in every vault, so a workflow cannot read a successor minted with worker token create --vault and write it to the host. That reservation is deliberate and should stay: enrollment credentials must not reach arbitrary method code.

Ask: a supported rotation path that keeps the credential out of workflow steps. Options the reporter raised:

  • a worker token command that rotates a connected worker over its own connection (mint the successor, deliver it to that worker, cut over); or
  • a grant that releases a token's secret only to the worker enrolled under its predecessor.

Design note: a worker's name is its token's name, so every rotation renames the worker (web-01 to web-01-r2). A rotation path should decide whether the worker keeps its identity, since targets, labels and history key on the name.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 34 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/13/2026, 3:12:36 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/12/2026, 8:29:50 PM

Sign in to post a ripple.