Skip to content

Self-hosted DNS updater: the instance role can only invoke spore.host's updater; dns help/delete gaps #1137

Closed

Description

@scttfrdmn

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.

  1. 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.
  2. 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.
  3. spawn dns delete clears spawn:dns-name but leaves spawn:dns-domain and spawn:dns-endpoint behind.
  4. 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

  1. scttfrdmn commented on Oct 19, 2026

    @scttfrdmn
    ContributorAuthor

    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.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions