We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b254e3 commit 181c7d3Copy full SHA for 181c7d3
.envrc
@@ -14,9 +14,16 @@ if has vault; then
14
TOKEN_RENEW=$(vault token-renew -format=json 2>/dev/null)
15
else
16
# authenticate
17
- vault auth -method=github
+ vault login -method=github
18
fi
19
20
21
22
+function get_vault_kv {
23
+ vault_path=$1
24
+ if [[ "$VAULT_ADDR" ]]; then
25
+ VAULT_KV=$(curl -s -H "X-Vault-Token: $(cat ~/.vault-token )" -X GET $VAULT_ADDR/v1/${vault_path} | jq -r .data.value)
26
+ fi
27
+}
28
+
29
# vim: set et fenc=utf-8 ff=unix ft=sh sts=2 sw=2 ts=2 :
0 commit comments