Repository navigation
Releases
Releases · bsostech/vault-blockchain
v2.2.0
New features:
- BYOK export: a private key or wallet seed leaves Vault only wrapped for a
receiving HSM or KMS key exchange key (KEK), in the Azure.byokformat
(RSA-OAEP-SHA1 + AES-256-KWP)POST blockchain/byok/export/account/:name— single-key account private
key as PKCS#8 secp256k1POST blockchain/byok/export/wallet/:wallet_id— the 64-byte BIP-39 seed
(key_type: bip39-seed), for receivers that support BIP-32POST blockchain/byok/export/wallet/:wallet_id/accounts/:index— one
derived account's key, for cloud KMSs that have no BIP-32- KEK: RSA 2048, 3072, or 4096 (
PUBLIC KEYorRSA PUBLIC KEYPEM);
responses includekek_public_key_sha256for out-of-band verification
configs/blockchain_byok.hcl— operator-only policy, one rule per export
kind; the user and master policies do not reachbyok/- HSM integration guides for Thales Luna HSM 7 and SoftHSM2 in
docs/integrations/
Bug fixes:
utils.ZeroKeynow overwrites the private scalar's memory;SetInt64(0)
alone left it in thebig.Intbacking array- Concurrent creates of the same single-key account name could both succeed,
the later one overwriting the first; now one gets 409 - A KEK with an unusable public exponent returns 400
invalid_kek_public_key
instead of 500
Upgrade notes:
- The plugin now reports
RunningVersionv2.2.0. Rebuild fromv2.2.0
(make build-local), register the catalog entry withversion="v2.2.0"
(v2.1.1 usedv0.1.0) and the new SHA-256, then run
vault plugin reload -plugin=blockchain-plugin
v2.1.1
Security fixes:
- Go toolchain pinned to
go1.26.10(toolchaindirective ingo.mod);
denylists compromised intermediate CA certificates incrypto/x509
(GO-2026-6809, mitigates certificate forgery / MitM where system roots are
not updated) and fixes further standard library advisories incrypto/x509,
crypto/tls,net/http,net/textproto,mime/multipart,net/url,
net,encoding/asn1andhtml/template github.com/hashicorp/vault/sdkv0.25.0 → v0.26.0 and
github.com/hashicorp/go-secure-stdlib/plugincontainerv0.4.2 → v0.5.0;
replacesgithub.com/docker/docker(no fixed version published for
GO-2026-4883 / GO-2026-4887) withmoby/mobygoogle.golang.org/grpcv1.79.3 → v1.84.0 (GO-2026-6061, GO-2026-6348,
GO-2026-6443)golang.org/x/netv0.48.0 → v0.61.0 (HTTP/2 and IDNA advisories)golang.org/x/textv0.32.0 → v0.43.0 (GO-2026-5970)github.com/go-jose/go-jose/v4v4.1.3 → v4.1.6 (GO-2026-4945)go.opentelemetry.io/otelv1.40.0 → v1.47.0 (GO-2026-5506)- Also upgraded:
golang.org/x/cryptov0.46.0 → v0.58.0,
github.com/hashicorp/go-pluginv1.6.1 → v1.8.0
Upgrade notes:
- Minimum Go version raised:
go 1.25.0→go 1.26.0. With the default
GOTOOLCHAIN=auto, older local Go installs downloadgo1.26.10
automatically - Go applies security fixes at build time; existing binaries stay vulnerable
until rebuilt. Rebuild fromv2.1.1(make build-local), confirm with
go version -m plugins/vault-blockchain(must showgo1.26.10or later),
then re-register: the binary's SHA-256 changes, so update the catalog entry
and runvault plugin reload -plugin=blockchain-plugin - Keep
version="v0.1.0"in the catalog entry; the plugin still reports
RunningVersionv0.1.0 - No API or storage changes; no features from
devare included
v2.1.0
Breaking changes:
GET/POSTblockchain/wallets/:wallet_id/accounts/metadatais removed;
range read is nowGET blockchain/wallets/:wallet_id/accounts?start=N&end=M
(same behaviour: both params required, span ≤ 10 000, all indices must exist)
New features:
- Batch account creation —
POST .../accounts/batch count=Nderives up to 10 000
accounts in a single request; the entire batch is rejected upfront if any index
would exceed the BIP-44 maximum (2147483647), so no partial writes for
out-of-range batches - Per-wallet atomic counter —
ethereumBackendholds async.Mapof per-wallet
mutex locks; counter read-increment-write is fully serialised within the active
Vault node, preventing duplicate index assignment under concurrent requests - Range read on collection endpoint —
GET .../accounts?start=N&end=Mreplaces
the dedicated/metadatapath;vault readand HTTP GET with query params
both work
Bug fixes:
start/endvalues beyond2147483647now return a clear validation error
instead of silently wrapping
Other:
- Unit tests: partial-write self-heal,
UpdateOperationrouting,_missingStart
/_missingEndMethod-A validation matrix, path registration assertions for
ReadOperationonaccounts/? - E2E smoke test extended with range-read step (
vault read .../accounts start=2 end=3)
v2.0.0
Breaking changes:
- All v1.0.0 API paths are not compatible with v2.0.0
accounts/:name/...storage model is preserved and compatible with v1.0.0- Removed dependency on
bsostech/go-besu; signing and encryption now handled directly viago-ethereum
New features:
- HD Wallet mode (
wallets/:wallet_id/accounts/:index/...) — BIP-39 mnemonic stored in Vault; accounts derived via BIP-44 atm/44'/60'/0'/0/<index> - Single-key account mode (
accounts/:name/...) — independently generated or imported ECDSA key per logical name sign-tx/legacy(EIP-155 type-0) andsign-tx/eip1559(type-2) for both modessign-eip712— EIP-712 typed data signing for both modesencrypt/decrypt— ECIES encryption for both modeswallets/:id/import— import existing BIP-39 mnemonic- Plugin version reporting to Vault via
RunningVersion
Other:
- Unit tests covering wallet/account CRUD, signing, and encryption
- E2E smoke test (
make smoke-local)