Verify automatic application trigger and complete Chapter 5 evidence audit
manual-pdf / build-manual (push) Successful in 1m16s
manual-pdf / build-manual (push) Successful in 1m16s
This commit is contained in:
+158
-6
@@ -7,6 +7,12 @@
|
||||
Group 10 deployed four monitoring containers on October 30, 2026, using Turan
|
||||
Islamli's prepared branch and Sergio Espinal's authorized operational changes.
|
||||
This report records actual tests, rather than treating configuration as proof.
|
||||
\href{https://git.sespinal590.dev/group10-startup/devops-it-manual/issues/1}{Implementation issue 1}
|
||||
records the initial baseline, starting manual commit \path{1df4798a31}, and
|
||||
preparation/deployment responsibilities. Sergio and Turan are both assigned;
|
||||
Sergio operates the deployment and Turan is the second team member for final
|
||||
verification. Formal assignment was corrected during this audit; independent
|
||||
peer approval is still pending in draft PR 4.
|
||||
The implementation remains on \path{chapter5-sre-monitoring}; main has not
|
||||
been merged. Human peer review remains outstanding.
|
||||
|
||||
@@ -105,6 +111,22 @@ quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fe
|
||||
quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13
|
||||
\end{lstlisting}
|
||||
|
||||
\subsection{Backup of state that Git cannot reconstruct}
|
||||
The retained cloud snapshot predates monitoring. A current monitoring backup
|
||||
and an isolated restore have not been performed. The operator procedure is
|
||||
versioned in \path{monitoring/BACKUP-RECOVERY.md}. Arrange a maintenance window,
|
||||
check capacity, stop Grafana before copying SQLite, and stop Prometheus before
|
||||
copying its complete data directory. Preserve the two inspected named-volume
|
||||
paths, ownership and permissions. Protect the local environment, Discord
|
||||
provisioning and Caddy configuration separately; these contain secrets and
|
||||
must stay outside Git. Transfer using a binary-safe SSH/archive tool to an
|
||||
approved encrypted off-host destination, verify checksums, restart in a
|
||||
finally/trap cleanup path and check historical data plus alert delivery.
|
||||
The small root disk must not be used to stage an unbounded archive.
|
||||
Restore into isolated replacement volumes with matching versions/plugin first;
|
||||
never overwrite the live volumes to demonstrate recovery. This procedure
|
||||
extends the published Grafana backup guidance \cite{GrafanaBackup}.
|
||||
|
||||
\section{Metrics and Probes}
|
||||
Prometheus privately scrapes itself, Node Exporter and Blackbox Exporter, plus
|
||||
two relabeled HTTPS probe targets every 30 seconds. Five \texttt{up} series
|
||||
@@ -125,6 +147,45 @@ retaining their hostname/SNI and TLS verification. This measures the private
|
||||
proxy/application route; it cannot establish public DNS or external Internet
|
||||
availability. A shared-host outage also stops its own monitoring.
|
||||
|
||||
\subsection{Metric inventory and host comparison}
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{L{4.0cm}L{2.0cm}Y}
|
||||
\caption{Required metric inventory\label{Table:SREMetricInventory}}\\
|
||||
\toprule Metric & Type / unit & Labels, meaning and limitation\\\midrule
|
||||
\path{node_cpu_seconds_total} & Counter / seconds & cpu, mode, job, instance.
|
||||
Cumulative CPU time; rate of idle time gives averaged non-idle percent.
|
||||
Not per-container attribution.\\
|
||||
\path{node_memory_MemAvailable_bytes} & Gauge / bytes & job, instance.
|
||||
Kernel estimate of memory available to applications, not merely unused RAM.\\
|
||||
\path{node_filesystem_avail_bytes}, \path{node_filesystem_size_bytes} & Gauges / bytes &
|
||||
job, instance, device, mountpoint, fstype. Available/size percent for the verified
|
||||
root filesystem; do not combine mounts or use overlay data.\\
|
||||
\texttt{up} & Generated gauge / 0 or 1 & job, instance. Prometheus collection
|
||||
health, not application health. A missing sample remains unknown.\\
|
||||
\path{probe_success} & Gauge / 0 or 1 & job, instance (HTTPS URL).
|
||||
Login-page TLS/HTTP probe success; does not prove authenticated operations.\\
|
||||
\path{probe_duration_seconds} & Gauge / seconds & job, instance.
|
||||
Probe duration includes failures/timeouts; not application transaction latency.\\
|
||||
\bottomrule\end{tabularx}
|
||||
\normalsize
|
||||
At the final audit, \texttt{free -b} reported total memory 2,063,564,800 bytes,
|
||||
matching Node Exporter exactly. Host available memory was 852,103,168 bytes;
|
||||
the most recent 30-second scrape reported 890,720,256, reflecting different
|
||||
sample times while processes ran. \texttt{df -B1 /} and the exporter agreed on root size:
|
||||
9,283,444,736 bytes. Available space changed from 1,825,554,432 to
|
||||
1,825,574,912 bytes between observations, a difference of 20,480 bytes.
|
||||
The raw comparisons and timestamps are retained in
|
||||
\path{evidence/chapter5/host-metric-comparison.json}.
|
||||
Node Exporter uses the host PID namespace and read-only host root mounted at
|
||||
\texttt{/host}, with proc/sys/rootfs flags selecting the host view. This exposes
|
||||
host metadata for collection; no monitoring container receives the Docker socket.
|
||||
|
||||
\subsection{Sanitized collection and probe configuration}
|
||||
These are the actual versioned files used in the running deployment:
|
||||
\lstinputlisting[basicstyle=\ttfamily\scriptsize,breaklines=true]{monitoring/prometheus/prometheus.yml}
|
||||
\lstinputlisting[basicstyle=\ttfamily\scriptsize,breaklines=true]{monitoring/blackbox/blackbox.yml}
|
||||
Only the final login page is checked; there is no authenticated content test.
|
||||
|
||||
\section{HTTPS and Access Control}
|
||||
\begin{itemize}
|
||||
\item Gitea login: \url{https://git.sespinal590.dev/user/login}.
|
||||
@@ -147,14 +208,45 @@ Caddy's configuration was backed up before modification.
|
||||
remote_ip 155.246.151.38/32 172.18.0.1/32 172.18.0.250/32
|
||||
# Additional HTTPS virtual host:
|
||||
metrics.165.227.90.215.sslip.io {
|
||||
@rawMetrics path /metrics /metrics/*
|
||||
respond @rawMetrics "Raw metrics are private." 403
|
||||
reverse_proxy grafana:3000
|
||||
}
|
||||
\end{lstlisting}
|
||||
No monitoring service has Compose host-port mappings. External TCP checks from
|
||||
The inspected users are Prometheus/Node Exporter \texttt{nobody}, Grafana UID
|
||||
472, and the Blackbox image default user (empty image user setting, Linux
|
||||
root by default). Its configuration is read-only and no Docker socket is
|
||||
mounted. No monitoring service has Compose host-port mappings. External TCP checks from
|
||||
Sergio's Windows workstation on October 30 could not connect to primary ports
|
||||
3000, 8080, 9090, 9100 or 9115. HTTPS remained reachable. These are point-in-time
|
||||
observations from that source, not a universal firewall guarantee.
|
||||
|
||||
\subsection{Final network audit and retained SSH gap}
|
||||
The signed-in DigitalOcean console confirmed firewall
|
||||
\texttt{ssw590-gitea-firewall} is attached to the primary Droplet. It permits
|
||||
TCP 80 and 443 publicly, and TCP 22 from all IPv4 plus an existing operator
|
||||
/32. Other inbound ports are not allowed; outbound ICMP/TCP/UDP are allowed.
|
||||
Host UFW is inactive, so protection relies on the cloud firewall, Docker port
|
||||
mappings and Caddy. IPv6 is not enabled on the Droplet and the host has no
|
||||
global IPv6 address; external IPv6 checks are therefore not applicable.
|
||||
\textbf{Open gap: SSH is still globally reachable over IPv4. Sergio explicitly
|
||||
requested that SSH be left unchanged and flagged.} This inherited policy is
|
||||
not represented as a restricted SSH configuration.
|
||||
|
||||
The audit found Grafana's unauthenticated raw \texttt{/metrics} route returning
|
||||
200 through HTTPS. Caddy was backed up, the route was blocked with the matcher
|
||||
above, and configuration validation/reload passed. The versioned final proxy
|
||||
configuration is \path{monitoring/Caddyfile}.
|
||||
From the external Windows workstation at 21:16:31 UTC, TLS-verified
|
||||
\texttt{curl.exe} checks returned: Gitea login 200, Gitea metrics 404,
|
||||
Grafana login 200, Grafana raw metrics 403, and restricted Jenkins login 403.
|
||||
HTTP Gitea login redirected to HTTPS with 308. Socket checks with three-second
|
||||
timeouts could not connect to ports 3000, 8080, 9090, 9100 or 9115.
|
||||
These commands and results are retained in
|
||||
\path{evidence/chapter5/external-access-audit.json}; sanitized cloud rules and
|
||||
container identities/mounts are retained alongside them. Both private HTTPS
|
||||
probes and authenticated Grafana queries remained healthy after the proxy fix.
|
||||
|
||||
\begin{tabularx}{\linewidth}{L{3cm}Y}
|
||||
\caption{Chapter 5 hosts, storage and credential hints\label{Table:SREHosts}}\\
|
||||
\toprule Service / owner & Address, exposure, storage or secret handling\\\midrule
|
||||
@@ -353,9 +445,35 @@ Those historical records do not establish current peer-review status.
|
||||
The recovery build published a fresh success status to Gitea at 20:43:52 UTC,
|
||||
context \path{startup-product-ci/pipeline/head}, target build 3, matching
|
||||
commit \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}.
|
||||
The repository has no configured webhook; the retained polling fallback is
|
||||
distinct from webhook delivery. This manual run verifies execution and status
|
||||
publication, not an automatic new-commit trigger.
|
||||
The repository has no configured webhook; its configured periodic repository
|
||||
scan uses \texttt{* * * * *} (once per minute). The following separate check
|
||||
verifies automatic discovery rather than claiming webhook delivery.
|
||||
|
||||
\subsection{Automatic application-trigger verification}
|
||||
A documentation-only commit was published on isolated application branch
|
||||
\path{codex/chapter5-trigger-check}; application code and the existing
|
||||
Jenkinsfile were unchanged. The exact commit is
|
||||
\href{https://git.sespinal590.dev/group10-startup/startup-product/commit/b39613b2d2869065cf363bff36a7b54225cb7438}{b39613b2d2869065cf363bff36a7b54225cb7438},
|
||||
created at 21:12:56 UTC (17:12:56 EDT). No Jenkins build or repository scan
|
||||
was requested manually. Its scheduled scan discovered the branch and started
|
||||
build 1 at 21:13:17.934; it ended SUCCESS at 21:13:22.127 UTC, 4.193 seconds
|
||||
later. The retained cause is \path{jenkins.branch.BranchIndexingCause}, with
|
||||
no manual user cause. Checkout matched the exact commit and all three unit
|
||||
tests passed on the controller. Gitea received
|
||||
\path{startup-product-ci/pipeline/head}=success for that commit at 21:13:22.
|
||||
The observed commit-to-build delay was approximately 22 seconds, consistent
|
||||
with one-minute polling. This is polling evidence, not a webhook receipt.
|
||||
The application main remains \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}.
|
||||
See the \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex\%252Fchapter5-trigger-check/1/}{automatic application build}
|
||||
and \path{evidence/chapter5/automatic-trigger.json}. Historical incident,
|
||||
recovery build and automatic build regions were added to the Grafana dashboard
|
||||
using measured timestamps; \path{dashboard-annotations.json} records them.
|
||||
|
||||
\begin{figure}[p]\centering
|
||||
\includegraphics[width=\linewidth,height=0.8\textheight,keepaspectratio]{evidence/chapter5/dashboard-annotated.png}
|
||||
\caption{Actual incident dashboard with measured outage and recovery-build
|
||||
annotation regions added during the final Chapter 5 audit.}
|
||||
\label{Figure:SREAnnotations}\end{figure}
|
||||
|
||||
\subsection{Blameless review and owned improvements}
|
||||
The intended maintenance injection caused the incident. Jenkins initialization
|
||||
@@ -389,5 +507,39 @@ references and AI log accompany this chapter.
|
||||
Deployment, rule evaluation, notification receipt, controlled recovery and
|
||||
persistence have measured evidence. Human peer review and main merge remain
|
||||
outstanding; main merge is explicitly deferred by Sergio. Receiver timing is limited to user-reported minutes; a separate channel
|
||||
acknowledgement time and automatic new-commit trigger validation remain
|
||||
unverified. A successful PDF build does not close those gaps.
|
||||
acknowledgement timestamp was not captured during the incident. The automatic
|
||||
application trigger is now verified. Public IPv4 SSH is explicitly deferred by
|
||||
Sergio, and human peer review plus the requested unmerged status remain open. A successful PDF build does not close those gaps.
|
||||
|
||||
\subsection{Final Chapter 5 rubric audit}
|
||||
This is an evidence audit, not a prediction of the instructor's grade.
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{L{3.5cm}Y}
|
||||
\caption{Eight-section final audit\label{Table:SREFinalAudit}}\\
|
||||
\toprule Requirement & Result and retained boundary\\\midrule
|
||||
Deployment (15 points) & Four pinned containers, digests, topology, retention,
|
||||
startup/recovery and persistent volumes verified. Backup procedure supplied;
|
||||
current-state backup restore not claimed.\\
|
||||
Metrics/probes (15) & Five scrapes healthy, host comparison and metric inventory
|
||||
recorded; both real HTTPS login probes pass. Private-route limitation explicit.\\
|
||||
Access control (10) & Authenticated HTTPS, private ports and external tests pass;
|
||||
public Grafana metrics route fixed. Inherited global IPv4 SSH remains an
|
||||
explicit user-deferred gap.\\
|
||||
Dashboard/CI (15) & Six panels, queries/units, versioned definition and normal
|
||||
build correlation present; measured timeline annotation regions added.\\
|
||||
SLI/SLO (10) & Definitions, hypothetical budget and actual 20-sample-per-service
|
||||
exercise window present. No full-day SLO claim; full-day collection is optional.\\
|
||||
Alerts (15) & Both evaluated/fired/resolved and received in Discord; disk restored
|
||||
to 15\%. Receiver times are user-reported to the minute, not exact seconds.\\
|
||||
Incident (10) & Jenkins-only outage, measured detection/recovery, persistence,
|
||||
passing recovery build, automatic exact-commit build/status and two owned
|
||||
improvement issues verified. Separate channel acknowledgement time absent.\\
|
||||
Manual/review (10) & Updated version/history, service/secret hints, inventory,
|
||||
citations, attribution and automated build metadata present. Draft PR 4 is
|
||||
unmerged; genuine second-member approval is still required.\\
|
||||
\bottomrule\end{tabularx}
|
||||
\normalsize
|
||||
The user explicitly requested no main merge. Do not close the implementation
|
||||
issue or present the source as peer-approved until that review occurs. The
|
||||
remaining human review and deferred SSH policy are recorded openly rather
|
||||
than being marked complete by automation.
|
||||
|
||||
Reference in New Issue
Block a user