Skip to content

Commit 21e956d

Browse files
committed
WKBCH-26: Launch vault via node instead of yarn start
Vault 7.89.0 ships an .npmrc referencing ${NODE_AUTH_TOKEN} for build-time package authentication. Invoking yarn at container start makes yarn read that file and abort with 'Failed to replace env in config: ${NODE_AUTH_TOKEN}' because the variable is unset at runtime. Match the production Vault and MetaData pattern by launching the node entry point directly. This is what 'yarn start' resolves to (see Vault's package.json) and avoids reading the .npmrc altogether.
1 parent 3733d90 commit 21e956d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/global/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ services:
120120
image: ${VAULT_IMAGE}
121121
container_name: workbench-vault
122122
network_mode: host
123-
command: sh -c "chmod 400 tests/utils/keyfile && yarn start"
123+
command: sh -c "chmod 400 tests/utils/keyfile && node --max-http-header-size=32768 vaultd.js"
124124
environment:
125125
VAULT_DB_BACKEND: LEVELDB
126126
volumes:

0 commit comments

Comments
 (0)