Repository navigation
fix(spored): log when DNS registration is skipped for no configured name (#435) - #437
Merged
Merged
Conversation
…ame (#435) The if/else chain in agent startup had no branch for the most common case — config.DNSName empty — so an instance launched without a spawn:dns-name tag skipped DNS registration completely silently. That made a launcher which forgot to emit the tag (spawn-ts, per #435) look like a broken spored/Lambda/infra path, when spored was correctly doing nothing. Now logs 'DNS registration skipped: no DNS name configured'. Root cause of #435 was client-side (spawn-ts didn't map --name to the spawn:dns-name tag); the Go spawn launch always sets it. spored/Lambda/ infra registration verified working end-to-end on live instances.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Closing observability gap surfaced by the #435 investigation.
Root cause of #435 (for the record)
Client-side (spawn-ts), not spored/Lambda/infra. The reporter root-caused it in
launch_config.go: the Gospawn launchalways setsconfig.DNSName(--dnsdefaults to the required--name), so it always emitsspawn:dns-nameand spored always registers. spawn-ts (browser launcher) collected a name but never mapped it into thespawn:dns-nametag →config.DNSNameempty → spored correctly skipped registration. The daemon/Lambda/SigV4/IAM/infra path was verified working end-to-end on live instances (registered + resolved publicly).What made it hard: a silent skip
The agent's DNS
if/elsechain had no branch for the most common case,config.DNSName == ""— so an instance without aspawn:dns-nametag skipped registration with zero log output. That silence is exactly why a launcher bug looked like a broken registration path.Change
Add the missing
else:Now
/var/log/spored.logshows the cause immediately, pointing at the launcher rather than spored.Docs/CHANGELOG updated. Builds +
pkg/agenttests pass. Complements PR #436's other observability fixes (HTTP-status surfacing, dns-status tags,spawn statuswarning).