deploy(prod): stage the PROD install pack on app-vp03/04 + par-vp03/04 over SMB (nothing executed)

Configs, env templates, install wrappers (dry/real, never start), SQL (65-migration schema, zbsecrets v1, _PROD role rows),
preflight, seed script, patched mxgw Install script (worker name, file KEK, connstr mask). Plan: Phase 3 gate corrected.

Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
This commit is contained in:
Joseph Doherty
2026-11-19 17:26:12 -05:00
parent 7261b18539
commit bfc369062c
22 changed files with 4539 additions and 3 deletions
@@ -1,6 +1,8 @@
# PROD install: ScadaBridge + MxAccessGateway (plan, 2026-11-19)
**State: PLAN ONLY. Nothing has been executed, and no prod box has been touched.** This is the first production
**State: PLAN + STAGED. Nothing has been executed on any prod box.** 2026-11-19: the install pack (builds, configs,
scripts, SQL) was copied to all four boxes over SMB only, at the owner's request; see
[`docs/deploy/2026-11-19-prod-stage/`](../deploy/2026-11-19-prod-stage/README.md). This is the first production
tier for the family. Until now `deployment.md` said "no production box has been identified".
**The DEPLOY HOLD still applies to PROD** (owner, 2026-11-17). DEV and QA have both run the candidate builds with NAM AD
@@ -149,8 +151,9 @@ the prod integration's shape before you assume it matches QA's.
that a full-history `--idempotent` script fails at batch compile.
2. Review it, then run it with `sqlcmd -I -b` (QUOTED_IDENTIFIER, or the filtered indexes fail with Msg 1934)
from a box that has `sqlcmd`, using the service login. Alternatively, a DBA runs it.
3. Gate: 65 rows in `__EFMigrationsHistory`, the `zbauth` schema present (inbound API keys, Auth
`ApiKeys.SqlServer`), and the Secrets SqlServer store tables present.
3. Gate: 65 rows in `__EFMigrationsHistory`. (Correction 2026-11-19: `zbauth` and `zbsecrets` are not EF migrations; the
apps create them at first start. `zbsecrets` is needed earlier, for the §3A.4 seed, so run the staged
`sql\zbsecrets-schema-v1.sql` here; `zbauth` is left to the first central start.)
4. First backup: `COPY_ONLY, CHECKSUM, COMPRESSION` + `VERIFYONLY`.
5. Insert the `_PROD` role rows by SQL (§3A.3). Gate: the rows read back; ids 1–5 (`SCADA-*`) untouched.