From 448a68237a21b82dca012456a833aae5987f6bed Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Sun, 12 Jul 2026 20:37:00 +0200 Subject: [PATCH] =?UTF-8?q?hub=20v0.51.0:=20DR-tier-by-default=20=E2=80=94?= =?UTF-8?q?=20per-customer=20dr=5Ftier=20flag=20(default=20ON,=20legacy=20?= =?UTF-8?q?backfill=20from=20reality),=20cascade=20stages,=20WG-registrati?= =?UTF-8?q?on=20auto-provision=20hook,=20offsite-requires-DR=20guard=20(F-?= =?UTF-8?q?6=20policy),=20host-page=20capability=20chips=20(inactive=3Dneu?= =?UTF-8?q?tral)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude-Session: https://claude.ai/code/session_01NptTCFtu7dz2Ru89qHRagN --- REUSE.md | 11 +- hub/CHANGELOG.md | 38 ++++ hub/cmd/hub/main.go | 5 +- hub/internal/api/handler.go | 13 ++ hub/internal/api/wg.go | 7 + hub/internal/store/drtier_backfill_test.go | 112 +++++++++++ hub/internal/store/store.go | 83 +++++++- hub/internal/web/configs.go | 28 ++- hub/internal/web/configs_debug_test.go | 2 +- hub/internal/web/configs_offsite_test.go | 4 +- hub/internal/web/customer_edit_tab_test.go | 3 +- hub/internal/web/drtier_test.go | 189 ++++++++++++++++++ hub/internal/web/hosts.go | 84 ++++++++ hub/internal/web/pbsdr.go | 136 ++++++++++--- hub/internal/web/pbsdr_test.go | 122 ++++++++--- .../web/templates/config_form_body.html | 28 ++- .../web/templates/host_detail_body.html | 40 ++++ hub/internal/web/templates/style.css | 6 + 18 files changed, 824 insertions(+), 87 deletions(-) create mode 100644 hub/internal/store/drtier_backfill_test.go create mode 100644 hub/internal/web/drtier_test.go diff --git a/REUSE.md b/REUSE.md index 8f8463e..b5af5f7 100644 --- a/REUSE.md +++ b/REUSE.md @@ -69,7 +69,7 @@ | `(*Server).configFormData` (v0.49.0) | hub/internal/web/configs.go (~L430) | `(r, isNew, cfg, overrides, errMsg) configFormView` | The ONE view-model builder for the customer config form (standalone chrome + the customer page Edit tab) | `overrides=nil` → parses the STORED cfg.ConfigJSON; pass the SUBMITTED map on the update validation-error re-render or typed values reset (red-proofed). | | `config_form_body` sub-template (v0.49.0) | hub/internal/web/templates/config_form_body.html | `{{template "config_form_body" }}` | Rendering the config form on ANY surface (config_form.html chrome + customer Edit tab) | The floor/geo/danger cards on the Edit tab are SIBLINGS after `` — never nest a form inside it (breaks the offsite/PBS formaction sub-buttons). Includes the F5 in-flight `