Skip to main content

Module dns_api

Module dns_api 

Source
Available on crate feature acme only.
Expand description

DNS-01 records through DNS provider APIs: Cloudflare (an API token with DNS edit permission; Zone read too unless dns_zone_id is set) and Amazon Route 53 (requests signed with AWS Signature Version 4, credentials from the standard AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY / AWS_SESSION_TOKEN). The zone is configured (dns_zone_id) or found by asking the API for each parent of the record name in turn. The API base URL can be replaced (dns_api_url) — CI points both at a mock that writes into BIND.

Structs§

AwsCredentials
AWS credentials for Route 53.
Secret
A secret string: Debug doesn’t show it.

Constants§

CLOUDFLARE_API
Cloudflare’s API base URL.
ROUTE53_API
Route 53’s API endpoint (a global service, signed for us-east-1).