From fca706c9bb5b36bd46a402959112f04d1a958c7c Mon Sep 17 00:00:00 2001 From: Sbhayana Date: Mon, 30 Nov 2026 20:19:11 +0000 Subject: [PATCH 1/3] Add Zammad support desk config and support.ssw590 HTTPS probe (closes #22) --- monitoring/grafana/dashboards/ssw590-ops.json | 1257 +++++++++-------- monitoring/prometheus/prometheus.yml | 2 + support/Caddyfile.support | 3 + support/README.md | 28 + support/env.example | 15 + support/sysctl-99-zammad.conf | 1 + 6 files changed, 741 insertions(+), 565 deletions(-) create mode 100644 support/Caddyfile.support create mode 100644 support/README.md create mode 100644 support/env.example create mode 100644 support/sysctl-99-zammad.conf diff --git a/monitoring/grafana/dashboards/ssw590-ops.json b/monitoring/grafana/dashboards/ssw590-ops.json index bf2f666..6273d71 100644 --- a/monitoring/grafana/dashboards/ssw590-ops.json +++ b/monitoring/grafana/dashboards/ssw590-ops.json @@ -1,568 +1,695 @@ { - "uid": "ssw590-ops", - "title": "SSW590 Startup Operations", - "tags": [ - "ssw590", - "sre" - ], - "timezone": "America/New_York", - "time": { - "from": "now-6h", - "to": "now" - }, - "refresh": "30s", - "schemaVersion": 41, - "version": 1, - "editable": true, - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "panels": [ - { - "id": 1, - "type": "timeseries", - "title": "Droplet CPU utilization (%)", - "description": "Whole-droplet CPU busy %, averaged across all CPUs: 100 x (1 - idle rate). node_cpu_seconds_total is a counter, so rate() is used, never the raw total.", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "gridPos": { - "x": 0, - "y": 0, - "w": 12, - "h": 8 - }, - "targets": [ - { - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "expr": "100 * (1 - avg(rate(node_cpu_seconds_total{job=\"node\",mode=\"idle\"}[$__rate_interval])))", - "legendFormat": "CPU busy %" - } - ], - "fieldConfig": { - "defaults": { - "unit": "percent", - "custom": { - "lineWidth": 2, - "fillOpacity": 10, - "showPoints": "never", - "thresholdsStyle": { - "mode": "line" - } - }, - "min": 0, - "max": 100, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "orange", - "value": 70 - }, - { - "color": "red", - "value": 90 - } - ] - } - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi" - } - } + "uid": "ssw590-ops", + "title": "SSW590 Startup Operations", + "tags": [ + "ssw590", + "sre" + ], + "timezone": "America/New_York", + "time": { + "from": "now-6h", + "to": "now" + }, + "refresh": "30s", + "schemaVersion": 41, + "version": 2, + "editable": true, + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" }, - { - "id": 2, - "type": "timeseries", - "title": "Available host memory (bytes)", - "description": "MemAvailable: kernel estimate of memory available to applications without swapping (not just unused RAM). Unit: bytes (IEC). Host total is about 961 MiB.", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "gridPos": { - "x": 12, - "y": 0, - "w": 12, - "h": 8 - }, - "targets": [ - { - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "expr": "node_memory_MemAvailable_bytes{job=\"node\"}", - "legendFormat": "MemAvailable" - } - ], - "fieldConfig": { - "defaults": { - "unit": "bytes", - "custom": { - "lineWidth": 2, - "fillOpacity": 10, - "showPoints": "never", - "thresholdsStyle": { - "mode": "line" - } - }, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "orange", - "value": 104857600 - }, - { - "color": "green", - "value": 209715200 - } - ] - } - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "id": 3, - "type": "timeseries", - "title": "Root filesystem free space (%)", - "description": "Available bytes / size bytes for the verified host root filesystem only (/dev/vda1, ext4, mounted at /). /boot, /boot/efi, overlay and pseudo filesystems are excluded. Alert line at 15%.", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "gridPos": { - "x": 0, - "y": 8, - "w": 12, - "h": 8 - }, - "targets": [ - { - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "expr": "100 * node_filesystem_avail_bytes{device=\"/dev/vda1\",fstype=\"ext4\",mountpoint=\"/\",job=\"node\"} / node_filesystem_size_bytes{device=\"/dev/vda1\",fstype=\"ext4\",mountpoint=\"/\",job=\"node\"}", - "legendFormat": "/ free %" - } - ], - "fieldConfig": { - "defaults": { - "unit": "percent", - "custom": { - "lineWidth": 2, - "fillOpacity": 10, - "showPoints": "never", - "thresholdsStyle": { - "mode": "line" - } - }, - "min": 0, - "max": 100, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "orange", - "value": 15 - }, - { - "color": "green", - "value": 25 - } - ] - } - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "id": 4, - "type": "timeseries", - "title": "Gitea HTTPS availability (probe_success)", - "description": "Blackbox http_2xx probe of the Gitea login page through Caddy: DNS, valid TLS, redirects followed, final 2xx. 1 = UP, 0 = DOWN.", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "gridPos": { - "x": 12, - "y": 8, - "w": 12, - "h": 8 - }, - "targets": [ - { - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "expr": "probe_success{job=\"https\",instance=\"https://git.ssw590.abrdns.com/user/login\"}", - "legendFormat": "Gitea" - } - ], - "fieldConfig": { - "defaults": { - "unit": "none", - "custom": { - "lineWidth": 2, - "fillOpacity": 10, - "showPoints": "never", - "thresholdsStyle": { - "mode": "line" - }, - "lineInterpolation": "stepAfter" - }, - "min": 0, - "max": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 1 - } - ] - }, - "mappings": [ - { - "type": "value", - "options": { - "0": { - "text": "DOWN", - "color": "red" - }, - "1": { - "text": "UP", - "color": "green" - } - } - } - ] - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "id": 5, - "type": "timeseries", - "title": "Jenkins HTTPS availability (probe_success)", - "description": "Blackbox http_2xx probe of the Jenkins login page through Caddy. 1 = UP, 0 = DOWN. Login-page success does not prove a working build.", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "gridPos": { - "x": 0, - "y": 16, - "w": 12, - "h": 8 - }, - "targets": [ - { - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "expr": "probe_success{job=\"https\",instance=\"https://ci.ssw590.abrdns.com/login\"}", - "legendFormat": "Jenkins" - } - ], - "fieldConfig": { - "defaults": { - "unit": "none", - "custom": { - "lineWidth": 2, - "fillOpacity": 10, - "showPoints": "never", - "thresholdsStyle": { - "mode": "line" - }, - "lineInterpolation": "stepAfter" - }, - "min": 0, - "max": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 1 - } - ] - }, - "mappings": [ - { - "type": "value", - "options": { - "0": { - "text": "DOWN", - "color": "red" - }, - "1": { - "text": "UP", - "color": "green" - } - } - } - ] - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "id": 6, - "type": "timeseries", - "title": "HTTPS probe duration (seconds)", - "description": "Total Blackbox probe time per service (DNS + connect + TLS + HTTP), one line per service.", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "gridPos": { - "x": 12, - "y": 16, - "w": 12, - "h": 8 - }, - "targets": [ - { - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "expr": "probe_duration_seconds{job=\"https\",instance=\"https://git.ssw590.abrdns.com/user/login\"}", - "legendFormat": "Gitea" - }, - { - "refId": "B", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "expr": "probe_duration_seconds{job=\"https\",instance=\"https://ci.ssw590.abrdns.com/login\"}", - "legendFormat": "Jenkins" - } - ], - "fieldConfig": { - "defaults": { - "unit": "s", - "custom": { - "lineWidth": 2, - "fillOpacity": 10, - "showPoints": "never", - "thresholdsStyle": { - "mode": "line" - } - }, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "orange", - "value": 1 - }, - { - "color": "red", - "value": 5 - } - ] - } - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "id": 7, - "type": "timeseries", - "title": "Scrape health (up)", - "description": "Collection health: 1 = Prometheus scraped the target. For the https job, up=1 only means the probe ran; probe_success shows whether the site answered.", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "gridPos": { - "x": 0, - "y": 24, - "w": 24, - "h": 7 - }, - "targets": [ - { - "refId": "A", - "datasource": { - "type": "prometheus", - "uid": "dg2y8czei4y68b" - }, - "expr": "up", - "legendFormat": "{{job}} {{instance}}" - } - ], - "fieldConfig": { - "defaults": { - "unit": "none", - "custom": { - "lineWidth": 2, - "fillOpacity": 10, - "showPoints": "never", - "thresholdsStyle": { - "mode": "line" - }, - "lineInterpolation": "stepAfter" - }, - "min": 0, - "max": 1, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 1 - } - ] - }, - "mappings": [ - { - "type": "value", - "options": { - "0": { - "text": "DOWN", - "color": "red" - }, - "1": { - "text": "UP", - "color": "green" - } - } - } - ] - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi" - } - } - } + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } ] -} + }, + "panels": [ + { + "id": 1, + "type": "timeseries", + "title": "Droplet CPU utilization (%)", + "description": "Whole-droplet CPU busy %, averaged across all CPUs: 100 x (1 - idle rate). node_cpu_seconds_total is a counter, so rate() is used, never the raw total.", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 0, + "y": 0, + "w": 12, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "100 * (1 - avg(rate(node_cpu_seconds_total{job=\"node\",mode=\"idle\"}[$__rate_interval])))", + "legendFormat": "CPU busy %" + } + ], + "fieldConfig": { + "defaults": { + "unit": "percent", + "custom": { + "lineWidth": 2, + "fillOpacity": 10, + "showPoints": "never", + "thresholdsStyle": { + "mode": "line" + } + }, + "min": 0, + "max": 100, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 70 + }, + { + "color": "red", + "value": 90 + } + ] + } + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi" + } + } + }, + { + "id": 2, + "type": "timeseries", + "title": "Available host memory (bytes)", + "description": "MemAvailable: kernel estimate of memory available to applications without swapping (not just unused RAM). Unit: bytes (IEC). Host total is about 961 MiB.", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 12, + "y": 0, + "w": 12, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "node_memory_MemAvailable_bytes{job=\"node\"}", + "legendFormat": "MemAvailable" + } + ], + "fieldConfig": { + "defaults": { + "unit": "bytes", + "custom": { + "lineWidth": 2, + "fillOpacity": 10, + "showPoints": "never", + "thresholdsStyle": { + "mode": "line" + } + }, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "orange", + "value": 104857600 + }, + { + "color": "green", + "value": 209715200 + } + ] + } + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi" + } + } + }, + { + "id": 3, + "type": "timeseries", + "title": "Root filesystem free space (%)", + "description": "Available bytes / size bytes for the verified host root filesystem only (/dev/vda1, ext4, mounted at /). /boot, /boot/efi, overlay and pseudo filesystems are excluded. Alert line at 15%.", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 0, + "y": 8, + "w": 12, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "100 * node_filesystem_avail_bytes{device=\"/dev/vda1\",fstype=\"ext4\",mountpoint=\"/\",job=\"node\"} / node_filesystem_size_bytes{device=\"/dev/vda1\",fstype=\"ext4\",mountpoint=\"/\",job=\"node\"}", + "legendFormat": "/ free %" + } + ], + "fieldConfig": { + "defaults": { + "unit": "percent", + "custom": { + "lineWidth": 2, + "fillOpacity": 10, + "showPoints": "never", + "thresholdsStyle": { + "mode": "line" + } + }, + "min": 0, + "max": 100, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "orange", + "value": 15 + }, + { + "color": "green", + "value": 25 + } + ] + } + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi" + } + } + }, + { + "id": 4, + "type": "timeseries", + "title": "Gitea HTTPS availability (probe_success)", + "description": "Blackbox http_2xx probe of the Gitea login page through Caddy: DNS, valid TLS, redirects followed, final 2xx. 1 = UP, 0 = DOWN.", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 12, + "y": 8, + "w": 12, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "probe_success{job=\"https\",instance=\"https://git.ssw590.abrdns.com/user/login\"}", + "legendFormat": "Gitea" + } + ], + "fieldConfig": { + "defaults": { + "unit": "none", + "custom": { + "lineWidth": 2, + "fillOpacity": 10, + "showPoints": "never", + "thresholdsStyle": { + "mode": "line" + }, + "lineInterpolation": "stepAfter" + }, + "min": 0, + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + }, + "mappings": [ + { + "type": "value", + "options": { + "0": { + "text": "DOWN", + "color": "red" + }, + "1": { + "text": "UP", + "color": "green" + } + } + } + ] + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi" + } + } + }, + { + "id": 5, + "type": "timeseries", + "title": "Jenkins HTTPS availability (probe_success)", + "description": "Blackbox http_2xx probe of the Jenkins login page through Caddy. 1 = UP, 0 = DOWN. Login-page success does not prove a working build.", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 0, + "y": 16, + "w": 12, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "probe_success{job=\"https\",instance=\"https://ci.ssw590.abrdns.com/login\"}", + "legendFormat": "Jenkins" + } + ], + "fieldConfig": { + "defaults": { + "unit": "none", + "custom": { + "lineWidth": 2, + "fillOpacity": 10, + "showPoints": "never", + "thresholdsStyle": { + "mode": "line" + }, + "lineInterpolation": "stepAfter" + }, + "min": 0, + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + }, + "mappings": [ + { + "type": "value", + "options": { + "0": { + "text": "DOWN", + "color": "red" + }, + "1": { + "text": "UP", + "color": "green" + } + } + } + ] + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi" + } + } + }, + { + "id": 6, + "type": "timeseries", + "title": "HTTPS probe duration (seconds)", + "description": "Total Blackbox probe time per service (DNS + connect + TLS + HTTP), one line per service.", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 12, + "y": 16, + "w": 12, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "probe_duration_seconds{job=\"https\",instance=\"https://git.ssw590.abrdns.com/user/login\"}", + "legendFormat": "Gitea" + }, + { + "refId": "B", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "probe_duration_seconds{job=\"https\",instance=\"https://ci.ssw590.abrdns.com/login\"}", + "legendFormat": "Jenkins" + } + ], + "fieldConfig": { + "defaults": { + "unit": "s", + "custom": { + "lineWidth": 2, + "fillOpacity": 10, + "showPoints": "never", + "thresholdsStyle": { + "mode": "line" + } + }, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "orange", + "value": 1 + }, + { + "color": "red", + "value": 5 + } + ] + } + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi" + } + } + }, + { + "id": 7, + "type": "timeseries", + "title": "Scrape health (up)", + "description": "Collection health: 1 = Prometheus scraped the target. For the https job, up=1 only means the probe ran; probe_success shows whether the site answered.", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 0, + "y": 24, + "w": 24, + "h": 7 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "up", + "legendFormat": "{{job}} {{instance}}" + } + ], + "fieldConfig": { + "defaults": { + "unit": "none", + "custom": { + "lineWidth": 2, + "fillOpacity": 10, + "showPoints": "never", + "thresholdsStyle": { + "mode": "line" + }, + "lineInterpolation": "stepAfter" + }, + "min": 0, + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 1 + } + ] + }, + "mappings": [ + { + "type": "value", + "options": { + "0": { + "text": "DOWN", + "color": "red" + }, + "1": { + "text": "UP", + "color": "green" + } + } + } + ] + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi" + } + } + }, + { + "id": 8, + "type": "timeseries", + "title": "Zammad HTTPS reachable (0/1)", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 0, + "y": 31, + "w": 8, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "probe_success{job=\"https\",instance=\"https://support.ssw590.abrdns.com/\"}", + "legendFormat": "support" + } + ], + "fieldConfig": { + "defaults": { + "unit": "none", + "min": 0, + "max": 1, + "decimals": 0 + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + }, + { + "id": 9, + "type": "timeseries", + "title": "Zammad probe duration (seconds)", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 8, + "y": 31, + "w": 8, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "probe_duration_seconds{job=\"https\",instance=\"https://support.ssw590.abrdns.com/\"}", + "legendFormat": "support" + } + ], + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + }, + { + "id": 10, + "type": "timeseries", + "title": "TLS certificate remaining lifetime (days)", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "gridPos": { + "x": 16, + "y": 31, + "w": 8, + "h": 8 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "dg2y8czei4y68b" + }, + "expr": "(probe_ssl_earliest_cert_expiry{job=\"https\",instance=\"https://support.ssw590.abrdns.com/\"} - time()) / 86400", + "legendFormat": "support" + } + ], + "fieldConfig": { + "defaults": { + "unit": "none", + "decimals": 1 + }, + "overrides": [] + }, + "options": { + "legend": { + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single" + } + } + } + ] +} \ No newline at end of file diff --git a/monitoring/prometheus/prometheus.yml b/monitoring/prometheus/prometheus.yml index 0539ca8..800a155 100644 --- a/monitoring/prometheus/prometheus.yml +++ b/monitoring/prometheus/prometheus.yml @@ -14,6 +14,8 @@ scrape_configs: - targets: - https://git.ssw590.abrdns.com/user/login - https://ci.ssw590.abrdns.com/login + - https://app.ssw590.abrdns.com/health + - https://support.ssw590.abrdns.com/ relabel_configs: - source_labels: [__address__] target_label: __param_target diff --git a/support/Caddyfile.support b/support/Caddyfile.support new file mode 100644 index 0000000..9c8c052 --- /dev/null +++ b/support/Caddyfile.support @@ -0,0 +1,3 @@ +support.ssw590.abrdns.com { + reverse_proxy zammad-nginx:8080 +} diff --git a/support/README.md b/support/README.md new file mode 100644 index 0000000..ebff2ee --- /dev/null +++ b/support/README.md @@ -0,0 +1,28 @@ +# Zammad support desk (Chapter 7) + +Upstream: https://github.com/zammad/zammad-docker-compose at commit 67141451b6239190f7a616231bff20b8b0ccbd8a (detached). +Droplet path: /root/dos-support/zammad-docker-compose (Compose project `dos-support`). +Images: ghcr.io/zammad/zammad:7.3.0-0011, elasticsearch:9.5.7, postgres:17.12-alpine, redis:8.12-alpine, memcached:1.6.45-alpine. +Scenario: scenarios/add-external-network-to-nginx.yml; only zammad-nginx joins `startup_private`; no host ports published. +URL: https://support.ssw590.abrdns.com (Caddy route in Caddyfile.support; TLS by Caddy/Let's Encrypt). + +## Files here +- env.example: the real .env with passwords replaced (real file: mode 600 on the droplet, never committed) +- Caddyfile.support: block appended to /opt/startup/Caddyfile +- sysctl-99-zammad.conf: /etc/sysctl.d/99-zammad.conf (Elasticsearch prerequisite) + +## Operate (run in /root/dos-support/zammad-docker-compose) +- status: docker compose ps -a +- start / stop: docker compose up -d / docker compose stop +- restart web only: docker compose restart zammad-nginx +- NEVER: docker compose down -v (deletes the named volumes) + +## Data and backups +Volumes: dos-support_postgresql-data, dos-support_elasticsearch-data, dos-support_redis-data, dos-support_zammad-storage, dos-support_zammad-backup. +zammad-backup writes _zammad_db.psql.gz and _zammad_files.tar.gz to the zammad-backup volume daily (BACKUP_TIME 03:00 container time, HOLD_DAYS 10). +One-off backup: docker compose run --rm --env BACKUP_ONCE=true zammad-backup +Restore: follow the Zammad "Backup & Restore (Docker)" guide for this release (copy the .gz files to /var/tmp/zammad/restore, start the stack, rebuild the search index). Backups stay on the droplet; they are not off-site. + +## Monitoring +https://support.ssw590.abrdns.com/ is a target of the existing `https` blackbox job (monitoring/prometheus/prometheus.yml); panels 8-10 in monitoring/grafana/dashboards/ssw590-ops.json. +Tracking: issue #22, Zammad ticket #78003. diff --git a/support/env.example b/support/env.example new file mode 100644 index 0000000..b3f717d --- /dev/null +++ b/support/env.example @@ -0,0 +1,15 @@ +COMPOSE_PROJECT_NAME=dos-support +COMPOSE_FILE=docker-compose.yml:scenarios/add-external-network-to-nginx.yml +ZAMMAD_NGINX_EXTERNAL_NETWORK=startup_private +ZAMMAD_FQDN=support.ssw590.abrdns.com +ZAMMAD_HTTP_TYPE=https +NGINX_SERVER_SCHEME=https +RAILS_TRUSTED_PROXIES=172.18.0.6 +VERSION=7.3.0-0011 +ELASTICSEARCH_VERSION=9.5.7 +MEMCACHE_VERSION=1.6.45-alpine +REDIS_VERSION=8.12-alpine +POSTGRES_VERSION=17.12-alpine +POSTGRES_PASS=CHANGE_ME_openssl_rand_hex_24 +POSTGRES_SUPERUSER_PASS=CHANGE_ME_openssl_rand_hex_24 +ELASTICSEARCH_PASS=CHANGE_ME_openssl_rand_hex_24 diff --git a/support/sysctl-99-zammad.conf b/support/sysctl-99-zammad.conf new file mode 100644 index 0000000..62ea54d --- /dev/null +++ b/support/sysctl-99-zammad.conf @@ -0,0 +1 @@ +vm.max_map_count=262144 -- 2.54.0 From bb395aed233fa3729128c2bc3ffdc1cbcda69a9c Mon Sep 17 00:00:00 2001 From: Sbhayana Date: Mon, 30 Nov 2026 20:52:37 +0000 Subject: [PATCH 2/3] Pricing image: fix libzstd1 CVE-2026-124851; dated exceptions for OpenSSL QUIC CVEs (refs #22) --- pricing/app/Dockerfile | 3 ++- pricing/security/trivyignore.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pricing/app/Dockerfile b/pricing/app/Dockerfile index 1fb8180..c8a3bd6 100644 --- a/pricing/app/Dockerfile +++ b/pricing/app/Dockerfile @@ -3,9 +3,10 @@ # Record of selection: see pricing/README.md. Rebuild and rescan when this digest changes. FROM python:3.13-slim@sha256:e48f59cdba69a3cbd9ed2cf0f348d90d45a8d350d98134cf1070bc106ee9ed90 # Security fix (Trivy, 2026-11-12): zlib1g fixed in the Debian 13 point update +# Security fix (Trivy, 2026-11-30, Jenkins #20): libzstd1 CVE-2026-124851 fixed in 1.5.7+dfsg-1+deb13u1 # (CVE-2026-76844, CVE-2026-85091). Exact version, so the build stays reproducible. RUN apt-get update \ - && apt-get install -y --no-install-recommends --only-upgrade 'zlib1g=1:1.3.dfsg+really1.3.1-1+deb13u1' \ + && apt-get install -y --no-install-recommends --only-upgrade 'zlib1g=1:1.3.dfsg+really1.3.1-1+deb13u1' 'libzstd1=1.5.7+dfsg-1+deb13u1' \ && rm -rf /var/lib/apt/lists/* ARG APP_COMMIT=development ENV APP_COMMIT=$APP_COMMIT PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 diff --git a/pricing/security/trivyignore.yaml b/pricing/security/trivyignore.yaml index ff54c5b..1956f1d 100644 --- a/pricing/security/trivyignore.yaml +++ b/pricing/security/trivyignore.yaml @@ -44,3 +44,13 @@ vulnerabilities: - id: CVE-2026-9538 statement: "perl Archive::Tar DoS (perl-base); Debian status fix_deferred; perl not used by the service" expired_at: 2026-12-15 + # Triage: SB, 2026-11-30, from Jenkins pricing-delivery #20 (branch feature/zammad-support), Trivy 0.69.3. + # OpenSSL (libssl3t64, openssl, openssl-provider-legacy): QUIC-only denial-of-service bugs. + # Debian status fix_deferred (no fixed version). The service speaks plain HTTP/1.1 (gunicorn) + # on a private network behind Caddy and never opens a QUIC connection. + - id: CVE-2026-107494 + statement: "OpenSSL QUIC unbounded frame queueing DoS; Debian fix_deferred, no fix; service does not use QUIC" + expired_at: 2026-12-15 + - id: CVE-2026-124709 + statement: "OpenSSL QUIC stream memory leak DoS; Debian fix_deferred, no fix; service does not use QUIC" + expired_at: 2026-12-15 -- 2.54.0 From 39634fc404c066663ec0e84be29866ad9ce67c8f Mon Sep 17 00:00:00 2001 From: Sbhayana Date: Mon, 30 Nov 2026 20:53:27 +0000 Subject: [PATCH 3/3] Dockerfile: keep zlib1g comment together (refs #22) --- pricing/app/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pricing/app/Dockerfile b/pricing/app/Dockerfile index c8a3bd6..546ae57 100644 --- a/pricing/app/Dockerfile +++ b/pricing/app/Dockerfile @@ -3,8 +3,8 @@ # Record of selection: see pricing/README.md. Rebuild and rescan when this digest changes. FROM python:3.13-slim@sha256:e48f59cdba69a3cbd9ed2cf0f348d90d45a8d350d98134cf1070bc106ee9ed90 # Security fix (Trivy, 2026-11-12): zlib1g fixed in the Debian 13 point update -# Security fix (Trivy, 2026-11-30, Jenkins #20): libzstd1 CVE-2026-124851 fixed in 1.5.7+dfsg-1+deb13u1 # (CVE-2026-76844, CVE-2026-85091). Exact version, so the build stays reproducible. +# Security fix (Trivy, 2026-11-30, Jenkins #20): libzstd1 CVE-2026-124851 fixed in 1.5.7+dfsg-1+deb13u1 RUN apt-get update \ && apt-get install -y --no-install-recommends --only-upgrade 'zlib1g=1:1.3.dfsg+really1.3.1-1+deb13u1' 'libzstd1=1.5.7+dfsg-1+deb13u1' \ && rm -rf /var/lib/apt/lists/* -- 2.54.0