Skip to content

infra(dns): #4989 apply window — import 9 developing-today.com records, clear phantom state, re-save encrypted state - #17055

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
dns-4989-apply
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
dns-4989-apply

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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)

  • Baseline at main 6aba2f3: tofu validate OK; plan exit 0 — 0 to add, 0 to change, 1 to destroy (the phantom). State decrypted only after init, per the recorded runner trap.
  • Config: the 9 records added to dns_config.yaml and to the Nix source dns_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.
  • Import: tofu import cannot work with porkbun provider 0.3.0 (passthrough ID import leaves domain empty 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.
  • Phantom 01b.us_linstor_LINSTOR-CONTROLLER_0_0 (id 0, never live) removed with tofu state rm — state-only, never an API delete, per the issue.
  • Apply ran on the final plan: No changes / Apply complete: 0 added, 0 changed, 0 destroyed. save.sh re-saved the encrypted state: terraform.tfstate.enc sha256 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.tf pins carlpett/sops 1.4.1 (dependabot bump bbf878c) but the lock file still held 1.1.1, so -lockfile=readonly init 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=readonly init + validate pass with the committed lock.

Notes

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-bot with what you need.

…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
@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 309dcf3c-df19-4893-801f-cbe469e4fcb1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

infra/dns apply window: clear the phantom state entry, re-save encrypted state, decide the 9 unmanaged developing-today.com records — needs Drew's go-ahead

0 participants