From e5e07ec0a2a2a1876595fe7cb7fe3ede03c9a9e1 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:12:31 +0100 Subject: [PATCH 1/3] docs(infra): hosting update 2026-11-17, OVH Frankfurt - both clusters on OVHcloud Public Cloud DE1: platform since 2026-10-17, core since the 2026-11-05/06 window; IPs from ovh-tofu - backups to OVH Object Storage since 2026-11-06, portal documents and receipts copied there nightly; Hetzner nbg1 keeps documents, receipts and artefacts - DNS at Hetzner DNS (ovh-tofu/dns), mail at Strato - LiteLLM upstream: OVH AI Endpoints, Gravelines - public SSH and 6880 closed, NetBird for admin and webhooks - flavors, snapshots, volumes and some buckets marked "to confirm" Refs: t74 Co-Authored-By: Claude Opus 5.5 --- INFRASTRUCTURE.md | 114 +++++++++++++++++++++++++++------------------- 1 file changed, 67 insertions(+), 47 deletions(-) diff --git a/INFRASTRUCTURE.md b/INFRASTRUCTURE.md index 75d1fa9..b08e397 100644 --- a/INFRASTRUCTURE.md +++ b/INFRASTRUCTURE.md @@ -1,27 +1,31 @@ # Infrastructure Specification **Status:** As built — production live (silent launch 2026-09-25), first customer pilot 2026-09-30 **Authors:** Sharang, Benjamin -**Date:** 2026-05-11 (topology lock 2026-05-18; cluster split 2026-06-30; revised 2026-09-11; **as-built update 2026-09-29**) +**Date:** 2026-05-11 (topology lock 2026-05-18; cluster split 2026-06-30; revised 2026-09-11; as-built update 2026-09-29; **hosting update 2026-11-17**) **Companion docs:** PLATFORM_ARCHITECTURE.md, IMPLEMENTATION_PLAN.md, COST_PLAN.md, `BreakPilot Infra/Infrastructure Architecture` (both clusters, service catalog, backup runbook) -**Cloud provider:** Hetzner Cloud (EU, Germany) + Hetzner Object Storage (nbg1). DNS and mail at Strato. +**Cloud provider:** OVHcloud Public Cloud, region DE1 (Frankfurt): platform cluster since 2026-10-17, core cluster since the 2026-11-05/06 window. Backups in OVH Object Storage (region DE) since 2026-11-06. Hetzner Object Storage (nbg1) still holds documents, receipts and artefacts. DNS at Hetzner DNS (OpenTofu, `infra/ovh-tofu/dns`); mail at Strato. Language models on OVH AI Endpoints (Gravelines, FR) behind our LiteLLM. --- > **2026-09-29 — as built.** The design of 2026-09-11 stands: the core cluster (`breakpilot`) is company infrastructure only, and the platform cluster (`breakpilot-platform`) carries staging and production on separate VMs. What changed on the way: production is a **CPX42** joined over **WireGuard** (no Hetzner private network), production images are **pinned by digest** and promoted by PR (no prod webhooks), backups on both clusters are **age-encrypted**, customer docs live on `docs[-stage].breakpilot.com`, and staff sign in to `/admin` with their **company account**. Sections 1–5, 8 and 12–14 describe the live state; 6, 7 and 9–11 are the targets they are measured against. +> **2026-11-17 — hosting update.** Both clusters moved from Hetzner Cloud to **OVHcloud Public Cloud, DE1 (Frankfurt)**: the platform cluster on 2026-10-17, the core cluster in the window of 2026-11-05/06 (sign-off 2026-11-06). Node names stayed the same, so every `placement.node` still resolves; the old Hetzner nodes are retired (ovh-tofu #28). The nodes are defined in `infra/ovh-tofu` (OpenTofu), DNS for breakpilot.com/.ai/.de moved from Strato to **Hetzner DNS** (`ovh-tofu/dns`), and mail stays at Strato. Nightly backups go to **OVH Object Storage** (`bp--backups-ovh`, age-encrypted, 30-day lifecycle on platform). The portal documents and Reisekosten receipts are copied into it every night as well. Documents, receipts, Harbor image storage and Gitea packages stay in **Hetzner Object Storage nbg1**. LiteLLM sends model calls to **OVH AI Endpoints** in Gravelines (France); we run no models ourselves. Public SSH and the public orca API port 6880 are closed; admin SSH and deploy webhooks go over **NetBird**. Platform master and agent still talk over WireGuard `wg0` (10.66.0.1/.2). This update changes hosting facts only; values marked *to confirm* are not verified yet. + ## 1. Cluster and VM Inventory ``` ┌──────────────────────┬─────────────────────┬───────┬──────────────────────────────┬─────────────────┬────────────────────────────────┐ │ Node │ Cluster │ Env │ Size │ Public IP │ Role │ ├──────────────────────┼─────────────────────┼───────┼──────────────────────────────┼─────────────────┼────────────────────────────────┤ -│ breakpilot-infra-vm1 │ breakpilot (core) │ core │ 12 vCPU / 22 GB, 451 GB │ 46.225.100.82 │ master · identity, git, images │ -│ ubuntu-16gb-fsn1-1 │ breakpilot (core) │ core │ 8 vCPU / 15 GB, 301 GB │ 178.105.159.224 │ agent · ERP, files, CI runner │ -│ bp-platform-stage │ breakpilot-platform │ stage │ CPX32 4 vCPU / 8 GB, 150 GB │ 178.105.223.117 │ MASTER · all *-stage services │ -│ bp-platform-prod │ breakpilot-platform │ prod │ CPX42 8 vCPU / 16 GB │ 46.225.108.74 │ agent · all *-prod services │ +│ breakpilot-infra-vm1 │ breakpilot (core) │ core │ OVH b3-16 + 100 GB backup vol│ 51.75.95.16 │ master · identity, git, images │ +│ ubuntu-16gb-fsn1-1 │ breakpilot (core) │ core │ OVH r3-32 │ 51.75.88.10 │ agent · ERP, files │ +│ bp-infra-runner-1/-2 │ — (CI runners) │ core │ OVH c3-16 each │ NetBird only │ Gitea Actions runners │ +│ bp-platform-stage │ breakpilot-platform │ stage │ OVH c3-8 │ 51.89.4.55 │ MASTER · all *-stage services │ +│ bp-platform-prod │ breakpilot-platform │ prod │ OVH c3-16 │ 57.129.34.146 │ agent · all *-prod services │ │ (dev) │ — │ dev │ laptop docker-compose │ n/a │ local development │ └──────────────────────┴─────────────────────┴───────┴──────────────────────────────┴─────────────────┴────────────────────────────────┘ -All nodes: Orca 0.3.0-rc.6, Docker, no swap. +All nodes: OVHcloud Public Cloud DE1 (Frankfurt), Ubuntu 24.04, Docker. IPs from ovh-tofu dns/main.tf; flavors from the +ovh-tofu *.tfvars.example files (to confirm against the live state). Orca version after the move: to confirm. ``` **Why this topology** @@ -38,7 +42,7 @@ All nodes: Orca 0.3.0-rc.6, Docker, no swap. ### Core cluster (`sharang/orca-infra`) ``` -breakpilot-infra-vm1 (master, 46.225.100.82) +breakpilot-infra-vm1 (master, 51.75.95.16) keycloak + db auth.breakpilot.com realms: master, breakpilot, breakpilot-stage, breakpilot-prod, breakpilot-dev (legacy) gitea + db git.breakpilot.com (+ SSH :22222) harbor (9 svcs) repo.breakpilot.com projects: breakpilot, pruefwerk, firmwerk, platform, observability, infra, certifai (legacy) @@ -50,21 +54,24 @@ breakpilot-infra-vm1 (master, 46.225.100.82) otel-agent-master, vuln-watch-master [until M-MIG-9] breakpilot-dsms (12 svcs, incl. pitch.breakpilot.com) · compliance-mcp · certifai-mongo -ubuntu-16gb-fsn1-1 (agent, 178.105.159.224) +ubuntu-16gb-fsn1-1 (agent, 51.75.88.10) erpnext stack (9 svcs) erp.breakpilot.com + Frappe CRM + Helpdesk; wired to registry-prod (webhooks, Usage Record) nextcloud + collabora cloud.breakpilot.com, collabora. signoz + clickhouse signoz.breakpilot.com, otel.breakpilot.com element, jitsi, penpot element., meet., design.breakpilot.com kellnr crates.breakpilot.com otel-agent-workhorse, vuln-watch-workhorse - gitea-act-runner (plain container, not Orca) — the ONLY CI runner + gitea-act-runner (plain container, not Orca); whether it still runs next to the OVH runners: to confirm [until M-MIG-9] tenant-registry-dev + db + +bp-infra-runner-1, bp-infra-runner-2 (OVH c3-16, NetBird) + Gitea Actions runners for platform builds (ovh-tofu docs/ci-runners) ``` ### Platform cluster (`platform/orca-platform`) ``` -bp-platform-prod (agent, 46.225.108.74, CPX42 16 GB) ≈ 8.8 GiB committed +bp-platform-prod (agent, 57.129.34.146, OVH c3-16) ≈ 8.8 GiB committed project platform-prod portal-prod app.breakpilot.com 768 MiB tenants /, staff /admin tenant-registry-prod registry.breakpilot.com 512 MiB licences, ERP link (live erp.breakpilot.com) @@ -80,7 +87,7 @@ bp-platform-prod (agent, 46.225.108.74, CPX42 16 GB) ≈ 8.8 GiB firmwerk-mongo-prod internal, volume 512 MiB otel-agent-prod 192 MiB -bp-platform-stage (master, 178.105.223.117, CPX32 8 GB) ≈ 6.5 GiB committed +bp-platform-stage (master, 51.89.4.55, OVH c3-8) ≈ 6.5 GiB committed project platform-stage portal-stage (app-stage.), tenant-registry-stage (registry-stage.), pg-stage, docs-stage (docs-stage.), erpnext-mock-stage (internal, stage only) project pruefwerk-stage dashboard (pruefwerk-stage.), agent 1.25 GiB, mcp (/mcp), docs (/docs), mongo 768 MiB, @@ -100,10 +107,10 @@ Per-service detail (images, memory): `BreakPilot Infra/Infrastructure Architectu → auth.breakpilot.com OIDC, JWKS, admin API (tenant-registry-svc-{env}); staff via the company-realm broker → erp.breakpilot.com ERPNext REST + inbound webhooks (prod only; stage uses the mock) → repo.breakpilot.com image pulls (docker login per node) -→ llm.breakpilot.com LiteLLM (Prüfwerk triage, Werkpilot, portal assistant) +→ llm.breakpilot.com LiteLLM (Prüfwerk triage, Werkpilot, portal assistant) → OVH AI Endpoints, Gravelines (FR) → otel.breakpilot.com traces, logs, metrics → smtp.strato.de noreply@breakpilot.com (registry mails, Keycloak invites) -← git.breakpilot.com CI calls the stage master's signed webhook (stage only) +← git.breakpilot.com CI calls the stage master's signed webhook over NetBird (100.80.221.131:6880; stage only) ``` ### Stage isolation (enforced by the platform, not by product code) @@ -123,11 +130,11 @@ Per-service detail (images, memory): `BreakPilot Infra/Infrastructure Architectu ``` INTERNET - │ (breakpilot.com at Strato — manual A records, no wildcard) + │ (breakpilot.com at Hetzner DNS — OpenTofu, no wildcard) ┌──────────────────────────────┼──────────────────────────────┬──────────────────────────────┐ ┌──────▼──────────────┐ ┌───────────▼──────────┐ ┌───────────────▼───────┐ ┌─────────────▼─────────┐ │ CORE master │ │ CORE workhorse │ │ bp-platform-stage │ wg0 │ bp-platform-prod │ -│ 46.225.100.82 │ │ 178.105.159.224 │ │ 178.105.223.117 │◄──────►│ 46.225.108.74 │ +│ 51.75.95.16 │ │ 51.75.88.10 │ │ 51.89.4.55 │◄──────►│ 57.129.34.146 │ │ auth git repo llm │ │ erp cloud signoz │ │ app-stage registry- │10.66.0.1 10.66.0.2 │ │ secrets status chat │ │ meet design crates │ │ stage pruefwerk-stage │ UDP │ app registry │ │ breakpilot.com │ │ element collabora │ │ firmwerk-stage docs- │ 51820 │ pruefwerk firmwerk │ @@ -137,9 +144,12 @@ Per-service detail (images, memory): `BreakPilot Infra/Infrastructure Architectu Master ↔ agent: WireGuard wg0 only (Orca's agent channel is plain ws:// and carries resolved secrets). The agent announces "bp-platform-prod:6881" → the stage master has /etc/hosts 10.66.0.2 bp-platform-prod. -Firewall - bp-platform-prod (ufw): 22, 80, 443, 51820/udp; everything on wg0; drop the rest. - bp-platform-stage: 22, 80, 443; 6880 reachable for the CI webhook (HMAC-signed); WireGuard peer of prod. +Firewall (OVH security group per cluster + ufw on the node) + public: 80, 443; 51820/udp from the cluster's own nodes only. No public SSH (22) and no public 6880 + since 2026-11-06. + NetBird: admin SSH, the orca agent link on infra, and the deploy webhooks to the stage master + (http://100.80.221.131:6880, HMAC-signed); ufw allows everything on wt0. + wg0: platform master ↔ agent (stage 10.66.0.1, prod 10.66.0.2), unchanged by the move. Ingress (per node, Orca proxy, HTTP-01) prod: app. → portal-prod:3000 · registry. → tenant-registry-prod:8090 · docs. → docs-prod @@ -149,7 +159,7 @@ Ingress (per node, Orca proxy, HTTP-01) Cross-node traffic: Docker networks are node-local; nothing talks stage ↔ prod by design. ``` -DNS at Strato (all set): stage `app-stage`, `registry-stage`, `pruefwerk-stage`, `firmwerk-stage`, `docs-stage` → `178.105.223.117`; prod `app`, `registry`, `pruefwerk`, `firmwerk`, `docs` → `46.225.108.74`. There is no `licence.` host: the licence endpoint is part of the registry. +DNS at Hetzner DNS, managed in `ovh-tofu/dns` (delegated to the Hetzner nameservers; checked 2026-11-17): stage `app-stage`, `registry-stage`, `pruefwerk-stage`, `firmwerk-stage`, `docs-stage` → `51.89.4.55`; prod `app`, `registry`, `pruefwerk`, `firmwerk`, `docs` → `57.129.34.146`. There is no `licence.` host: the licence endpoint is part of the registry. --- @@ -159,17 +169,25 @@ DNS at Strato (all set): stage `app-stage`, `registry-stage`, `pruefwerk-stage`, ┌────────────────────┬──────────────────────────────────────────────────────────┬───────────────────────────┐ │ Node │ Data stores (Docker volumes orca-*) │ Disk │ ├────────────────────┼──────────────────────────────────────────────────────────┼───────────────────────────┤ -│ bp-platform-stage │ pg-stage, pruefwerk-mongo-stage, firmwerk-mongo-stage │ local 150 GB (46 %) │ -│ bp-platform-prod │ pg-prod, pruefwerk-mongo-prod, firmwerk-mongo-prod │ local NVMe; Hetzner │ -│ │ │ Volume when > 60 % │ +│ bp-platform-stage │ pg-stage, pruefwerk-mongo-stage, firmwerk-mongo-stage │ local disk (to confirm) │ +│ bp-platform-prod │ pg-prod, pruefwerk-mongo-prod, firmwerk-mongo-prod │ local disk; block volume │ +│ │ │ when > 60 % (to confirm) │ └────────────────────┴──────────────────────────────────────────────────────────┴───────────────────────────┘ +Object storage (OVH, region DE, s3.de.io.cloud.ovh.net) — backups since 2026-11-06: + s3://bp-platform-backups-ovh nightly backups of the platform cluster (age-encrypted, 30-day lifecycle), + plus objects//: nightly copies of bp-docs-prod and bp-reisekosten-prod + (orca-platform scripts/object-backup.sh, 02:20 UTC on the stage master) + s3://bp-infra-backups-ovh nightly backups of the core cluster (lifecycle set by hand) + s3://bp-infra-archive-ovh last backups of services taken offline at the move (no expiry) + Object storage (Hetzner, nbg1): - s3://bp-platform-backups nightly backups of the platform cluster (age-encrypted, 30 days) s3://bp-docs-stage|prod customer documents ("Unterlagen"), private, 5-minute signed download links - s3://bp-downloads CLI releases + checksums (public read) for /install/{firmwerk,werkpilot} - s3://bp-rag dsms RAG data (moves with dsms) - core: bp-orca-backups, bp-harbor-registry, bp-gitea-packages, bp-kellnr-*, bp-nextcloud + s3://bp-reisekosten-* Reisekosten receipts + s3://bp-downloads CLI releases + checksums (public read) for /install/{firmwerk,werkpilot} (to confirm) + s3://bp-rag dsms RAG data (dsms is offline since the move; to confirm) + core: breakpilot-harbor-registry, bp-gitea-packages (to move to OVH later); bp-kellnr-*, bp-nextcloud (to confirm) + old backups: bp-orca-backups, bp-platform-backups — kept until the OVH buckets hold 30 days (≈ 2026-12-07) ``` **MongoDB and open files:** Docker's default limit of 1024 open files is too low for Prüfwerk's Mongo (one WiredTiger file per collection and index across all tenant databases). The mongo services start through `bash -c "ulimit -n 64000 && exec docker-entrypoint.sh mongod"` (orca has no ulimit setting): staging since 2026-09-28, production with the next promotion. @@ -178,7 +196,7 @@ Object storage (Hetzner, nbg1): ## 5. Backup Requirements -Orca-native backups per cluster: nightly at 03:00, local copy + S3, **age-encrypted** (private key offline in KeePass). Consistent logical dumps (`pg_dumpall`, `mongodump`, `mariadb-dump`) land in each database volume first — through the `pre_hook`s and, on the platform nodes, `scripts/db-dumps.sh` from cron at 02:30. Retention: core 14 days, platform 30 days (staging included). +Orca-native backups per cluster: nightly at 03:00, local copy + OVH Object Storage (since 2026-11-06), **age-encrypted** (private key offline in KeePass). Consistent logical dumps (`pg_dumpall`, `mongodump`, `mariadb-dump`) land in each database volume first — through the `pre_hook`s and, on the platform nodes, `scripts/db-dumps.sh` from cron at 02:30. Retention: core 14 days (to confirm after the move), platform 30 days (staging included). ``` ┌──────────────────────────────┬──────────────────────────┬────────────┬───────────┬────────────────────┐ @@ -193,13 +211,13 @@ Orca-native backups per cluster: nightly at 03:00, local copy + S3, **age-encryp │ pg-prod (tenant-registry) │ pg_dumpall hook + cron │ nightly │ 30 d │ in place; drilled │ │ pruefwerk-mongo-prod │ mongodump hook + cron │ nightly │ 30 d │ in place; drilled │ │ firmwerk-mongo-prod │ mongodump hook + cron │ nightly │ 30 d │ in place │ -│ documents (bp-docs-prod) │ S3 (Hetzner) │ — │ — │ single copy │ +│ documents (bp-docs-prod) │ object-backup.sh → OVH │ nightly │ 30 d │ in place │ │ stage * │ same as prod │ nightly │ 30 d │ in place │ │ Orca config (IaC) │ Gitea │ on commit │ forever │ in place │ └──────────────────────────────┴──────────────────────────┴────────────┴───────────┴────────────────────┘ ``` -**Drills:** `pg-stage` 2026-09-12; production Postgres and Mongo 2026-09-24/25 — both restored into scratch containers. **Open:** the 6-hourly pg-prod dump for RPO ≤ 6 h is not set up yet (nightly only: RPO ≤ 24 h today); a second storage provider (3-2-1); a copy of the uploaded documents outside the bucket. +**Drills:** `pg-stage` 2026-09-12; production Postgres and Mongo 2026-09-24/25 — both restored into scratch containers. Object copy drill: a `bp-reisekosten-prod` snapshot restored into stage 2026-11-06 (`bp-docs-prod` was empty then; drill again once it holds documents). **Open:** the 6-hourly pg-prod dump for RPO ≤ 6 h is not set up yet (nightly only: RPO ≤ 24 h today); a second storage provider for the database backups (3-2-1). No restore drill exists for the managed Gitea instances yet. ### RPO by data criticality (targets) @@ -239,7 +257,7 @@ Constraint types (AVAILABILITY, RTO, RPO, IaC, SECRET_HYGIENE, NETWORK, DATA_RES ║ BACKUP per cluster bucket · IaC all services in Gitea · IMMUTABILITY git → orca deploy║ ║ SECRET_HYGIENE project-scoped Orca secrets, Infisical for signing keys ║ ║ NETWORK per-node ingress, host firewall, WireGuard wg0 for master↔agent ║ -║ DATA_RESIDENCY Hetzner DE · COLD_START ordering (§10 F) · STAGE_ISOLATION (§2) ║ +║ DATA_RESIDENCY DE (OVH FRA, Hetzner nbg1), LLM FR · COLD_START §10 F · STAGE_ISOL. §2 ║ ╚════════════════════════════════════════════════════════════════════════════════════════╝ ``` @@ -315,7 +333,7 @@ Every platform service is declared in `platform/orca-platform`, every core servi ## 9. Dependency Graph ``` - EXTERNAL AI APIs + OVH AI Endpoints (Gravelines, FR) │ (soft) ▼ ┌───────────────────── CORE cluster ─────────────────────────────────────────┐ @@ -337,7 +355,7 @@ Every platform service is declared in `platform/orca-platform`, every core servi └────────────────────────────────────────────────────────────────────────────┘ ``` -Critical path (customer login → product use): Strato DNS → node ingress → portal → Keycloak (core) → tenant-registry → product host → Keycloak (SSO) → product → tenant-registry (`entitlements/check`, cached). +Critical path (customer login → product use): Hetzner DNS → node ingress → portal → Keycloak (core) → tenant-registry → product host → Keycloak (SSO) → product → tenant-registry (`entitlements/check`, cached). --- @@ -348,8 +366,8 @@ Critical path (customer login → product use): Strato DNS → node ingress → Impact: No new logins on either environment (JWTs expire within the access-token TTL); no deploys; no LLM features. Running product sessions continue until token expiry. CLIs keep working on their licence tokens (30-day ladder). ERPNext (workhorse) unaffected. -Recovery: Restore VM / Orca on the core master from Hetzner snapshot + nightly backup. RTO target 15 min. -Mitigation: Hetzner snapshot schedule for the core master; runbook; RISK-1. +Recovery: Restore VM / Orca on the core master from a snapshot + nightly backup. RTO target 15 min. +Mitigation: snapshot schedule for the core master on OVH (to confirm); runbook; RISK-1. ``` ### B — bp-platform-stage (cluster master) fails ``` @@ -363,7 +381,7 @@ Mitigation: RISK-2; consider a small dedicated control VM at Tier B. Impact: All products, portal, registry and licence endpoint down for production. CLIs degrade along the ladder only after 7 days without heartbeat. Recovery: Rebuild from snapshot + nightly backup; re-join; redeploy. RTO 30 min, RPO ≤ 6h for pg-prod. -Mitigation: Hetzner snapshots; tested restore drill (M-MIG-8); RISK-4. +Mitigation: snapshots on OVH (to confirm); tested restore drill (M-MIG-8); RISK-4. ``` ### D — LiteLLM fails: Prüfwerk LLM triage and Werkpilot degrade; scans and CRUD unaffected. Soft. ### E — Stage compromised or buggy: nothing reaches prod (separate VM, realm, secrets, mock ERP). Roll back image. RISK-5. @@ -407,7 +425,7 @@ all (deploy time) │ │ │ │ │ │ ``` RISK-1 Core master is a single VM owning auth, git, image registry and LLM. - → Hetzner snapshot schedule + tested restore; long-term: move Keycloak to its own node. + → snapshot schedule (on OVH: to confirm) + tested restore; long-term: move Keycloak to its own node. Priority: HIGH RISK-2 The staging VM is the platform cluster's only control plane and Orca tokens are cluster-wide. @@ -433,8 +451,9 @@ RISK-6 ERPNext → registry webhooks have no guaranteed delivery. → outbox + RISK-7 Orca project secrets fall back to global secrets. → no platform secrets set globally; prod-secrets.sh checks the project scope. Priority: MEDIUM -RISK-8 Backups are single-provider (encryption solved: age, since orca 0.3.0-rc). - → second S3 provider. Priority: MEDIUM +RISK-8 Database backups sit at the same provider as the databases (OVH; encryption solved: age). + Documents live at Hetzner and are copied to OVH nightly. → second provider for the database + backups. Priority: MEDIUM RISK-9 Orca does not restart a container that exited (OOM kill, crash): it stays down until `orca redeploy`. Seen on staging 2026-09-28 (tenant-registry OOM during uploads, since fixed). @@ -444,10 +463,11 @@ RISK-10 Container defaults: Docker's open-files limit (1024) broke Mongo on stag → ulimit start wrapper on all mongo services (stage done, prod with the next promotion). Priority: HIGH until prod has it, then LOW -RISK-11 One CI runner on the workhorse: serialises all repositories and fills the workhorse disk - (disk-full 2026-09-26). → second runner / own build VM; build-cache pruning. Priority: MEDIUM +RISK-11 CI capacity. Until the move one runner on the workhorse serialised all repositories and filled + its disk (disk-full 2026-09-26). Two OVH runner VMs (bp-infra-runner-1/-2, pruning every 3 h) + now carry the platform builds. → confirm the workhorse runner's role. Priority: LOW–MEDIUM -RISK-12 LiteLLM calls external AI APIs; intermittent 502s slow Prüfwerk's triage on large repositories. +RISK-12 LiteLLM calls OVH AI Endpoints (single upstream); intermittent 502s slow Prüfwerk's triage on large repositories. → fallback routing; triage cap and parallelism (Prüfwerk). Priority: LOW ``` @@ -456,12 +476,12 @@ RISK-12 LiteLLM calls external AI APIs; intermittent 502s slow Prüfwerk's triag ## 13. Growth Trajectory ``` -Tier A (launch, ≤ 50 cust): stage CPX32 + prod CPX42 (today) +Tier A (launch, ≤ 50 cust): stage c3-8 + prod c3-16 on OVH (today; flavors to confirm) next step on prod: 32 GB (browserless for DAST, dsms after M-MIG-9) Tier B (50–200): bump prod flavor (dedicated cores); small control VM as Orca master (RISK-2); - Hetzner Volume for prod data; second S3 provider; second CI runner + block volume for prod data; second provider for the database backups Tier C (200–500): split prod: app node + db node (pg, mongo); Keycloak to its own core node -Tier D (500+): second prod app node (Orca pins per product), Hetzner LB in front +Tier D (500+): second prod app node (Orca pins per product), a load balancer in front ``` Each step is justified by a measurable signal (> 80 % RAM, > 70 % CPU, sustained queue depth, or a specific outage). Never split preemptively. @@ -470,8 +490,8 @@ Each step is justified by a measurable signal (> 80 % RAM, > 70 % CPU, sustained ## 14. Cost summary -See `COST_PLAN.md`. Platform today: stage CPX32 + prod CPX42 + object storage; core cluster unchanged. +See `COST_PLAN.md` (not yet updated for OVH). Platform today: OVH stage + prod nodes, OVH backup storage, Hetzner object storage for documents and artefacts. --- -*End of document. As-built update 2026-09-29; review after the pilot and after any significant infrastructure change.* +*End of document. As-built update 2026-09-29, hosting update 2026-11-17; review after any significant infrastructure change.* -- 2.54.1 From 1eafae708adca26a7d49e0693cb6e73b38f869f6 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:16:28 +0100 Subject: [PATCH 2/3] docs(infra): keep unverified runner facts as before, OVH DE1 label Co-Authored-By: Claude Opus 5.5 --- INFRASTRUCTURE.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/INFRASTRUCTURE.md b/INFRASTRUCTURE.md index b08e397..0885093 100644 --- a/INFRASTRUCTURE.md +++ b/INFRASTRUCTURE.md @@ -18,8 +18,8 @@ │ Node │ Cluster │ Env │ Size │ Public IP │ Role │ ├──────────────────────┼─────────────────────┼───────┼──────────────────────────────┼─────────────────┼────────────────────────────────┤ │ breakpilot-infra-vm1 │ breakpilot (core) │ core │ OVH b3-16 + 100 GB backup vol│ 51.75.95.16 │ master · identity, git, images │ -│ ubuntu-16gb-fsn1-1 │ breakpilot (core) │ core │ OVH r3-32 │ 51.75.88.10 │ agent · ERP, files │ -│ bp-infra-runner-1/-2 │ — (CI runners) │ core │ OVH c3-16 each │ NetBird only │ Gitea Actions runners │ +│ ubuntu-16gb-fsn1-1 │ breakpilot (core) │ core │ OVH r3-32 │ 51.75.88.10 │ agent · ERP, files, CI runner │ +│ bp-infra-runner-1/-2 │ — (CI runners) │ core │ OVH c3-16 each │ to confirm │ Gitea Actions runners │ │ bp-platform-stage │ breakpilot-platform │ stage │ OVH c3-8 │ 51.89.4.55 │ MASTER · all *-stage services │ │ bp-platform-prod │ breakpilot-platform │ prod │ OVH c3-16 │ 57.129.34.146 │ agent · all *-prod services │ │ (dev) │ — │ dev │ laptop docker-compose │ n/a │ local development │ @@ -217,7 +217,7 @@ Orca-native backups per cluster: nightly at 03:00, local copy + OVH Object Stora └──────────────────────────────┴──────────────────────────┴────────────┴───────────┴────────────────────┘ ``` -**Drills:** `pg-stage` 2026-09-12; production Postgres and Mongo 2026-09-24/25 — both restored into scratch containers. Object copy drill: a `bp-reisekosten-prod` snapshot restored into stage 2026-11-06 (`bp-docs-prod` was empty then; drill again once it holds documents). **Open:** the 6-hourly pg-prod dump for RPO ≤ 6 h is not set up yet (nightly only: RPO ≤ 24 h today); a second storage provider for the database backups (3-2-1). No restore drill exists for the managed Gitea instances yet. +**Drills:** `pg-stage` 2026-09-12; production Postgres and Mongo 2026-09-24/25 — both restored into scratch containers. Object copy drill: a `bp-reisekosten-prod` snapshot restored into stage 2026-11-06 (`bp-docs-prod` was empty then; drill again once it holds documents). **Open:** the 6-hourly pg-prod dump for RPO ≤ 6 h is not set up yet (nightly only: RPO ≤ 24 h today); a second storage provider for the database backups (3-2-1). No regular restore checks for the managed Gitea instances yet. ### RPO by data criticality (targets) @@ -257,7 +257,7 @@ Constraint types (AVAILABILITY, RTO, RPO, IaC, SECRET_HYGIENE, NETWORK, DATA_RES ║ BACKUP per cluster bucket · IaC all services in Gitea · IMMUTABILITY git → orca deploy║ ║ SECRET_HYGIENE project-scoped Orca secrets, Infisical for signing keys ║ ║ NETWORK per-node ingress, host firewall, WireGuard wg0 for master↔agent ║ -║ DATA_RESIDENCY DE (OVH FRA, Hetzner nbg1), LLM FR · COLD_START §10 F · STAGE_ISOL. §2 ║ +║ DATA_RESIDENCY DE (OVH DE1, Hetzner nbg1), LLM FR · COLD_START §10 F · STAGE_ISOL. §2 ║ ╚════════════════════════════════════════════════════════════════════════════════════════╝ ``` @@ -465,7 +465,7 @@ RISK-10 Container defaults: Docker's open-files limit (1024) broke Mongo on stag RISK-11 CI capacity. Until the move one runner on the workhorse serialised all repositories and filled its disk (disk-full 2026-09-26). Two OVH runner VMs (bp-infra-runner-1/-2, pruning every 3 h) - now carry the platform builds. → confirm the workhorse runner's role. Priority: LOW–MEDIUM + now carry the platform builds. → confirm the workhorse runner's role. Priority: MEDIUM RISK-12 LiteLLM calls OVH AI Endpoints (single upstream); intermittent 502s slow Prüfwerk's triage on large repositories. → fallback routing; triage cap and parallelism (Prüfwerk). Priority: LOW -- 2.54.1 From 734c3c68e9646c9c351f5947a321b2c52ef1708c Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 17 Nov 2026 09:18:50 +0100 Subject: [PATCH 3/3] docs(infra): backup retention for local copies, S3 and the archive bucket - platform local copies 30 days, infra local copies 3 days - OVH backup objects expire after 30 days, deleted versions 7 days later - bp-infra-archive-ovh: no expiry, DSMS and certifai only, no platform customer data Refs: t74 Co-Authored-By: Claude Opus 5.5 --- INFRASTRUCTURE.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/INFRASTRUCTURE.md b/INFRASTRUCTURE.md index 0885093..d7f8cdf 100644 --- a/INFRASTRUCTURE.md +++ b/INFRASTRUCTURE.md @@ -175,11 +175,13 @@ DNS at Hetzner DNS, managed in `ovh-tofu/dns` (delegated to the Hetzner nameserv └────────────────────┴──────────────────────────────────────────────────────────┴───────────────────────────┘ Object storage (OVH, region DE, s3.de.io.cloud.ovh.net) — backups since 2026-11-06: - s3://bp-platform-backups-ovh nightly backups of the platform cluster (age-encrypted, 30-day lifecycle), + s3://bp-platform-backups-ovh nightly backups of the platform cluster (age-encrypted; objects expire after 30 days, + deleted versions 7 days later), plus objects//: nightly copies of bp-docs-prod and bp-reisekosten-prod (orca-platform scripts/object-backup.sh, 02:20 UTC on the stage master) - s3://bp-infra-backups-ovh nightly backups of the core cluster (lifecycle set by hand) - s3://bp-infra-archive-ovh last backups of services taken offline at the move (no expiry) + s3://bp-infra-backups-ovh nightly backups of the core cluster (lifecycle set by hand; values to confirm) + s3://bp-infra-archive-ovh last backups of the services taken offline at the move (DSMS, certifai); + no expiry; no platform customer data Object storage (Hetzner, nbg1): s3://bp-docs-stage|prod customer documents ("Unterlagen"), private, 5-minute signed download links @@ -196,18 +198,18 @@ Object storage (Hetzner, nbg1): ## 5. Backup Requirements -Orca-native backups per cluster: nightly at 03:00, local copy + OVH Object Storage (since 2026-11-06), **age-encrypted** (private key offline in KeePass). Consistent logical dumps (`pg_dumpall`, `mongodump`, `mariadb-dump`) land in each database volume first — through the `pre_hook`s and, on the platform nodes, `scripts/db-dumps.sh` from cron at 02:30. Retention: core 14 days (to confirm after the move), platform 30 days (staging included). +Orca-native backups per cluster: nightly at 03:00, local copy + OVH Object Storage (since 2026-11-06), **age-encrypted** (private key offline in KeePass). Consistent logical dumps (`pg_dumpall`, `mongodump`, `mariadb-dump`) land in each database volume first — through the `pre_hook`s and, on the platform nodes, `scripts/db-dumps.sh` from cron at 02:30. Retention: local copies 30 days on platform (staging included), 3 days on infra. In OVH Object Storage, platform backups expire after 30 days and deleted versions go 7 days later, so a backup is gone at the latest 37 days after it was made (customer wording: "kept for 30 days and deleted within 7 days after that"). The infra bucket's lifecycle was set by hand (values to confirm). The archive bucket `bp-infra-archive-ovh` has no expiry; it holds only the DSMS and certifai backups, no platform customer data. ``` ┌──────────────────────────────┬──────────────────────────┬────────────┬───────────┬────────────────────┐ │ Data store │ Method │ Frequency │ Retention │ Status │ ├──────────────────────────────┼──────────────────────────┼────────────┼───────────┼────────────────────┤ -│ keycloak-db (core) │ pg_dumpall pre_hook │ nightly │ 14 d │ in place │ +│ keycloak-db (core) │ pg_dumpall pre_hook │ nightly │ 3 d local │ in place │ │ keycloak realm definitions │ orca-platform/keycloak/ │ on change │ git │ in place (partial │ │ │ *.json + scripts │ │ │ export + scripts) │ -│ gitea-db + repos (core) │ pre_hook + volume │ nightly │ 14 d │ in place │ -│ harbor (core) │ db pre_hook; images │ nightly │ 14 d │ in place │ -│ erpnext mariadb (core) │ mariadb-dump pre_hook │ nightly │ 14 d │ in place │ +│ gitea-db + repos (core) │ pre_hook + volume │ nightly │ 3 d local │ in place │ +│ harbor (core) │ db pre_hook; images │ nightly │ 3 d local │ in place │ +│ erpnext mariadb (core) │ mariadb-dump pre_hook │ nightly │ 3 d local │ in place │ │ pg-prod (tenant-registry) │ pg_dumpall hook + cron │ nightly │ 30 d │ in place; drilled │ │ pruefwerk-mongo-prod │ mongodump hook + cron │ nightly │ 30 d │ in place; drilled │ │ firmwerk-mongo-prod │ mongodump hook + cron │ nightly │ 30 d │ in place │ @@ -215,6 +217,8 @@ Orca-native backups per cluster: nightly at 03:00, local copy + OVH Object Stora │ stage * │ same as prod │ nightly │ 30 d │ in place │ │ Orca config (IaC) │ Gitea │ on commit │ forever │ in place │ └──────────────────────────────┴──────────────────────────┴────────────┴───────────┴────────────────────┘ +Retention column: platform rows are 30 days, locally and in S3 (deleted S3 versions go 7 days later). Core rows show the 3-day +local copy; their S3 retention follows the infra bucket's hand-set lifecycle (to confirm). ``` **Drills:** `pg-stage` 2026-09-12; production Postgres and Mongo 2026-09-24/25 — both restored into scratch containers. Object copy drill: a `bp-reisekosten-prod` snapshot restored into stage 2026-11-06 (`bp-docs-prod` was empty then; drill again once it holds documents). **Open:** the 6-hourly pg-prod dump for RPO ≤ 6 h is not set up yet (nightly only: RPO ≤ 24 h today); a second storage provider for the database backups (3-2-1). No regular restore checks for the managed Gitea instances yet. -- 2.54.1