Prepare Assignment 8 secure delivery and rollback
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

Add the locked pricing service, trusted-agent pipeline, Ansible deployments, security gates, recovery runbooks, prerequisite evidence, and preparation manual.

Prepared with Codex assistance. Vincent explicitly authorized this local commit and will handle the push. Assessed releases and recovery exercises remain pending.
This commit is contained in:
2026-11-14 17:09:25 -05:00
parent 8beefde2a4
commit bf28adc7fb
51 changed files with 2091 additions and 14 deletions
+4
View File
@@ -1,5 +1,9 @@
# Monitoring (Assignment 7 / Instructor Manual Chapter 5)
Assignment 8 prepares a production pricing `/health` target and Grafana panel
in the versioned configuration. Apply those additions only after the service
is healthy; they are not yet deployed. See `../delivery/RUNBOOKS.md`.
Prometheus, Grafana OSS, Node Exporter, and Blackbox Exporter on the droplet
**The-Ocean**, beside Gitea, Jenkins, and Caddy (`deploy/`). Grafana is the only
web entry point: `https://metrics.yebilly.me` (same allowlist as Jenkins, then
+84 -2
View File
@@ -12,7 +12,7 @@
"to": "now"
},
"schemaVersion": 41,
"version": 1,
"version": 2,
"editable": false,
"graphTooltip": 1,
"panels": [
@@ -557,6 +557,88 @@
"legendFormat": "{{job}} {{instance}}"
}
]
},
{
"id": 8,
"type": "timeseries",
"title": "Pricing production HTTPS availability (probe_success)",
"description": "1 = production /health returned 2xx with valid TLS; pricing and source identity are verified separately by the release pipeline.",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"x": 0,
"y": 30,
"w": 24,
"h": 8
},
"fieldConfig": {
"defaults": {
"unit": "none",
"color": {
"mode": "palette-classic"
},
"custom": {
"lineWidth": 2,
"fillOpacity": 10,
"showPoints": "never",
"lineInterpolation": "stepAfter",
"thresholdsStyle": {
"mode": "off"
}
},
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"min": 0,
"max": 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",
"sort": "none"
}
},
"targets": [
{
"refId": "A",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"expr": "probe_success{job=\"https\",instance=\"https://app.yebilly.me/health\"}",
"legendFormat": "Pricing production"
}
]
}
],
"annotations": {
@@ -575,4 +657,4 @@
}
]
}
}
}
+2
View File
@@ -21,6 +21,8 @@ scrape_configs:
- targets:
- https://git.yebilly.me/user/login
- https://ci.yebilly.me/login
# Apply this addition only after Assignment 8 production is healthy.
- https://app.yebilly.me/health
relabel_configs:
- source_labels: [__address__]
target_label: __param_target