go-acme / lego

Let's Encrypt/ACME client and library written in Go
https://go-acme.github.io/lego/
MIT License
7.46k stars 986 forks source link

GANDIv5: API Key and PAT #2041

Closed Knight1 closed 8 months ago

Knight1 commented 8 months ago

Welcome

What did you expect to see?

A Certificate, at least changed DNS settings on the provider.

What did you see instead?

Errors.

The Gandi Implementation expects an API Key and optionally a PAT (Personal Access Token)

How do you use lego?

Binary

Reproduction steps

PAT Variable: "GANDIV5_PERSONAL_ACCESS_TOKEN"

Use API Key in PAT Variable OR: Use only PAT Variable.

Version of lego

lego version 4.14.2 linux/amd64

Logs

With new PAT as API Key ```console acme: error presenting token: unable to get TXT records for domain x.x and name _acme-challenge: 500: request failed: The server has either erred or is incapable of performing the requested operation. ``` Without API Key and only "GANDIV5_PERSONAL_ACCESS_TOKEN" ```console gandi: some credentials information are missing: GANDIV5_API_KEY ```

Go environment (if applicable)

No response

ldez commented 8 months ago

Hello,

The support of PAT will happen in v4.15. v4.14.x doesn't support PAT, so it's expected that PAT doesn't work with v4.14.2.