Skip to content
New issue

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

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

Already on GitHub? # to your account

Trying to auth to vault with certs #67

Open
arkpoah opened this issue Jun 22, 2020 · 3 comments
Open

Trying to auth to vault with certs #67

arkpoah opened this issue Jun 22, 2020 · 3 comments

Comments

@arkpoah
Copy link

arkpoah commented Jun 22, 2020

Hello,

I'm not able to connect to vault with certs.
My consul-templaterb version is 1.27.0

I have a vault_test.erb file with :

<%= secret("ssl/cloudflare/origin/key")['data'] %>

I run this command :

consul-templaterb --vault-addr http://vault_address:8200 --vault-cert-chain /etc/consul-templaterb/ssl/vault_auth.crt --vault-private-key /etc/consul-templaterb/ssl/vault_auth.key -o -t vault_test.erb:vault_test.txt

I get this error :
[FATAL][TEMPLATE EVALUATION ERROR] vault_test.erb:1:in `render': You need to provide a vault token to use 'secret' keyword

I succeed to connect to vault via vault cli with cert method.

Authentification without vault token is not possible yet ?

Thanks

@pierresouchay
Copy link
Contributor

Hello @arkpoah ,

Yes, you need --vault-token to be specified (or alternatively, you can use VAULT_TOKEN environment variable)

@arkpoah
Copy link
Author

arkpoah commented Jun 22, 2020

ok thx
Is it planned to be able to connect via cert method only ?

@pierresouchay
Copy link
Contributor

@arkpoah No, but we accept Pull Requests :) I would be glad to add support for it

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants