This commit is contained in:
parent
a71103ebb5
commit
28403489ff
1 changed files with 1 additions and 3 deletions
|
|
@ -11,9 +11,7 @@ steps:
|
|||
commands:
|
||||
- echo "=== Authenticating with Vault via AppRole ==="
|
||||
- export VAULT_TOKEN=$(vault write -field=token auth/approle/login role_id=$VAULT_ROLE_ID secret_id=$VAULT_SECRET_ID)
|
||||
- echo "Auth successful, got token"
|
||||
- echo "Auth successful"
|
||||
- echo "=== Reading secrets from projects/test/demo ==="
|
||||
- vault kv get projects/test/demo
|
||||
- echo "=== As env vars ==="
|
||||
- vault kv get -format=json projects/test/demo | sed -n 's/.*"\([^"]*\)": "\([^"]*\)".*/\1=\2/p'
|
||||
- echo "=== Vault integration works! ==="
|
||||
|
|
|
|||
Loading…
Reference in a new issue