Repository navigation
infra(dns): #4989 apply window — import 9 developing-today.com records, clear phantom state, re-save encrypted state - #17055
Merged
Conversation
…s, clear phantom state entry, re-save encrypted state - dns_config.yaml + dns_config/default.nix: add the 9 previously unmanaged developing-today.com records (ALIAS git/code/zk/zulip and wildcard CNAMEs *.git/*.code/*.zk/*.zulip -> uixie.porkbun.com; CNAME static -> developing-today.github.io), now under Terraform management. - terraform.tfstate.enc: re-saved after the apply window (serial 84 -> 87). Phantom entry porkbun_dns_record.record["01b.us_linstor_LINSTOR-CONTROLLER_0_0"] (id 0, never live) removed from state only — no API delete. The 9 records were imported with their live Porkbun IDs, verified by provider Read. Final plan: No changes (0 to add, 0 to change, 0 to destroy). - .terraform.lock.hcl: carlpett/sops 1.1.1 -> 1.4.1 to match the pin already in main.tf (dependabot bump bbf878c landed without a lock update, which made -lockfile=readonly init fail). Hashes restored in full from the registry SHASUMS; both provider zips verified against registry shasums. Closes #4989
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Executes the DNS apply window authorized on #4989 (Decision + GO, 2026-11-29: import the 9 unmanaged developing-today.com records into Terraform management).
What was done (runner procedure + guardrails from #4989 followed)
tofu validateOK; plan exit 0 — 0 to add, 0 to change, 1 to destroy (the phantom). State decrypted only after init, per the recorded runner trap.dns_config.yamland to the Nix sourcedns_config/default.nix(keys verified identical to generator output). Pre-import plan: 9 to add, 0 to change, 1 to destroy — exactly the authorized scope, nothing beyond it.tofu importcannot work with porkbun provider 0.3.0 (passthrough ID import leavesdomainempty and Read fails: "You need to pass a domain"), so the 9 state instances were inserted with their live Porkbun IDs and then verified by provider Read (TF_LOG shows every imported ID matched in the live zone) plus two independent Porkbun API retrieves that agree record-for-record. Post-import plan: 0 to add, 0 to change, 1 to destroy.01b.us_linstor_LINSTOR-CONTROLLER_0_0(id 0, never live) removed withtofu state rm— state-only, never an API delete, per the issue.save.shre-saved the encrypted state:terraform.tfstate.encsha256 21b74bb7… → be9ff33f…, serial 84 → 87, 160 records, no phantom. Follow-up read-only plan: No changes.Incidental fix required by drift since the issue was verified
main.tfpinscarlpett/sops 1.4.1(dependabot bump bbf878c) but the lock file still held 1.1.1, so-lockfile=readonlyinit failed at current main. Lock updated to 1.4.1; full hash set restored from the registry SHASUMS and both provider zips verified byte-identical to the registry-recorded sha256s. A final-lockfile=readonlyinit + validate pass with the committed lock.Notes
dns_config/default.nixcontains anmcpxrecord that is absent fromdns_config.yaml, and the YAML carries explicitttl: 600fields the current Nix source no longer generates — regenerating the YAML today would add mcpx and drop the ttl fields, so the YAML was edited directly, as in PR fix(infra/dns): repair TTL config (300->600), pin providers, honour lock in init.sh (#1860) #2730.Closes #4989
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-30T02:59:07Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch/workspace/dns-4989/wt", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch/workspace/dns-4989/wt", "repo": "developing-today/code", "branch": "dns-4989-apply", "sha": "09f9768e8e5b4659173d8c8eb75eaf615b65bb06" }, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.