v1.13.0: load secrets from OpenBao at boot via @simpleworkjs/bao-conf

bin/www now defers require('../app') until bao-conf.init({ path: 'proxy' })
resolves, so models + createOidcClient see the OpenBao-merged config (the
OIDC clientSecret is captured at require time). Authenticates to OpenBao
with a scoped VAULT_TOKEN (policy proxy), never the root token; fail-soft
to CONF_SECRETS if OpenBao is unreachable. config/proxy-secrets.js becomes
an operator-edit seed artifact (OpenBao authoritative). README gains a
Secrets section.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-08-01 12:29:22 -04:00
parent a44d7ef7ab
commit 15b154fc8d
5 changed files with 127 additions and 66 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
{
"name": "proxy-api",
"version": "1.9.0",
"version": "1.13.0",
"author": [
{
"name": "William Mantly",
@@ -22,6 +22,7 @@
"@fortawesome/fontawesome-free": "^7.3.0",
"@popperjs/core": "^2.11.8",
"@simpleworkjs/app-stack": "^1.0.0",
"@simpleworkjs/bao-conf": "^1.0.0",
"@simpleworkjs/conf": "^1.2.0",
"@simpleworkjs/frontend": "^0.2.7",
"@simpleworkjs/ldap": "^1.0.0",