- Shell 90.9%
- HCL 9.1%
| secret-store-csi | ||
| test-and-doc | ||
| .gitignore | ||
| crb-token-reviewer.yaml | ||
| kustomization.yaml | ||
| make-unseal-key.sh | ||
| namespace.yaml | ||
| Readme.md | ||
| rolebinding-csi-privileged.yaml | ||
| unseal-keys.yaml | ||
| values.yaml | ||
OpenBao on OKD or Openshift
Should work on plain k8s also ;-)
install
-
Decide if you want to use the helm install of the
secret-store-csidriver (recommended on plain k8s like gubernat) or the or the operator supplied by RedHat for OpenShift.
Editsecret-store-csi/kustomization.yamlfor this and rollout withkubectl -k secret-store-csi/as cluster-admin (https://secrets-store-csi-driver.sigs.k8s.io) -
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
- kustomization.yaml:
-
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-namespaceYou have to make this only once per installation. These are the static unseal keys for openbao
-
After this you can rollout the deployment with:
oc kustomize . --enable-helm | oc apply -f - -
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 initWrite 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