Skip to content

ci: manage worker secrets via wrangler-action in deploy#15

Merged
fullstackjam merged 1 commit into
mainfrom
ci/worker-secrets-in-deploy
Jun 9, 2026
Merged

ci: manage worker secrets via wrangler-action in deploy#15
fullstackjam merged 1 commit into
mainfrom
ci/worker-secrets-in-deploy

Conversation

@fullstackjam

Copy link
Copy Markdown
Contributor

What

Push the Worker's auth secrets to Cloudflare on every deploy via wrangler-action's secrets: input, sourced from repo Actions secrets — instead of relying on manually-set, out-of-band Worker secrets.

Secrets now managed by CD:

  • GITHUB_CLIENT_ID / GITHUB_CLIENT_SECRET ← Actions secrets GH_OAUTH_CLIENT_ID / GH_OAUTH_CLIENT_SECRET (the GITHUB_ prefix is reserved for Actions secret names, so they're aliased)
  • GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET
  • JWT_SECRET

SENTRY_DSN is intentionally left out — it stays manually managed on Cloudflare.

Why

Makes the Worker's secret config reproducible and version-tracked (which secrets exist, where their values come from) rather than living only on the Cloudflare side. Rotation becomes "update the Actions secret + redeploy".

⚠️ Note on merge/deploy

On deploy, CD overwrites the matching Cloudflare Worker secrets with the Actions-secret values. The Actions secrets have already been populated, so values stay consistent — except JWT_SECRET, which is a freshly generated key: deploying will invalidate all existing openboot.dev login sessions (users must re-login). The new JWT_SECRET is stored in 1Password (Dev vault) as the recoverable source of truth.

🤖 Generated with Claude Code

Push GITHUB_CLIENT_ID/SECRET, GOOGLE_CLIENT_ID/SECRET and JWT_SECRET to
the Worker on each deploy, sourced from repo Actions secrets. GITHUB_*
worker secrets map from GH_OAUTH_* actions secrets (GITHUB_ prefix is
reserved). SENTRY_DSN stays manually managed on Cloudflare.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@fullstackjam fullstackjam merged commit 7825885 into main Jun 9, 2026
6 checks passed
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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