No description
  • Shell 90.9%
  • HCL 9.1%
Find a file
2026-11-18 14:26:07 +01:00
secret-store-csi Restructure, doc and beautify 2026-11-18 14:26:07 +01:00
test-and-doc Restructure, doc and beautify 2026-11-18 14:26:07 +01:00
.gitignore sync 2026-08-21 17:57:48 +02:00
crb-token-reviewer.yaml Restructure, doc and beautify 2026-11-18 14:26:07 +01:00
kustomization.yaml Restructure, doc and beautify 2026-11-18 14:26:07 +01:00
make-unseal-key.sh Clear definitions and split rollout OCP/OKD and k8s 2026-11-09 09:39:36 +01:00
namespace.yaml disable audit 2026-11-13 16:33:12 +01:00
Readme.md Restructure, doc and beautify 2026-11-18 14:26:07 +01:00
rolebinding-csi-privileged.yaml Restructure, doc and beautify 2026-11-18 14:26:07 +01:00
unseal-keys.yaml Clear definitions and split rollout OCP/OKD and k8s 2026-11-09 09:39:36 +01:00
values.yaml fix commenting bug 2026-11-18 13:20:34 +01:00

OpenBao on OKD or Openshift

Should work on plain k8s also ;-)

install

  1. Decide if you want to use the helm install of the secret-store-csi driver (recommended on plain k8s like gubernat) or the or the operator supplied by RedHat for OpenShift.
    Edit secret-store-csi/kustomization.yaml for this and rollout with kubectl -k secret-store-csi/ as cluster-admin (https://secrets-store-csi-driver.sigs.k8s.io)

  2. Edit:

    • kustomization.yaml:
      mainly namespace, repo and version, but you have to look also in the patch section
    • values.yaml:
      the main part are the two variables at the top of the file: url & storageclass
    • namespace.yaml:
      set the correct namespace
  3. Generate the sealed-secrets (or secrets) for the static unseal:

    # for sealed-secret
    ./make-unseal-key.sh -n my-openbao-namespace -t sealed -s my-sealed-secret-namespace
    # for plain secrets
    ./make-unseal-key.sh -n my-openbao-namespace -t raw -s my-sealed-secret-namespace
    

    You have to make this only once per installation. These are the static unseal keys for openbao

  4. After this you can rollout the deployment with:
    oc kustomize . --enable-helm | oc apply -f -

  5. Now you will get a statefulset with 3 replicas, but you have to initialize the cluster one time:

    # init first cluster member
    kubectl exec -ti openbao-dev-0 -- bao operator init
    

    Write down the initial root token you get (don't loose it!)

    # let the other two members join the cluster
    kubectl exec -ti openbao-dev-1 -- bao operator raft join http://openbao-dev-0.openbao-dev-internal:8200
    # wait for openbao-dev-1 readiness (1/1)
    kubectl exec -ti openbao-dev-2 -- bao operator raft join http://openbao-dev-0.openbao-dev-internal:8200
    # cluster ready?
    oc exec -ti openbao-dev-0 -- bao status
    

use

You can now use the web frontend via your configured URL as TLS service.

If you want to use the bao commandline you have to set VAULT_ADDR to your URL

If you want some basic usage and test hints: ./test-and-doc/


Peter Pfläging peter@pflaeging.net