Cloudflare Workers with credentials in plain-text variables

CloudflareSecurityTeam planSeverity: highcloudflare.worker-script

Workers with plain-text environment variables whose name looks like a credential (secret, password, token, API key, private key, credential)

What LeftSize checks

Find Workers with plain-text environment variables whose name looks like a credential (secret, password, token, API key, private key, credential).

Why it matters

Publicly exposed or unprotected resources are one of the most common causes of cloud security incidents.

What you get in the issue

LeftSize runs this check from a scheduled GitHub Action with a read-only Cloudflare API token that stays on your runner, and opens one issue per Cloudflare account in GitHub or Jira, updated on every scan. The issue includes:

  • The affected resources, grouped per Cloudflare account
  • Background on why it was flagged and when it is a false positive
  • Step-by-step remediation with safety checks
  • Ready-to-run fix scripts (Cloudflare API, Wrangler or Terraform where available)
  • Cost and operational impact of fixing it
  • Alternative approaches and their trade-offs
  • Snooze, ignore or report a finding with a comment on the issue
Install LeftSizeIncluded in the Team and Business plans.

See the @leftsize commands,how LeftSize works andhow to set it up.

Official references