Vault usage explanation
See original GitHub issueDescription
I am trying to use Vault to read secrets from. I have a chart yaml file that looks like this
Master:
ContainerEnv:
- name: CASC_VAULT_TOKEN
value: "some-auth-token"
- name: CASC_VAULT_URL
value: "http://10.180.0.1:8200"
- name: CASC_VAULT_PATHS
value: "database/creds/pgsql_role"
I generated the CASC_VAULT_TOKEN with vault token create -policy=token-policy -use-limit=10
, and that policy has read access to the database/creds/pgsql_role
path.
My problem is how to read the secrets from vault after spinning up Jenkins. Do I use certain env variables? Basically I want Jenkins to do vault read database/creds/pgsql_role
and use the username and password generated. It seems the documentation is talking about using Docker secrets but does not give specific examples. Any help would be appreciated.
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Vault Definition & Meaning - Merriam-Webster
1 of 3 noun. ˈvȯlt. 1. a. : an arched structure of stone or concrete forming a ceiling or roof. b. : an...
Read more >What Is Vault? | Definition - Akeyless
A centralized vault helps you monitor and track secrets across your company. These secrets include tokens, SSH keys, and certificates.
Read more >Introduction | Vault - HashiCorp Developer
HashiCorp Vault is an identity-based secrets and encryption management system. A secret is anything that you want to tightly control access to, such...
Read more >Vault definition and meaning | Collins English Dictionary
A vault is a secure room where money and other valuable things can be kept safely. Most of the money was in storage...
Read more >VAULT | definition in the Cambridge English Dictionary
vault noun [C] (ROOM) ... a room, esp. in or under the ground floor of a large building, that is used to store...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I wonder why this ticket has been closed w/o improving the documentation (as requested). I also needed to find this ticket to really understand how things work. Please reopen and improve the docs.
Hi all! I just found this thread and it has been pretty helpfull for me, but I do still do not find a solution of my issue (in case adding a comment in a close issue is wrong, please feel free to delete my comment @jetersen).
CONTEXT: I am triying to deploy a Jenkins using helm with JCASC to get vault secrets. I am using a local
minikube
to create mik8
cluster and a localvault
instance in my machine (not ink8
cluster).Even that I am trying using
initContainerEnv
andContainerEnv
I am not able to reach the vault values. ForCASC_VAULT_TOKEN
value I am usingvault
root token. This ishelm
command i run locally:And here is my
values.yml
file code:And in my local
vault
I can see/reach values:Any of you have an idea what I could be doing wrong?