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

Allow multiple dns challenge accounts for the same provider #9099

Closed
2 tasks done
razem-io opened this issue Jun 14, 2022 · 1 comment
Closed
2 tasks done

Allow multiple dns challenge accounts for the same provider #9099

razem-io opened this issue Jun 14, 2022 · 1 comment

Comments

@razem-io
Copy link

razem-io commented Jun 14, 2022

Welcome!

  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've searched similar issues on the Traefik community forum and didn't find any.

Discussion

https://community.traefik.io/t/how-to-define-multiple-dns-challange-api-keys-for-the-same-provider/14756

What did you expect to see?

I can not define an API key for each DNS challenge. Instead, I can only provide a "global" API key via env vars.

dns1 and dns2 are different gandi.net accounts.

Current:

command:
  - "--certificatesresolvers.dns1.acme.email=nolooky@privacy.com"
  - "--certificatesresolvers.dns1.acme.storage=/acme/dns1/acme.json"
  - "--certificatesresolvers.dns1.acme.dnschallenge=true"
  - "--certificatesresolvers.dns1.acme.dnschallenge.provider=gandiv5"

  - "--certificatesresolvers.dns2.acme.email=nolooky@privacy.com"
  - "--certificatesresolvers.dns2.acme.storage=/acme/dns2/acme.json"
  - "--certificatesresolvers.dns2.acme.dnschallenge=true"
  - "--certificatesresolvers.dns2.acme.dnschallenge.provider=gandiv5"

environment:
  - GANDIV5_API_KEY={{ dc_traefik_dns1_token }}"

Suggestion:

command:
  - "--certificatesresolvers.dns1.acme.email=nolooky@privacy.com"
  - "--certificatesresolvers.dns1.acme.storage=/acme/dns1/acme.json"
  - "--certificatesresolvers.dns1.acme.dnschallenge=true"
  - "--certificatesresolvers.dns1.acme.dnschallenge.provider=gandiv5"
  - "--certificatesresolvers.dns2.acme.dnschallenge.config.GANDIV5_API_KEY={{ dc_traefik_dns1_token }}"

  - "--certificatesresolvers.dns2.acme.email=nolooky@privacy.com"
  - "--certificatesresolvers.dns2.acme.storage=/acme/dns2/acme.json"
  - "--certificatesresolvers.dns2.acme.dnschallenge=true"
  - "--certificatesresolvers.dns2.acme.dnschallenge.provider=gandiv5"
  - "--certificatesresolvers.dns2.acme.dnschallenge.config.GANDIV5_API_KEY={{ dc_traefik_dns2_token }}"

Would this make sense? I was surprised nobody else had this issue yet. I was not able to find anything related.

@ldez ldez changed the title Allow multiple dns challange accounts for the same provider Allow multiple dns challenge accounts for the same provider Jun 14, 2022
@ldez
Copy link
Contributor

ldez commented Jun 14, 2022

duplicate of #5472

@ldez ldez closed this as completed Jun 14, 2022
@traefik traefik locked and limited conversation to collaborators Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants