OpenBao standalone¶
Updated: 21 September 2024
OpenBao version: 2.0.0
Introduction¶
Every components needed for an OpenBao infrastructure are installed on this single instance. The GUI is also available on the same instance.
Getting started¶
Connecting to the web console¶
To connect to the web console:
- Connect to
https://[instance url/ip]:8200
Initializing the vault¶
Initialize the vault from the web console¶
You first have to initialize the vault. You can do it from the web console or from the command line. To do it from the web console:
- Connect to
https://[instance url/ip]:8200, and set the number of key shares to split the root key into, and set the number of key shares required to reconstruct the root key. For simplicity, we use 1 share and 1 required share.

- Store the output root token and the output keys in a safe place.

- To unseal the vault, you need to copy/paste the output keys in the "Unseal Key Portion" field.

- The firtst time you log in, you can use the root token to login.


Initialize the vault from the command line #TODO¶
You can also initialize the vault from the command line. To do it, you need to set the number of key shares to split the root key into, and set the number of key shares required to reconstruct the root key. For simplicity, we use 1 share and 1 required share.
Connect to the openbao instance through SSH, and then set the environment variables.
For simplicity, we use 1 key share and 1 required share to initialize the vault :
Store the output root token and the output keys in a safe place.
Unseal the vault:
Check the status of the vault:
Some simple tests to perform¶
0. Setting the environment variables¶
Connect to the openbao instance through SSH, and then set the environment variables.
1. Check the status of the vault¶
2. List the secrets engines available¶
3. Create a secret engine¶
4. Store a secret¶
5. Read a secret¶
6. Create a user¶
Enable the userpass auth method:
Create a user:
Authenticate with the new user:
Configuration files¶
Where is the configurations?¶
The configuration file is stored in:
/var/lib/openbao/config/config.hcl
Where is the service file?¶
The service file is stored in:
/etc/systemd/system/openbao.service
Where is the certificate?¶
The SSL certificate is self-signed.
The certificate and the key are stored in:
- /var/lib/openbao/tls/tls.key
- /var/lib/openbao/tls/tls.crt
I need help¶
If you need help, please refer to the official documentation.