You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zone:DNS:Edit + (optional) Account:Access: Apps and Policies:Edit
Account + Zone
DNS & Connectivity
Feature
Permission
Scope
DNSRecord
Zone:DNS:Edit
Zone (specific or all)
Access Control (Zero Trust)
Feature
Permission
Scope
AccessApplication
Account:Access: Apps and Policies:Edit
Account
AccessGroup
Account:Access: Organizations, Identity Providers, and Groups:Edit
Account
AccessPolicy
Account:Access: Apps and Policies:Edit
Account
AccessIdentityProvider
Account:Access: Organizations, Identity Providers, and Groups:Edit
Account
AccessServiceToken
Account:Access: Service Tokens:Edit
Account
Gateway & Device
Feature
Permission
Scope
GatewayRule
Account:Zero Trust:Edit
Account
GatewayList
Account:Zero Trust:Edit
Account
GatewayConfiguration
Account:Zero Trust:Edit
Account
DevicePostureRule
Account:Access: Device Posture:Edit
Account
DeviceSettingsPolicy
Account:Zero Trust:Edit
Account
Zone Settings & SSL/TLS
Feature
Permission
Scope
CloudflareDomain
Zone:Zone Settings:Edit + Zone:SSL and Certificates:Edit
Zone
OriginCACertificate
Zone:SSL and Certificates:Edit
Zone
R2 Storage
Feature
Permission
Scope
R2Bucket
Account:Workers R2 Storage:Edit
Account
R2BucketDomain
Account:Workers R2 Storage:Edit + Zone:DNS:Edit
Account + Zone
R2BucketNotification
Account:Workers R2 Storage:Edit
Account
Rules Engine
Feature
Permission
Scope
ZoneRuleset
Zone:Zone Rulesets:Edit
Zone
TransformRule
Zone:Zone Rulesets:Edit
Zone
RedirectRule
Zone:Zone Rulesets:Edit
Zone
Cloudflare Pages
Feature
Permission
Scope
PagesProject
Account:Cloudflare Pages:Edit
Account
PagesDomain
Account:Cloudflare Pages:Edit + Zone:DNS:Edit
Account + Zone
PagesDeployment
Account:Cloudflare Pages:Edit
Account
Registrar (Enterprise)
Feature
Permission
Scope
DomainRegistration
Account:Registrar:Edit
Account
Recommended Token Configurations
Minimal (Tunnel + DNS)
Permissions:
- Account > Cloudflare Tunnel > Edit
- Zone > DNS > Edit
Account Resources:
- Include > Your Account
Zone Resources:
- Include > Specific zone > example.com
Full Zero Trust
Permissions:
- Account > Cloudflare Tunnel > Edit
- Account > Access: Apps and Policies > Edit
- Account > Access: Service Tokens > Edit
- Account > Zero Trust > Edit
- Zone > DNS > Edit
Account Resources:
- Include > Your Account
Zone Resources:
- Include > All zones (or specific zones)
Important: For detailed information about namespace restrictions and Secret management, see Namespace Restrictions.
CloudflareSpec Reference
All CRDs that interact with Cloudflare API include a cloudflare spec:
spec:
cloudflare:
# Your Cloudflare Account ID (required for most resources)accountId: "your-account-id"# Domain managed by Cloudflare (required for DNS-related operations)domain: example.com# Name of the Kubernetes Secret containing API credentialssecret: cloudflare-credentials# Alternative: Account name instead of ID (optional)# accountName: "My Account"# Key name in Secret for API Token (default: CLOUDFLARE_API_TOKEN)# CLOUDFLARE_API_TOKEN: "CUSTOM_TOKEN_KEY"# Key name in Secret for API Key (default: CLOUDFLARE_API_KEY)# CLOUDFLARE_API_KEY: "CUSTOM_KEY"# Email for API Key authentication (optional)# email: admin@example.com
Finding Your Account ID
Method 1: Domain Overview
Log in to Cloudflare Dashboard
Select any domain
Find Account ID in the right sidebar under "API"
Method 2: Account URL
Go to Account Home
The Account ID is in the URL: dash.cloudflare.com/<account-id>/...