MVP-5.1 · Production promotion (node, realm, DNS, service file, backups, security gate) #291

Open
opened 2026-09-20 20:19:47 +00:00 by sharang · 1 comment
Owner

Goal

Promote Prüfwerk to production on pruefwerk.breakpilot.com (IMPLEMENTATION_PLAN §4), together with platform/orca-platform and tenant-registry.

Staging-first promotion (decided 2026-09-20). MVP-5 is deliberately last: every workstream lands on pruefwerk-stage and soaks there, and the production node, DNS, realm and service file follow once staging carries the full MVP. The go-live date moves with that gate rather than the other way round. Prod VM sizing is deferred until staging carries the full MVP (decision 2) — do not book hardware before the soak tells us what the workload actually costs.

What to change

  • Book bp-platform-prod.
  • Keycloak realm breakpilot-prod with clients pruefwerk-dashboard-prod / pruefwerk-svc-prod and the audience scope.
  • An A record for pruefwerk.breakpilot.com.
  • services/pruefwerk-prod/service.toml, copied from stage:
    • APP_ENV=production, PW_FEATURES=source_only, semantic mapping on
    • volumes for blobs and snapshots
    • project-scoped secrets
  • Registry plans = the SKU limits (STD 5/50, BUS 25/500, ENT unlimited); live ERPNext wiring.
  • Backups: nightly mongodump to S3, 30 day retention, and one restore drill.
  • Gatus checks for /health, /mcp/health and /docs; SigNoz alerts for entitlement errors, scan failures and outbox backlog.
  • Security gate: cargo audit + semgrep on our own code + a manual isolation/SSRF test pass against stage (extend tests/stage/07_isolation.sh).
  • Pilot:
    • DPA/AVV + TOMs (their code and PLC logic are processed; the LLM runs on the self-hosted llm.breakpilot.com).
    • Pilot tenant + SSO.
    • A dry run of a CODESYS archive + a TIA export + firmwerk push → evidence pack.

Acceptance

  • Staging carries the full MVP and has soaked before any production resource is booked; VM sizing is decided from that soak.
  • The realm, clients, DNS record and service file exist and a production deploy succeeds from :prod-<ver> (MVP-4.2).
  • Registry plans match the SKU limits and are wired to live ERPNext.
  • Nightly backups run and a restore drill has been completed and documented.
  • Gatus is green for 24 h on production; SigNoz alerts fire on test conditions.
  • The security gate passes: cargo audit, semgrep and a manual isolation/SSRF pass against stage.
  • The §13 checklist is ticked with evidence links.
  • The pilot dry run completes end to end, from CODESYS/TIA/firmware to the evidence pack, and is timed.
## Goal Promote Prüfwerk to production on `pruefwerk.breakpilot.com` (IMPLEMENTATION_PLAN §4), together with `platform/orca-platform` and `tenant-registry`. **Staging-first promotion (decided 2026-09-20).** MVP-5 is deliberately last: every workstream lands on `pruefwerk-stage` and soaks there, and the production node, DNS, realm and service file follow once staging carries the full MVP. The go-live date moves with that gate rather than the other way round. **Prod VM sizing is deferred until staging carries the full MVP** (decision 2) — do not book hardware before the soak tells us what the workload actually costs. ## What to change - Book `bp-platform-prod`. - Keycloak realm `breakpilot-prod` with clients `pruefwerk-dashboard-prod` / `pruefwerk-svc-prod` and the audience scope. - An A record for `pruefwerk.breakpilot.com`. - `services/pruefwerk-prod/service.toml`, copied from stage: - `APP_ENV=production`, `PW_FEATURES=source_only`, semantic mapping on - volumes for blobs and snapshots - project-scoped secrets - Registry plans = the SKU limits (STD 5/50, BUS 25/500, ENT unlimited); live ERPNext wiring. - Backups: nightly `mongodump` to S3, 30 day retention, **and one restore drill**. - Gatus checks for `/health`, `/mcp/health` and `/docs`; SigNoz alerts for entitlement errors, scan failures and outbox backlog. - **Security gate:** `cargo audit` + semgrep on our own code + a manual isolation/SSRF test pass against stage (extend `tests/stage/07_isolation.sh`). - **Pilot:** - DPA/AVV + TOMs (their code and PLC logic are processed; the LLM runs on the self-hosted `llm.breakpilot.com`). - Pilot tenant + SSO. - A dry run of a CODESYS archive + a TIA export + `firmwerk push` → evidence pack. ## Acceptance - [ ] Staging carries the full MVP and has soaked before any production resource is booked; VM sizing is decided from that soak. - [ ] The realm, clients, DNS record and service file exist and a production deploy succeeds from `:prod-<ver>` (MVP-4.2). - [ ] Registry plans match the SKU limits and are wired to live ERPNext. - [ ] Nightly backups run and a restore drill has been completed and documented. - [ ] Gatus is green for 24 h on production; SigNoz alerts fire on test conditions. - [ ] The security gate passes: `cargo audit`, semgrep and a manual isolation/SSRF pass against stage. - [ ] The §13 checklist is ticked with evidence links. - [ ] The pilot dry run completes end to end, from CODESYS/TIA/firmware to the evidence pack, and is timed.
sharang added this to the Production MVP milestone 2026-09-20 20:19:47 +00:00
sharang added the criticalinfrastructure labels 2026-09-20 20:19:47 +00:00
Author
Owner

Decision change (2026-09-23): production is booked now instead of after the soak. bp-platform-prod (Hetzner CPX52, 12 vCPU / 24 GB) joins the platform cluster this week, and there is a silent launch (noindex, unannounced) on Fri 2026-09-25. The first pilot (#338) runs on production from Wed 2026-09-30, with a dry run on production on Tue 09-29.

Prepared in orca-platform#27:

  • services/pruefwerk-prod (APP_ENV=production, PW_FEATURES=source_only, agent 3 GiB / 4 CPU, semantic mapping still off because master-controls is not shipped);
  • realm breakpilot-prod;
  • images pinned by digest via scripts/promote.sh (production only ever runs a digest that ran on staging);
  • nightly consistent DB dumps.

Product docs move to docs.breakpilot.com, so there is no pruefwerk-docs-prod service. The dashboard's DOCS_URL points there, and the in-image help-chat docs stay as they are.

Prüfwerk images are promoted after the pilot P0 items land on staging, and again on Tue 09-29 before the dry run.

**Decision change (2026-09-23):** production is booked now instead of after the soak. `bp-platform-prod` (Hetzner CPX52, 12 vCPU / 24 GB) joins the platform cluster this week, and there is a silent launch (noindex, unannounced) on **Fri 2026-09-25**. The first pilot (#338) runs **on production from Wed 2026-09-30**, with a dry run on production on Tue 09-29. Prepared in orca-platform#27: - `services/pruefwerk-prod` (`APP_ENV=production`, `PW_FEATURES=source_only`, agent 3 GiB / 4 CPU, semantic mapping still off because master-controls is not shipped); - realm `breakpilot-prod`; - images pinned by digest via `scripts/promote.sh` (production only ever runs a digest that ran on staging); - nightly consistent DB dumps. Product docs move to docs.breakpilot.com, so there is no `pruefwerk-docs-prod` service. The dashboard's `DOCS_URL` points there, and the in-image help-chat docs stay as they are. Prüfwerk images are promoted after the pilot P0 items land on staging, and again on Tue 09-29 before the dry run.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#291