Skip to content

Give each DNS zone its own directory and add ruby-lang.org - #59

Merged
hsbt merged 4 commits into
masterfrom
claude/agitated-montalcini-86077a
Jul 30, 2026
Merged

Give each DNS zone its own directory and add ruby-lang.org#59
hsbt merged 4 commits into
masterfrom
claude/agitated-montalcini-86077a

Conversation

@hsbt

@hsbt hsbt commented Jul 30, 2026

Copy link
Copy Markdown
Member

The dns/ directory held a single zone, so a second one had nowhere to put its credentials. Cloudflare API tokens are scoped to one zone each, which means every zone needs its own creds.json, so dnsconfig.js and creds.json now live under dns/<zone>/.

ruby-lang.org joins rubyci.org under DNSControl, exported with get-zones and confirmed to round-trip. Storing it here was agreed with shugo. Unlike rubyci.org it is not applied from CI. The zone is shared with other maintainers, so dnscontrol push stays a deliberate manual step and no repository secret is added for it. Its creds.json reads CLOUDFLARE_API_TOKEN_RUBY_LANG_ORG rather than the name rubyci.org uses, so the wrong token cannot be picked up by accident.

The workflow still applies rubyci.org alone, now from dns/rubyci.org. Both zones preview at 0 corrections against the live zones.

hsbt and others added 4 commits July 30, 2026 09:09
A second Cloudflare zone is about to be added, and the two zones need
separate credentials because the API tokens are zone scoped.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Exported with get-zones and confirmed to round-trip at 0 corrections.
Unlike rubyci.org it is not applied from CI: the zone is shared with
other maintainers, so push stays a deliberate manual step.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The ruby-lang.org token already carries its zone in the name, so the
bare CLOUDFLARE_API_TOKEN was the odd one out and gave no hint about
which of the two zone scoped tokens it held.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@hsbt
hsbt merged commit af1dd10 into master Jul 30, 2026
1 check passed
@hsbt
hsbt deleted the claude/agitated-montalcini-86077a branch July 30, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant