-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
googlecloud.getHostedZone doesn't work correctly for CNAMEs that cross zones #330
Comments
This similarly affects
In this case, |
@tamalsaha I tried your fix while working on kubernetes-retired/spartakus#16 and it seemed to work. Thanks! |
When a SOA record's name is not a suffix of the domain it should be ignored. See go-acme#330
#449 Should resolve this issue. The idea is to ignore SOA records that are not a suffix of the domain. |
CNAMEs cannot co-exist with SOA records so responses with a CNAME should be skipped. The `cross-zone-example.assets.sh.` is currently hosted by me (@fd) and will continue to exist for as long as the assets.sh domain exists. (The assets.sh domain is used as a CDN and is unlikely to go away.) See go-acme#330
* Fix zone detection for cross-zone cnames CNAMEs cannot co-exist with SOA records so responses with a CNAME should be skipped. The `cross-zone-example.assets.sh.` is currently hosted by me (@fd) and will continue to exist for as long as the assets.sh domain exists. (The assets.sh domain is used as a CDN and is unlikely to go away.) See #330 * Extracted CNAME checking to simplify the FindZoneByFqdn control flow.
Close via #449 |
In my Google cloud project, I have two domains and two zones:
example-com-zone
example-net-zone
Subdomains on example.com and example.net are synonyms of each other, so for simplicity, the A records are in
example-com-zone
, andexample-net-zone
just has CNAMEs to the equivalent domain inexample-com-zone
. So for example:foo.example.com. A 1.2.3.4
foo.example.net. CNAME foo.example.com.
Unfortunately, when
googlecloud.getHostedZone
does a lookup of theSOA
record (usingacme.FindZoneByFqdn
) forfoo.example.net
, the reported authority isexample.com
. I've confirmed this withdig -t soa
.As a result, we try to add the
txt
record inexample-com-zone
instead ofexample-net-zone
, and the call fails.The text was updated successfully, but these errors were encountered: