OpenBao: public web UI with Let's Encrypt (secrets.animeteamspeak.moe) #51

Open
opened 2026-11-11 16:39:14 +00:00 by ginjiruu · 2 comments
Owner

Part of lab/machine-configs#7. Deferred from lab/iac#47.

Goal

The OpenBao web UI is reachable at a public name (secrets.animeteamspeak.moe or similar) with a Let's Encrypt cert. Internal clients keep the pki-infra chain on secrets.infra.int.animeteamspeak.moe.

Open points

  • Exposure scope. Expose only /ui plus the OIDC auth paths, not the whole /v1 API. The default is no public API.
  • Path. A Gateway API route on a cluster with think hosts as backends. The route is a convenience only: if the cluster is down, direct internal access still works. TLS terminates at the gateway (LE cert) and re-encrypts to the backend with the lab root CA trusted.
  • OIDC. The oidc mount's allowed_redirect_uris (iac vault/main.tf) still lists https://vault.animeteamspeak.moe/ui/vault/auth/oidc/oidc/callback. Add the public name, and register it on the Kanidm vault client too.
  • Rate limits / lockout. Check OpenBao's login rate limiting before going public.

Done when

  • UI loads at the public name with a valid LE cert
  • Kanidm OIDC web login works through it
  • /v1/* outside the auth/UI paths is refused at the edge, proven
  • Cluster down = public UI down, internal access unaffected, proven
Part of lab/machine-configs#7. Deferred from lab/iac#47. ## Goal The OpenBao web UI is reachable at a public name (`secrets.animeteamspeak.moe` or similar) with a Let's Encrypt cert. Internal clients keep the `pki-infra` chain on `secrets.infra.int.animeteamspeak.moe`. ## Open points - **Exposure scope.** Expose only `/ui` plus the OIDC auth paths, not the whole `/v1` API. The default is no public API. - **Path.** A Gateway API route on a cluster with think hosts as backends. The route is a convenience only: if the cluster is down, direct internal access still works. TLS terminates at the gateway (LE cert) and re-encrypts to the backend with the lab root CA trusted. - **OIDC.** The `oidc` mount's `allowed_redirect_uris` (iac `vault/main.tf`) still lists `https://vault.animeteamspeak.moe/ui/vault/auth/oidc/oidc/callback`. Add the public name, and register it on the Kanidm `vault` client too. - **Rate limits / lockout.** Check OpenBao's login rate limiting before going public. ## Done when - [ ] UI loads at the public name with a valid LE cert - [ ] Kanidm OIDC web login works through it - [ ] `/v1/*` outside the auth/UI paths is refused at the edge, proven - [ ] Cluster down = public UI down, internal access unaffected, proven
Author
Owner

Redirect URI lives in two places in this repo, both still on vault.animeteamspeak.moe: kanidm/oauth2.tf kanidm_oauth2_basic.vault (origin + redirect_uris; vault_cli origin too) and vault/main.tf animeteamspeak_default_role allowed_redirect_uris. Update both together once the public name is fixed. vault/scripts/vault-login.py VAULT_ADDR default too.

Redirect URI lives in two places in this repo, both still on vault.animeteamspeak.moe: kanidm/oauth2.tf kanidm_oauth2_basic.vault (origin + redirect_uris; vault_cli origin too) and vault/main.tf animeteamspeak_default_role allowed_redirect_uris. Update both together once the public name is fixed. vault/scripts/vault-login.py VAULT_ADDR default too.
Author
Owner

Consumer: ginjiruu/home-manager#1 (load shell secrets from OpenBao). Works on the LAN now; off-site use needs this public endpoint.

Consumer: ginjiruu/home-manager#1 (load shell secrets from OpenBao). Works on the LAN now; off-site use needs this public endpoint.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/iac#51
No description provided.