Address chapter audit: collection-health alert, hardening, citations (refs #19)
vpn-dns-gateway/pipeline/pr-main This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
An independent review of the SRE chapter against the instructor's rubric found gaps; each was fixed and, where operational, tested on the droplet. Monitoring: - New Grafana rule "Monitoring target down" (up < 1 for 1 m, no data -> Alerting). Tested by stopping Blackbox Exporter 17:34:44-17:37:52 UTC: it fired and resolved, and "HTTPS service down" fired on NoData when every probe series disappeared. - Blackbox Exporter runs as nobody (65534) instead of the image's root. - README: runbook for the new rule; contact-point test prompts for the password; secrets section reflects the replaced admin password. Manual (v5.0): - Alert table with all three rules and their summaries; runbooks in the PDF; accurate no-data description; collection-test figure. - Diagram shows networks per container and the existing volumes. - Targets table, CPU counters vs /proc/stat, probe module excerpt, container identities and mounts, backup command, exposure commands, replaced Grafana admin credential, PR #22 and review gate. - Bibliography enabled with SRE Workbook and tool documentation. - Corrected baseline memory figures, Jenkins start-up length, dashboard version wording, and start-up order; links point to main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -49,7 +49,7 @@ no host ports; SQLite file in volume \texttt{gitea\_gitea-data}; Jenkins state
|
||||
in volume \texttt{gitea\_jenkins-home}. Monitoring (Compose project
|
||||
\texttt{monitoring}, no host ports): Prometheus \texttt{:9090} (128\,MiB),
|
||||
Node Exporter \texttt{:9100} and Blackbox Exporter \texttt{:9115} (32\,MiB
|
||||
each) on network \texttt{monitoring\_monitoring}; Grafana \texttt{:3000}
|
||||
each; Blackbox runs as \texttt{nobody}) on network \texttt{monitoring\_monitoring}; Grafana \texttt{:3000}
|
||||
(192\,MiB) also on \texttt{gitea\_web}; Blackbox at \texttt{172.30.90.10} on
|
||||
\texttt{gitea\_probe} (172.30.90.0/28); volumes
|
||||
\texttt{monitoring\_prometheus\_data} (7\,d / 500\,MB) and
|
||||
@@ -69,7 +69,7 @@ Gitea (\ChapterRef{GiteaFoundation}), restart persistence for Jenkins
|
||||
\texttt{monitoring/README.md}\\
|
||||
Monitoring status & Prometheus and Grafana: host CPU, memory, root disk, and
|
||||
HTTPS probes of Gitea and Jenkins every 30\,s; alerts \emph{HTTPS service
|
||||
down} and \emph{Root disk space low} to Discord \texttt{\#devops-alerts}.
|
||||
down}, \emph{Root disk space low}, and \emph{Monitoring target down} to Discord \texttt{\#devops-alerts}.
|
||||
Shares the droplet's failure domain; no external check yet (issue~\#20)\\
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
@@ -111,9 +111,9 @@ Gitea \texttt{jenkins-bot} (added 22 Oct 2026) & BY & BY's password manager; use
|
||||
Jenkins \texttt{billy} & BY & BY's password manager & Administer (all)\\
|
||||
Jenkins \texttt{vsun1} & VS & VS's password manager & Administer (all)\\
|
||||
Jenkins initial admin password & --- & One-time setup secret in \texttt{/var/jenkins\_home/secrets/}; read once by BY, superseded by named accounts & Setup only\\
|
||||
Grafana \texttt{billy} (added 28 Oct 2026) & BY & BY's password manager; initial value in the monitoring secrets file, used only when Grafana first created its database & Grafana Admin\\
|
||||
Grafana \texttt{billy} (added 28 Oct 2026) & BY & BY's password manager; the initial value set through the monitoring secrets file was replaced in Grafana on 28 Oct 2026 and removed from the file & Grafana Admin\\
|
||||
Grafana \texttt{vsun1} (added 28 Oct 2026) & VS & VS's password manager; temporary password set by BY and sent privately, to be changed by VS at first login & Viewer\\
|
||||
Monitoring secrets \texttt{.env.secret} & BY & \texttt{\textasciitilde/monitoring/.env.secret} on the droplet, mode 600, root; typed by BY; holds the initial Grafana admin password and the Discord webhook URL; never in Git & n/a\\
|
||||
Monitoring secrets \texttt{.env.secret} & BY & \texttt{\textasciitilde/monitoring/.env.secret} on the droplet, mode 600, root; typed by BY; holds the Discord webhook URL (the initial Grafana admin password was removed after it was replaced); never in Git & n/a\\
|
||||
Discord webhook \texttt{Grafana} & BY & BY's password manager and the monitoring secrets file; revoke under \texttt{\#devops-alerts} $\rightarrow$ Integrations $\rightarrow$ Webhooks & Post to \texttt{\#devops-alerts}\\
|
||||
CI allowlist \texttt{.env} & BY & \texttt{\textasciitilde/gitea/.env} on the droplet, root-only; holds team and approved grader IP addresses (personal data, not a secret); grader entries are removed after grading & n/a\\
|
||||
DigitalOcean team & BY, VS & Each member's own login, in their password manager & Team member\\
|
||||
|
||||
Reference in New Issue
Block a user