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

Set DNS Challenge Variables as part of the account item #19

Closed
hongkongkiwi opened this issue Aug 13, 2020 · 3 comments
Closed

Set DNS Challenge Variables as part of the account item #19

hongkongkiwi opened this issue Aug 13, 2020 · 3 comments

Comments

@hongkongkiwi
Copy link

hongkongkiwi commented Aug 13, 2020

I would like to set the LetEncrypt DNS challenge variables in the account, rather than environment variables. e.g.

vault write acme/accounts/lenstra \
	contact=remi@lenstra.fr \
	server_url=https://acme-staging-v02.api.letsencrypt.org/directory \
	terms_of_service_agreed=true \
	provider=digitalocean \
        provider_opts={ "DO_AUTH_TOKEN" = "abc123" }

This would allow me to setup multiple LE accounts with different versions of providers (e.g. 2xCloudFlare accounts).

@remilapeyre
Copy link
Owner

Hi @hongkongkiwi, I started looking into this but it will require changes to the ACME client I am using (https://github.com/go-acme/lego) as it does not expose a convenient way to do this yet.

@hongkongkiwi
Copy link
Author

What about if the Vault plugin simply sets the appropriate environment variable itself before running lego?

@remilapeyre
Copy link
Owner

What about if the Vault plugin simply sets the appropriate environment variable itself before running lego?

I would like to avoid this because it would require to take a lock every time we request a certificate with this type of DNS provider which could be cumbersome and slow things down. I added a map to look the value into before looking in the environment variables.

smuething pushed a commit to smuething/vault-plugin-secrets-acme that referenced this issue Oct 26, 2024
…modules/acme/sidecar/google.golang.org/grpc-1.64.1
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

No branches or pull requests

2 participants