obynio / certbot-plugin-gandi

Certbot plugin for authentication using Gandi LiveDNS
https://pypi.org/project/certbot-plugin-gandi/
MIT License
194 stars 27 forks source link

Getting logger.warning on 3rd party plugins prefixes despite not using them #38

Closed HLFH closed 1 year ago

HLFH commented 1 year ago

I am getting the warning that I see in the code:

logger.warning("Certbot is moving to remove 3rd party plugins prefixes. Please use --authenticator dns-gandi --dns-gandi-credentials")

certbot plugins gives:

2022-11-10 08:59:48,203:DEBUG:certbot._internal.log:Root logging level set at 30
2022-11-10 08:59:48,205:DEBUG:certbot._internal.main:Expected interfaces: None
2022-11-10 08:59:48,206:DEBUG:certbot._internal.main:Filtered plugins: PluginsRegistry(PluginEntryPoint#dns,PluginEntryPoint#dns-gandi,PluginEntryPoint#dns-ovh,PluginEntryPoint#nginx,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-11-10 08:59:48,208:DEBUG:certbot._internal.display.obj:Notifying user: * dns
Description: Obtain certificates using a DNS TXT record (if you are using Gandi
for DNS).
Interfaces: Authenticator, Plugin
Entry point: dns = certbot_plugin_gandi.main:Authenticator

* dns-gandi
Description: Obtain certificates using a DNS TXT record (if you are using Gandi
for DNS).
Interfaces: Authenticator, Plugin
Entry point: dns-gandi = certbot_plugin_gandi.main:Authenticator

* dns-ovh
Description: Obtain certificates using a DNS TXT record (if you are using OVH
for DNS).
Interfaces: Authenticator, Plugin
Entry point: dns-ovh = certbot_dns_ovh._internal.dns_ovh:Authenticator

* nginx
Description: Nginx Web Server plugin
Interfaces: Installer, Authenticator, Plugin
Entry point: nginx = certbot_nginx._internal.configurator:NginxConfigurator

* standalone
Description: Spin up a temporary webserver
Interfaces: Authenticator, Plugin
Entry point: standalone = certbot._internal.plugins.standalone:Authenticator

* webroot
Description: Place files in webroot directory
Interfaces: Authenticator, Plugin
Entry point: webroot = certbot._internal.plugins.webroot:Authenticator

but with some certbot certonly --force-renew -d example.com, I am getting:

2022-11-10 09:52:22,879:DEBUG:certbot._internal.main:certbot version: 1.31.0
2022-11-10 09:52:22,880:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/bin/certbot
2022-11-10 09:52:22,880:DEBUG:certbot._internal.main:Arguments: ['--force-renew', '-d', 'degramont.fr']
2022-11-10 09:52:22,880:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#certbot-plugin-gandi:dns,PluginEntryPoint#certbot-plugin-gandi:dns-gandi,PluginEntryPoint#dns,PluginEntryPoint#dns-gandi,PluginEntryPoint#dns-ovh,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-11-10 09:52:28,403:DEBUG:certbot._internal.log:Root logging level set at 30
2022-11-10 09:52:28,406:DEBUG:certbot._internal.plugins.selection:Requested authenticator None and installer None
2022-11-10 09:52:28,420:WARNING:certbot_plugin_gandi.main:Certbot is moving to remove 3rd party plugins prefixes. Please use --authenticator dns-gandi --dns-gandi-credentials

I get the warning from certbot with the line:

plugins = plugins_disco.PluginsRegistry.find_all()

Not getting the warning with the certbot plugins command and the line:

filtered = plugins.visible().ifaces(ifaces)

HLFH commented 1 year ago

Fixed by https://github.com/obynio/certbot-plugin-gandi/pull/39.

cc @obynio