Select Git revision
21
openbao.md 1.29 KiB
OpenBao
OpenBao is backward compatible with Vault and can replace Vault without changing the existing setup. To avoid conflicts, disable Vault when enabling OpenBao.
You can configure the OpenBao to run locally in GDK.
To configure:
- Set the
BAO_ADDR
variable in your environment
export BAO_ADDR='http://gdk.test:8200'
- Run
gdk config set openbao.enabled true
. - Run
gdk reconfigure
. - Run
rake openbao/config.hcl
to create a configuration file - Run
rake openbao/proxy_config.hcl
to create a proxy configuration file - Run
gdk start openbao
. - Run
gdk start openbao-proxy
. - Run
gdk bao configure
to unseal the vault
=> "✅ OpenBao has been unsealed successfully"
=> "The root token is: s.xxxxxxxxxxxxxxx"
- Run
bao login
with root token from above (gdk config get openbao.root_token
) - Run
bao auth enable approle
- Run
bao write auth/approle/role/project_secret_engines_manager token_policies=manage_projects_secret_engines
- Run
bao read -field=role_id auth/approle/role/project_secret_engines_manager/role-id > openbao/roleid
- Run
bao write -field=wrapping_token -f -wrap-ttl=1h auth/approle/role/project_secret_engines_manager/secret-id > openbao/secretid
- Run OpenBaoProxy with
gdk start openbao-proxy