Skip to content

Rotate the Cloudflare API token and the scheduler token by 2027-10-06 #55

Open

Description

@jamesconwaydev

The Cloudflare API token the deploy uses was rolled on 2026-11-06 and expires around 2027-11-06. When it does, every deploy fails and the site stops updating. Rotate it by 2027-10-06 to leave a month of slack.

To rotate it:

  1. In the Cloudflare dashboard, go to My Profile > API Tokens, find the DevStream token and click Roll (or create a new one with the same permissions: Cloudflare Pages edit and DNS edit on the jamesconway.dev zone, expiring about a year out).
  2. Run gh secret set CLOUDFLARE_API_TOKEN --env production -R devstreamhq/devstream and paste the token when it asks. The secret lives only in the production environment now.
  3. Run the Deploy site workflow and check it's green.
  4. If you created a new token instead of rolling, revoke the old one in Cloudflare.
  5. Retitle this issue with the next date a year on, or open a fresh one.

Done when a deploy succeeds on the new token.

The scheduler token

The scheduler Worker (scheduler/) starts the timed workflows with a fine-grained GitHub token (devstreamhq/devstream only, Actions: Read and write). It was made on 2026-11-06 with a 1-year expiry. If it lapses, Likes, on-merge and the weekly health check stop running on time. The sweep's watchdog restarts them, but only when GitHub's own scheduler happens to fire.

  1. Regenerate it at https://github.com/settings/personal-access-tokens with the same settings.
  2. From scheduler/: npx --prefix ../site wrangler secret put GITHUB_TOKEN and paste it.
  3. Check the Actions tab for a workflow_dispatch Sweep run within 15 minutes.

Activity

  1. added
    priority: highFix this before the next release
    area: ciWorkflows, action pins, releases and deploys
    on Nov 6, 2026
  2. updated Priority High, Area CI and Effort S on Nov 6, 2026
  3. changed the title [-]Rotate the Cloudflare API token[/-] [+]Rotate the Cloudflare API token by 2027-10-06[/+] on Nov 6, 2026
  4. changed the title [-]Rotate the Cloudflare API token by 2027-10-06[/-] [+]Rotate the Cloudflare API token and the scheduler token by 2027-10-06[/+] on 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: ciWorkflows, action pins, releases and deployspriority: highFix this before the next release

    Type

    Fields

    Priority

    High

    Effort

    S

    Area

    CI

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions