Dawnfix

Who can reach your Cloudflare Workers, and around what?

Works with Cloudflare GitHub ActionsGitHub Actions Node.jsNode.js

Dawnfix Flare audits your Cloudflare accounts and your wrangler files with a read-only API token: Workers answering on workers.dev around their custom domain, hostnames with no sign-in in front, rate-limit namespaces two Workers share, routes and DNS pointing at nothing, tokens that can do too much. The scan is free and source available and runs on your machine; so does the daily audit in your CI.

A Cloudflare account is read with a read-only token, every Worker and hostname is checked, and a Worker reachable on workers.dev around its custom domain and hostnames with no sign-in in front are flagged in one report. Your Cloudflare account a read-only token, and your wrangler files Every Worker and hostname routes, domains, DNS, Access, tokens Open on workers.dev a Worker answers around its custom domain No sign-in in front hostnames with no Access application One report, worst first what to switch off, and where
Flare's demo account: a Worker open around its custom domain, and hostnames with nothing in front. Nothing is changed.

What it checks

CheckWhat it finds
workers.dev exposure
workers-dev-enabled
a Worker answers on <script>.<subdomain>.workers.dev, outside the zone’s WAF, rate-limiting rules and Access. High when it also has a custom domain; low behind Access or without a fetch handler; in a wrangler file, caught before the next deploy turns it on.
Preview URLs
preview-urls-enabled
every uploaded version gets its own public preview hostname on workers.dev.
Hostname without auth
hostname-without-auth
a custom domain or route with no Access application in front and no sign-in found in the repo (public on purpose: say so in publicHostnames).
Rate-limit namespace clash
ratelimit-namespace-shared
two Workers (or two bindings) name the same rate-limit namespace_id, so they spend each other’s limit; suggests the next free block.
Route to missing Worker
route-to-missing-script
a zone route or Workers custom domain bound to a script that no longer exists.
Dangling DNS
dangling-dns
a CNAME into workers.dev for a missing or disabled script, into another account’s subdomain, to a sibling-zone name that has no record, or a placeholder record no route serves.
Dead script
dead-script
no route, domain, workers.dev, cron, queue or service binding reaches it, or it has not been deployed for months: secrets and bindings stay live.
Old compatibility date
compat-date-old
a compatibility_date more than a year old.
Secrets changed
secrets-changed
secret names added or removed since the last run (values are never read).
Over-scoped token
token-over-scoped
an API token with write access on every account or zone, or eight or more write permission groups.
Token never expires
token-no-expiry
an API token that never expires.
Unused token
token-unused
an API token not used for 90 days.
Zone TLS / HSTS
zone-tls
minimum TLS below 1.2, Always Use HTTPS off, HSTS off or short.

Every finding comes with the fix: the wrangler key, the dashboard path or the command. A part the token cannot read is listed under “Not checked” with the reason, never guessed.

Free scan and daily audit, hosted alerts

One-shot scan (free)Daily audit in CI (free)With an Enterprise key
Where it runsYour machine, your token in your terminalYour GitHub Actions, your token as a GitHub secret (FLARE_CLOUDFLARE_API_TOKEN)The same daily run, which also sends its counts
Every check aboveYes, once, when you run itYes, every dayYes, every day
ReportOne HTML file and a terminal tableThe run’s job summary, in your GitHub. The names stay thereThe same. Names never reach us
New exposure—In the job summaryAn email the same day the critical, high or medium count rises against the run before, with the link to the run
Status page and digest——Last run, counts by severity and the trend per repo; a section in the daily digest
Set up byYouYou: a short dawnfix-flare.yml that calls the reusable workflow, or paste prompts/flare-ci.md into your coding agentThe same, plus DAWNFIX_ENTERPRISE_KEY

The token it needs

A custom API token with these permissions, all at Read (Cloudflare dashboard > My Profile > API Tokens > Create Token > Create Custom Token). Resources: the account and its zones. Nothing with Edit or Write. The CLI also refuses any request but GET in code, so a broader token still could not change anything; do not give it one.

PermissionUsed for
Account > Workers Scripts > Readscripts, workers.dev / preview flags, bindings, secret names, deployments, cron schedules, custom domains, account workers.dev subdomain
Account > Access: Apps and Policies > Readwhich hostnames and workers.dev URLs Access protects
Account > Account Settings > Readaccount list and names
Account > Account API Tokens > Read (optional)account-owned tokens and their permission group names (optional)
User > API Tokens > Read (optional)user-owned tokens (optional; only on a user-owned token)
Zone > Zone > Readzone list
Zone > Workers Routes > Readzone Workers routes
Zone > DNS > ReadDNS records
Zone > Zone Settings > Readmin TLS, Always Use HTTPS, HSTS

7 required, 2 optional. A missing permission does not stop the audit: the checks it feeds say “not checked”.

Privacy

  • The free scan uploads nothing. The token is read from an environment variable you set in your own terminal; it is never typed into a chat, a file or a command line. No telemetry, no account.
  • The daily audit runs in your CI. Your Cloudflare token is a GitHub secret and stays one: it goes from the runner to api.cloudflare.com and nowhere else. Dawnfix Flare’s service never holds a Cloudflare token.
  • Names stay in your GitHub: hostnames, Worker, zone, token and secret names are in the run’s job summary (run it in a private repo), and the secret-name baseline in your repo’s Actions cache. Secret values are never read.
  • Only counts reach us, and only with an Enterprise key: per check and severity, how many accounts, and a salted hash per account id (to enforce the account limit). The service rejects anything else, and the workflow prints the document before it sends it. This is exactly what leaves, for the sample account:
{
  "schema": "dawnfix.flare/1",
  "generated_at": "2026-10-27T12:00:00Z",
  "accounts": 1,
  "account_ids": [
    "4e2de339928e0b36"
  ],
  "local_files": 3,
  "gaps": 1,
  "summary": {
    "critical": 0,
    "high": 6,
    "medium": 14,
    "low": 4,
    "info": 1
  },
  "findings": {
    "workers-dev-enabled": {
      "critical": 0,
      "high": 1,
      "medium": 1,
      "low": 0,
      "info": 0
    },
    "preview-urls-enabled": {
      "critical": 0,
      "high": 0,
      "medium": 1,
      "low": 0,
      "info": 0
    },
    "hostname-without-auth": {
      "critical": 0,
      "high": 0,
      "medium": 2,
      "low": 1,
      "info": 1
    },
    "ratelimit-namespace-shared": {
      "critical": 0,
      "high": 1,
      "medium": 1,
      "low": 0,
      "info": 0
    },
    "route-to-missing-script": {
      "critical": 0,
      "high": 2,
      "medium": 0,
      "low": 0,
      "info": 0
    },
    "dangling-dns": {
      "critical": 0,
      "high": 1,
      "medium": 3,
      "low": 0,
      "info": 0
    },
    "dead-script": {
      "critical": 0,
      "high": 0,
      "medium": 1,
      "low": 0,
      "info": 0
    },
    "compat-date-old": {
      "critical": 0,
      "high": 0,
      "medium": 2,
      "low": 1,
      "info": 0
    },
    "secrets-changed": {
      "critical": 0,
      "high": 0,
      "medium": 0,
      "low": 0,
      "info": 0
    },
    "token-over-scoped": {
      "critical": 0,
      "high": 1,
      "medium": 0,
      "low": 0,
      "info": 0
    },
    "token-no-expiry": {
      "critical": 0,
      "high": 0,
      "medium": 1,
      "low": 0,
      "info": 0
    },
    "token-unused": {
      "critical": 0,
      "high": 0,
      "medium": 0,
      "low": 1,
      "info": 0
    },
    "zone-tls": {
      "critical": 0,
      "high": 0,
      "medium": 2,
      "low": 1,
      "info": 0
    }
  }
}

Sample report

Made from Dawnfix Flare’s own demo account (made-up names, one planted problem per check). Open the sample report: the same single HTML file the scan writes for you.

How to run it

  1. Run it with npx dawnfix flare: the npm package dawnfix, version 0.5.0, one file with no dependencies, on Node.js 20 or later. From a clone of dawnfix/dawnfix, node flare/dist/cli.js takes the same flags.
  2. In your own terminal, set the read-only token without it showing:
    read -rs CF_API_TOKEN && export CF_API_TOKEN
  3. Run the audit. It writes the HTML report and changes nothing in Cloudflare:
    npx dawnfix@0.5.0 flare --repos ~/dev/* --html flare-report.html
    npx dawnfix@0.5.0 flare --no-api --repos ~/dev/*   # wrangler files only
  4. Or use it from your coding agent: paste prompts/flare.md. Set the token in your own terminal first, never in the chat. The agent runs the audit and explains the top findings.

The daily audit and the alert

Free. Add .github/workflows/dawnfix-flare.yml that calls the reusable workflow dawnfix/dawnfix/.github/workflows/flare.yml@v0 and set your read-only token as the FLARE_CLOUDFLARE_API_TOKEN secret, or paste prompts/flare-ci.md into your coding agent:

name: dawnfix-flare
on:
  schedule: [{ cron: "17 5 * * *" }]   # daily, before the 06:30 UTC digest
  workflow_dispatch:
permissions: { contents: read }
jobs:
  flare:
    uses: dawnfix/dawnfix/.github/workflows/flare.yml@v0
    secrets:
      FLARE_CLOUDFLARE_API_TOKEN: ${{ secrets.FLARE_CLOUDFLARE_API_TOKEN }}
      DAWNFIX_ENTERPRISE_KEY: ${{ secrets.DAWNFIX_ENTERPRISE_KEY }}   # optional

Every morning it runs the same audit with your token, writes the findings to the run’s job summary and keeps the secret-name baseline in your Actions cache.

Pin @v0.5.0 or a commit SHA instead of @v0 to freeze it. Rather keep the whole job in your repo? Copy templates/github/workflows/dawnfix-flare.yml: the same job, reading repo variables instead of inputs.

With an Enterprise key as the DAWNFIX_ENTERPRISE_KEY secret, it also sends the counts. When the critical, high or medium count goes up against the day before, everyone in the workspace gets an email that day, with the link to the run where the names are. Without a key it sends nothing. Contact us for Enterprise.