Verify automatic application trigger and complete Chapter 5 evidence audit
manual-pdf / build-manual (push) Successful in 1m16s

This commit is contained in:
2026-10-30 21:28:50 +00:00
parent 8e20b016ce
commit 61c1efdc0a
18 changed files with 838 additions and 8 deletions
+25
View File
@@ -0,0 +1,25 @@
# Chapter 5 final audit — 2026-10-30
This is an evidence audit against dosManual-V1.42.pdf Chapter 5, not a promised grade. The final updated PDF is the submission artifact; configuration/evidence stays in Gitea.
| Rubric section | Finding | Evidence |
|---|---|---|
| Deployment / 15 | Implemented: four images/digests, topology, private networks, volumes, retention, startup/recovery and restart persistence; backup procedure documented separately from an unperformed current-state restore. | compose.yaml, image-digests.json, sli-persistence.json, monitoring/BACKUP-RECOVERY.md |
| Metrics and probes / 15 | Implemented: five scrapes healthy; memory/root comparison, metric types/units/labels/limits, actual TLS login probes and explicit internal-route limitations. | host-metric-comparison.json, live-metrics.json, versioned scrape/module files |
| Access / 10 | Grafana public raw metrics route fixed and externally verified. Raw backend/exporter ports unreachable, TLS login behavior checked, no global IPv6. OPEN: inherited All IPv4 SSH retained at explicit user request. | monitoring/Caddyfile, external-access-audit.json, final-access-audit.json, cloud-firewall-audit.json |
| Dashboard / 15 | Six panels with queries/units/legends, normal build metrics, definitions in Git, measured incident/build annotations. | dashboard exports/screenshots, final-validation.json, dashboard-annotations.json |
| SLI/SLO / 10 | Definitions, correct hypothetical 2880-probe arithmetic and measured 10-minute 20/20-coverage window supplied. Full-day collection is optional. | sli-persistence.json, incident-samples.json, monitoring/SLI-SLO.md |
| Alerts / 15 | Both rules fired and resolved, owner/severity/runbooks/no-data/error routing documented, four real Discord messages confirmed with minute-level times; safe threshold test restored 15%. | controlled-tests.json, alert-rules-export.json, discord-receipt.json |
| Incident / 10 | Jenkins-only outage/recovery, persistence, passing recovery build 3, exact-commit automatic polling build 1 and matching Gitea success verified; issues 2/3 owned. Separate channel acknowledgement time was not recorded. | jenkins-incident.json, jenkins-recovery-build.json, automatic-trigger.json, restart-gaps.json |
| Manual / 10 | Version/history/hosts and secret hints/glossary/citations/AI attribution updated; final CI build must match new source metadata. OPEN: genuine peer approval; main merge expressly deferred. | devopsSREMonitoring.tex, draft PR 4 |
## Automatic application trigger
Existing one-minute repository scan discovered documentation commit b39613b2d2869065cf363bff36a7b54225cb7438 on codex/chapter5-trigger-check. Build 1 ran 21:13:17.934–21:13:22.127 UTC (17:13 EDT), cause BranchIndexingCause, unchanged pipeline, all three tests passed. Gitea published startup-product-ci/pipeline/head=success for the same SHA. No manual build or scan endpoint was called. The test branch remains isolated; application main is unchanged at 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065.
## Remaining boundaries
- User explicitly chose to retain global IPv4 SSH and flag it. No firewall rule was changed.
- Turan's genuine peer review of the final manual source remains required; draft PR 4 and implementation issue 1 remain open, and main must not be merged yet.
- Incident Discord times are user-reported to the minute; a separate channel acknowledgement time was not captured and cannot be reconstructed honestly.
- A monitoring backup/restore procedure is supplied; a new current-state off-host backup/restore was not performed. The previous cloud snapshot predates deployment.
+48
View File
@@ -0,0 +1,48 @@
{
"expected_commit": "b39613b2d2869065cf363bff36a7b54225cb7438",
"observations": [
{
"observed_at": "2026-10-30T21:13:34.396722+00:00",
"number": 1,
"building": false,
"result": "SUCCESS"
}
],
"build": {
"number": 1,
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex%252Fchapter5-trigger-check/1/",
"result": "SUCCESS",
"timestamp": 1793394797934,
"duration": 4193
},
"revisions": [
"b39613b2d2869065cf363bff36a7b54225cb7438"
],
"causes": [
{
"_class": "jenkins.branch.BranchIndexingCause",
"shortDescription": "Branch indexing"
}
],
"console_excerpt": [
"Branch indexing",
"Running on Jenkins in /var/jenkins_home/workspace/_ci_codex_chapter5-trigger-check",
"Checking out Revision b39613b2d2869065cf363bff36a7b54225cb7438 (codex/chapter5-trigger-check)",
"Commit message: \"Document Chapter 5 monitoring handoff and automatic trigger check\"",
"Ran 3 tests in 0.000s",
"OK",
"Finished: SUCCESS"
],
"gitea_status": {
"state": "success",
"sha": "b39613b2d2869065cf363bff36a7b54225cb7438",
"statuses": [
{
"status": "success",
"context": "startup-product-ci/pipeline/head",
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex%252Fchapter5-trigger-check/1/display/redirect",
"created_at": "2026-10-30T21:13:22Z"
}
]
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

@@ -0,0 +1,43 @@
{
"observed_on": "2026-10-30",
"source": "Signed-in DigitalOcean firewall Rules and Droplets UI",
"firewall_id": "dc253da0-adff-4549-b4d1-ce3cb509914b",
"firewall_name": "ssw590-gitea-firewall",
"attached_droplet": {
"id": 604497684,
"name": "sergio-ssw590-gitea",
"public_ipv4": "165.227.90.215",
"size_display": "2 GB / 10 GB / NYC1"
},
"inbound": [
{
"tcp": 22,
"sources": [
"All IPv4",
"existing operator /32 (redacted)"
]
},
{
"tcp": 80,
"sources": [
"All IPv4",
"All IPv6"
]
},
{
"tcp": 443,
"sources": [
"All IPv4",
"All IPv6"
]
}
],
"outbound": [
"ICMP all IPv4/IPv6",
"TCP all ports IPv4/IPv6",
"UDP all ports IPv4/IPv6"
],
"host_ufw": "inactive",
"public_ipv6": "not enabled on droplet; no global host IPv6 address",
"ssh_decision": "User explicitly requested leave SSH unchanged and flag it; no firewall rule modified."
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

@@ -0,0 +1,53 @@
[
{
"request": {
"time": 1793392725484,
"timeEnd": 1793392959110,
"tags": [
"chapter5",
"controlled-exercise"
],
"text": "Jenkins-only controlled outage: stop request to first recovered HTTPS probe. UTC. See Chapter 5 incident timeline.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 10,
"message": "Annotation added"
}
},
{
"request": {
"time": 1793393012534,
"timeEnd": 1793393032340,
"tags": [
"chapter5",
"normal-build"
],
"text": "Jenkins main recovery build 3 SUCCESS, commit 6cfac4ec1e. Controller execution.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 11,
"message": "Annotation added"
}
},
{
"request": {
"time": 1793394797934,
"timeEnd": 1793394802127,
"tags": [
"chapter5",
"automatic-trigger"
],
"text": "Automatic branch-indexing build 1 SUCCESS; codex/chapter5-trigger-check; commit b39613b2d2869065cf363bff36a7b54225cb7438; three tests passed.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 12,
"message": "Annotation added"
}
}
]
@@ -0,0 +1,64 @@
{
"captured_at": "2026-10-30T21:16:31.703076+00:00",
"source": "Sergio Windows workstation, outside primary droplet",
"http": [
{
"url": "https://git.sespinal590.dev/user/login",
"exit": 0,
"result": "200 ",
"error": ""
},
{
"url": "https://git.sespinal590.dev/metrics",
"exit": 0,
"result": "404 ",
"error": ""
},
{
"url": "https://ci.165.227.90.215.sslip.io/login",
"exit": 0,
"result": "403 ",
"error": ""
},
{
"url": "https://metrics.165.227.90.215.sslip.io/login",
"exit": 0,
"result": "200 ",
"error": ""
},
{
"url": "https://metrics.165.227.90.215.sslip.io/metrics",
"exit": 0,
"result": "403 ",
"error": ""
},
{
"url": "http://git.sespinal590.dev/user/login",
"exit": 0,
"result": "308 https://git.sespinal590.dev/user/login",
"error": ""
}
],
"tcp": [
{
"port": 3000,
"reachable": false
},
{
"port": 8080,
"reachable": false
},
{
"port": 9090,
"reachable": false
},
{
"port": 9100,
"reachable": false
},
{
"port": 9115,
"reachable": false
}
]
}
+122
View File
@@ -0,0 +1,122 @@
{
"captured_at": "2026-10-30T21:14:45.733137+00:00",
"https://git.sespinal590.dev/user/login": {
"status": 200,
"content_type": "text/html; charset=utf-8"
},
"https://git.sespinal590.dev/metrics": {
"status": 404
},
"https://ci.165.227.90.215.sslip.io/login": {
"status": 403
},
"https://ci.165.227.90.215.sslip.io/prometheus/": {
"status": 403
},
"https://metrics.165.227.90.215.sslip.io/login": {
"status": 200,
"content_type": "text/html; charset=UTF-8"
},
"https://metrics.165.227.90.215.sslip.io/metrics": {
"status": 403
},
"global_ipv6": "",
"ufw_status": "Status: inactive\n",
"monitoring-prometheus-1": {
"user": "nobody",
"mounts": [
{
"source": "/var/lib/docker/volumes/monitoring_prometheus_data/_data",
"destination": "/prometheus",
"rw": true
},
{
"source": "/opt/ssw590-monitoring/prometheus/prometheus.yml",
"destination": "/etc/prometheus/prometheus.yml",
"rw": false
}
],
"ports": {
"9090/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"monitoring_monitoring_private"
]
},
"monitoring-grafana-1": {
"user": "472",
"mounts": [
{
"source": "/opt/ssw590-monitoring/grafana/provisioning",
"destination": "/etc/grafana/provisioning",
"rw": false
},
{
"source": "/var/lib/docker/volumes/monitoring_grafana_data/_data",
"destination": "/var/lib/grafana",
"rw": true
},
{
"source": "/opt/ssw590-monitoring/grafana/dashboards",
"destination": "/var/lib/grafana/dashboards",
"rw": false
}
],
"ports": {
"3000/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"gitea_default",
"monitoring_monitoring_private"
]
},
"monitoring-node-exporter-1": {
"user": "nobody",
"mounts": [
{
"source": "/",
"destination": "/host",
"rw": false
}
],
"ports": {
"9100/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"monitoring_monitoring_private"
]
},
"monitoring-blackbox-exporter-1": {
"user": "",
"mounts": [
{
"source": "/opt/ssw590-monitoring/blackbox/blackbox.yml",
"destination": "/etc/blackbox/blackbox.yml",
"rw": false
}
],
"ports": {
"9115/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"gitea_default",
"monitoring_monitoring_private"
]
}
}
+49
View File
@@ -0,0 +1,49 @@
{
"health": {
"database": "ok",
"version": "13.3.0",
"commit": "6f8ce3c693b493043ebcd4787566d2b6b118b0f0"
},
"datasources": [
{
"uid": "prometheus",
"url": "http://prometheus:9090"
}
],
"dashboard_panels": 6,
"rules": [
{
"uid": "sre-https-unavailable",
"title": "HTTPS Service Unavailable",
"for": "1m",
"noDataState": "NoData",
"execErrState": "Error",
"threshold": [
1
]
},
{
"uid": "sre-root-disk-low",
"title": "Host Root Disk Space Low",
"for": "5m",
"noDataState": "NoData",
"execErrState": "Error",
"threshold": [
15
]
}
],
"rule_states": [
[
"HTTPS Service Unavailable",
"inactive",
"ok"
],
[
"Host Root Disk Space Low",
"inactive",
"ok"
]
],
"annotations": 3
}
@@ -0,0 +1,213 @@
{
"captured_at": "2026-10-30T21:18:38.979555+00:00",
"host_free_b": " total used free shared buff/cache available\nMem: 2063564800 1211461632 147107840 3719168 886272000 852103168\nSwap: 1073737728 100024320 973713408\n",
"host_df_B1_root": "Filesystem 1B-blocks Used Available Use% Mounted on\n/dev/vda1 9283444736 7441113088 1825554432 81% /\n",
"node_memory_MemTotal_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemTotal_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.134,
"2063564800"
]
}
]
}
},
"node_memory_MemAvailable_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.283,
"890720256"
]
}
]
}
},
"node_filesystem_size_bytes{mountpoint=\"/\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_filesystem_size_bytes",
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node-exporter",
"mountpoint": "/"
},
"value": [
1793395119.412,
"9283444736"
]
}
]
}
},
"node_filesystem_avail_bytes{mountpoint=\"/\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_filesystem_avail_bytes",
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node-exporter",
"mountpoint": "/"
},
"value": [
1793395119.532,
"1825574912"
]
}
]
}
},
"up": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "up",
"instance": "prometheus:9090",
"job": "prometheus"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "blackbox-exporter:9115",
"job": "blackbox-exporter"
},
"value": [
1793395119.647,
"1"
]
}
]
}
},
"probe_success": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.759,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.759,
"1"
]
}
]
}
},
"probe_duration_seconds": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_duration_seconds",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.879,
"0.069309989"
]
},
{
"metric": {
"__name__": "probe_duration_seconds",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.879,
"0.025185514"
]
}
]
}
},
"docker_stats": "monitoring-grafana-1 CPU=1.12% MEM=172.5MiB / 1.922GiB\nmonitoring-prometheus-1 CPU=0.39% MEM=101.7MiB / 1.922GiB\nmonitoring-node-exporter-1 CPU=0.00% MEM=10.57MiB / 1.922GiB\nmonitoring-blackbox-exporter-1 CPU=0.00% MEM=14.8MiB / 1.922GiB\njenkins CPU=0.17% MEM=414.8MiB / 1.922GiB\ncaddy CPU=0.00% MEM=50.93MiB / 1.922GiB\ngitea CPU=2.74% MEM=145.3MiB / 1.922GiB\n",
"docker_version": "29.8.1",
"compose_version": "5.5.1"
}