Choosing provider permissions safely

Any tool that changes your DNS holds a key to your domain. Give it access to the zones it manages and nothing else, start read-only, and make the credential easy to revoke.

Principles

  1. Scope to zones, not the account. Most providers let a token reach named zones only.
  2. Read first. Connect read-only, look at what the tool finds and proposes, then grant write access.
  3. One credential per tool, so revoking one does not break another.
  4. Set an expiry where the provider supports it, and rotate before it.
  5. No account, billing or user management permissions. A DNS tool never needs them.

Examples

Least-privilege settings at common providers
ProviderRead-onlyRead and write
CloudflareAPI token with Zone, DNS, Read on the named zonesAdd Zone, DNS, Edit on the same zones
AWS Route 53IAM policy with route53:ListResourceRecordSets and GetHostedZone on the hosted zone ARNAdd route53:ChangeResourceRecordSets and GetChange on the same ARN
Azure DNSDNS Zone Reader role scoped to the zone resourceDNS Zone Contributor scoped to the zone
Google Cloud DNSroles/dns.reader on the projectroles/dns.admin, ideally in a project holding only DNS

Provider consoles change. The member app's connection guide for each provider shows the current steps and the exact permissions, and its Test button reports what the credential can and cannot do.

How our product uses a credential

Credentials are sealed with a key held outside the database and opened only inside the call to the provider; they are never shown again or sent to the browser. Every change still goes through a plan, a simulation and approval, whatever the credential allows.