[Auth] Execute the VD03 NAM AD LDAP cutover, then QA (plan never executed) #6

Open
opened 2026-11-06 15:24:40 -05:00 by dohertj2 · 4 comments
Owner

What: cut the logins of four family apps over to the real NAM Active Directory: OtOpcUa (AdminUI), ScadaBridge (CentralUI and CLI), MxAccessGateway (dashboard) and HistorianGateway (dashboard). Do DEV vd03 first, soak, then QA vq03/vq04. Overview is exempt (it has no login).

Plan (current): docs/plans/2026-11-15-nam-ldap-cutover.md. It replaces the 2026-08-13 plan, which is now a pointer. It has been reviewed independently (see its §11). Mapping matrix: ldap_mapping.md.

Family standards (decided 2026-11-15):

  • One AD group grants exactly one role per app.
  • No role, no login: every app refuses sign-in, both the cookie and the token, when the user's groups map to no role.

Code prerequisites, each shipped before that app's cutover:

  • lmxopcua#913: OtOpcUa passes FallbackServers, BindMode and the related fields through, refuses users with no role, injects the library logger, and validates without breaking DEV boot (Phase A).
  • ScadaBridge#144: refuse users with no role at /auth/login and /auth/token (Phase A2).
  • historiangw#136 (optional): make the GroupToRole match case-insensitive (Phase A3).

Owner and IT prerequisites (plan §5, D1–D7):

  • scadaproj#58: a dedicated, shared LDAP-lookup service account with a no-lockout policy. Required for QA. On DEV, svc_igntadmin is the interim, with the Ignition team's agreement (D1).
  • D2: turn login on in DEV for HG, mxgw (mxaccessgw#231 item 3) and ScadaBridge.
  • D3: an automation identity for the CLI, deploy scripts and drills. Required on DEV and on QA.
  • D4: TLS. Install zimmer-rootca; AllowInsecure only as a DEV stopgap.
  • D6: new UG_WW_APP_DEPLOY_{DEV,QA} groups. ScadaBridge Deployer has no other source, so the ScadaBridge step needs them.
  • D7: confirm group membership for each person with ldapprobe --self-bind.

Runbook (once the above are done): Phase 0 preflight, under deploy scope, on each box. Then DEV in this order: HistorianGateway (the canary), mxgw, ScadaBridge, OtOpcUa. Soak, then QA in the same order, restarting the standby first. Stop if the service account fails to log in twice within 15 minutes, across all apps.

Status: plan only; nothing executed. Every deployed build already has Auth ≥ 0.4.1 (ScadaBridge 0.5.0), so the old Auth 0.2.1 redeploy phase is gone.

**What:** cut the logins of four family apps over to the real NAM Active Directory: OtOpcUa (AdminUI), ScadaBridge (CentralUI and CLI), MxAccessGateway (dashboard) and HistorianGateway (dashboard). Do DEV vd03 first, soak, then QA vq03/vq04. Overview is exempt (it has no login). **Plan (current):** [`docs/plans/2026-11-15-nam-ldap-cutover.md`](https://gitea.dohertylan.com/dohertj2/scadaproj/src/branch/main/docs/plans/2026-11-15-nam-ldap-cutover.md). It replaces the 2026-08-13 plan, which is now a pointer. It has been reviewed independently (see its §11). Mapping matrix: [`ldap_mapping.md`](https://gitea.dohertylan.com/dohertj2/scadaproj/src/branch/main/ldap_mapping.md). **Family standards (decided 2026-11-15):** - One AD group grants exactly one role per app. - No role, no login: every app refuses sign-in, both the cookie and the token, when the user's groups map to no role. **Code prerequisites, each shipped before that app's cutover:** - [ ] lmxopcua#913: OtOpcUa passes FallbackServers, BindMode and the related fields through, refuses users with no role, injects the library logger, and validates without breaking DEV boot (Phase A). - [ ] ScadaBridge#144: refuse users with no role at `/auth/login` and `/auth/token` (Phase A2). - [ ] historiangw#136 (optional): make the GroupToRole match case-insensitive (Phase A3). **Owner and IT prerequisites (plan §5, D1–D7):** - [ ] scadaproj#58: a dedicated, shared LDAP-lookup service account with a no-lockout policy. Required for QA. On DEV, `svc_igntadmin` is the interim, with the Ignition team's agreement (D1). - [ ] D2: turn login on in DEV for HG, mxgw (mxaccessgw#231 item 3) and ScadaBridge. - [ ] D3: an automation identity for the CLI, deploy scripts and drills. Required on DEV and on QA. - [ ] D4: TLS. Install `zimmer-rootca`; `AllowInsecure` only as a DEV stopgap. - [ ] D6: new `UG_WW_APP_DEPLOY_{DEV,QA}` groups. ScadaBridge Deployer has no other source, so the ScadaBridge step needs them. - [ ] D7: confirm group membership for each person with `ldapprobe --self-bind`. **Runbook (once the above are done):** Phase 0 preflight, under deploy scope, on each box. Then DEV in this order: HistorianGateway (the canary), mxgw, ScadaBridge, OtOpcUa. Soak, then QA in the same order, restarting the standby first. Stop if the service account fails to log in twice within 15 minutes, across all apps. **Status:** plan only; nothing executed. Every deployed build already has Auth ≥ 0.4.1 (ScadaBridge 0.5.0), so the old Auth 0.2.1 redeploy phase is gone.
dohertj2 added the type:deploy-gatepriority:p2cross-repomigrated labels 2026-11-06 15:24:40 -05:00
dohertj2 added the blocked label 2026-11-10 08:43:46 -05:00
Author
Owner

2026-11-15: plan rewritten and reviewed; issue body updated. The new plan is docs/plans/2026-11-15-nam-ldap-cutover.md. Corrections from the old plan:

  • the deployed builds already meet the Auth prerequisite;
  • servecli is replaced by the winrm deploy scope;
  • DEV mxgw has login off, not on;
  • the old ScadaBridge SQL failed on the unique LdapGroupName index;
  • OtOpcUa silently dropped FallbackServers.

The independent review then found two blockers, both now in the plan as code phases:

  • OtOpcUa and ScadaBridge signed in users with no mapped role (lmxopcua#913, ScadaBridge#144);
  • the first OtOpcUa fix would have broken DEV boot.

Filed today: lmxopcua#913, ScadaBridge#144, historiangw#136 and scadaproj#58.

**2026-11-15: plan rewritten and reviewed; issue body updated.** The new plan is `docs/plans/2026-11-15-nam-ldap-cutover.md`. Corrections from the old plan: - the deployed builds already meet the Auth prerequisite; - servecli is replaced by the winrm deploy scope; - DEV mxgw has login **off**, not on; - the old ScadaBridge SQL failed on the unique `LdapGroupName` index; - OtOpcUa silently dropped `FallbackServers`. The independent review then found two blockers, both now in the plan as code phases: - OtOpcUa and ScadaBridge signed in users with no mapped role (lmxopcua#913, ScadaBridge#144); - the first OtOpcUa fix would have broken DEV boot. Filed today: lmxopcua#913, ScadaBridge#144, historiangw#136 and scadaproj#58.
Author
Owner

Follow-up filed: ScadaBridge#145, the management API HTTP Basic / Bearer path still admits zero-role users. Fix it before the ScadaBridge cutover step (plan §7.4).

Follow-up filed: ScadaBridge#145, the management API HTTP Basic / Bearer path still admits zero-role users. Fix it before the ScadaBridge cutover step (plan §7.4).
Author
Owner

DEV vd03 cut over to NAM AD — 2026-11-19 (plan §0, today's groups and accounts). QA not started; the QA hold stands.

  • ScadaBridge 2e0ce81e (#144 + #145) deployed to vd03 first (binary-only, no migration).
  • All four apps sign in against NAM over LDAPS (nam1, with nam2 as fallback), bound as svc_igntadmin, password from ${secret:nam-ldap-svc-password} in each app's store. zimmer-rootca was already trusted on vd03, so AllowInsecure=false (D4 settled for DEV).
  • dohertj2 signs in to HG, mxgw, ScadaBridge (UI, /auth/token, CLI) and OtOpcUa (UI, /auth/token). Bogus users are refused everywhere. Zero-role refusal was proven live on ScadaBridge (before the rows existed) and on HG.
  • ScadaBridge Deployer on DEV comes from UG_WW_HIST_ADMIN_DEV (interim until D6's UG_WW_APP_DEPLOY_DEV exists).
  • No service-account bind failures.
  • DC-failover checks (§7.6 step 5, A2) dropped by owner instruction.
  • New QA prerequisite: OtOpcUa's auth cookie is Secure-only by default, so the AdminUI login loops on plain HTTP. vd03 now has Security__Cookie__RequireHttpsCookie=false, like the other apps there.

Record: docs/deploy/2026-11-19-vd03-nam-ldap/README.md (c80d5e7); ScadaBridge record 98a8df1f.

DEV items done: lmxopcua#913, ScadaBridge#144/#145 and historiangw#136 deployed on vd03; D2 (login on in DEV); D3 interim (dohertj2); D4 (DEV); D7 (DEV members re-enumerated). Still open: scadaproj#58 (D1 for QA), D3 and D6 for QA, and the soak.

**DEV vd03 cut over to NAM AD — 2026-11-19** (plan §0, today's groups and accounts). QA not started; the QA hold stands. - ScadaBridge `2e0ce81e` (#144 + #145) deployed to vd03 first (binary-only, no migration). - All four apps sign in against NAM over LDAPS (nam1, with nam2 as fallback), bound as `svc_igntadmin`, password from `${secret:nam-ldap-svc-password}` in each app's store. `zimmer-rootca` was already trusted on vd03, so `AllowInsecure=false` (D4 settled for DEV). - `dohertj2` signs in to HG, mxgw, ScadaBridge (UI, `/auth/token`, CLI) and OtOpcUa (UI, `/auth/token`). Bogus users are refused everywhere. Zero-role refusal was proven live on ScadaBridge (before the rows existed) and on HG. - ScadaBridge Deployer on DEV comes from `UG_WW_HIST_ADMIN_DEV` (interim until D6's `UG_WW_APP_DEPLOY_DEV` exists). - No service-account bind failures. - DC-failover checks (§7.6 step 5, A2) dropped by owner instruction. - New QA prerequisite: OtOpcUa's auth cookie is Secure-only by default, so the AdminUI login loops on plain HTTP. vd03 now has `Security__Cookie__RequireHttpsCookie=false`, like the other apps there. Record: `docs/deploy/2026-11-19-vd03-nam-ldap/README.md` (`c80d5e7`); ScadaBridge record `98a8df1f`. DEV items done: lmxopcua#913, ScadaBridge#144/#145 and historiangw#136 deployed on vd03; D2 (login on in DEV); D3 interim (`dohertj2`); D4 (DEV); D7 (DEV members re-enumerated). Still open: scadaproj#58 (D1 for QA), D3 and D6 for QA, and the soak.
Author
Owner

QA vq03/vq04 cut over 2026-11-19 15:29–16:10 EST (plan §0Q, one window): HG f84af29, mxgw e74918cc, ScadaBridge 2e0ce81e, OtOpcUa cdf433a3 (DEV builds) and NAM AD login (svc_igntadmin interim, ${secret:nam-ldap-svc-password}) on all four apps on both boxes. dohertj2 signs in everywhere with the expected roles; bogus and GLAuth multi-role refused; zero service-bind warnings. Outages: HG/mxgw seconds per box, ScadaBridge site path ~2m17s / central API ~55s, OtOpcUa pair ~56s (vq04 Primary 250, vq03 Standby 90). Record: docs/deploy/2026-11-19-qa-nam-ldap/ (9789b01); ScadaBridge record 9109e4e9. Follow-up: the headless Secrets CLI cannot write the SQL Server store (one-off build used for ScadaBridge Central).

QA vq03/vq04 cut over 2026-11-19 15:29–16:10 EST (plan §0Q, one window): HG f84af29, mxgw e74918cc, ScadaBridge 2e0ce81e, OtOpcUa cdf433a3 (DEV builds) and NAM AD login (svc_igntadmin interim, `${secret:nam-ldap-svc-password}`) on all four apps on both boxes. dohertj2 signs in everywhere with the expected roles; bogus and GLAuth multi-role refused; zero service-bind warnings. Outages: HG/mxgw seconds per box, ScadaBridge site path ~2m17s / central API ~55s, OtOpcUa pair ~56s (vq04 Primary 250, vq03 Standby 90). Record: `docs/deploy/2026-11-19-qa-nam-ldap/` (9789b01); ScadaBridge record 9109e4e9. Follow-up: the headless Secrets CLI cannot write the SQL Server store (one-off build used for ScadaBridge Central).
Sign in to join this conversation.