Consensys / tessera

Tessera - Enterprise Implementation of Quorum's transaction manager
https://docs.tessera.consensys.net/
Apache License 2.0
180 stars 109 forks source link

Hashicorp Vault Namespace support. #1525

Open krishnan-narayanan-partior opened 1 year ago

krishnan-narayanan-partior commented 1 year ago

PR Description

Hashicorp enterprise version supports namespaces. This PR allows an easy way to configure Tessera and supplying namespace for hashicorp via Tessera config hashicorp properties.

    "keys": {
      "keyVaultConfigs": [
        {
          "keyVaultType": "HASHICORP",
          "properties": {
            "url": "https://<Vault-Url>",
            "approlePath": "tessera",
            **"namespace": "test"**
          }
        }
      ],
      "keyData": [
        {
          "hashicorpVaultSecretEngineName": "tessera",
          "hashicorpVaultSecretName": "secret1",
          "hashicorpVaultSecretVersion": 1,
          "hashicorpVaultPrivateKeyId": "privateKey",
          "hashicorpVaultPublicKeyId": "publicKey"
        }
      ]
    },

Please note, this change is activated only when namespace is supplied as highlighted above via the tessera config. The code was tested using enterprise version of hashicorp.

Fixed Issue(s)

Documentation

Changelog

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.