Skip to content

wrangler: bind the Cloudflare API token from the Secrets Store - #88

Merged
ananthb merged 1 commit into
mainfrom
coder-email-secret
Oct 13, 2026
Merged

ananthb merged 1 commit into
mainfrom
coder-email-secret

Conversation

@ananthb

@ananthb ananthb commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Binds the scoped email-onboarding token, which lives in the account Secrets Store, to the Worker as CF_API_TOKEN (consumed by src/cloudflare.rs).

  • store_id = b05909cc85d54c9ca0b124bd2f557444, secret_name = CLOUDFLARE_API_TOKEN (created by calculon-tech/platform#317 from secret/default/concierge/email).

This is the piece that makes #87's onboarding actually run; without it, api_token logs "CF_API_TOKEN binding is not configured" and connect still succeeds.

The scoped email-onboarding token lives in the account Secrets Store
(secret CLOUDFLARE_API_TOKEN); binding it by store id makes it available
to the Worker as env.CF_API_TOKEN (see src/cloudflare.rs). The store id
is the platform output from tf/cloudflare/sites/secrets.tf.
@ananthb
ananthb enabled auto-merge (squash) October 13, 2026 17:12
@ananthb
ananthb merged commit 3ae7c53 into main Oct 13, 2026
8 checks passed
@ananthb
ananthb deleted the coder-email-secret branch October 13, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant