Repository navigation
Withdraw the CLI's SSH DNS registration; spored is the registrar (#872) - #892
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
scttfrdmn
force-pushed
the
fix/872-withdraw-cli-dns
branch
from
October 13, 2026 19:52
d94c51c to
03d1e4a
Compare
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.
Closes #872
Decision: withdraw. spored already registers the
--name/--dnsname from thespawn:dns-nametag (pkg/agent/agent.go:263), SigV4-signed, and it is the only thing that renews the DNS lease (#875). The CLI's SSH registration duplicated that while being broken three ways (dead API Gateway default, unsigned, PKCS#7 body). Finishing it would have produced a second registrar that, being one-shot, can't hold a lease.What changes
spawn:dns-status/spawn:dns-error. It shows the record, the failure detail, or "spored registers once it is running;spawn statusshows the result". The SSH/curl script, its retry loop, the NXDOMAIN pre-check and the misattributing warning are deleted.--no-dns/dns.enabled: falsenow actually skip DNS. Before, they only gated the CLI attempt; the tag was still written, so spored registered anyway. They now withholdconfig.DNSNameand therefore the tag.spawn dns register/deletework from a workstation.pkg/dnsfetched the identity document from IMDS before every request, so off-instance it failed before sending anything. The updater ignores those fields (lambda/dns-updater/main.go, since [HIGH] dns-updater accepts unsigned identity docs + default-allows cross-account → Route53 spoofing #173).--domainonspawn dnsnow reaches the request instead of only the printed FQDN.pkg/config:defaultAPIEndpoint(the deletedf4gm19tl70API),Domain/APIEndpoint, the SSM/spawn/dns/*lookups andSPAWN_DNS_*env. These fed only the withdrawn path, and the domain was never sent.LoadDNSConfigresolvesenabledonly and makes no AWS call.launch --dns-domain,--dns-api-endpoint(hidden, warn). The second is added toknownUnwiredFlagsper the --cartesian is parsed and never read: sweeps silently produce the wrong run count #674/--use-reservation is parsed and never read: it silently does nothing (superseded by --reservation-id) #675 precedent.--dns-domainisn't caught by that gate because its variable is shared withspawn dns --domain.scripts/deploy-custom-dns.sh"next steps" no longer advertises SSM auto-discovery. Writing it surfaced Custom DNS deployments: nothing points spored at the custom domain or endpoint #891: nothing points spored at a custom domain or endpoint, so custom DNS deployments don't work end to end.Gates. Each was reverted in a way that compiles, and each failed:
TestEveryRequestWorksWithoutIMDS, built viaNewClientwithAWS_EC2_METADATA_DISABLED, all four request kinds. Against the originalclient.goit fails withGetInstanceIdentityDocument, access disabled to EC2 IMDS.TestNoDNSWithholdsTheTagSporedRegistersFromcovers--name,--no-dns,--dns --no-dns, anddns.enabled: false. It fails for each of: the tag gate forced true, the file setting ignored, and the flag ignored inLoadDNSConfig.TestSporedDNSReportcovers every tag state, including pending, which used to print nothing.make check,make check-docs, Tier 0 e2e (-count=1, 67s) green; semgrep clean.Not verified against real AWS:
spawn dns registerfrom a workstation against the live updater. That writes a real Route53 record, so it needs approval.