Skip to content

WKBCH-26: Launch vault via node instead of yarn start#80

Merged
dvasilas merged 1 commit into
mainfrom
bugfix/WKBCH-26-vault-runtime-yarn
May 15, 2026
Merged

WKBCH-26: Launch vault via node instead of yarn start#80
dvasilas merged 1 commit into
mainfrom
bugfix/WKBCH-26-vault-runtime-yarn

Conversation

@dvasilas
Copy link
Copy Markdown
Contributor

@dvasilas dvasilas commented May 15, 2026

Summary

  • Vault 7.89.0 (scality/Vault#2284) ships an .npmrc referencing ${NODE_AUTH_TOKEN} (used only at build time via secret mount). Running yarn start at container startup makes yarn read that file and abort with Failed to replace env in config: ${NODE_AUTH_TOKEN} since the variable is unset at runtime.
  • Production Vault (supervisord) and MetaData (node bin/...) both bypass yarn at runtime. This change aligns the workbench vault command with that pattern by invoking node --max-http-header-size=32768 vaultd.js directly - this is what yarn start resolves to Vault's package.json: https://github.com/scality/Vault/blob/819c4992a5d08ab2bb0355654bdd7e222eae16a4/package.json#L59

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.
@claude
Copy link
Copy Markdown

claude Bot commented May 15, 2026

LGTM — clean, focused fix. The direct node invocation matches what yarn start resolves to and sidesteps the .npmrc env-var expansion issue cleanly. No concerns with template validity, port conflicts, or breaking changes.

Review by Claude Code

@dvasilas dvasilas merged commit ee0b63e into main May 15, 2026
3 checks passed
@dvasilas dvasilas deleted the bugfix/WKBCH-26-vault-runtime-yarn branch May 15, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants