Record Jenkins probe exception and image digests in Chapter 5

Document the live Caddy exception that lets the host's own public
address GET Jenkins /login, with host and external curl results from
November 1: the Jenkins probe now succeeds while public Jenkins
requests still receive 403. Mark both HTTPS probes as passing and
record the four monitoring image digests. Team approval and reload
time for the exception remain pending.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
carmen-cortese 2026-11-01 13:29:53 -05:00
parent b2ddec4565
commit 546ccea891

View File

@ -15,8 +15,8 @@ proposed in draft
\href{https://git.590hcm.dev/SSW590Team/pricing-app/pulls/4}{pricing-app PR~4}
for \href{https://git.590hcm.dev/SSW590Team/pricing-app/issues/3}{issue~3}.
\textbf{Review status: deployment, collection, the dashboard, and two alert
rules are configured. Notification delivery, the Jenkins probe, public Grafana
HTTPS, restart persistence, the controlled incident, and final PDF validation
rules are configured, and both HTTPS probes succeed. Notification delivery,
public Grafana HTTPS, restart persistence, the controlled incident, and final PDF validation
are pending. Items marked \StatusPending{} must not be read as completed.}
The eight sections below match the eight required evidence sections and
@ -31,8 +31,8 @@ what has been verified.
\endhead
\bottomrule
\endlastfoot
1 & Deployment and reproducibility (15) & \StatusPending & Image digests, backup procedure, restart-persistence test.\\
2 & Metrics and probes (15) & \StatusPending & Successful Jenkins probe; recorded \texttt{free -b} and \texttt{df -B1 /} comparison.\\
1 & Deployment and reproducibility (15) & \StatusPending & Backup procedure, restart-persistence test.\\
2 & Metrics and probes (15) & \StatusPending & Recorded \texttt{free -b} and \texttt{df -B1 /} comparison; target-health screenshot.\\
3 & HTTPS and access control (10) & \StatusPending & Public Grafana hostname; external exposure tests.\\
4 & Dashboard and CI correlation (15) & \StatusPending & Normal-build before/during/after comparison; dashboard screenshots.\\
5 & SLI, SLO, and error budget (10) & \StatusPending & Measured short-window results from the incident exercise.\\
@ -65,16 +65,20 @@ load test; swap use and build latency must be rechecked during later builds.
\subsection{Versions, Images, and Retention}
\begin{table}[htbp]\centering\small
\begin{tabular}{lll}
\toprule Component & Publisher image & Pinned tag\\\midrule
Prometheus & \texttt{prom/prometheus} & \texttt{v3.15.1}\\
Grafana OSS & \texttt{grafana/grafana} & \texttt{13.2.4}\\
Node Exporter & \texttt{quay.io/prometheus/node-exporter} & \texttt{v1.12.1}\\
Blackbox Exporter & \texttt{quay.io/prometheus/blackbox-exporter} & \texttt{v0.29.1}\\\bottomrule
\begin{tabular}{L{2.6cm}L{9.4cm}}
\toprule Component & Publisher image, pinned tag, and pulled digest\\\midrule
Prometheus & \texttt{prom/prometheus:v3.15.1}\newline
{\scriptsize\path{sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2}}\\
Grafana OSS & \texttt{grafana/grafana:13.2.4}\newline
{\scriptsize\path{sha256:dbbc38ea21103cefb50396340cd88afec779c7e070b0a7bf5a75b4ce46651d3f}}\\
Node Exporter & \texttt{quay.io/prometheus/node-exporter:v1.12.1}\newline
{\scriptsize\path{sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0}}\\
Blackbox Exporter & \texttt{quay.io/prometheus/blackbox-exporter:v0.29.1}\newline
{\scriptsize\path{sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13}}\\\bottomrule
\end{tabular}
\caption{Monitoring images. Tags are set in the host's \texttt{.env}, which
contains version choices only. \StatusPending{} Record each image's
\texttt{RepoDigests} from \texttt{docker image inspect IMAGE:TAG}.}
contains version choices only. Digests are each image's \texttt{RepoDigests}
from \texttt{docker image inspect IMAGE:TAG} on the host, November 1, 2026.}
\label{Table:MonitoringImages}
\end{table}
@ -193,19 +197,58 @@ not show that authenticated Git operations or a Jenkins build work.
\begin{table}[htbp]\centering\small
\begin{tabular}{L{3.4cm}L{2.0cm}L{6.4cm}}
\toprule Target & Status & Observation, October 30, 2026\\\midrule
Gitea login & \StatusPass & HTTP 200 with valid TLS from the host.\\
Jenkins login & \StatusFail & HTTP 403 with valid TLS. Caddy permits CI requests only through the approved SSH tunnel (\ChapterRef{JenkinsCI}); this is an access-policy denial, not a Jenkins outage.\\\bottomrule
\toprule Target & Status & Observation\\\midrule
Gitea login & \StatusPass & October 30: HTTP 200 with valid TLS from the host. November 1, 18:14:58 UTC: \path{probe_success} = 1.\\
Jenkins login & \StatusPass & October 30: HTTP 403, an access-policy denial rather than an outage. November 1, 18:14:58 UTC, after the probe exception below: \path{probe_success} = 1.\\\bottomrule
\end{tabular}
\caption{HTTPS probe results. \StatusPending{} Rerun after the Jenkins probe route is resolved.}
\caption{HTTPS probe results. November 1 values are from an instant
\texttt{probe\_success} query against Prometheus on the host.}
\label{Table:MonitoringProbes}
\end{table}
\StatusPending{} A narrow internal exception allowing only the monitoring
network to reach \texttt{/login} has been proposed but not applied. The
existing public restriction remains until the team approves the exact rule.
After it is applied, verify that the probe receives 200 and that other public
CI requests still receive 403.
\subsection{Jenkins Probe Exception}
Chapter 4 restricts Jenkins to the approved SSH tunnel; all other CI requests
receive 403. Blackbox Exporter probes the public hostname, so its requests
leave the instance and return through the public address. A narrow exception
in the live \path{/home/ubuntu/gitea-deploy/Caddyfile} (mounted at
\path{/etc/caddy/Caddyfile}) forwards only requests that match all three
conditions; the pre-change file is retained as \path{Caddyfile.pre-ch5}.
The excerpt below is reformatted, with its comment removed; the rules are
unchanged.
\begin{verbatim}
ci.590hcm.dev {
@ssh_tunnel remote_ip 172.18.0.1
handle @ssh_tunnel { reverse_proxy jenkins:8080 }
@probe {
remote_ip 184.193.0.32/32
method GET
path /login
}
handle @probe { reverse_proxy jenkins:8080 }
handle { respond "Jenkins requires the approved SSH tunnel." 403 }
}
\end{verbatim}
\begin{table}[htbp]\centering\small
\begin{tabular}{L{6.6cm}L{2.4cm}L{2.6cm}}
\toprule Request, November 1, 2026 & From the host & From outside Lightsail\\\midrule
\texttt{GET https://ci.590hcm.dev/login} & 200 & 403\\
\texttt{GET https://ci.590hcm.dev/} & 403 & 403\\
\texttt{GET https://git.590hcm.dev/user/login} & --- & 200\\\bottomrule
\end{tabular}
\caption{Jenkins exception tests with \texttt{curl}, about 18:15 UTC. The
outside test ran from a team member's Windows computer on a residential
connection. The exception does not open Jenkins to the Internet.}
\label{Table:MonitoringProbeException}
\end{table}
The exception trusts the instance's own public address, so any process or
container on the host, not only Blackbox Exporter, can load the Jenkins login
page. Only \texttt{GET /login} matches; the sign-in form submits a
\texttt{POST} to a different path, which the exception does not match, so it
cannot be used to authenticate. This is an intentional change to the Chapter 4 access boundary.
\StatusPending{} Record the team's approval of the exception and when Caddy
was reloaded with it.
\subsection{Metric Inventory}
\begin{tabularx}{\linewidth}{L{3.3cm}L{1.3cm}L{1.2cm}Y}
@ -238,7 +281,7 @@ filesystem size and available bytes with \texttt{df -B1 /}.
\begin{tabular}{L{2.0cm}L{5.4cm}L{4.4cm}}
\toprule Service & Login URL & Access\\\midrule
Gitea & \url{https://git.590hcm.dev/user/login} & Public HTTPS; unchanged.\\
Jenkins & \url{https://ci.590hcm.dev:8443/login} & Approved SSH tunnel only; unchanged from \ChapterRef{JenkinsCI}.\\
Jenkins & \url{https://ci.590hcm.dev:8443/login} & Approved SSH tunnel only, as in \ChapterRef{JenkinsCI}; host-only probe exception in \autoref{sec:mon-metrics}.\\
Grafana & \texttt{https://metrics.590hcm.dev/} & \StatusPending{} DNS and Caddy route not yet created.\\\bottomrule
\end{tabular}
\caption{HTTPS login URLs. No grader account is required; dashboard and alert
@ -286,7 +329,7 @@ Whole-host CPU & percent & {\footnotesize\path{100 * (1 - avg(rate(node_cpu_seco
Available memory & bytes & {\footnotesize\path{node_memory_MemAvailable_bytes{job="node"}}}.\\
Available root disk & percent & {\footnotesize\path{100 * node_filesystem_avail_bytes{...} / node_filesystem_size_bytes{...}}} with the same \texttt{/dev/root}, \texttt{ext4} selector on both sides.\\
Gitea availability & 0/1 & {\footnotesize\path{probe_success{job="https",instance="https://git.590hcm.dev/user/login"}}}.\\
Jenkins availability & 0/1 & {\footnotesize\path{probe_success{job="https",instance="https://ci.590hcm.dev/login"}}}. Currently 0 because of the access-policy denial.\\
Jenkins availability & 0/1 & {\footnotesize\path{probe_success{job="https",instance="https://ci.590hcm.dev/login"}}}.\\
HTTPS probe duration & seconds & {\footnotesize\path{probe_duration_seconds{job="https",instance=~"https://(git|ci)[.]590hcm[.]dev/.*"}}}, one labeled line per service.\\
\end{tabularx}
@ -391,9 +434,9 @@ destination secrets from screenshots.
\section{Incident and Recovery}
\label{sec:mon-incident}
\StatusPending{} The controlled Jenkins incident has not been run. It depends
on a successful Jenkins probe and working notifications, so the alert can
fire and recover.
\StatusPending{} The controlled Jenkins incident has not been run. The Jenkins
probe now succeeds; the exercise still depends on working notifications, so
the alert can be delivered and resolved.
\subsection{Exercise Plan}
Agree on a maintenance window with the team and name who restarts Jenkins.