Live
Cloudflare WAF adds blocking rules for Ruby regex flaws and WordPress exploitsAI Prompt Logging via WAF Payload Logging Replaces Legacy Log Mode RulesetTerraform Stacks gain native policy support, multi‑deployment orchestration, and agent‑ready CLIReducing GPU Cold‑Start Latency on EKS with Auto Mode and KarpenterSpain Cloud Accreditation Unlocks Classified Workloads on AWS Europe (Spain)Virtual Machines Remain Core Infrastructure as AI Workloads Increase Isolation NeedsNew Workspace Agent Interfaces and Cloud Agent Gateway tighten AI agent securityLambda Timeout Doubles and Gains GPU Support – What Engineers Need to AdjustCloudflare WAF adds blocking rules for Ruby regex flaws and WordPress exploitsAI Prompt Logging via WAF Payload Logging Replaces Legacy Log Mode RulesetTerraform Stacks gain native policy support, multi‑deployment orchestration, and agent‑ready CLIReducing GPU Cold‑Start Latency on EKS with Auto Mode and KarpenterSpain Cloud Accreditation Unlocks Classified Workloads on AWS Europe (Spain)Virtual Machines Remain Core Infrastructure as AI Workloads Increase Isolation NeedsNew Workspace Agent Interfaces and Cloud Agent Gateway tighten AI agent securityLambda Timeout Doubles and Gains GPU Support – What Engineers Need to Adjust
Cloudflare

Restrict Flagship API Tokens to Individual Apps to Minimize Blast Radius

AI SummaryPowered by AI

Cloudflare now lets you create Flagship API tokens that are limited to specific apps rather than the whole account. This reduces exposure risk and aligns automation with least‑privilege security practices.

Cloudflare has introduced app‑scoped API tokens for Flagship, allowing a token to be limited to one or more explicitly chosen Flagship applications instead of the entire account. Engineers and security teams can now enforce a finer‑grained permission set for automation, CI pipelines, and server‑side services that only need to interact with a single app.

UI change: selecting a specific Flagship app

When generating a custom token the resource selector now defaults to Entire Account. Switching the dropdown to Specified Flagship apps reveals a list of the account’s Flagship applications. After picking an app, the token can be granted one of three Flagship permissions: Evaluate, Read, or Write. The previous account‑wide Evaluate, Read, and Write options remain for cases where full‑account access is required.

Why the restriction matters to practitioners

Limiting a token to a single app reduces the blast radius if the secret is exposed, aligning with the principle of least privilege. Server‑side environments such as Wrangler, continuous‑integration runners, or backend services often only need to query or update one Flagship app; granting broader access creates unnecessary risk and complicates audit trails.

Operational impact and token lifecycle

Creating an app‑scoped token follows the same workflow as any Cloudflare API token, but the extra step of choosing Specified Flagship apps adds a decision point for permission scope. Practitioners should map each automation job to the minimal required permission (Evaluate for runtime checks, Read for configuration retrieval, Write for updates). Existing automation that currently uses account‑wide tokens should be reviewed and, where possible, replaced with app‑scoped equivalents. The dashboard provides a direct link to the app‑scoped token form for quick migration.

Related CloudNinjas coverage: hands-on guides.

What This Means For Practitioners

Adopt app‑scoped tokens for any workflow that interacts with a single Flagship app. Audit existing tokens, downgrade permissions where feasible, and update CI/CD pipelines to reference the new, narrowly scoped secrets. This change offers a straightforward way to tighten access without altering application code.

Originally published atCloudflare Developer Platform