Hi
I'm on Traefik version 2.10.7 on windows, trying to get let's encrypt working with gandi live DNS (gandi v5 REST API, last version)
I've been struggling with this for almost a week, and I think I found the issue
Environment Variable Name Description
GANDIV5_API_KEY API key (Deprecated)
GANDIV5_PERSONAL_ACCESS_TOKEN Personal Access Token
When I try to use the PAT environment variable I got the error
"some credentials information are missing: GANDIV5_API_KEY"
When I use a PAT key with this variable, I got this error
"unable to generate a certificate for the domains [app.example.com]: error: one or more domains had a problem
acme: error presenting token: unable to get TXT records for domain example.com and name _acme-challenge.xray: 403: request failed: Access was denied to this resource"
So I think that acme client implementation in Traefik is not taking profit of the new PAT usage
(I could get a certificate with a certbot client and the PAT key, so PAT access is good)
ERR Unable to obtain ACME certificate for domains error="unable to generate a certificate for the domains [example.com .example.com]: error: one or more domains had a problem:\n[.example.com] [.example.com] acme: error presenting token: unable to get TXT records for domain example.com and name _acme-challenge: unable to communicate with the API server: error: Get "``https://dns.api.gandi.net/api/v5/domains/``example.com``/records/_acme-challenge/TXT\``": net/http: invalid header field value for "Authorization"\n[example.com] [example.com] acme: error presenting token: unable to get TXT records for domain example.com and name _acme-challenge: unable to communicate with the API server: error: Get "``https://dns.api.gandi.net/api/v5/domains/``example.com``/records/_acme-challenge/TXT\``": net/http: invalid header field value for "Authorization"\n" ACME CA=https://acme-staging-v02.api.letsencrypt.org/directory acmeCA=https://acme-staging-v02.api.letsencrypt.org/directory domains=["example.com",".example.com"] providerName=lets-encr.acme routerName=websecure-openwrt@file rule=Host(openwrt.example.com)
Thanks, I have created an issue on the lego github. I was hoping there might be a bypass within Traefik to provide the API URL directly for the interim.
Thanks! And pleased they are active to set me on the right path, I seem to have solved it.
Believe that it was an issue with trailing whitespace on the PAT - the different API URLs was a red herring unfortunately.