Skip to content

Purge expired domains that fail the allow_domain check #209

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

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

gohai
Copy link
Contributor

@gohai gohai commented Dec 4, 2019

The existing code would delete certificates from storage when issuing a new one failed and the old one has already expired. But since the check for allow_domain returns early, we'd never get rid of those for which allow_domain returns false - meaning the renewal checker would continue to check them going forward.

@gohai gohai changed the title Renew allow domain delete expired Purge expired domains that fail the allow_domain check Dec 4, 2019
@gohai gohai force-pushed the renew-allow_domain-delete-expired branch from 8eac4b6 to 96fb3d1 Compare December 4, 2019 06:50
The existing code would delete certificates from storage when issuing a new one failed and the old one has already expired. But since the check for allow_domain returns early, we'd never get rid of those for which allow_domain returns false - meaning the renewal checker would continue to check them going forward.

This is based upon c263c52 because both are touching the same chunk.
@gohai gohai force-pushed the renew-allow_domain-delete-expired branch from 96fb3d1 to 7aa9931 Compare April 8, 2020 17:22
GUI added a commit that referenced this pull request Jul 20, 2020
@GUI GUI merged commit 3f1c47d into auto-ssl:master Jul 20, 2020
@GUI
Copy link
Collaborator

GUI commented Jul 20, 2020

Thank you! I've added some tests for this in 15afeb5, but otherwise, this looks good. Much appreciated!

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