Skip to content

feat: add option to specify hosted zone ID#261

Merged
aymanbagabas merged 2 commits intolibdns:masterfrom
andrew-d:andrew/hosted-zone-id-option
Jul 31, 2024
Merged

feat: add option to specify hosted zone ID#261
aymanbagabas merged 2 commits intolibdns:masterfrom
andrew-d:andrew/hosted-zone-id-option

Conversation

@andrew-d
Copy link
Copy Markdown
Contributor

For cases where the automatic discovery doesn't work (e.g. when we're creating a certificate for foo.bar.com, and have a zone for bar.com that we can create the challenge records in).

For cases where the automatic discovery doesn't work (e.g. when we're
creating a certificate for "foo.bar.com", and have a zone for "bar.com"
that we can create the challenge records in).

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Copy link
Copy Markdown
Collaborator

@aymanbagabas aymanbagabas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, some comments below

Comment thread provider.go Outdated
// HostedZoneID is the ID of the hosted zone to use. If not set, it will
// be discovered from the zone name.
//
// It must be in the format "/hostedzone/Z01111111111111111111".
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not very usable imo. Could you make this simply take the zone ID Z01111111111111111111?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aymanbagabas Changed to just take the zone ID and updated the comment; please take a look? I can squash the fixup commit if that looks good.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, I can squash the commit before merging.

Copy link
Copy Markdown
Collaborator

@aymanbagabas aymanbagabas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you @andrew-d

@aymanbagabas
Copy link
Copy Markdown
Collaborator

@andrew-d Since this also would affect caddy-dns/route53, could you send a PR to add the new option using Caddyfile? https://github.com/caddy-dns/route53/blob/master/route53.go#L62

@aymanbagabas aymanbagabas merged commit 5032265 into libdns:master Jul 31, 2024
@andrew-d andrew-d deleted the andrew/hosted-zone-id-option branch August 1, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants