Skip to main content

Route53 DNS Authenticator plugin for Certbot

Project description

certbot-dns-route53-custom

This is a custom version of the official certbot-dns-route53 plugin, with the addition of the --dns-route53-custom-zone-id option to explicitly specify the Hosted Zone to use.

The original version performs a list_hosted_zones to discover all Hosted Zones in your AWS account and selects the one that matches the target domain. This means the plugin requires route53:ListHostedZones permissions which can't be restricted to a specific subdomain/hosted zone.

By specifying an explicit zone id, we skip the list_hosted_zones call and instead simply get_hosted_zone to verify that the provided Hosted Zone ID is valid and compatible with the target domain.

This allows for a more restrictive set of permissions compared to the official version.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "route53:GetChange",
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": "route53:GetHostedZone",
            "Resource": "arn:aws:route53:::hostedzone/YOURHOSTEDZONEID"
        },
        {
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": "route53:ChangeResourceRecordSets",
            "Resource": "arn:aws:route53:::hostedzone/YOURHOSTEDZONEID",
            "Condition": {
                "ForAllValues:StringEquals": {
                    "route53:ChangeResourceRecordSetsNormalizedRecordNames": [
                        "_acme-challenge.example.com",
                        "_acme-challenge.subdomain.domain.com"
                    ]
                }
            }
        }
    ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certbot_dns_route53_custom-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certbot_dns_route53_custom-0.1.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_route53_custom-0.1.1.tar.gz.

File metadata

File hashes

Hashes for certbot_dns_route53_custom-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9d6461bdcc5a0a10e233829b834089e4cfaaf49226ef1b1bb9501a1f7233d44c
MD5 09dd6178b49364325935e794d2d165fb
BLAKE2b-256 0de4ba180efd01eea990f212d7ba4e942968e2f5d6a7636c2130ea2502e021ea

See more details on using hashes here.

File details

Details for the file certbot_dns_route53_custom-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_route53_custom-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc8391703f428271f81b7d4cc7ce29e728d97489742dc7bd2231c493f1dd5778
MD5 d1e6c9edba0ced232a79d9b42ff3952a
BLAKE2b-256 2b3126ba64309f15fd02b6a0aac2a731206f3f8216d87c233079bf65334b1967

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page