From 6f991a85c44119555bfa5e980b84dddc1892bbb7 Mon Sep 17 00:00:00 2001 From: David Santos Date: Thu, 9 Apr 2026 21:54:33 +0000 Subject: [PATCH] docs: add hub runbook index (docs/runbooks/README.md) Pointer-only index of triage, ingest, reporter, SLO, ops, deployment, and reference docs; cross-links to paperclip company runbooks and hub contract. Paperclip-Agent: Bug Squasher (urlKey bug-squasher; id 4669adc7-6368-43ef-bf27-5a601a6b7b83) Paperclip-Issue: BIT-1948 Paperclip-Run: 7d4e556d-80f6-4674-acb6-efdb6c650ae7 --- docs/runbooks/README.md | 64 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 docs/runbooks/README.md diff --git a/docs/runbooks/README.md b/docs/runbooks/README.md new file mode 100644 index 0000000..23ad7c7 --- /dev/null +++ b/docs/runbooks/README.md @@ -0,0 +1,64 @@ +# Hub runbooks — errors.bitreport.pt + +Index of **hub-local** operational docs in this repository (pointers only). Governance, verification, and the company-wide runbook tree live in the **paperclip** meta-repo — see below. + +## Company meta-repo (paperclip) + +- [Company runbook index](https://git.bitreport.pt/BitReport.pt/paperclip/src/branch/main/docs/runbooks/README.md) +- [Error reporting hub contract](https://git.bitreport.pt/BitReport.pt/paperclip/src/branch/main/docs/runbooks/ERROR_REPORTING_HUB_CONTRACT.md) +- [Hub runbook verification](https://git.bitreport.pt/BitReport.pt/paperclip/src/branch/main/docs/runbooks/ERRORS_HUB_RUNBOOK_VERIFICATION.md) + +## Triage + +- [`RUNBOOK_TRIAGE.md`](../RUNBOOK_TRIAGE.md) — triage, fix, deploy, and close incidents on this hub. + +## Ingest + +- [`RUNBOOK_INGEST_DEBUG.md`](../RUNBOOK_INGEST_DEBUG.md) — debug ingest API behaviour and payloads. +- [`operations/ingest-hardening-runbook.md`](../operations/ingest-hardening-runbook.md) — post-deploy validation after ingest hardening / rate-limit changes (BIT-735). + +## Reporter (PHP) — WDMI / Importer + +- [`RUNBOOK_REPORTER_WDMI_FEED_UPLOAD.md`](../RUNBOOK_REPORTER_WDMI_FEED_UPLOAD.md) — feed upload API with no response (`wdmi-store` / `clients.wdmi.pt`). +- [`RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md`](../RUNBOOK_REPORTER_WDMI_FLEXIT_XML.md) — `simplexml_load_file` in Flexit Importer (`wdmi-store`). +- [`RUNBOOK_REPORTER_WDMI_SIMPLEXLS_AUFERMA.md`](../RUNBOOK_REPORTER_WDMI_SIMPLEXLS_AUFERMA.md) — `SimpleXLS` / `_auferma.php` uninitialized string offset. +- [`RUNBOOK_REPORTER_WDMI_CACHE_MKDIR.md`](../RUNBOOK_REPORTER_WDMI_CACHE_MKDIR.md) — `mkdir(): File exists` on Importer cache disk. +- [`RUNBOOK_REPORTER_WDMI_VISIOTECH_STRLEN.md`](../RUNBOOK_REPORTER_WDMI_VISIOTECH_STRLEN.md) — Visiotech / `strlen()` with `null` (PHP 8.1+). + +## Reporter (PHP) — CRM + +- [`RUNBOOK_REPORTER_CRM_VALIDATE_EMAIL_NULL.md`](../RUNBOOK_REPORTER_CRM_VALIDATE_EMAIL_NULL.md) — `Validate::email()` with `null` at login. +- [`RUNBOOK_REPORTER_CRM_USERPROFILE_SANITIZE.md`](../RUNBOOK_REPORTER_CRM_USERPROFILE_SANITIZE.md) — `array_map()` / missing `Sanitize` on user profile. +- [`RUNBOOK_REPORTER_CRM_TASKS_DUE_TIME.md`](../RUNBOOK_REPORTER_CRM_TASKS_DUE_TIME.md) — invalid `due_time` in `crm_tasks`. +- [`RUNBOOK_REPORTER_CRM_LOGGER_MKDIR.md`](../RUNBOOK_REPORTER_CRM_LOGGER_MKDIR.md) — `mkdir(): Permission denied` for Logger. +- [`RUNBOOK_REPORTER_CRM_SQL_LIMIT_QUOTED_NUMERIC.md`](../RUNBOOK_REPORTER_CRM_SQL_LIMIT_QUOTED_NUMERIC.md) — SQL 1064 near quoted numeric in `LIMIT`. +- [`RUNBOOK_REPORTER_CRM_PROCESSMANAGER_VIEW.md`](../RUNBOOK_REPORTER_CRM_PROCESSMANAGER_VIEW.md) — missing ProcessManager dashboard view. +- [`RUNBOOK_REPORTER_CRM_AUTH_PASS_RESET_BASIC.md`](../RUNBOOK_REPORTER_CRM_AUTH_PASS_RESET_BASIC.md) — auth layout / password reset `Closure` string conversion. +- [`RUNBOOK_REPORTER_CRM_VENDOR_CLASSLIST.md`](../RUNBOOK_REPORTER_CRM_VENDOR_CLASSLIST.md) — `classList` on null in vendor bundle. +- [`RUNBOOK_REPORTER_CRM_ERRORMONITORING_VIEW.md`](../RUNBOOK_REPORTER_CRM_ERRORMONITORING_VIEW.md) — missing errormonitoring dashboard view. +- [`RUNBOOK_REPORTER_CRM_DATABASE_MEMORY.md`](../RUNBOOK_REPORTER_CRM_DATABASE_MEMORY.md) — memory exhaustion in `DatabaseManager.php`. + +## Reporter (PHP) — Google / HTTP + +- [`RUNBOOK_REPORTER_GOOGLE_TLS.md`](../RUNBOOK_REPORTER_GOOGLE_TLS.md) — cURL TLS/DNS errors to Google OAuth and APIs. + +## SLO & alerts + +- [`RUNBOOK_SLO.md`](../RUNBOOK_SLO.md) — error monitoring SLO alerts and Prometheus-oriented checks. + +## Operations & observability + +- [`RUNBOOK_OPERATIONS.md`](../RUNBOOK_OPERATIONS.md) — five common operational scenarios on the hub. +- [`RUNBOOK_DEVOPS_IMPORTER_SSH_BIT1044.md`](../RUNBOOK_DEVOPS_IMPORTER_SSH_BIT1044.md) — SSH from Paperclip host to WDMI Importer (BIT-1044). +- [`OBSERVABILITY_PROMETHEUS.md`](../OBSERVABILITY_PROMETHEUS.md) — Prometheus & Grafana for this stack. + +## Deployment + +- [`deployment/bitreport-error-reporting-compose-proxmox.md`](../deployment/bitreport-error-reporting-compose-proxmox.md) — Docker Compose on Proxmox with TLS. +- [`deployment/bitreport-error-reporting-lxc-proxmox.md`](../deployment/bitreport-error-reporting-lxc-proxmox.md) — LXC/systemd deploy without Docker. + +## Reference (contracts & admin) + +- [`HTTP_CONTRACTS.md`](../HTTP_CONTRACTS.md) — HTTP API contracts for this hub. +- [`ADMIN_STATS_API.md`](../ADMIN_STATS_API.md) — `/v1/stats/*` operational statistics. +- [`permission-matrix.md`](../permission-matrix.md) — admin RBAC permission matrix.