ci(site): preview unfoldhq.dev DNS with a read-only token from OpenBao #222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ryangr0/dns-preview-over-openbao"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CI previews
unfoldhq.devDNS with a read-only token it fetches from OpenBao per run, and never holds a token that can change DNS (homelab-cluster ADR-0061).on_dns_change.ymlcallswebgrip/workflowsdnscontrol.ymlv2.8.0 withopenbao-role: ci-unfold. Each job exchanges its Forgejo OIDC token for a ten-minute OpenBao token that reads onlysecret/cloudflare/dns/unfoldhq-dev-ro.developmentthat changes the zone, or by hand; drift runs daily. The push job and theCLOUDFLARE_DNS_TOKENgate are removed.Already live in the homelab: the
cloudflare-dns-token-minterCronJob minted per-zonedns-ro-*anddns-rw-*tokens forunfoldhq.devandtwente.dev, and they are in OpenBao. Theci-unfoldrole and policy are configured.Tested:
scripts/workflow-policy.test.cjs(22/22) andmise run docs-checkpass locally. The real OIDC exchange runs for the first time after merge, when the next push todevelopmenttouches the zone, or on a manual run.🤖 Generated with Claude Code