Closed jeromeza closed 2 years ago
Digging through old commits - around 0.6 iirc I found that there's an added provider_configuration that can be called, which lets you specify the value outside of a shell var, as part of a map.
This seems to work: ./vault write acme/accounts/jerome \ contact=my@domain.co.za \ server_url=https://acme-staging-v02.api.letsencrypt.org/directory \ terms_of_service_agreed=true \ provider=cloudflare \ provider_configuration={CF_API_KEY= myglobalapikey,CLOUDFLARE_EMAIL=my@domain.co.za}
See:
provider_configuration (map of strings:
See: https://github.com/remilapeyre/vault-acme/releases/tag/v0.0.6
Add provider_configuration parameter to override environment variables Closes https://github.com/remilapeyre/vault-acme/issues/19
Hi @jeromeza, only the environment variables of the Vault server can be used to set the configuration of the ACME provider, the environment variables of the Vault client are all ignored.
Using provider_configuration
should work if you cannot change the environment variables of the server.
Hi @jeromeza, I will close this issue. If you are still having troubles with setting the configuration please open it again.
I can't get Cloudflare to work, I get the below error, this after trying:
I've tried this as EXPORT vars in my shell, and in a script format above (as I came across a Lego post suggesting this: https://github.com/go-acme/lego/issues/785)
Any ideas - I've tried both sets of variables as shown above...
It simply looks like the vars aren't being passed through to the Lego client?
Thanks!