You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Self-hosted DNS updater: the instance role can only invoke spore.host's updater; dns help/delete gaps #1137
Found while writing the custom DNS guide for spore-host/spore-host#585 part 3. Checked in source; nothing here has been run on AWS.
spored probably can't call a self-hosted updater in another account.
The instance role's lambda:InvokeFunctionUrl grant is pinned to spore.host's function: "Resource": "arn:aws:lambda:*:<spore.host infra account>:function:spawn-dns-updater" (pkg/aws/iam.go:995, again at :1609).
A cross-account Function URL call needs an allow in both the resource policy and the caller's identity policy, and the deploy script's --allow-account only provides the first.
So a central updater in an institution's own account should return 403, and spored then sets spawn:dns-status=failed.
The guide documents a workaround (an --iam-policy-file grant) and says the path is unproven. The fix is to derive the grant from the resolved dns_endpoint (its function ARN) instead of hardcoding it.
spawn dns --help lists its subcommands with blank descriptions.cmd/root.go:222 sets only the parent's text; the spawn.dns.{list,register,delete}.short keys (libs/i18n/active.en.toml:635-655) are never applied. The long text also says names are registered "when launching with --dns flag", when they're registered by default from --name.
spawn dns delete clears spawn:dns-name but leaves spawn:dns-domain and spawn:dns-endpoint behind.
docs/custom-dns.md:89 says spawn status shows spawn:dns-status: registered, but it prints nothing on success (cmd/status.go:381-395). That page also contains real account IDs; consider using placeholders.
Related: #1121 (an SSM AccessDenied silently falls back to spore.host).
Activity
scttfrdmn commentedon Oct 19, 2026
Split into: #1158 (instance-role invoke grant pinned to spore.host's updater, item 1), #1159 (dns help, dns delete tags, docs claim, items 2-4). Closing as split.