Loading vault-login.sh +6 −2 Original line number Diff line number Diff line Loading @@ -52,7 +52,11 @@ if vault token capabilities ${VAULT_SEC_PATH}/* | grep -q root; then exit 0 fi if vault token capabilities ${VAULT_SEC_PATH}/* | grep -q read; then sec_path='auth/token/lookup-self' if [ ${VAULT_SEC_PATH} != $sec_path ]; then sec_path="${VAULT_SEC_PATH}/*" fi if vault token capabilities $sec_path | grep -q read; then echo "You are logged in VAULT and have permission to read from ${VAULT_SEC_PATH}/*" else if ! [ -z $VAULT_ROLE_ID ]; then Loading Loading
vault-login.sh +6 −2 Original line number Diff line number Diff line Loading @@ -52,7 +52,11 @@ if vault token capabilities ${VAULT_SEC_PATH}/* | grep -q root; then exit 0 fi if vault token capabilities ${VAULT_SEC_PATH}/* | grep -q read; then sec_path='auth/token/lookup-self' if [ ${VAULT_SEC_PATH} != $sec_path ]; then sec_path="${VAULT_SEC_PATH}/*" fi if vault token capabilities $sec_path | grep -q read; then echo "You are logged in VAULT and have permission to read from ${VAULT_SEC_PATH}/*" else if ! [ -z $VAULT_ROLE_ID ]; then Loading