docs(plan): PROD resume note for the Sunday 2026-11-22 run (state, go/no-go, missing inputs, run order, stop rules)
Claude-Session: https://claude.ai/code/session_01GT67AD5mc2BnaaAfY3hqqQ
This commit is contained in:
@@ -9,6 +9,84 @@ tier for the family. Until now `deployment.md` said "no production box has been
|
||||
login since 2026-11-19 (QA window approved that day). Every phase below that touches a prod box needs its own explicit
|
||||
owner go. **LDAP settings for PROD: §3A** (added 2026-11-19 after the DEV and QA cutovers).
|
||||
|
||||
## 0. RESUME HERE: run session planned for Sunday 2026-11-22
|
||||
|
||||
Written 2026-11-20 at the owner's request ("add a note so this plan can be picked up on sunday when i need to run it").
|
||||
Read this section first, then the stage pack README
|
||||
([`docs/deploy/2026-11-19-prod-stage/README.md`](../deploy/2026-11-19-prod-stage/README.md)), then the phase you are on.
|
||||
|
||||
### 0.1 Where things stand (end of 2026-11-20)
|
||||
|
||||
| Item | State |
|
||||
|---|---|
|
||||
| Builds | Chosen and staged, byte-identical to QA: ScadaBridge `2e0ce81e` (`6c706b0a…`), mxgw `e74918cc` (`f0999b75…`), Overview `818775b3` (`25178c5c…`), otelcol 0.162.0, Secrets CLI 0.6.6 (+ SQL build), nssm |
|
||||
| On the boxes (SMB only) | vp03/vp04: `E:\psrem-stage\{prod-common,mxgw-e74918cc,sb-2e0ce81e,otel-54,overview-818775b3}` + `E:\ApiInstall\_tools\secret-0.6.6[-sql]`; par-vp03/04: the same minus `overview-*`, the SQL files and the SQL CLI. Sizes verified per file; zips re-hashed by pull-back |
|
||||
| Executed on any PROD box | **Nothing.** No WinRM command has ever run there (not even `winrm test`); no service, KEK, secret, DB or firewall change |
|
||||
| Pack source | scadaproj `docs/deploy/2026-11-19-prod-stage/` (commits `bfc3690`, `cf447a8`). Edit there, commit, re-push the one changed file + its `SHA256SUMS.txt` |
|
||||
| LDAP decisions | Settled (D-P5–D-P7, §3A.1): `svc_igntadmin`, `HIST_ADMIN_PROD`→Deployer, `RequireHttpsCookie=false` |
|
||||
|
||||
### 0.2 Go / no-go before anything runs on Sunday
|
||||
|
||||
Ask the owner for each of these explicitly; none is implied by the staging requests.
|
||||
|
||||
1. **Remote exec on PROD (Q6).** The winrm profiles `vp03`, `vp04`, `parvp03`, `parvp04` (`NAM\adm_dohertj2`) exist,
|
||||
but the deploy-only WinRM scope still needs an explicit owner go for these boxes. Whether a corporate change ticket is
|
||||
required is also open. The security software tripped on WinRM before: batch on-box steps, stop at the first alert.
|
||||
2. **The PROD deploy hold** (2026-11-17) must be lifted for the phases you run.
|
||||
3. **QA soak gate (Phase 1 step 4): Sunday is BEFORE it is met.** The 3-working-day soak started 2026-11-19, so the
|
||||
earliest pass is 2026-11-24. Running Phases 3–6 on Sunday needs the owner to waive or shorten it, on the record.
|
||||
Check QA first (§0.4 step 1) either way.
|
||||
4. **The mxgw repo script fix (Phase 1 step 1) is still unmerged.** The staged `Upgrade-MxGatewayService.ps1` and
|
||||
`Install-MxGatewayService.ps1` are patched copies (marked `PROD-STAGE PATCH`), so a first install does not need the
|
||||
repo fix. Record that in the deploy record if the owner accepts it.
|
||||
|
||||
### 0.3 Inputs still missing (the install scripts refuse until each is supplied)
|
||||
|
||||
| Needed for | What | Question | Where it goes |
|
||||
|---|---|---|---|
|
||||
| Phase 3, 5 | PROD SQL Server, empty `ScadaBridge` DB, `scadabridge_svc` login (`db_owner`), backup target | Q1 | value files `ScadaBridge__Database__ConfigurationDb.txt` and `Secrets__SqlServer__ConnectionString.txt` |
|
||||
| Phase 4 | Prod Galaxy Repository SQL + alarm area | Q2 | `MxGateway__Galaxy__ConnectionString.txt`; replace `__Q2_ALARM_EXPRESSION__` in `mxgw.env` (`\\<GR node>\Galaxy!<area>`) |
|
||||
| Phase 6 | `SiteId` | Q8 | replace `__Q8_SITE_ID__` in both `appsettings.Site.json.prod-*` |
|
||||
| Phase 2–6 | Firewall: the §4 rows, incl. the Overview rows (5320; centrals → PAR 8084/5130) | Q5 | IT request; `preflight-prod.ps1` shows open / refused / timeout per path |
|
||||
| Phase 4 (PAR) | WinPlatform deployed from the prod Galaxy onto par-vp03/04 (puts MXAccess there) | Q3 | gate: `LmxProxy.dll` 6000.0045.2657.1; until then install mxgw on vp03/vp04 only |
|
||||
| Phase 0 | T6 membership review of the `_PROD` groups; tell the Ignition team about `svc_igntadmin` | — | owner / IT |
|
||||
|
||||
**Generated on the day** (in the Mac Keychain, never in chat, argv or files in the repo; delivered as ACL'd value files
|
||||
and deleted afterwards): ScadaBridge `JwtSigningKey` (≥ 32 chars) and `ApiKeyPepper` (one value each, shared by both
|
||||
centrals); mxgw `ApiKeyPepper` (one shared value for the PAR pair, pattern a; vp03/vp04 own values or shared, record the
|
||||
choice); site `GrpcPsk` and `LocalDb__Replication__ApiKey` (one value each, both site nodes, never equal to each other).
|
||||
`nam-ldap-svc-password` = the `svc_igntadmin` password from Keychain service `btdb-manager/ldap` (the value seeded on DEV
|
||||
and QA; §3A.4). The `dohertj2` login probe password is Keychain `winrm-cli/vq03`. KEK files are generated on the box by
|
||||
the install scripts: `scadabridge.kek` on vp03 only, then carried to vp04 and both PAR boxes with `-KekFrom`.
|
||||
|
||||
### 0.4 Run order for Sunday (each step: dry run first, read it, then real)
|
||||
|
||||
1. **QA health check** (no PROD box involved): QA Overview `http://wonder-app-vq03.zmr.zimmer.com:5320`, all cards Up;
|
||||
no LDAP bind failures in the QA OTel log export since 2026-11-19. If QA is unhealthy, stop.
|
||||
2. **Phase 2 preflight**, all four boxes (read-only):
|
||||
`winrm ps <box> '& E:\psrem-stage\prod-common\preflight-prod.ps1 -SqlHost <Q1> -GrHost <Q2>'`. Gates: rootca + LDAPS
|
||||
ok, greenfield paths/ports free, paths `refused` (not `timeout`), staged hashes ok. Optional:
|
||||
`otel-54\Install-OtelCollector.ps1 -StageDir E:\psrem-stage\otel-54 -Tier PROD -NssmPath E:\psrem-stage\prod-common\nssm.exe`.
|
||||
3. **Phase 3 SQL** (by `sqlcmd -I -b` or a DBA): `sql\scadabridge-schema-2e0ce81e.sql` → gate 65 migrations;
|
||||
`sql\zbsecrets-schema-v1.sql`; `sql\sb-role-mappings-prod.sql` → 5 `_PROD` rows after ids 1–5; first backup.
|
||||
4. **Phase 4 mxgw on vp03, then vp04:** `mxgw-e74918cc\install-mxgw.ps1 -Mode dry -ValuesDir <dir>`, then `-Mode real`;
|
||||
`prod-common\seed-secret-prod.ps1 -Target MxAccessGw -ValueFile <file>`; `nssm start MxAccessGw`; §3A.5 checks; mint
|
||||
client keys (Q4). PAR boxes only after the Q3 gate.
|
||||
5. **Phase 5 centrals:** `sb-2e0ce81e\install-sb.ps1 -Role Central -Mode dry|real -ValuesDir <dir>` on vp03 (generates
|
||||
the KEK), then vp04 with `-KekFrom`; `seed-secret-prod.ps1 -Target ScadaBridge-Central` once on vp03; start vp03, wait
|
||||
for ready 200, start vp04; §3A.5 checks with `dohertj2`.
|
||||
6. **Phase 8a Overview** on vp03 and vp04: `overview-818775b3\install-overview.ps1 -Mode dry`, then `-Mode real -Start`.
|
||||
7. **Phase 6 sites** (needs Q8 + the 8083 paths): Site entity + `SB-GRPC-PSK-<siteId>` on central;
|
||||
`install-sb.ps1 -Role Site` on both PAR boxes with `-KekFrom`; start both together.
|
||||
8. Phases 7–8 (content, consumers, drills) are not for Sunday unless the owner says so.
|
||||
|
||||
**Stop rules:** the first LDAP service-account bind failure (§3A.5; `svc_igntadmin` is Ignition's account); any
|
||||
security-software alert; any `timeout` on a path the phase needs; any dry run that does not match the expected output.
|
||||
Rollback before Phase 7 step 5 = stop and disable the services (§5).
|
||||
|
||||
**Records to write as you go:** `ScadaBridge/docs/deployment/deployment-records/<date>-wonder-app-vp03-vp04-par-vp03-vp04-2e0ce81e.md`,
|
||||
mxgw `docs/deploy/<date>-prod-e74918cc.md`, and the scadaproj deploy folder (Overview, OTel, LDAP).
|
||||
|
||||
## 1. Target topology
|
||||
|
||||
| Host | Role | ScadaBridge | MxAccessGateway |
|
||||
|
||||
Reference in New Issue
Block a user