You should restrict credential to specific DNS API only, in case if your server is compromised.
You can follow this Medium post to see full instructions for Traefik.
It is quite annoying to use the official API console and curl command, so I created this soft.
With this soft, you can:
- See all applications infos
- See all credentials infos
- See credentials of an app
- Create credential/consumer key for DNS zone API
- Delete an app and revoke all its credentials
- Delete a credential
- Create a conf file
ovh.conf
with :
[default]
; general configuration: default endpoint
endpoint=ovh-eu
[ovh-eu]
; configuration specific to 'ovh-eu' endpoint
application_key=YOUR_APP_KEY
application_secret=YOUR_APP_SECRET
consumer_key=YOUR_CONSUMER_KEY
- Create access tokens and complete the conf file.
- App name: ServerXYZ Traefik
- App description: for letsencrypt DNS challenge
- Validity: unlimited
- Rights: get: *
Later, if you need to delete app or cred. Create with
- App name: temp-client
- Validity: 1day
- Rigths:
- get: *
- delete: *
- Run the soft.
- You may lose your rights after creating a new credential/consumer key. Just restart the script.
You will find ovh-dns-token-gen.exe
for Windows.
For Mac and Linux, you can build with go build .