Skip to content

Move the Cloudflare secrets into a production environment #45

Description

@jamesconwaydev

The Cloudflare token is a repository secret, so any workflow in the repo can read it. Putting it in a production environment that only main can deploy to means a workflow on another branch never sees it. While we're in there, the deploy's workflow_run trigger should also check that the run was on main.

This needs the token re-entered, so it's easiest to do alongside the next rotation.

Done when CLOUDFLARE_API_TOKEN and the account ID live only in the production environment, that environment allows main alone, and the deploy job checks head_branch == 'main'.

Activity

  1. added
    priority: medium
    area: ci
    on Nov 6, 2026
  2. updated Effort S, Priority Medium and Area CI on Nov 6, 2026
  3. moved this from Todo to In Progress in DevStream Roadmapon Nov 6, 2026
  4. moved this from In Progress to Done in DevStream Roadmapon Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: cipriority: medium

    Fields

    Area

    CI

    Priority

    Medium

    Effort

    S

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions