Skip to content

dns-updater cannot read the account registry: SpawnDNSLambdaExecutionRole lacks dynamodb:Scan on spawn-user-accounts #1611

Closed

Description

@scttfrdmn

Seen in production after the v0.164.0 deploy (2026-11-12). Every DNS registration logs:

warning: account registry unreadable (scan spawn-user-accounts: … AccessDeniedException: … SpawnDNSLambdaExecutionRole/spawn-dns-updater is not authorized to perform: dynamodb:Scan on resource: …:table/spawn-user-accounts …); falling back to DNS_ALLOWED_ACCOUNTS

Registrations still succeed, because `DNS_ALLOWED_ACCOUNTS` lists the three accounts in use. However, the registry the account check is meant to consult is never read, so a newly onboarded account would be refused under the now-default enforce mode until someone adds it to the env var by hand.

Fix:

  • Grant the role read access to the registry (`GetItem`, or `Query` on a keyed lookup, rather than a full `Scan`), or change the updater to a keyed `GetItem` by account id.
  • Codify the grant wherever this role's policy lives.
  • Add a test that the updater's IAM covers every table call it makes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions