Skip to content

fix(spored): log when DNS registration is skipped for no configured name (#435) - #437

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/435-log-dns-skip
Jul 23, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/435-log-dns-skip

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

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 Go spawn launch always sets config.DNSName (--dns defaults to the required --name), so it always emits spawn:dns-name and spored always registers. spawn-ts (browser launcher) collected a name but never mapped it into the spawn:dns-name tag → config.DNSName empty → 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/else chain had no branch for the most common case, config.DNSName == "" — so an instance without a spawn:dns-name tag 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:

DNS registration skipped: no DNS name configured (no spawn:dns-name tag on the instance)

Now /var/log/spored.log shows the cause immediately, pointing at the launcher rather than spored.

Docs/CHANGELOG updated. Builds + pkg/agent tests pass. Complements PR #436's other observability fixes (HTTP-status surfacing, dns-status tags, spawn status warning).

…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

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
pkg/agent/agent.go 0.00% 7 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit f7c9aa4 into main Jul 23, 2026
7 checks passed
@scttfrdmn
scttfrdmn deleted the fix/435-log-dns-skip branch July 23, 2026 05:51
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.

1 participant