Repository navigation
Releases
Releases · nodevault/node-vault
Release 0.13.0
TL;DR
- The
axiosdependency is now^1.20.0(was^1.13.6), fixing 34 advisories that affect 1.13.6; with axios 1.20, HTTPS requests viaHTTPS_PROXYtunnel throughCONNECT, so proxies no longer seeX-Vault-Token. - Proxies must therefore allow
CONNECTto Vault's port (Squid's defaults block 8200), and one that never answers hangs requests despitetimeout(workarounds:NO_PROXY,requestOptions.agentOptions.timeout). kubernetesLogin,addKubernetesRole,getKubernetesRoleanddeleteKubernetesRolewithoutmount_pointnow use the client'skubernetesPath(defaultkubernetes) instead of requestingauth//…, broken since 0.10.3.addKubernetesRole(now taking Vault'stoken_*fields) andcertLoginno longer reject with aTypeErrorwhen given arguments, andgenerateRootStatusis back with its typing; all three had been broken since 0.10.0.- Maintenance: dev-only
nyc18.0.0 (was 15.1.0), dropping the transitiveuuid; dev lockfile security updates; CI test image moved to Debian bookworm. Docs: README andexample/unseal.jscover unsealing an initialized vault.
Pull requests
- Add unseal example and docs for already-initialized vaults (#295)
- fix: pass kubernetesPath into the mustache path context (#302)
- build(deps): bump form-data from 4.0.5 to 4.0.6 (#304)
- Fix Node 20 CI job by moving Docker base image to Debian bookworm (#305)
- fix(deps): bump axios to 1.20.0 and patch vulnerable transitive deps (#308)
- build(deps): bump uuid and nyc (#309)
- fix: restore generateRootStatus and repair addKubernetesRole/certLogin schemas (#312)
- chore(release): bump version (#313)
Release 0.12.0
TL;DR
- New
startTokenRenewal/startLeaseRenewalrenew automatically at 80% of the TTL by default; stop withstopTokenRenewal,stopLeaseRenewalorstopAllRenewals. The client is now anEventEmitteremittingtoken:renewed,token:expired,token:error:renewand matchinglease:events. - New KV v2
destroySecretVersionscommand (POST /:mount/destroy/:path) permanently destroys the givenversionsof a secret;mount_pointdefaults tosecret. - A trailing slash on
endpointorVAULT_ADDRis now stripped, fixing malformed double-slash request URIs such ashttp://127.0.0.1:8200//v1/secret/hello. - Maintenance: added a Grype vulnerability-scan CI workflow (fails on high/critical findings), documented trailing-slash handling in the README, and bumped the transitive dev dependency
flattedto 3.4.2.
Pull requests
- build(deps-dev): bump flatted from 3.2.7 to 3.4.2 (#287)
- Strip trailing slash from endpoint to prevent malformed URIs (#288)
- Document trailing slash handling, close #175 (#291)
- Add Grype vulnerability scanner workflow (#290)
- Add automatic token and lease renewal with event-based lifecycle management (#292)
- Add KV v2
destroySecretVersionscommand (#293) - Bump version from 0.11.1 to 0.12.0 (#294)
Release 0.11.1
TL;DR
- TLS options in
requestOptions(ca,cert,key,passphrase,pfx,agentOptions,strictSSL) work again, at init or per call; they had been silently ignored since the switch to axios in 0.10.10. timeout,httpsAgentandhttpAgentinrequestOptionsare now passed to axios; they were dropped before, so the README's SOCKS-proxy agent setup had no effect.- TypeScript:
VaultOptions.requestOptionsis nowAxiosRequestConfig & TlsOptions, so these TLS fields type-check;TlsOptionsuses Node'sBuffer, so builds without@types/nodefail unlessskipLibCheckis on. - Docs and tests: README and examples drop stale postman-request references and the ignored
followAllRedirectsoption; new unit tests cover TLS and option forwarding.
Pull requests
- Restore backward-compatible requestOptions for axios migration (#286)
Release 0.11.0
TL;DR
- Adds transit commands
rewrapData,transitCreateKey,transitReadKey,transitListKeysandtransitDeleteKey, and exposes the client's command definitions asvault.commands. - TypeScript definitions now match the built-in commands: adds
unwrap,addKubernetesRole,getKubernetesRole,deleteKubernetesRole; removes the non-existentgenerateRootStatusand a duplicateldapLogin; types thecommandsoption as an object map (was an array). - The README's new SSL/TLS (
agentOptions) and updated SOCKS-proxy (httpsAgent,httpAgent)requestOptionsexamples have no effect in this release: the built-in axios client ignores those options. - Docs and tests: README refreshed (configuration options, environment variables, error handling, AppRole and Kubernetes examples, badges and links); feature list and request-options example updated; new unit tests.
Pull requests
- Document requestOptions for SSL/TLS configuration; fix broken rpOptions example (#279)
- Resolve merge conflicts with master for README update PR (#280)
- Sync index.d.ts type definitions with commands.js (#283)
- Add missing transit commands, export commands object, fix commands TypeScript type (#282)
- Bump version from 0.10.10 to 0.11.0 (#284)
Release 0.10.10
TL;DR
- New
update(path, data, requestOptions)sends aPATCH(application/merge-patch+json) to add or change keys at a path without removing the others, unlikewrite, which replaces them all. - Regression:
requestOptionsTLS settings (ca,cert,key,agentOptions,strictSSL) andtimeoutare ignored, because the newaxioswrapper forwards only method, URL, headers and JSON body. Restored in 0.11.1. - Network and TLS failures now reject with
AxiosError, whoseconfigholds theX-Vault-Tokenheader, so logging the error object can expose the token; empty 204 responses resolve'', notundefined. axios(^1.13.6) replaces thepostman-requestruntime dependency, soqs, flagged by CVE-2025-15284, is no longer installed;index.d.tsdrops its undeclaredrequestimport and types the constructor'srequestOptionsasAxiosRequestConfig.
Pull requests
- chore(deps): bump postman-request to .48 (#273)
- build(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 (#270)
- Adding Update function, to PATCH a path (#267)
- build(deps): bump qs from 6.14.1 to 6.14.2 (#275)
- build(deps-dev): bump minimatch from 3.1.2 to 3.1.5 (#276)
- Fix postman-request version (#269)
- Update definition file, fixes #274 (#277)
- Replace postman-request with axios (#278)
- Bump version from 0.10.9 to 0.10.10 (#281)
Release 0.10.9
TL;DR
- No library code changes in 0.10.8 (published to npm without a GitHub release) or 0.10.9: both packages are identical to 0.10.5 except for the version. 0.10.6 and 0.10.7 were never published.
- Releases now run when a version-bump PR merges: CI publishes to npm through OIDC trusted publishing, with provenance, and creates the GitHub release; dev-only
form-databumped to 2.5.5.
Pull requests
- chore(ci): fix version typo (#265)
- build(deps-dev): bump form-data from 2.5.1 to 2.5.5 (#259)
- chore(release): bump version (#266)
Also included, from 0.10.8 (published to npm without a GitHub release):
Release 0.10.5
TL;DR
- No library changes — the npm package is identical to 0.10.4 apart from the
versionfield inpackage.json. - Re-release: npm's 0.10.4 was published from a commit that is not on
master; 0.10.5 publishes the same code frommaster.
Pull requests
None. This release only bumps the version (see TL;DR).
Release 0.10.4
TL;DR
- Breaking: declared minimum Node.js raised from 16 to 18 (
engines.nodeis now>= 18.0.0). No library code changed;src/is identical to 0.10.3. - Minimum
postman-request(the default HTTP client) raised from2.88.1-postman.33to2.88.1-postman.42; that version no longer depends onhar-validator,brotliorperformance-now. - Maintenance: CI now also tests Node 20, 22, 23 and 24 (Codecov upload disabled); release workflow reworked; lockfile security refresh;
package.jsonlinks now point tonodevault/node-vault.
Pull requests
Release 0.10.3
TL;DR
- New
jwtLoginfor Vault's JWT auth method: sends the requiredroleandjwttoauth/jwt/login(mount overridable viamount_point) and stores the returned client token; typed inindex.d.ts. kubernetesLogin,getKubernetesRoleanddeleteKubernetesRoleaccept a per-callkubernetesPathnaming the auth mount;mount_point, which already did this, still takes precedence.- The same change regressed the default: without
mount_pointorkubernetesPaththese calls requestauth//…instead ofauth/kubernetes/…, and the new client-levelkubernetesPathoption has no effect. - Maintenance: CI, TruffleHog and publish-workflow updates (publish actions pinned to SHAs), dev-only
@babel/traverse7.23.2, README Kubernetes example; a0.10.4-0prerelease of this code also reached npm.
Pull requests
Release 0.10.2
TL;DR
- Runtime dependencies updated:
debug3.1.0 (exact pin) → ^4.3.4 andmustache^2.2.1 → ^4.2.0 (major-version bumps),tv4^1.2.7 → ^1.3.0. Library code (src/) and typings (index.d.ts) are unchanged. - Maintenance: dev dependencies updated (
chai^4.3.7,sinon^15.2.0,sinon-chai^3.7.0,dirty-chai^2.0.1,docco^0.9.1,eslint^8.45.0);package-lock.jsonregenerated in lockfile v3 format.
Pull requests
- Update dependencies (#238)