[Secrets][Auth] Bring the ignitionoee router up to family pins (Secrets 0.2.3, Auth 0.1.5) #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What: The ignitionoee router (the uncounted fifth family consumer) lags the family on two security-relevant shared libraries. Bump it, or record an explicit decision.
Current state (verified 2026-11-06, ignitionoee
origin/main@1a3e6d12):ZB.MOM.WW.Secrets+.Ui0.2.3— the family minimum is0.6.1+ (never0.6.0), with the 4-argAddZbSecrets(..., contentRootPath)overload at every pre-host${secret:}expander call site.0.2.3predates the fail-closed store-path validation (absolute AND outside the content root) whose absence caused the 2026-08-09 mxgw outage (store recreated inside the content root and wiped by an upgrade). The pin bump alone does not close the hole; the 4-arg call does.ZB.MOM.WW.Auth.*0.1.5— cannot log in against an AD domain root (continuation referrals; fixed in0.2.1). LDAP for the router is ON HOLD (2026-08-13 decision), so this is lower urgency than Secrets.0.5.0, Health0.3.0, Audit0.1.0, Telemetry.Serilog0.1.0.Why here: cross-repo family-rollout tracking. The work itself lands in the ignitionoee repo.
Source:
CLAUDE.md(Component normalization → Secrets row); auto-memory notes on Secrets rollout (2026-08-12: router on 0.2.3 "with the exact outage shape and no guard")Done — ignitionoee
main@2b8ff324(fast-forward from1a3e6d12).Pins (verified on the Gitea feed):
ZB.MOM.WW.Secrets+.Ui0.2.3 → 0.6.2;ZB.MOM.WW.Auth.{Abstractions,ApiKeys,AspNetCore,Ldap}0.1.5 → 0.3.0. These match the four family apps. Auth needed no code change. Others are unchanged (Theme 0.5.0, Health 0.3.0, Audit 0.1.0, Telemetry.Serilog 0.1.0).Call sites. Both pre-host
${secret:}expander sites now use the 4-argAddZbSecrets(config, "Secrets", contentRoot):Program.cs, withbuilder.Environment.ContentRootPathApiKeyCli.cs, with the CLI's content rootThe host-container call passes the content root too.
Config.
appsettings.jsonno longer setsSecrets:SqlitePath. The old value wasdata/oee-secrets.db, which is relative and inside the content root: the outage shape. When the key is unset, the router uses its own absolute default outside the install:%ProgramData%\ZB.MOM.Oee\oee-secrets.db~/Library/Application Support/ZB.MOM.Oee/oee-secrets.db~/.local/share/ZB.MOM.Oee/oee-secrets.dbThe default sits at the lowest precedence in
Program.AddJsonSources. I didn't use the library's own default (ZB.MOM.WW/secrets.db) because every family app on the same account shares that file, each with a different master key.Docker rig. The
oee-router-datavolume is now also mounted at/data, and the compose file setsSecrets__SqlitePath=/data/oee-secrets.db. The existing store carries over (this is the documented 0.6.1 container workaround).Evidence
SecretsStorePathGuardTests(5 tests):a store was created at the rejected path: …/ZB.MOM.Oee.Host/secrets-guard-probe-…/oee-secrets.db⚠ Human step needed before deploying this build to
OeeRouter(IGNTN-INT-VP01) — I did not do this; I had no access to the box:appsettings.jsonis never shipped in the zip, so it still has"SqlitePath": "data/oee-secrets.db". The new build will refuse to boot on it. A refused boot creates no file, so nothing is lost, but the service stays down.OeeRouter.F:\apps\ignitionrouter\data\oee-secrets.db(and any-wal/-shm) to a directory outside the install, e.g.F:\apps\ignitionrouter-data\orC:\ProgramData\ZB.MOM.Oee\.Secrets__SqlitePath=<absolute path>to the service's registryEnvironmentvalue. Alternatively, delete the key from the box'sappsettings.jsonand use the ProgramData default.router/src/ZB.MOM.Oee.Host/data/oee-secrets.dbis no longer read. Move it to the default path, or setSecrets__SqlitePath.Not changed, possible follow-up: the inbound API-key store (
Oee:InboundApi:ApiKeyStore:SqlitePath = data/oee-inbound-api-keys.sqlite) has the same inside-the-install shape. Auth has no path guard, so it still boots. That file was the main cause of the 2026-09-23 19-minute 401 incident.