Vault Auth helper for authenticating to HashiCorp Vault using JWT or SSH agent methods. Version 2.0.2 provides token retrieval and environment variable management via a YAML config file (.vauthrc) with macro expansion for profiles, environment variables, and remote secrets. Differentiators include SSH agent login, dynamic secret resolution, and multi-profile support. Release cadence is irregular; primarily maintained by a single developer.
npm install vvauthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates JWT and SSH agent authentication, returning VAULT_TOKEN. Reads config from .vauthrc file or environment.
Convert to ES module (type: module in package.json) or use dynamic import: const vvauth = await import('vvauth').Use YAML format for configuration file.
Avoid using ${} or $$ in values; use raw strings or escape them properly.Change to import statement: import vvauth from 'vvauth'; and ensure your package is type: module.
Check Vault auth mount path and role configuration. Ensure the JWT token or SSH certificate are valid.
Install node-vault: npm install node-vault
Create a .vauthrc file with required vault_addr and auth method settings, or set the VAUTHRC environment variable to point to your config file.