-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix compatibility with Certbot < v2.0.0 & Certbot >= 2.1.0 #41
Conversation
I'll take a look asap, feel free to @ me if I forget |
It is being said that my commit would break compatibility with Certbot < 2.0. desec-io/certbot-dns-desec#22. I honestly think on Arch Linux, we are always up-to-date, so we can skip legacy, but if you want to consider backward compatibility, here is a similar commit: desec-io/certbot-dns-desec@04422d0. cc @obynio |
Well I'm a bit hesitant because I know that a lot of people use it on Debian and it might break on them :/ |
What do you think about a very ugly fix like this ?
|
@obynio See: certbot/certbot#9486
My previous commits were supporting only Certbot v2.0.0 and later. But we may want to wait for Certbot v2.1.0 to be released before merging. |
Yes, I would like to wait for certbot 2.1.0 to be released, but if they take too much time we might need to release the breaking change for certbot < 2.0.0 earlier... Let's wait and see for now. |
What a shame, if only certbot would allow adding dns plugins right into their codebase everything would be much simpler... |
I agree that Archlinux is important but unfortunately there is much more folks using this plugin on Debian-like system that would be very angry if we were to release a breaking change before they get the chance to upgrade their certbot 😔 |
Thank you both for taking the time to work on it. |
On Debian Bullseye with packaged certbot/stable,now 1.12.0-2 all [installed] for
When trying to update that image to use a pip installed certbot 2.0 I get the following when I try to run certbot with a complete cleaned volume for config, certs., etc:
For us on Debian I'm not sure there's any way to win right now either way as things are at the moment. I've a certificate expiring tomorrow night and then I'm in trouble. |
Alright, it appears there is nothing that can really fix this certbot mess. Let's merge and see. |
This fix was released in 1.4.2. |
Well, this is a nightmare (for all involved I'm sure). I tried it again with 1.4.2 and still get the same error, turns out certbot 2 gets pulled in as a pip dependency for 1.4.2, and takes precedence over the apt installed certbot (this confusion is what happens when certbot errors out running certbot 2.0.0 with certbot-plugin-gandi 1.4.2, no apt certbot:
certbot 2.0.0 with certbot-plugin-gandi==1.4.1:
After running
Maybe the new syntax? Nope
Ok, fine, lets try all of... certbot==[1.32.0 - 1.27.0] and certbot-plugin-gandi==1.4.2, 1.4.1, 1.4.0 (<1.4.0 = Gandi's unsupported API) Gives:
At that point I gave up and decided to just create a cert manually and cross my fingers for 2 months time. Thanks for all the work you put into this. It must be a pain for you. |
@daveoconnor Certbot 2.1.0 has not been released yet. This PR fixes the compatibility with Certbot < 2.0.0 & Certbot >= 2.1.0, but drops the support for Certbot 2.0.0 because Certbot has decided as well to drop the support for its own version 2.0.0. If you want to use Certbot 2.0.0, you need to use the version 1.4.1 (not 1.4.2) of And we dropped support for the very old syntax since version 1.4.1 as you can see here: #38.
But if you have an obsolete certbot package such as version 1.12.0 (because of Debian...), you can only use the old syntax and use Furthermore, certificate expiration is a nightmare, therefore, you should automate your renewal.
And in
Don't use the |
You can see other plugins doing the fix for certbot 2.0 compatibility : domeneshop/certbot-dns-domeneshop@bf8e575
Otherwise, when using Certbot >= 2.0, you would get:
It would be great to merge ;)
And release the next 1.4.2 version.
Thanks!