Registering a buckypaper plugin

Learn how to register a buckypaper plugin in a vHSM server.

The Buckypaper plugin is a secrets engine that provides a secure and efficient way to manage cryptographic keys within vHSM .

Prerequisites

  • Install Docker

  • Set the environment variable for ENCLAIVE_LICENCE

  • Download the vHSM docker image

  • Download the vHSM CLl

To register a buckypaper plugin in a Docker container running vHSM:

  1. Get the SHA of the plugin using: docker run --rm -it --entrypoint sha256sum harbor.enclaive.cloud/vhsm/vhsm:latest /vault/plugins/vault-plugin-secrets-buckypaper

  2. Create a config.json file that provides the path for the plugins directory.

listener "tcp" {
  address     = "0.0.0.0:8200"
  tls_disable = true
}

api_addr = "http://0.0.0.0:8200"
plugin_directory = "/vault/plugins"
disable_mlock = true

storage "file" {
  path = "/vault/data"
}
  1. Start the vHSM server with the configuration parameters that you defined in the config.json file.

The output is similar to:

Note: Verify the status of the vhsm server and initialize it or unseal if necessary.

  1. In a different terminal, set the environment variable as export VAULT_ADDR='http://127.0.0.1:8200' and login using the root token for the vHSM server.

  2. In the following command ensure that you replace the SHA digest with the one that you made note after downloading the plugin binary to register the plugin.

The output is:

  1. Verify that the plugin is listed in the vHSM server using the command: vhsm plugin list .

  2. Enable the buckypaper secret engine using the command: vhsm secrets enable buckypaper

  3. Verify that it is listed under secrets, using the command: vhsm secrets list

The output is:

The Buckypaper plugin is a secrets engine that provides a secure and efficient way to manage cryptographic keys within vHSM . By default, this plugin is enabled in vault.enclaive.cloud, allowing you to generate, store, and manage cryptographic keys seamlessly. For more information about using this secrets engine to pass root admin password, see Provisioning MariaDB Password on Azure DCXas_v5 VM.

Last updated

Was this helpful?