Skip to main content

Hashicorp Vault

@webframp/hashicorp-vaultv2026.07.27.1· 1d agoVAULTS
01README

HashiCorp Vault secrets management via REST API (KV v1 and v2). Emits OpenTelemetry spans for get, put, and list, with one child span per request in the recursive list walk, so vault reads are visible in traces including reads during model and workflow runs where the host emits nothing. Span attributes carry the vault name, key name, and KV version only — never secret values, tokens, or error messages.

02Release Notes

2026.07.27.1

Changed: Bump @opentelemetry/api 1.9.0 → 1.9.1

2026.07.26.2

Added: OpenTelemetry spans on get, put, and list, plus one child span per HTTP request inside the recursive list walk. Span names are Vault get, Vault put, Vault list, and Vault LIST for the child requests. Attributes: vault.name, vault.secret_key, vault.kv_version, rpc.system, rpc.service, rpc.method, vault.keys_returned on list, vault.truncated on list when the depth or key cap stopped the walk, and vault.list_depth on each child request.

This closes a real observability gap rather than duplicating the host. swamp emits swamp.vault.* spans when a human runs a swamp vault subcommand, with no attributes at all — and emits nothing when a model or workflow resolves a vault expression. A secret read during a run was invisible in traces. These spans appear on both paths.

The extension uses @opentelemetry/api only and never constructs a TracerProvider. With no provider configured the tracer is a no-op and the cost is a few property lookups.

Changed: Error messages no longer echo a submitted secret value. If Vault rejects a write and quotes the value back in its errors array, that value is replaced with [redacted] before the message is thrown. This matters because the swamp host publishes thrown error messages into its own span as a status description, an exception.message, and a stack trace — so an echoed value reached the trace backend regardless of what this extension recorded.

Changed: list now reads and discards the response body on a 404 instead of dropping the Response unread, which leaked a connection per missing path.

Note on what spans deliberately omit: spans record error.type and an ERROR status on failure, and never recordException and never a status description. A vault error message is built from output this extension does not control, and the host already publishes it once. Recording key names is intentional — a vault span without the key is close to useless for debugging — so treat key names as visible to anyone with access to your trace backend and do not encode sensitive information in them.

03Vaults1
HashiCorp Vaultconfigurable
@webframp/hashicorp-vaulthashicorp.ts

HashiCorp Vault secrets management via REST API

Config Fields

FieldTypeDescription
addressstringVault server address (e.g., https://vault.example.com:8200)
token?stringVault authentication token. If omitted, resolves from VAULT_TOKEN env var or ~/.vault-token file.
mountstringSecrets engine mount path
kvVersionenumKV secrets engine version
namespace?stringVault namespace (Enterprise only)
04Previous Versions14
2026.07.26.2

2026.07.26.2

Added: OpenTelemetry spans on get, put, and list, plus one child span per HTTP request inside the recursive list walk. Span names are Vault get, Vault put, Vault list, and Vault LIST for the child requests. Attributes: vault.name, vault.secret_key, vault.kv_version, rpc.system, rpc.service, rpc.method, vault.keys_returned on list, vault.truncated on list when the depth or key cap stopped the walk, and vault.list_depth on each child request.

This closes a real observability gap rather than duplicating the host. swamp emits swamp.vault.* spans when a human runs a swamp vault subcommand, with no attributes at all — and emits nothing when a model or workflow resolves a vault expression. A secret read during a run was invisible in traces. These spans appear on both paths.

The extension uses @opentelemetry/api only and never constructs a TracerProvider. With no provider configured the tracer is a no-op and the cost is a few property lookups.

Changed: Error messages no longer echo a submitted secret value. If Vault rejects a write and quotes the value back in its errors array, that value is replaced with [redacted] before the message is thrown. This matters because the swamp host publishes thrown error messages into its own span as a status description, an exception.message, and a stack trace — so an echoed value reached the trace backend regardless of what this extension recorded.

Changed: list now reads and discards the response body on a 404 instead of dropping the Response unread, which leaked a connection per missing path.

Note on what spans deliberately omit: spans record error.type and an ERROR status on failure, and never recordException and never a status description. A vault error message is built from output this extension does not control, and the host already publishes it once. Recording key names is intentional — a vault span without the key is close to useless for debugging — so treat key names as visible to anyone with access to your trace backend and do not encode sensitive information in them.

updated labels

2026.07.26.1

2026.07.26.1

Fixed: Keys were interpolated into the request path unvalidated and unencoded, so get("../../sys/health") left the configured mount and reached a different Vault API entirely — secret/data/../../sys/health is not the secret the caller asked for. Keys containing . or .. path segments, empty path segments (a//b, trailing/), absolute keys, and empty keys are now rejected.

Fixed: Key path segments are percent-encoded. A key containing a space, a ?, or a # previously changed the request path or started a query string, so the secret written and the secret read back could be different entries.

Fixed: list built its recursive request paths from Vault's own directory names without encoding them, so a directory containing a ? or # truncated the path and the keys beneath it were silently missed.

Upgrade note: If you store keys containing characters that require encoding and have been relying on the previous unencoded behaviour, the encoded path is a different Vault path. Read such secrets with the old version and re-write them with this one.

2026.07.18.1

2026.07.18.1

Changed: Version bump only, no code changes.

2026.06.15.1
2026.06.07.1
2026.06.01.1
2026.05.20.1
2026.04.22.1
2026.04.14.1

updated labels

2026.04.13.1
2026.03.31.3
2026.03.31.2
2026.03.31.1
2026.03.30.1
05Stats
A
100 / 100
Downloads
49
Archive size
28.2 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
06Platforms
07Labels