DNS: the token in dns/cloudflare.env, gitignored

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
This commit is contained in:
blandClaude Opus 5.5 committed 2026-11-07 16:00:30 +01:00
1 parent 302a163fbd
commit 213ef712c7
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -6,3 +6,4 @@ nats/nats.conf
certs/ certs/
.kanidm-recovered .kanidm-recovered
gitea-oauth.secret gitea-oauth.secret
dns/cloudflare.env
+5 -1
View File
@@ -8,13 +8,17 @@ from any machine.
```sh ```sh
paru -S dnscontrol paru -S dnscontrol
cd dns cd dns
export CLOUDFLARE_API_TOKEN=... # see below; never commit it # The token in dns/cloudflare.env (gitignored, chmod 600), one line:
# CLOUDFLARE_API_TOKEN=...
set -a; . ./cloudflare.env; set +a # bash; in fish: export (cat cloudflare.env)
dnscontrol check # the file parses dnscontrol check # the file parses
dnscontrol preview # what would change, nothing changed dnscontrol preview # what would change, nothing changed
dnscontrol push # change it dnscontrol push # change it
``` ```
`creds.json` names the token by its variable only, so it is in the repo. `creds.json` names the token by its variable only, so it is in the repo.
The account ID is not needed (it is only for creating zones), and there
is no state to keep, so no S3 keys either.
## The token ## The token