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

Relationships

#476 Cloudflare: support vault expressions for API credentials instead of env-var-only auth

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

The @swamp/cloudflare extension authenticates only via environment variables: CLOUDFLARE_API_TOKEN, or CLOUDFLARE_API_KEY + CLOUDFLARE_EMAIL (codegen/cloudflare/libGenerator.ts). There is no way to supply these via vault expressions in the model YAML.

Request: add optional, sensitive global arguments (apiToken, and apiKey + email for the legacy path) that take precedence over the environment, threaded through the shared _lib auth path, so users can wire them with vault.get(...) expressions.

Mirror the approach delivered for @swamp/hetzner-cloud in swamp-club #471: sensitive global args via z.meta({ sensitive: true }); precedence over env; threaded into the request auth headers; never written into logs or a request body.

Scope: codegen change in codegen/cloudflare/libGenerator.ts and extensionModelGenerator.ts; regenerate all Cloudflare models. swamp-core honors z.meta({ sensitive: true }) in run logs, reports, and data storage.

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

Shipped

5/29/2026, 5:31:04 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack725/29/2026, 3:41:27 PM

Sign in to post a ripple.