Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dns_gandi: implements token in addition to the (deprecated) API key #4794

Conversation

zbbfufu
Copy link
Contributor

@zbbfufu zbbfufu commented Sep 12, 2023

Gandi Livedns is replacing API key which are user-scoped and deprecated with full access by a personal access token (PAT) which is independent of a user and can be scoped to specific parts of the Gandi API.

This PR add support for PAT. If GANDI_LIVEDNS_TOKEN environment variable is provided, the PAT is used instead of API key. If only GANDI_LIVEDNS_KEY env. variable is provided, API key is still used.
This allow a transparent update for users.

DNS Github Action performs successfully on my branch: https://github.com/zbbfufu/acme.sh/actions/runs/6156454092

I will also update Wiki (dnsapi page) accordingly when this PR will be merged.

@github-actions
Copy link

Welcome
Please make sure you're read our DNS API Dev Guide and DNS-API-Test.
Then reply on this message, otherwise, your code will not be reviewed or merged.
We look forward to reviewing your Pull request shortly ✨

@zbbfufu
Copy link
Contributor Author

zbbfufu commented Sep 12, 2023

DNS API Dev Guide and DNS-API-Test pages read !

@Neilpang
Copy link
Member

fix the ci errors.

@Neilpang Neilpang merged commit 1a90f66 into acmesh-official:dev Sep 13, 2023
12 checks passed
@zbbfufu zbbfufu deleted the feature/gandi-replace-apikey-by-personal-token branch September 13, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants