Skip to content

v2.2.0

Latest

Choose a tag to compare

@qwe638853 qwe638853 released this 08 Nov 08:21
0f837cb

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 .byok format
    (RSA-OAEP-SHA1 + AES-256-KWP)
    • POST blockchain/byok/export/account/:name — single-key account private
      key as PKCS#8 secp256k1
    • POST blockchain/byok/export/wallet/:wallet_id — the 64-byte BIP-39 seed
      (key_type: bip39-seed), for receivers that support BIP-32
    • POST 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 KEY or RSA PUBLIC KEY PEM);
      responses include kek_public_key_sha256 for out-of-band verification
  • configs/blockchain_byok.hcl — operator-only policy, one rule per export
    kind; the user and master policies do not reach byok/
  • HSM integration guides for Thales Luna HSM 7 and SoftHSM2 in
    docs/integrations/

Bug fixes:

  • utils.ZeroKey now overwrites the private scalar's memory; SetInt64(0)
    alone left it in the big.Int backing 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 RunningVersion v2.2.0. Rebuild from v2.2.0
    (make build-local), register the catalog entry with version="v2.2.0"
    (v2.1.1 used v0.1.0) and the new SHA-256, then run
    vault plugin reload -plugin=blockchain-plugin