Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit f19c0a4

Browse files
committed
fix vault jwt token module
1 parent fd2dec7 commit f19c0a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vault-jwt/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ rm -rf "$TMP"
107107

108108
# Authenticate with Vault
109109
printf "🔑 Authenticating with Vault ...\n\n"
110-
echo "$${CODER_OIDC_ACCESS_TOKEN}" | vault write auth/"$${VAULT_JWT_AUTH_PATH}"/login role="$${VAULT_JWT_ROLE}" jwt=-
110+
echo "$${CODER_OIDC_ACCESS_TOKEN}" | vault write -field=token auth/"$${VAULT_JWT_AUTH_PATH}"/login role="$${VAULT_JWT_ROLE}" jwt=- | vault login -
111111
printf "🥳 Vault authentication complete!\n\n"
112112
printf "You can now use Vault CLI to access secrets.\n"

0 commit comments

Comments
 (0)