Server
Install vHSM to effectively managing identities and access controls for workloads spread across multiple clouds and on-premises environments
Installing vHSM
You can install vHSM using a docker image, helm chart, or compile from source
Pull the latest image:
docker pull harbor.enclaive.cloud/vhsm/vhsm:latestSet the enterprise license key that you received as an environment variable:
export ENCLAIVE_LICENCE=<licence-key>Start a docker container named
vhsm-containerwith the image that you pulled:
docker run -d --name vhsm-container -p 8200:8200 -p 8201:8201 -e ENCLAIVE_LICENCE="$ENCLAIVE_LICENCE" harbor.enclaive.cloud/vhsm/vhsm:latest
Check if the container is running:
docker psAccess the logs of the container to get the environment variable, unseal key, and root token details.
The output is similar to:
WARNING! dev mode is enabled! In this mode, vHSM runs entirely in-memory
and starts unsealed with a single unseal key. The root token is already
authenticated to the CLI, so you can immediately begin using Vault.
You may need to set the following environment variables:
$ export VAULT_ADDR='http://0.0.0.0:8200'
The unseal key and root token are displayed below in case you want to
seal/unseal the vHSM or re-authenticate.
Unseal Key: pafYkq2uEVve3FW7n7RM6JUK/MWEHzAxvrEdlrb4QD4=
Root Token: hvs.7oXsG8t8L198HEpB865FdpFG
Development mode should NOT be used in production installations!
Set the environment variables for accessing vHSM. Save the unseal key, and the root token. You will need these key, and token to access the vHSM UI.
You can now go to a browser and access vHSM ui at:
http://127.0.0.1:8200/
Set the enterprise license key that you received as an environment variable.
export ENCLAIVE_LICENCE=<licence-key>
Install vHSM in the Kubernetes cluster using helm.
The output is similar to:
Check if the Pods are running in the Kubernetes cluster:
kubectl get podsThe output is similar to:
Check if the services are running:
kubectl get svc
The output is similar to:
Port forwad the service to access VHSM ui:
kubectl port-forward svc/vhsm 8200:8200 8201:8201You can now go to a browser and access vHSM ui at:
http://127.0.0.1:8200/
Note: The vHSM is not initialized, and unsealed by default. You are prompted to initialize and unseal the vHSM. Initialize the VHSM using the command vhsm operator init and then unseal vHSM using the unseal keys by using the command vhsm operator unseal <unsealkey>
Create a
docker-compose.yaml
2. Set your license key as an environment variable
Alternatively, you can create a .env file in the same folder as your compose file with this variable inside:
Docker Compose will automatically pick it up.
3. Start vHSM with Docker Compose
Check if the container is running
View logs for unseal key and root token
The output is similar to :
Set the environment variables for accessing vHSM. Save the unseal key, and the root token. You will need these key, and token to access the vHSM UI.
You can now go to a browser and access vHSM ui at:
http://127.0.0.1:8200/
Last updated
Was this helpful?