Skip to content
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

route53.v2.0.7.315 only works for second level aws zone files #1143

Closed
TheBigBear opened this issue Jun 8, 2019 · 8 comments
Closed

route53.v2.0.7.315 only works for second level aws zone files #1143

TheBigBear opened this issue Jun 8, 2019 · 8 comments
Milestone

Comments

@TheBigBear
Copy link

Issue description

when trying to create ssl certificates for a sub-domain.domain.com or even a *.sub-domain.domain.com the route 53 plugin complains that it can't find a zone for domain.com, but there is not necessarily a domain for domain.com. As it is perfectly OK to have delegation and separation of zone files in bigger companies and only have access to uk.domain.com as my root or aws zone file.

so uk.domain.com is its own aws zone file and it won't contain any domain.com records as the root of this domain is actually uk.domain.com.

Can this wrong assumption please be fixed in the route53 code, please?

Steps to reproduce

C:\Program Files\win-acme>wacs --host uk-wsus.uk.mymotherdomain.com --validation route53 --validationmode dns-01 --route53accesskeyid xyz --route53secretaccesskey xyz --target manual
gives the following error

[EROR] Can't find hosted zone for domain mymotherdomain.com

Reason is that the aws zone and root file is only for zone uk.mymotherdomain.com and NOT for mymotherdomain.com

WouterTinus added a commit that referenced this issue Jun 8, 2019
@WouterTinus
Copy link
Member

WouterTinus commented Jun 8, 2019

I cooked up a little patch, but I can't test it because I don't use AWS myself. Please try the build:

https://ci.appveyor.com/project/WouterTinus/win-acme-s8t9q/builds/25142114/artifacts

@TheBigBear
Copy link
Author

TheBigBear commented Jun 10, 2019 via email

@WouterTinus
Copy link
Member

The preliminary validation is a check done by this program to warn the user about possible mistakes or synchronization issues, the actual validation is done by Let's Encrypt in a completely independent and much more sophisticated way.

From your description and log it looks like there is some bug that causes the pre-validation to fail when it shouldn't. It would be helpful if you could create a TXT record on this domain and share its name and value with us, so that we can trace that issue.

@TheBigBear
Copy link
Author

TheBigBear commented Jun 13, 2019 via email

WouterTinus added a commit that referenced this issue Jun 23, 2019
* #1143

* Correct ordering
@WouterTinus
Copy link
Member

I checked both of those records and they are currently resolved properly by the program, so the pre-validation was also supposed to be successful.

Perhaps timing is a factor here, because by now the records will have had plenty of time to propagate, which may not have been the case yet during those first couple of minutes. Would you mind do a run with the --verbose switch? That should give more insight into which DNS servers are queried etc.

@WouterTinus WouterTinus added this to the 2.0.8 milestone Jun 23, 2019
@TheBigBear
Copy link
Author

TheBigBear commented Jun 27, 2019 via email

@TheBigBear TheBigBear changed the title route53.v2.0.7.315 only works for second level was zone files route53.v2.0.7.315 only works for second level aws zone files Jun 27, 2019
WouterTinus added a commit that referenced this issue Jun 27, 2019
…trable domain is also authorative for the subdomain that's being validated. (#1143)
@WouterTinus
Copy link
Member

Good catch, there was a bug in the PreValidation code that effectively caused the logic that determines the authoritative name servers for the sub domain to be bypassed. This should also be fixed with the next release. You can test the latest CI build if you like: https://ci.appveyor.com/project/WouterTinus/win-acme-s8t9q/build/artifacts

@WouterTinus
Copy link
Member

This has been released in version 2.0.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants