hub v0.73.1: REPORT — appended (allowlist disk_health_degraded, 400→200 live proof)

This commit is contained in:
2026-07-24 21:41:10 +02:00
parent 5902703dda
commit ae42bb5978
+29
View File
@@ -1,3 +1,32 @@
# REPORT — hub v0.73.1: allowlist `disk_health_degraded` (2026-07-24)
Part of the disk-health train (agent v0.94.0 + controller v0.169.0/.1 + hub v0.73.1). Appended above
the previous report (kept below).
**Baseline:** felhom.eu `be9edb4` → code `19dbb02` (allowlist) → manifest `5902703` (deploy). Clean at start.
**Change:** added `"disk_health_degraded": true` to `allowedEventTypes` (`hub/internal/api/handler.go`)
so the controller v0.169.0 per-disk SMART degradation notification is ingested, not 400-rejected. Like
`offbox_enlarge_blocked`, **no `customerMessages` entry** — the controller sends a dynamic Hungarian
message (disk label + attribute names) that the `FormatCustomerEmail` fallback preserves; a static entry
would discard the specifics. Test `TestHandleEvent_DiskHealthDegradedAccepted`; red-proof: drop the
allowlist line → 400 (confirmed). Full hub suite: 17 packages pass, 0 fail; build + vet clean.
**Deploy (GitOps):** built `felhom-hub:0.73.1` (digest `79dc3082…`), bumped `manifests/hub.yaml` tag,
ArgoCD sync → **Synced/Healthy**, pod `hub-59857b486f-hzw48` running `:0.73.1`, clean startup.
**§13(3) end-to-end notification proof (the exact `/api/v1/event` POST the controller's notifier makes,
customer `demo-felhom`, via curl — no committed fixture):**
- **BEFORE (v0.73.0):** `400 Invalid event_type: disk_health_degraded` — the allowlist was genuinely
required (without it the customer's disk-degradation email is silently dropped).
- **AFTER (v0.73.1):** `200 {"ok":true}`; hub log: `Event from demo-felhom: disk_health_degraded
(warning) — Lemez állapot romlás: teszt-lemez — romló érték: függőben lévő szektorok` and **`Operator
email sent for demo-felhom/disk_health_degraded`** → hub accepted + dispatched through the Resend
notification pipeline. Nothing to revert (curl only); the demo's real disks are all "Nincs adat", so
normal operation stays quiet.
---
# REPORT — ISO train v1.25.0 + hub v0.73.0 (2026-07-23)
**Task:** the four-ruling ISO train (F9 belt-everywhere, apt no-subscription, R-63 console ő/ű,