From 213ef712c7ab2d4465ad5d25f8196fa9337e70a3 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sat, 7 Nov 2026 16:00:30 +0100 Subject: [PATCH] DNS: the token in dns/cloudflare.env, gitignored Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM --- .gitignore | 1 + dns/README.md | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 27f4f02..ce5cfb5 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ nats/nats.conf certs/ .kanidm-recovered gitea-oauth.secret +dns/cloudflare.env diff --git a/dns/README.md b/dns/README.md index 5c929f4..ffef800 100644 --- a/dns/README.md +++ b/dns/README.md @@ -8,13 +8,17 @@ from any machine. ```sh paru -S dnscontrol 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 preview # what would change, nothing changed dnscontrol push # change it ``` `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