Repository navigation
cid.contact: order an advanced certificate before the nameserver change - #67
Conversation
…hange Universal SSL is only issued once a zone is active, so after the nameserver change at Squarespace the proxied hostnames (direct., fetch., web-ipni.) would have no edge certificate for the first minutes. The zone is on Enterprise, which includes advanced certificates: this orders one for cid.contact and *.cid.contact while the zone is pending, validated by TXT records added by hand to the old zone, which still answers for the domain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Terraform plan:
|
Claude reviewThe change is small and follows the repo rules: no private values, no CI or gate changes, and the TXT validation values are public by design. I found no blocker. I couldn't run Findings, most severe first:
claude-sonnet-5-5 at high effort · requested by TakGN · re-run with |
…lags - Drop the certificate_status and certificate_validation_records outputs: Cloudflare fills them in after the apply and CI never applies a refresh, so they would stay stale. The comment points at the dashboard or API. - Note that changing the pack's hosts, type, validation, validity or CA replaces the certificate. - Ignore compatibility_flags on ipni-filecoin-redirect, which wrangler.toml owns like the compatibility date: the state keeps it null after #65's apply, so every plan (#66, #67) showed the same in-place update again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the review. Both nits are addressed in 3970734 (replies inline). The first plan here also showed an unexpected update of |
What and why
Cloudflare only issues Universal SSL once a zone is active. After the nameserver change at Squarespace, the proxied hostnames on cid.contact (
direct.,fetch.,web-ipni.) would have no edge certificate until it is issued, usually a few minutes. The new zone is on Enterprise, which includes advanced certificates (quota 100, none used). This orders one now, while the zone is pending:cloudflare_certificate_pack.cid_contact: advanced, hostscid.contactand*.cid.contact, TXT validation, Let's Encrypt (the old zone's certificate authority; there are no CAA records), 90 days. Once the zone is active, Cloudflare renews it.certificates.tfsays so.compatibility_flagsis now ignored onipni-filecoin-redirect.wrangler.tomlowns it, like the compatibility date. After cid.contact: sync ipni-filecoin-redirect into state after its create #65's apply, state still holds it as null, so every plan (cid.contact: move direct. and fetch.cid.contact to ipni-filecoin-redirect (after the zone is active) #66, this one) showed the same in-place update of the project again.DNS-only names aren't affected and need nothing: the apex (CloudFront),
infra.,sf*/chic1,status.,prod..Expected plan
cid.contact-public-utilities: 1 to add, 0 to change, 0 to destroy:cloudflare_certificate_pack.cid_contact. Ifcloudflare_pages_project.filecoin_redirectstill shows an update, don't merge yet.After the apply
_acme-challenge.cid.contact.active(dashboard or API).If the certificate doesn't get past validation while the zone is pending, it is issued at activation like Universal SSL, and the cutover is as before.
Checklist
inbrowser.devbeforeinbrowser.link(n/a: a pending zone)🤖 Generated with Claude Code