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

Check whether domains are allowed on renewals #176

Merged
merged 1 commit into from
Sep 29, 2019

Conversation

yveslaroche
Copy link
Contributor

Call allow_domain on renewals, so that it is possible to avoid renewing domains that are not allowed anymore e.g. have expired, dns doesn't resolve anymore etc. using custom code in the allow_domain function.

Thanks to @brianlund who posted this in #150

This fixes #101 and at least partially also #150

@yveslaroche yveslaroche force-pushed the use-allow-domain-for-renewals branch 2 times, most recently from 7ec3d80 to 4e8efe4 Compare May 14, 2019 08:10
@prionkor
Copy link

+1 Badly need this feature.

@andreasschroth
Copy link

+1 Totally makes sense.

@yveslaroche yveslaroche force-pushed the use-allow-domain-for-renewals branch from 4e8efe4 to 030de79 Compare July 17, 2019 19:38
@GUI GUI added this to the v0.13.0 milestone Sep 29, 2019
@GUI GUI merged commit 1527a3d into auto-ssl:master Sep 29, 2019
GUI added a commit that referenced this pull request Sep 30, 2019
Since renewal calls to the `allow_domain` callback won't have SSL
options passed in, document this fact and also pass a boolean argument
to this callback method so logic can vary depending on renewals or not.

Building on top of #176
@GUI
Copy link
Collaborator

GUI commented Sep 30, 2019

Apologies on the delay, but thanks for this! This is now part of the v0.13.0 release.

I made some further tweaks and added tests in 544c53c. The one things to possibly note is that when allow_domain is called for renewals, it lacks the ssl_options that are also now passed to allow_domain in the v0.13.0 release (from #123). So for that reason, I added an additional argument to the allow_domain callback to allow you to distinguish between renewals and registrations, so you could possibly adjust your logic accordingly. This is documented in more detail in the allow_domain docs.

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.

Is allow_domain used/needed for renewal?
4 participants