A separate Cloudflare DNS token for the educational E-01
DNS Edit and Zone Read for one zone, expiry and API/CLI checks. Why a token name does not restrict its permissions to a single hostname.
Separate access for the educational DNS setup
Cloudflare already serves my domain. For the temporary E-01 server, I created a separate user API token named solution200-e01-dns. Its role is to manage DNS for the upcoming educational connection. Existing tokens, their permissions and existing DNS records remain unchanged.
The permissions I selected
In my profile, I opened API Tokens → Create Token → Create Custom Token. I added two permissions: Zone / DNS / Edit and Zone / Zone / Read. Under Zone Resources, I selected Include → Specific zone → solution200.com. I added no Account or User permissions.
The permission covers the entire zone
DNS Edit allows reading, creating, updating and deleting DNS records in this zone. It is not restricted to e01-demo: the token name does not create that restriction. DNS Read together with Zone Read would suffice for inventory inspection alone; I chose Edit for the upcoming DNS operator work. This policy includes no R2, Workers, Access or token-management permissions.
Checking expiry before confirmation
I set a finite lifetime ending before the server rental expires. In the time picker, I explicitly selected UTC and checked not_before and expires_on in JSON Payload before pressing Create Token. The human-readable summary can display another time zone, so I relied on the actual UTC values. I left the IP filter unset because the operator’s stable egress address has not been established.
The one-time value and local profile
After pressing Create Token once, I saved the one-time value only in a local credentials directory outside Git. The directory has mode 0700 and the file has mode 0600. I took no screenshot of the secret page. The following profile structure contains placeholders, not the real token. I obtained the token ID from its verification response.
CLOUDFLARE_API_TOKEN='<ONE_TIME_TOKEN>'
CLOUDFLARE_API_TOKEN_ID='<TOKEN_ID_FROM_VERIFY>'
CLOUDFLARE_ACCOUNT_ID='<YOUR_ACCOUNT_ID>'
CLOUDFLARE_ZONE_ID='<YOUR_ZONE_ID>'
What the API and CLI checked
A separate GET /client/v4/user/tokens/verify returned HTTP 200 and active status; its expiry matched the reviewed policy. The prepared CLI then used the new profile to perform GET checks of the token, the intended zone and its complete DNS inventory. The command below shows the invocation with the standard profile path; the output file must be new.
deploy-cli cloudflare dns inspect \
--env-file "$HOME/.secrets/solution200.com/cloudflare/dns-e01.env" \
--zone solution200.com \
--hostname e01-demo.solution200.com \
--output-file "$PWD/e01-dns-inspection.json"
Reading the result
These are selected fields from the actual CLI report, not a raw Cloudflare response. All three GET checks returned HTTP 200. The complete inventory contains 37 records, with no exact e01-demo record or potential ancestor DNS wildcards. I created no DNS records, so write_performed is false. Successful reads do not test write permission.
{
"status": "passed",
"write_performed": false,
"token_active": true,
"zone_account_match": true,
"dns": {
"zone_active": true,
"inventory_complete": true,
"records": 37,
"exact_records": 0,
"potential_wildcards": 0
}
}
What remains before connecting the site
An absent DNS record does not prove that the name is clear for all traffic. The hostname part of seven existing Worker route patterns covers this candidate; their paths still need review. This DNS inspection does not read Worker routes, Access policies or origin configuration. Next comes that collision review and a concrete HTTPS and private-access plan. The temporary site is not intended for indexing; I will also verify noindex through the future external route.
Primary sources
Cloudflare: Create API token; Cloudflare API: Verify Token.