OpenBao from the release tarball, loopback until you give it TLS, in one OpenTofu-style config #4359
jamesconwaydev
started this conversation in
Show and tell
Replies: 1 comment 2 replies
|
@jamesconwaydev Have you seen self-initialization? https://openbao.org/docs/configuration/self-init/ |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all. I built an OpenBao circuit for Conn3x, a fork of OpenTofu that configures servers over SSH: https://github.com/conn3xorg/circuit-openbao. If you already create your VMs with OpenTofu or Terraform, the same
conn3x applynow installs OpenBao on them too.It downloads the 2.7.2 release tarball, checks it against your
checksums.txt, and runsbaounder the systemd unit from your own packages, with raft storage on a single node. The listener sits on127.0.0.1:8200until you hand it a certificate and key: the circuit refuses any other address without TLS.The part I'd most like a second opinion on is initialising. By default the circuit doesn't, and the README walks through
bao operator init. For labs there's an opt-ininitialize = truethat runsbao operator init -key-shares=1 -key-threshold=1once and leaves the JSON in a root-only file on the host, so the unseal key and root token never reach Conn3x's state or plan. The README is loud that this is for homelabs and test boxes, not production.CI applies it on Rocky Linux 10, Fedora 45, Ubuntu 24.04 and Debian 13: health says 501 while uninitialised, then with
initialize = trueit unseals, writes and reads a kv-v2 secret, restarts, sees it sealed, and unseals again. By hand it ran on Ubuntu 24.04 and Rocky Linux 10 droplets (SELinux enforcing) through a reboot, and over HTTPS with a certificate on Ubuntu.I left out
CAP_IPC_LOCKandLimitMEMLOCKbecause your changelog says mlock is gone. Tell me if that's wrong. Questions and "you're doing it wrong" both welcome.All reactions