百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

node-vault

> 安全
开源

基于 HashiCorp Vault API 的现代客户端

374 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

基于 HashiCorp Vault API 的现代客户端

Node Vault

node-vault is a Javascript HTTP client for HashiCorp's Vault API that allows you to have typesafe access to the API using TypeScript and Zod.


  • Features
  • Installation
  • Usage
    • Init and unseal vault
    • Create Key/Value V2 engine
    • Create, read, update, delete secrets
  • Documentation
  • Contributing
  • License

Features

  • Simple API
  • Typesafe and Validated Requests from Zod
  • Extendable using Custom Commands

Installation

bash
npm install @litehex/node-vault

Usage

Init and unseal vault
…
Create Key/Value V2 engine
typescript
const mounted = await vc.mount({
  mountPath: 'my-secret',
  type: 'kv-v2'
});

console.log(mounted); // { data: true }

const info = await vc.engineInfo({ mountPath: 'my-secret' });

console.log(info); // { data: { type: 'kv', options: { version: '2' }, ... } }
Write, read and delete secrets
typescript
const mountPath = 'my-secret';
const path = 'hello';

const write = await vc.kv2.write({
  mountPath,
  path,
  data: { foo: 'bar' }
});
console.log(write); // { data: { request_id: '...', lease_id: '...', ... } }

const read = await vc.kv2.read({ mountPath, path });
console.log(read); // { data: { request_id: '...', lease_id: '...', ... } }

const deleted = await vc.kv2.deleteLatest({ mountPath, path });
console.log(deleted); // { data: true }

Documentation

For complete usages, please dive into the Wiki.

For all configuration options, please see the API docs.

Contributing

You can contribute to this project by opening an issue or a pull request on GitHub. Feel free to contribute, we care about your ideas and suggestions.

Relevant

  • HashiCorp's Vault API docs
  • Minimal CLI for K/V V2 engine

License

MIT © Shahrad Elahi and contributors.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptclienthashicorpsecretstypescript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类安全
定价开源

> 相关工具

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.