Configuring Hashicorp Vault Proxy with CSM
Prerequisites
Install Hashi Vault on your machine. Refer this link for installation details.
Run the below command to install Hashi Vault CLI.
Steps
To configure Hashicorp Vault Proxy with CipherTrust Secrets Management (CSM), perform the following steps:
Set akeyless-vault url in:
VAULT_ADDR
environment variable.Syntax
Example
Configure the authentication token that will be used by Vault CLI to fetch secrets from Akeyless Vault. Set your Akeyless token in
~/.vault-token
. Supported tokens: Permanent token must be in the following structure:Access-ID+..+Access-Key
Example
Getting dynamic secret using Vault CLI
To get dynamic secret using Vault CLI, run:
Syntax
The supported producer types:
Example Request 1
Example Response 1
Example Request 2
Example Response 2
Working with static secrets
Creating/updating secret
To create a new static secret in Akeyless Vault, run:
If a static secret already exists, then it will add a new version for that secret.
Getting details of secrets
To get the value of a secret from Akeyless Vault, run:
To get a specific version of the secret, use the version
flag.
Example
Default value is the latest version.
Deleting secrets
To delete a secret from Akeyless Vault, run:
To delete a list of specific versions from Akeyless Vault, use the versions
flag, run:
Example
To delete all versions, set versions
to 0
or -1
.
Example
For more details, refer to Hashicorp Vault Proxy documentation.