Plugins / Cloudflare DNS
Cloudflare DNS 4.1.1
The Cloudflare DNS plugin lets a Vaubaan Gateway mission use Cloudflare DNS without handing the agent a credential. DNS zones and records on Cloudflare : records, BIND import / export, zone settings, DNSSEC and cache purge — one resource per zone.
1 · The model
How Cloudflare DNS is modelled
1 plane, 10 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.
Account One account is one Cloudflare API token.
Plane · dnsThe only Cloudflare plane Vaubaan exposes — the zones reachable by the API token and all DNS management under them (records, zone settings, DNSSEC, CDN cache, BIND import/export). WAF, Workers, R2, Pages are out of scope.
zone_id.@), a wildcard at the apex (*.zone), or of type MX / NS. Emitted next to the record write so a mission accepts changes to the whole domain, mail routing or delegation distinctly from ordinary subdomain records.delete 1delete: Synthetic verb leaf — deletion of a record. Distinct from an update because the previous value is lost (no DNS versioning).1 exactly one, namedn a finite, known set* an unknown number, possibly all the resource carries the environment
Account
One account is one Cloudflare API token.
Resource
One resource is one DNS zone (a domain). A mission touches only the zones it was given.
Environment
- Rule
- No permission of this service depends on an environment: each is held once, whatever the resource.
- Known
- none
- Carried by
- nothing in the model
DNS has no environment: ordinary records, apex / MX / NS changes, deletions, imports and zone settings are separate permissions instead.
2 · Macro-actions
What an agent does at Cloudflare DNS: 4 macro-actions
A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.
- 1
Look up
Metadata, records and export.
Reading the mission's zones: their status and settings, their records, and the zone file. Nothing changes, but records map the network (server addresses, mail relays, SPF and DKIM), which is what an attacker scouts first. The export is a permission of its own because one call hands over the whole zone.
3 permissions
- 2
Point subdomains
Ordinary records and cache purge.
Pointing hosts somewhere: adding and changing ordinary records, and purging the cache. A record is public as soon as it is written and DNS keeps no history, so undoing a change means knowing the old value. A purge only costs a load spike on the origin while the cache rebuilds.
2 permissions
- 3
Change the domain
Apex, MX and NS records, deletions and imports.
The writes that move the whole domain rather than one host: the apex and its wildcard, MX that routes all incoming mail, NS that hands a subtree to another nameserver, and BIND imports that rewrite hundreds of records in one call. Deleting a record sits here too, because what it served stops resolving at once and its value is gone.
3 permissions
- 4
Rule the zone
Zone settings, DNSSEC and zone deletion.
Changing how the zone itself is run: its security settings, DNSSEC, and the zone's existence. A weaker TLS setting opens the origin to interception, and DNSSEC turned on without the registrar's DS record breaks resolution for everyone. Deleting the zone takes every record and setting with it, which is why it is the one irreversible permission of this service.
3 permissions
3 · The map
The map
11 permissions of 4 macro-actions, in the four rows of the tree. For the chosen trust level, each cell gives yes, ask me or no, and the quota a day.
A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.
| Risk | Look upMetadata, records and export. | Point subdomainsOrdinary records and cache purge. | Change the domainApex, MX and NS records, deletions and imports. | Rule the zoneZone settings, DNSSEC and zone deletion. |
|---|---|---|---|---|
| Cannot be repaired Careful: no. Trusting, Autonomous: ask me. | None | None | None |
|
| Repairable, at a price Careful, Trusting: ask me. Autonomous: runs freely. | None |
|
|
|
| Worth a look Careful: ask me. Trusting, Autonomous: runs freely. |
|
| None | None |
| Harmless Runs freely at every level. |
| None | None | None |
Careful: runs freely 2, ask me first 8, not included 1. Trusting: runs freely 4, ask me first 7. Autonomous: runs freely 10, ask me first 1. Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.
4 · A few calls
A few calls, classified by the plugin
19 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action and the first the catalog refuses at Careful. The 19 calls, as code.
| The call | The plugin sees | The catalog answers | A Careful mission |
|---|---|---|---|
cloudflare_ |
|
| yes |
cloudflare_ |
|
| ask me |
cloudflare_ |
|
| ask me |
cloudflare_ |
|
| ask me |
cloudflare_ |
|
| no |
5 · Anything else
Anything else
A call no permission covers touches cloudflare- instead of slipping through. No macro-action holds it; a person ticks it knowingly.
| Permission | Risk | Careful ×1 | Trusting ×3 | Autonomous ×10 |
|---|---|---|---|---|
Uncategorized Cloudflare DNS writeWhy it sits here: Catch-all for writes without a dedicated entry. Seen in production, it means a tool classifies to a slice no entry covers : add the entry. cloudflare-dns.uncategorized-write | Repairable, at a price costly to undo | ask me · 50 a day | ask me · 150 a day | yes · 500 a day |
6 · Tools
Tools
15 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.
15 tools · scroll the list
| Tool | What it does | Usually touches |
|---|---|---|
cloudflare_ | List DNS zones | cloudflare- |
cloudflare_ | Read a DNS zone | cloudflare- |
cloudflare_ | List DNS records | cloudflare-, cloudflare- |
cloudflare_ | Read a DNS record | cloudflare-, cloudflare- |
cloudflare_ | Export the DNS records of a zone | cloudflare-, cloudflare- |
cloudflare_ | Read the settings of a zone | cloudflare- |
cloudflare_ | Read the DNSSEC status | cloudflare- |
cloudflare_ | Create a DNS record | cloudflare-, cloudflare- |
cloudflare_ | Change a DNS record | cloudflare-, cloudflare- |
cloudflare_ | Delete a DNS record | cloudflare-, cloudflare-, cloudflare- |
cloudflare_ | Import DNS records in bulk | cloudflare- |
cloudflare_ | Change the settings of a zone | cloudflare- |
cloudflare_ | Purge the cache of a zone | cloudflare- |
cloudflare_ | Turn DNSSEC on or off | cloudflare- |
cloudflare_ | Delete a DNS zone | cloudflare- |
7 · Connecting an account
Connecting an account
1 of 3 · a key you create and paste API token
An API token the person creates at Cloudflare DNS and pastes once; nobody declares anything beforehand.
Include, All zones, with every permission below. This gateway gives a mission its zones one by one and only the permissions it names; a token that lacks a zone or a permission means a new token.
- Sign in to Cloudflare as a member of the account that owns the zones.
- My ProfileAPI TokensCreate TokenOpen the page, start a token from scratch and name it. (open)
- PoliciesAdd new policyZone policyIncludeAll zonesAdd a zone policy that includes all zones, with one permission per line below at the level shown (Edit for read and write, Purge for Cache Purge).

