Skip to content

ci: read CLOUDFLARE_API_TOKEN from vault folder /ci (DO NOT MERGE until vault copied) - #135

Merged
EthanThatOneKid merged 2 commits into
mainfrom
deploy-token-ci-path
Oct 14, 2026
Merged

EthanThatOneKid merged 2 commits into
mainfrom
deploy-token-ci-path

Conversation

@EthanThatOneKid

Copy link
Copy Markdown
Contributor

DO NOT MERGE until the owner has copied CLOUDFLARE_API_TOKEN into vault folder /ci in BOTH the qa and prod environments.

deploy-qa runs automatically on push to main; merging early breaks QA deploys.

What changes

Adds secret-path: /ci to the two Infisical fetch steps whose secret-name is CLOUDFLARE_API_TOKEN in .github/workflows/ci.yml:

  • deploy-qa ("Fetch Cloudflare deploy token from Infisical (qa)")
  • deploy-prod ("Fetch Cloudflare deploy token from Infisical (prod)")

Unchanged: the WORLDS_API_ADMIN_KEY fetch (health-qa) and the one in smoke-qa.yml. secret-registry.md is updated to record that the deploy credential lives at vault folder /ci, outside any sync's scope. Names only; no values.

secret-path is a documented input of Infisical/secrets-action@v1.0.17 (action.yaml), used together with secret-name. Contract lint: 0 violations (it does not constrain secret-path).

Verification and gaps

  • deploy-qa exercises the new path on merge to main.
  • deploy-prod only on the next manual dispatch; the prod path is unobserved until then.
  • Not observed: the vault contents (I did not check that /ci holds the token in either environment), or any live deploy.

Not part of this PR (follow-ups)

  • Delete the root copy of the token in the vault after deploys are proven.
  • Remove stale sync bindings of the token.
  • CONTRIBUTING.md line 115 still says to keep the token in GitHub secrets; left untouched here.

🤖 Generated with Claude Code

EthanThatOneKid and others added 2 commits October 14, 2026 12:29
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
CONTRIBUTING still said to keep CLOUDFLARE_API_TOKEN in GitHub secrets, which
contradicts the deploy jobs and the zero-GitHub-secrets contract.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@EthanThatOneKid
EthanThatOneKid merged commit 87b2c60 into main Oct 14, 2026
7 checks passed
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