go-gandi / terraform-provider-gandi

Terraform provider for the Gandi Domain services
Mozilla Public License 2.0
152 stars 47 forks source link

API Keys are deprecated in favor of Personal Access Tokens (PAT) #147

Closed jedesroches closed 10 months ago

jedesroches commented 10 months ago

Both the Gandi documentation when creating an API key and API documentation mention that API keys are deprecated and that they now offer (with more fine-grained permission control) Personal Access Tokens.

However, since this changed the header required in the Authorization header (requiring Bearer rather than Apikey as the first word). This is somewhat confusing to new comers because the error messages are either 500 and 404's from the API, or Terraform saying it cannot parse a < in the response (which comes from the HTML in the error that Gandi answers).

Steps to reproduce: configure a PAT and set it as provider key, then try to do anything.

jedesroches commented 10 months ago

Ah, just saw go-gandi/go-gandi#78, my bad. Closing.