Cloudflare DNS docs, 2026-11 · from developers.cloudflare.com (CC BY 4.0) - Continue to summaryCreate TokenLeave Token expiration at no expiration or pick a date, then create the token.
- Copy the token and paste it here. Cloudflare shows it once.
| Permission at Cloudflare DNS | Access |
|---|---|
| Zone · Zone | read |
| Zone · Zone | read-write |
| Zone · DNS | read-write |
| Zone · Zone Settings | read-write |
| Zone · Cache Purge | read-write |
- Where
- https://dash.cloudflare.com/profile/api-tokens
- Expiry
- The service tells the gateway the date, and the account page warns before it.
- The connect page asks
- API token (secret)
- The service's documentation
- https://developers.cloudflare.com/fundamentals/api/get-started/create-token/
- Disconnecting
- Delete the API token in the Cloudflare dashboard, under My Profile, API Tokens.
8 · Health
Health
17 gateways run this plugin (over the last 90 days).
| Version | Gateways | Calls | Success | Validated |
|---|---|---|---|---|
4. | 1 | no call yet | — | |
4. | 7 | 1 | 100.0 % | |
3. | 5 | 4 | 100.0 % | |
3. | 5 | no call yet | — |
A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly (what they mean). It is a community signal, not a security guarantee.
Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.
9 · Links
Links
Last changed 2026-12-02. This page as Markdown: /plugins/cloudflare-dns.md