Skip to content

Windows spored never signs DNS requests, so Windows DNS (and DNS leases) are refused #883

Closed

Description

@scttfrdmn

Found during the real Windows validation of #879 (2026-10-13), on a Windows Server 2025 spore running spored v0.128.0:

spawn:dns-status = failed
spawn:dns-error  = DNS API returned HTTP 403: {"Message":"Forbidden"}

The instance is in 435415984226, which is on the DNS updater's allowlist, so this is not the resource-policy narrowing from #835. {"Message":"Forbidden"} is the Function URL's own refusal, and that is what an unsigned request to an AuthType: AWS_IAM URL gets regardless of resource policy.

Why Windows requests are unsigned

spored signs only when SPORE_DNS_SIGV4 is set (pkg/dns/client.go: return os.Getenv("SPORE_DNS_SIGV4") != ""). It is set in exactly three places, all Linux systemd units:

cmd/app.go:697            Environment=SPORE_DNS_SIGV4=1
cmd/app.go:869            Environment=SPORE_DNS_SIGV4=1
pkg/launcher/bootstrap.go:858  Environment=SPORE_DNS_SIGV4=1

The Windows service (cmd/spored/service_windows.go, installed by spored service install) sets no environment. So Windows spored has sent unsigned DNS requests since the #173 cutover to AWS_IAM, and — very likely — no Windows spore has registered DNS since. It also means the DNS lease (#875) cannot work on Windows.

Fix

The opt-in existed to stage the #173 rollout: ship a signing client before flipping the URL to AWS_IAM. The flip happened, so signing is no longer optional — an unsigned request can only ever be refused.

  • Make signing the default in pkg/dns rather than an opt-in, keeping an explicit opt-OUT only if some deployment genuinely runs a non-IAM DNS endpoint.
  • Gate: a client built with no environment signs its requests.
  • Ships in spored, so it reaches instances only via a release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:networkingarea:windowsbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions