diff --git a/dns.tf b/dns.tf index 0192f2f..1653a14 100644 --- a/dns.tf +++ b/dns.tf @@ -11,29 +11,31 @@ # The site entry points. They stay separate resources so a reviewed change can # hand one to external-dns with a `removed` block that keeps the record. +# +# The apex follows www, which external-dns points at the platform gateway, so +# the site keeps working if the gateway address changes. It was already a +# CNAME, so this is an in-place edit of one record and never leaves a gap. +# Roll back by restoring `devantler.github.io` with `proxied = false`. resource "cloudflare_dns_record" "apex" { zone_id = cloudflare_zone.primary.id name = "devantler.tech" type = "CNAME" - content = "devantler.github.io" + content = "www.devantler.tech" ttl = 1 - proxied = false - comment = "GitHub Pages Personal" + proxied = true + comment = "Follows www to the platform gateway" settings = { flatten_cname = false } } -# www moves to the platform: external-dns serves it from the business site's -# public route. This ownership record lets external-dns take over the existing -# CNAME and replace it with the gateway addresses in one batch, so www always -# resolves. The CNAME itself stays in Cloudflare; this repository only forgets it. -resource "cloudflare_dns_record" "www_external_dns_owner" { - zone_id = cloudflare_zone.primary.id - name = "_externaldns.cname-www.devantler.tech" - type = "TXT" - content = "\"heritage=external-dns,external-dns/owner=platform.devantler.tech,external-dns/resource=httproute/business-site/business-site-public\"" - ttl = 1 - proxied = false - settings = {} +# external-dns serves www from the business site's public route. It took over +# the old CNAME through an ownership record this repository created once; both +# now belong to external-dns, so this repository only forgets them. +removed { + from = cloudflare_dns_record.www_external_dns_owner + + lifecycle { + destroy = false + } } removed { diff --git a/recovery/backend-source/configuration.json.age b/recovery/backend-source/configuration.json.age index 9d832a1..4405ae6 100644 Binary files a/recovery/backend-source/configuration.json.age and b/recovery/backend-source/configuration.json.age differ diff --git a/recovery/backend-source/manifest.json b/recovery/backend-source/manifest.json index 732162d..1d69a04 100644 --- a/recovery/backend-source/manifest.json +++ b/recovery/backend-source/manifest.json @@ -1,16 +1,16 @@ { "schemaVersion": 1, "kind": "cloudflare-state-recovery", - "capturedAt": "2026-11-15T03:59:45Z", - "sourceCommit": "457727e207af0d4acc448eff21937b9c9b7a2e9b", - "sourceRun": 43674749476, + "capturedAt": "2026-11-15T04:06:38Z", + "sourceCommit": "81ab7a9c9679795c71a31921054ed839eefbde4b", + "sourceRun": 43675268687, "recipient": "age1rk6fs67kly3h4zux5za429z3grjtvs8vcunav4sa28pxk738najsk8wgs6", "lineage": "d981e029-9986-63a7-2f54-379ce10ee6a4", - "serial": 4, + "serial": 5, "accountIdSha256": "3080d90d2ff8a5d38ec8c5dae7b9207b928b353c68f4dd81e0a378cf932a5f95", "zoneNameSha256": "1fc6c364e0d592421f88ba2d2cf6cf15691bbc711113d7907c159a638f35aeb0", - "stateCiphertextSha256": "d0758c769aa6f20bea6ff1f88d23e3eed70e54d92026baa895a7e3d3281ce6d6", - "configurationCiphertextSha256": "803b3e4140e92b9d8eb8691e9cdee1bcb12e1f2b44c58e999a4273cea1c7bcaa", - "statePlaintextSha256": "c4bc70c78223477b27d842eb75d2e7a8f6a3d95e74deb16e9098f016eb2a70e4", + "stateCiphertextSha256": "98834b1ab15abb6a04ffb5d49271e7b79aeab077e535e9135c9dc5afeec8ede4", + "configurationCiphertextSha256": "a2850916bd1e7839cb93aec4549d27d965053beba9ad7bc2aee04855eb84861f", + "statePlaintextSha256": "80624e0a313e0383040b73a53970aeaa2daaa14ef59a913f4747d7a1b5cc7d3e", "configurationPlaintextSha256": "84c9b6ea504f82a9fd694e701287e30d54fe9b42ecf81dfccfbf2cba9873239a" } diff --git a/recovery/backend-source/state.json.age b/recovery/backend-source/state.json.age index 0e5442a..142fc53 100644 Binary files a/recovery/backend-source/state.json.age and b/recovery/backend-source/state.json.age differ