OpenBao (secrets store)
OpenBao (MPL-2.0, the open-source fork of HashiCorp Vault) holds every API and service secret of the rack: the FreeIPA service-account passwords it rotates itself, the SSH certificate authorities, and the key-value secrets AWX and Windmill read at each run. Passwords people type (LDAP bind accounts, appliance logins) stay in Vaultwarden; everything a machine uses goes here.
| Guest | srv-bao — Rocky Linux 9.8, VM 126 on rumba, 192.168.88.32, 1 vCPU, 1024 MB RAM, 30 GB |
| URL | https://srv-bao.isc3.isc-vs.ch:8200 — listens on 192.168.88.32 only, FreeIPA certificate, TLS 1.2–1.3 |
| Version | OpenBao 2.6.6 (RPM openbao, HSM build) |
| Storage | Integrated Raft, single node (/var/lib/openbao/raft) |
| Seal | Shamir, 3 key shares, threshold 2 — no auto-unseal |
| Audit | /var/log/openbao/audit.log (mode 0600) |
| Config | /etc/openbao.d/openbao.hcl; code and procedures in dc-isc-prod playbooks/secrets/ |
| Backup | Whole VM, nightly with every rumba guest (vzdump 02:00 to hdd-backup, 03:00 to PBS) |
Standing rules
Any restart of the service or of the VM — a package update, a new kernel, a rumba reboot — brings OpenBao back sealed. Until two key holders unseal it, every consumer fails: the secrets expiry agent (no rotation), AWX and Windmill lookups, Foreman's daily SSH certificates. Restart it only when two key holders are available. Once unsealed, everything recovers by itself, however long the seal lasted, except Foreman remote execution after a seal of more than a day (below).
-
The
openbaopackage is updated by an admin only, never by Foreman. Two locks onsrv-bao, both set by dc-isc-prodplaybooks/foreman_content/security_updates_tasks.yml:/etc/isc-security-update.hold(since 2026-11-05,d199452): the weekly patch job listsopenbaoas reserved to admins and skips it;excludepkgs=openbaoin/etc/dnf/dnf.conf(since 2026-11-30): a manual Install errata or Apply in Foreman cannot install it either. It is what sealed OpenBao for three days (incident).
The errata stays visible in Foreman, on purpose.
-
No automatic unseal (decision 2026-11-05). The key shares are held by people, outside any machine. An AWX playbook unsealing with shares read from Vaultwarden was rejected: one compromised C0 account would then open the whole store. Transit or KMS auto-unseal is not planned.
-
Policies are written from a local file piped over SSH (
ssh srv-bao 'bao policy write X -' < file.hcl). A heredoc nested insidessh '…'once wrote an empty policy (2026-10-17). -
The root token is not kept. The unauthenticated rekey and generate-root endpoints are disabled in the listener.
-
/root/.vault-tokenonsrv-baoholds an admin token (c0-openbao-superadmin, fromyacine.said-c0), kept on purpose for the deploy scripts (decision 2026-11-30). Nothing automatic uses it and nothing renews it: it expires on 2027-01-01. After that, log in again (bao login -method=ldap username=yacine.said-c0, password + OTP).
What it holds
| Mount | What |
|---|---|
ldap-freeipa-c0, -m1, -w1 | LDAP secrets engines: static roles that own the passwords of the FreeIPA API/service accounts of each plane and rotate them (manager accounts svc-bao-identity-<plane>) |
ssh-client-signer-c0, -m1, -w1 | SSH CAs per plane; Foreman REX gets a 25 h certificate from them every day (Foreman) |
pki-web, pki-web-int | ISC3 private web CA: root and issuing CA, both limited to isc3.isc-vs.ch, for the web interfaces people open over NetBird (since 2026-11-18) |
ansible/ | Key-value secrets read by AWX and Windmill (NetBird tokens, Foreman, Keycloak, GLPI…) |
auth/ldap, auth/cert-freeipa, auth/token | Logins: FreeIPA accounts, FreeIPA host certificates, tokens |
The secrets expiry agent (secrets-expiry-agent.timer, every 15 min) rotates each FreeIPA
account before it expires and pushes the copies to AWX and Windmill; a watchdog mails
rack-admins@ when it has not succeeded for 2 h. It logs in at each run with the FreeIPA
certificate of srv-bao (cert-freeipa/secrets-expiry-agent, from 192.168.88.32 only, 15 min
token), like the Prometheus rotator (cert-freeipa/prom-scrape-rotator): no long-lived token.
A short LDAPS drop on ipa01 (about one a day) is retried by the agent, both for its own bind and
for a rotation OpenBao reports as "safe to retry" (since 2026-11-09). Detail: dc-isc-prod playbooks/secrets/README.md §10.
Sealed — what happens and what to do
The only action is the unseal, whether the seal lasted ten minutes or ten days. There is one exception, Foreman (last row).
| Alert | bao-seal-watch (service on srv-bao) mails [srv-bao] OpenBao SCELLÉ depuis … within a minute, then every 6 h; OpenBao injoignable if the service is down for more than 5 min |
| During | AWX and Windmill read no secret, nothing rotates. The agent skips its runs without failing (exit 75) |
| At unseal | OpenBao changes the passwords that became overdue. Within 30 s bao-seal-watch starts the agent and the Prometheus rotator; the agent pushes the new passwords to AWX and Windmill and catches up. Mail OpenBao descellé, agents relancés |
| Check | journalctl -u secrets-expiry-agent | grep 'OK fin' shows 0 erreur(s) |
Exception: Foreman (srv-fm) | Not covered yet. srv-fm logs in with a password and gets its 25 h SSH certificate at 03:00. After a seal of more than a day, start it by hand. After more than about 3 days, it may need a re-seed (Foreman, incident) |
Until 2026-11-30 the agent used a 24 h token: a seal longer than a day left AWX locked out after the unseal until an admin intervened (incident).
Unseal
Two of the three key holders, on srv-bao (or any machine reaching 192.168.88.32:8200):
export BAO_ADDR=https://srv-bao.isc3.isc-vs.ch:8200
bao status # Sealed true, Unseal Progress 0/2
bao operator unseal # first key holder, key typed at the prompt
bao operator unseal # second key holder
bao status # Sealed false, HA Mode active
Never pass a key on the command line or paste it into a chat. Nothing else to do: bao-seal-watch
restarts the agent. A minute later:
journalctl -u secrets-expiry-agent.service -n 5 | grep 'fin :' # « 0 erreur(s) »
Updating OpenBao or rebooting srv-bao
Done by an admin, with a second key holder reachable:
dnf --disableexcludes=main upgrade openbaoonsrv-bao(the RPM scriptlet restarts the service), or reboot for a new kernel.- Unseal right away. Nothing else.
Do not remove openbao from the hold list or from excludepkgs to let Foreman do it.
Open items: ops todo.