caddy-dns / gandi

Caddy module: dns.providers.gandi
MIT License
12 stars 4 forks source link

LiveDNS returned a 403 #5

Closed chosroes closed 5 months ago

chosroes commented 10 months ago

I have a valid token in gandi for my domain and I get this error :

{"level":"error","ts":1694219741.370473,"logger":"tls.obtain","msg":"will retry","error":"[my.domain.tld] Obtain: [my.domain.tld] solving challenges: presenting for challenge: adding temporary record for zone \"domain.tld.\": LiveDNS returned a 403 (Access was denied to this resource.) (order=https://acme.zerossl.com/v2/DV90/order/*****) (ca=https://acme.zerossl.com/v2/DV90)","attempt":1,"retrying_in":60,"elapsed":2.588350617,"max_duration":2592000}

I can't understand why.

obynio commented 10 months ago

I need to investigate it a bit, maybe Gandi changed their API authentication method. I will try to reproduce the problem when I get some free time.

chosroes commented 10 months ago

I found why, i created a personal access token. And it doesn't work with this module. With an API Key, it's OK. https://github.com/libdns/gandi/issues/10

xillibit commented 9 months ago

The API key is deprecated now : https://api.gandi.net/docs/authentication/ and it seems that i can create only a personal access token

chosroes commented 9 months ago

It's always available here: https://account.gandi.net/ (security section)

xillibit commented 9 months ago

ok, found it by looking the doc : https://docs.gandi.net/en/account_management/security/developer_access.html?highlight=api%20key it wasn't at the place where i excepted it

obynio commented 5 months ago

Fixed