Skip to main content
← Back to list
01Issue
FeatureShippedExtensions
Assigneesstack72

Relationships

#473 DigitalOcean: support vault expressions for the API token instead of DO_API_TOKEN env var

Opened by stack72 · 5/28/2026· Shipped 5/29/2026

The @swamp/digitalocean extension authenticates only via the DO_API_TOKEN environment variable (codegen/digitalocean/libGenerator.ts getToken()). This forces the token into the shell environment and does not compose with swamp secret management.

Request: add an optional, sensitive token global argument that takes precedence over DO_API_TOKEN, threaded through the shared _lib auth path, so users can wire it with a vault.get(...) expression in the model YAML.

Mirror the approach delivered for @swamp/hetzner-cloud in swamp-club #471: an optional token global arg marked with z.meta({ sensitive: true }); getToken(explicitToken?) preferring the arg over the env var; validated-token caching keyed per token; the token threaded into every lib helper and never written into a request body.

Scope: codegen change in codegen/digitalocean/libGenerator.ts and extensionModelGenerator.ts; regenerate all DigitalOcean models. Note: swamp-core honors z.meta({ sensitive: true }) in run logs, reports, and data storage, and vault expressions resolve before reaching the model, so vault sourcing works regardless of the flag.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 3 MOREPR_MERGEDSHIPPED

Shipped

5/29/2026, 12:06:03 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack725/28/2026, 11:27:10 PM

Sign in to post a ripple.