diff --git a/.gitignore b/.gitignore index 1a44d76..54d9b9a 100644 --- a/.gitignore +++ b/.gitignore @@ -91,5 +91,7 @@ Thumbs.db *.key secrets.* -# Source images, the reference template, and the reviewed root submission PDF -# are intentionally not ignored. +# Source images and the reference template remain versioned. +# Local manual builds replace one deliverable; do not commit generated PDFs. +/manual/2026F-SSW-590-DevOps-Group-1.pdf +/manual/latex/devopsAssignment.pdf diff --git a/manual/README.md b/manual/README.md index c1a9ab1..fed6716 100644 --- a/manual/README.md +++ b/manual/README.md @@ -14,7 +14,34 @@ discuss repository visibility with the other group member before publication. No registration token, runner identity file, private key, or account credential is copied. Hints-only Hosts/Passwords records are retained. -## Build and status +## Local PDF for review and submission + +From repository root, use the existing TinyTeX installation: + +```powershell +./manual/latex/makefilePowerShell.ps1 -Action pdf +``` + +The helper detects the shared `../Tools/LaTeX/TinyTeX` installation. For a +different existing installation, set `DEVOPS_LATEX_BIN` to its `bin/windows` +directory first. It runs the full bibliography, glossary, acronym, index, +and cross-reference sequence and replaces +`manual/2026F-SSW-590-DevOps-Group-1.pdf`. That PDF and compiler intermediates +are ignored by Git; sources and evidence remain versioned. Docker and an +Actions artifact download are unnecessary for this local build. Local builds +show the human document version without claiming an Actions run number. + +After reviewing the PDF, remove generated LaTeX intermediates with: + +```powershell +./manual/latex/makefilePowerShell.ps1 -Action clean +``` + +The PDF is retained. Continue using Gitea Actions for automated build evidence; +keep historical run artifacts already required by the manual. New local +revisions reuse this one PDF rather than creating more run folders. + +## Historical Assignment 5 build evidence See [compiler and workflow instructions](../ci/manual/README.md). Gitea run 1 succeeded for commit `828f6c5` (issue #12), including checkout, diff --git a/manual/latex/devopsAIPromptLog.tex b/manual/latex/devopsAIPromptLog.tex index ab13cec..e1996ff 100644 --- a/manual/latex/devopsAIPromptLog.tex +++ b/manual/latex/devopsAIPromptLog.tex @@ -740,3 +740,42 @@ Billy's Discord reply came later; Billy created Vincent's Grafana account \texttt{vsun1} as Viewer; the 24-hour SLO was not evaluated; the manual-PDF build needs Vincent's runner when the branch is merged. No pull request, merge, or submission was performed by Claude. + +\section{Assignment 7 Run-11 Review, TCP Evidence, and Final Corrections} +Date: October 28, 2026; Tool: OpenAI Codex; Human: Vincent Sun. +Inputs: Vincent's request to double-check Billy's completed Assignment 7, +instructor manual version 1.42 Chapter 5, the run-11 artifact, repository AI +guidance, versioned monitoring configuration and evidence, and public Gitea +statuses and reviews. Vincent authorized the corrections and requested one +locally compiled PDF in the repository, excluded from Git. Codex inspected +the chapter and supporting figures, compared configuration and dashboard +queries with the rubric, and verified the final PR head, approval, merge, +and successful run-11 status. Chrome connected to Gitea; a subsequent +project-tab operation timed out, so no authenticated Jenkins/Grafana audit +or remote settings change was performed in this correction. + +Human/AI corrections: Codex identified changing branch links, incomplete TCP +evidence from HTTP code 000, outdated review timestamps, and conclusions +stronger than the timing, sampling, or resource measurements supported. +Vincent ran the supplied external PowerShell loop on his laptop and moved +its CSV into the repository's ignored evidence directory. All 18 outcomes +matched: TCP 80/443 succeeded and seven private ports failed on both IPv4 +and IPv6. Codex preserved the raw file and made a versioned copy replacing +only the local Wi-Fi name with a generic network description. The reusable +script preserves that loop with parameters; its syntax is checked without +claiming another network test. The CSV timestamps are completion times. + +Outputs used: version 5.1; the new TCP table and reproduction command; +deployment links pinned to merge \texttt{34c4c74}; final approval/check and +run-11 links; qualified notification-delay, missing-sample, and memory-pressure +conclusions; a Document History entry; and this record. The local build helper +now discovers the shared TinyTeX path from the actual repository nesting; +local build instructions and PDF ignore rules retain one replaceable PDF. +The complete TinyTeX build includes the bibliography, glossary, acronym list, +index, and final reference passes, followed by diagnostic and visual review. +Billy/Claude records and original evidence are preserved. Hosts and Passwords +tables are unchanged because no deployed service, account, or credential +changed. The missed pre-deployment build observation remains a limitation; +later results do not recreate it. Commits, pushes, peer approval, and submission +remain with the group. This local revision is not described as an Actions +artifact or as already approved in Gitea. diff --git a/manual/latex/devopsAssignment.tex b/manual/latex/devopsAssignment.tex index f772b97..617254b 100644 --- a/manual/latex/devopsAssignment.tex +++ b/manual/latex/devopsAssignment.tex @@ -36,7 +36,7 @@ % Replace these values for each assignment. \newcommand{\AssignmentTitle}{Grafana and Prometheus SRE -- Group} \newcommand{\AssignmentNumber}{7} -\newcommand{\DocumentVersion}{5.0} +\newcommand{\DocumentVersion}{5.1} \newcommand{\DocumentStatus}{Draft} \newcommand{\CourseNumber}{SSW 590} \newcommand{\CourseName}{DevOps} diff --git a/manual/latex/devopsDocumentHistory.tex b/manual/latex/devopsDocumentHistory.tex index 467fc31..edd6042 100644 --- a/manual/latex/devopsDocumentHistory.tex +++ b/manual/latex/devopsDocumentHistory.tex @@ -12,6 +12,7 @@ link each entry to the changed chapter, table, figure, or controlled artifact. \multicolumn{4}{l}{\small\itshape Document Update History (continued)}\\ \toprule \textbf{Date / Version} & \textbf{Author Initials} & \textbf{Change} & \textbf{Changed At}\\ \midrule \endhead \bottomrule \endlastfoot +October 28, 2026 / 5.1 & VS, CDX & Reviewed run-11 against instructor Chapter 5; added Vincent's external IPv4/IPv6 TCP retest (18 expected outcomes), pinned deployment links to the reviewed merge, recorded final PR approval and CI/build results, and qualified timing, sampling, and memory-pressure conclusions. Documented local TinyTeX builds to one ignored PDF. Hosts and Passwords tables are unchanged because no deployed service, account, or credential changed. & \ChapterRef{SREMonitoring}, \ChapterRef{AIPromptLog}\\ October 28, 2026 / 5.0 & BY, CD & Assignment 7: added \ChapterRef{SREMonitoring}. Deployed Prometheus, Grafana OSS, Node Exporter, and Blackbox Exporter on The-Ocean (pinned by digest, memory-capped, no host ports) after a capacity trial on the 1\,GiB plan; disabled four unused host services and added a second swap file; added \texttt{metrics.yebilly.me} behind the Jenkins allowlist and a private probe network. Recorded the dashboard, normal-build comparison, SLI/SLO worked example and measured window, contact-point, capacity-alert, collection-health, and Jenkins-outage tests with Discord notifications, restart persistence, blameless review, and improvement issues \#20 and \#21. After an independent review of the draft: added the collection-health rule and its test, replaced the initial Grafana administrator password, ran Blackbox Exporter as non-root, and added runbooks, network and storage detail in the diagram, host CPU checks, a targets table, citations with a Bibliography, and four corrected figures. \textbf{Updated the Hosts table} (monitoring containers, ports, volumes, \texttt{metrics} DNS, swap, monitoring and backup status) and \textbf{the Passwords table} (Grafana accounts, monitoring secrets file, Discord webhook). Set the Assignment 7 title page and abstract; added glossary terms. & Title and abstract, \ChapterRef{SREMonitoring}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\ October 23, 2026 / 4.2 & VS, CDX & Corrected the Jenkins lockfile link to the recorded 63-plugin revision; clarified clean reproduction, Jenkins revision selection, and the unconfirmed webhook-timeout cause. Scoped the existing update-check result to the 63 checked plugins. Theme plugins are unchanged at Vincent's direction. Hosts and Passwords tables are unchanged because no service, account, or credential changed. & \ChapterRef{JenkinsCI}, \ChapterRef{AIPromptLog}\\ October 23, 2026 / 4.1 & BY, CD & Corrected the Jenkins instructor access path to the Stevens campus network, with off-campus graders' addresses added on request; recorded the GlobalProtect test showing the Stevens VPN is split-tunnel and therefore not an access path, and Vincent's passing campus test on \texttt{Stevens-Net}; added the real webhook delivery table and diagnosis of one timed-out delivery, UML stereotypes on the deployment diagram, the stored Jenkins URL, free disk space, reconciled plugin counts, and corrected wording on push rights, resource limits, and corrective actions. Shortened AI initials in this table (CDX for Codex, CD for Claude). Hosts and Passwords tables are unchanged. & \ChapterRef{JenkinsCI}, \ChapterRef{AIPromptLog}\\ diff --git a/manual/latex/devopsReferences.bib b/manual/latex/devopsReferences.bib index 6d86d57..03de142 100644 --- a/manual/latex/devopsReferences.bib +++ b/manual/latex/devopsReferences.bib @@ -47,3 +47,10 @@ howpublished = {\url{https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/}}, note = {{Grafana OSS} 13.2; accessed Oct. 28, 2026} } + +@misc{MicrosoftTestNetConnection, + author = {{Microsoft}}, + title = {{Test-NetConnection}}, + howpublished = {\url{https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection}}, + note = {Accessed Oct. 28, 2026} +} diff --git a/manual/latex/devopsSRE.tex b/manual/latex/devopsSRE.tex index 7ffd785..0671cc8 100644 --- a/manual/latex/devopsSRE.tex +++ b/manual/latex/devopsSRE.tex @@ -22,24 +22,24 @@ at \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/9b0dc4d}{\t implemented it with Claude Code running droplet commands that Billy approved; Vincent is the verifier and pull-request reviewer. Times are UTC unless marked Eastern (EDT, UTC$-$4). Sections~\ref{Section:SREDeployment}--\ref{Section:SREQuality} -follow the eight rubric rows in order. Raw timestamps for every test are kept -in -\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/EVIDENCE.md}{\texttt{monitoring/EVIDENCE.md}}; -repository links in this chapter point to \texttt{main}, where -\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/22}{PR~\#22} -merges this work. +follow the eight rubric rows in order. Deployment timestamps are kept in +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/EVIDENCE.md}{\texttt{monitoring/EVIDENCE.md}}; +configuration links in this chapter identify the reviewed deployment snapshot +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/34c4c7488aa646ecc20f8a34012458a544c97069}{\texttt{34c4c74}}, the merge of +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/22}{PR~\#22}. +Version 5.1 adds Vincent's later external TCP retest and final review corrections. \begin{devopsNote}[Result summary] The stack fits on the existing 1\,GiB droplet without a resize, with memory caps and a second swap file. Both HTTPS probes, all three alert rules, and the Discord route were tested for real: a disk-space rule fired and resolved -under a temporarily raised threshold; a planned 4~min~48~s Jenkins stop fired -the availability alert about 2~minutes after injection and resolved about -1.5~minutes after the restart; and stopping Blackbox Exporter fired the +under a temporarily raised threshold; a planned Jenkins stop lasting 4~min~48~s fired +the availability alert about 2~minutes after injection; the rule returned to +normal about 1.5~minutes after restart and Discord showed resolution at 16:12; and stopping Blackbox Exporter fired the collection-health rule and the availability rule's no-data handling. Gitea stayed available throughout. The -main measured weakness is memory pressure: about 15\% of CPU time is spent -waiting on swap (improvement +main measured weakness is memory pressure: about 15\% I/O wait was observed +alongside swap-in activity (improvement \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/21}{issue~\#21}). \end{devopsNote} @@ -71,7 +71,7 @@ shows its cost: frequent swap-in wait. \paragraph{Versions and images.} All four images come from the projects' own repositories~\cite{PrometheusDocs,GrafanaDocker,NodeExporter,BlackboxExporter} and are pinned by tag \emph{and} digest in -\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/compose.yaml}{\texttt{monitoring/compose.yaml}} +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/compose.yaml}{\texttt{monitoring/compose.yaml}} (Table~\ref{Table:SREImages}). The instructor suggests a \texttt{.env} file for the tags; this repository ignores every \texttt{.env} file to keep secrets out of Git, so the versions live in the Compose file instead and are @@ -187,7 +187,7 @@ hold its certificates and configuration.} \paragraph{Configuration in Git and secrets outside it.} The -\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring}{\texttt{monitoring/}} +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring}{\texttt{monitoring/}} folder holds the Compose file, \texttt{prometheus/prometheus.yml}, \texttt{blackbox/blackbox.yml}, Grafana provisioning (data source, dashboard loader, three alert rules, the contact point), the dashboard JSON, and a @@ -445,8 +445,11 @@ Caddyfile were copied to \texttt{\textasciitilde/gitea/backup-20261028T144040Z}. \pagebreak[3] \paragraph{External exposure tests.} Billy's laptop (home network on the team allowlist; IPv6 available) ran the -tests in Table~\ref{Table:SREExposure} at 14:57 with \texttt{curl}; a status -of \texttt{000} means no TCP connection within the 5\,s limit: +tests in Table~\ref{Table:SREExposure} at 14:57 with \texttt{curl}. The raw-port +commands returned HTTP code \texttt{000}, which establishes no HTTP response, +but alone does not establish that TCP connection setup failed. The later +TCP retest below supplies that evidence; the original commands remain here +as the historical record: \begin{minted}[breaklines]{sh} for host in 147.182.178.136 "[2604:a880:400:d1:0:5:22d:6001]"; do for p in 3000 3001 8080 9090 9100 9115 50000; do @@ -462,8 +465,7 @@ curl -s -6 -o /dev/null --resolve ci.yebilly.me:443:2604:a880:400:d1:0:5:22d:600 \begin{tabularx}{\linewidth}{L{5.2cm}L{1.9cm}Y} \caption{External exposure tests, October 28, 2026\label{Table:SREExposure}}\\ \toprule \textbf{Test} & \textbf{Expected} & \textbf{Actual}\\ \midrule -TCP 3000, 3001, 8080, 9090, 9100, 9115, 50000 on the droplet's IPv4 & no connection & no connection on all 7 \StatusPass\\ -Same 7 ports on the droplet's IPv6 & no connection & no connection on all 7 \StatusPass\\ +Raw ports on IPv4 and IPv6 (7 per address) & no connection & HTTP \texttt{000}; TCP result established by Table~\ref{Table:SRETCPRetest}\\ \texttt{https://metrics\ldots/login} over IPv4 (allowlisted) & 200 & 200 \StatusPass\\ \texttt{http://metrics.yebilly.me} & redirect & 308 to HTTPS \StatusPass\\ Grafana API without login (\texttt{/api/dashboards/\ldots}, data-source proxy query) & 401 & 401, 401 \StatusPass\\ @@ -474,6 +476,45 @@ Grafana API without login (\texttt{/api/dashboards/\ldots}, data-source proxy qu \bottomrule \end{tabularx}} + +\paragraph{External TCP retest.} +On October 28 Vincent ran Windows PowerShell \texttt{Test-NetConnection}~\cite{MicrosoftTestNetConnection} +from his laptop on external Wi-Fi, outside the droplet's SSH session. +The CSV spans 19:32:40--19:40:00 UTC (15:32:40--15:40:00 EDT). +Each timestamp is recorded after that connection attempt returned. +The targets were IPv4 \texttt{147.182.178.136} and IPv6 +\nolinkurl{2604:a880:400:d1:0:5:22d:6001}, without relying on AAAA records. +For each address, port 443 was tested first as a positive control; +both controls succeeded, so neither address family was skipped. +The actual per-port command was: +\begin{minted}[breaklines]{powershell} +Test-NetConnection -ComputerName $target -Port $port ` + -InformationLevel Detailed -WarningAction SilentlyContinue +\end{minted} +The script recorded \texttt{TcpTestSucceeded}, expected reachability, and UTC +time for ports 443, 80, 3000, 3001, 8080, 9090, 9100, 9115, and 50000. +\texttt{True} means TCP connection establishment succeeded; \texttt{False} +means it did not succeed from this test network at that time. It does not +identify which firewall or network layer prevented the connection. + +\begin{table}[H] +\centering\small +\caption{Vincent's external TCP retest, October 28, 2026\label{Table:SRETCPRetest}} +\begin{tabular}{@{}L{6.0cm}cc@{}} +\toprule \textbf{Ports} & \textbf{IPv4} & \textbf{IPv6}\\ \midrule +443 (HTTPS positive control) & True & True\\ +80 (HTTP) & True & True\\ +3000, 3001, 8080, 9090, 9100, 9115, 50000 & all False & all False\\ +\bottomrule +\end{tabular} +\end{table} +All 18 outcomes matched the expected exposure. These are TCP tests; +the earlier hostname-based tests establish the HTTP redirect, login, +authentication, and TLS route behavior. The sanitized CSV and repeatable +script are versioned under \nolinkurl{monitoring/evidence/}; only the local +Wi-Fi name is replaced by a generic source description. Original results +remain under ignored \nolinkurl{build/evidence/assignment7-port-tests/}. + %--------------------------------------------------------------- \section{Dashboard and CI Correlation} \label{Section:SREDashboard} @@ -484,7 +525,7 @@ The provisioned dashboard \emph{Group 1 SRE} uses Eastern time (\texttt{America/New\_York}), a 6-hour default range, 30\,s refresh, and the private data source \texttt{http://prometheus:9090}. It was written for this deployment, not imported, and its definition is versioned as -\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/grafana/dashboards/sre.json}{\texttt{sre.json}}. Table~\ref{Table:SREPanels} lists the six +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/grafana/dashboards/sre.json}{\texttt{sre.json}}. Table~\ref{Table:SREPanels} lists the six required panels and the optional seventh with their queries; Figure~\ref{Figure:SREDashboard} shows them. In the queries, \texttt{R} stands for the root-filesystem selector @@ -576,9 +617,10 @@ Grafana's from 73 to 140\,MiB. Over 15 minutes the CPU modes were 74.3\% idle, \textbf{14.7\% I/O wait}, 4.5\% system, 4.0\% user, and 1.6\% hypervisor steal. The busy line is therefore mostly memory being paged back in from swap, not computation. The dashboard was then changed to add the I/O-wait line to -panel~1, so it shows this directly. The same pressure explains a Gitea probe -of about 1.9\,s, one Grafana request that failed after 4\,s, and the later -build~\#2 taking 34\,s. +panel~1, so it shows the I/O-wait component directly. A Gitea probe of about +1.9\,s, one Grafana request that failed after 4\,s, and the later build~\#2 +taking 34\,s are consistent with memory pressure contributing to delays. +The observations do not isolate the cause of each individual delay. \begin{figure}[H] \centering @@ -639,8 +681,8 @@ Jenkins & 20 & 20 & 9 & 45\%\\ \end{tabular} \end{table} -All expected samples arrived (16:03:20 to 16:12:50), so the window has no -unknown time. If samples had been missing, they would be reported as missing, +All 20 expected samples arrived (16:03:20 to 16:12:50), so no scheduled +observations are missing. Service behavior between probes remains unobserved. If samples had been missing, they would be reported as missing, never counted as successes. Jenkins' 11 failed samples (16:05:20--16:10:20) correspond to about 5.5 minutes of failed probes. This shows what the SLI measures during a known outage. It cannot show whether the 24-hour SLO was @@ -684,13 +726,14 @@ Condition / pending & below 1 for 1\,minute & below 15 for 5\,minutes & below 1 No data / error & Alerting / Error & Alerting / Error & Alerting / Error\\ Notification & \texttt{team-alerts}; group by alert and instance & \texttt{team-alerts}; group by alert & \texttt{team-alerts}; group by alert\\ Timing & group wait 10\,s, group interval 1\,m, repeat 4\,h & same & same\\ -Runbook & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/README.md\#runbook-https-service-down}{README} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/README.md\#runbook-root-disk-space-low}{README} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/monitoring/README.md\#runbook-monitoring-target-down}{README}\\ +Runbook & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/README.md\#runbook-https-service-down}{README} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/README.md\#runbook-root-disk-space-low}{README} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34c4c7488aa646ecc20f8a34012458a544c97069/monitoring/README.md\#runbook-monitoring-target-down}{README}\\ \bottomrule \end{tabularx}} -The worst-case time from an outage to a notification is about one scrape -(30\,s) plus one evaluation (30\,s) plus the pending period (60\,s) plus the -group wait (10\,s): 2~minutes 10~seconds. The 15\% disk threshold is about +A nominal notification-delay estimate is one scrape (30\,s), one evaluation +(30\,s), the pending period (60\,s), and the group wait (10\,s): +2~minutes 10~seconds. Query/probe execution, scheduling, notification grouping, +and delivery can add delay; this is not a guaranteed upper bound. The 15\% disk threshold is about 3.7\,GB of the 24.9\,GB disk: enough time to clear build cache, journals, or old images before Gitea, Jenkins, or Prometheus fail to write. @@ -845,8 +888,10 @@ states polled every 6\,s, the Jenkins log, and Discord timestamps, all in UTC. \paragraph{Measured response.} Taking the injection as the start, the first failed probe came after 20\,s, the rule fired after 1~minute 52~seconds, and the notification arrived after -about 2~minutes. That is within the 2~minutes 10~seconds that the settings -allow. From the restart, Jenkins was fully up after 57\,s, the first +about 2~minutes. Discord's screenshot records only the minute (16:07), +so receipt is bounded to 2~minutes through less than 3~minutes after injection; +it cannot prove a 2~minute~10~second maximum. The observed rule firing is +consistent with the scrape, evaluation, and pending settings. From the restart, Jenkins was fully up after 57\,s, the first successful probe came after 62\,s, and the rule returned to normal after about 1.5~minutes. Probes failed for 5~minutes 30~seconds in total (16:05:20 to 16:10:50). The Gitea probe stayed at 1 throughout. @@ -882,15 +927,19 @@ the status report back to Gitea after the outage. The changes then went through the established review gate as \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/22}{PR~\#22} (\texttt{feature/issue-19-monitoring} into \texttt{main}): the required -check \texttt{vpn-dns-gateway/pipeline/pr-main} passed (on the manual commit -at 17:12:32), and Vincent approved at 17:09; Gitea dismisses an approval -as stale when later commits arrive, so branch protection requires a fresh -approval of the final head before the merge can happen. The manual-PDF workflow runs only on pushes to \texttt{main}, on -Vincent's laptop runner, so its post-outage run is the merge build that -produced this PDF; the title-page build suffix -(\texttt{+build.}\textit{run}\texttt{.}\textit{commit}) identifies that run -and the merge commit, listed under -\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions}{Gitea Actions}. +check \texttt{vpn-dns-gateway/pipeline/pr-main} passed on final head +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/11270cfced41f700851753ab85c1202c71b4dff3}{\texttt{11270cf}} +at 18:16:18 +(\href{https://ci.yebilly.me/job/vpn-dns-gateway/job/PR-22/4/display/redirect}{PR-22 build~\#4}). +Vincent approved that head at 18:18:11; PR~\#22 merged at 18:18:36 as +\texttt{34c4c74}. These final-head records supersede the earlier approvals +that became stale after later commits. The merge's Jenkins main build~\#5 +passed at 18:18:59. The +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions/runs/11/jobs/11}{run-11 manual job} +passed at 18:19:27, producing version \texttt{5.0+build.11.34c4c74}. +This verifies the post-outage manual build on Vincent's laptop runner. +The version 5.1 corrections are compiled locally; their PDF does not claim +to be the run-11 artifact. \paragraph{How this differs from a failed build.} In \ChapterRef{JenkinsCI}, PR~\#15's deliberate unit-test failure @@ -914,8 +963,9 @@ link and the failing URL. \emph{Measurement gaps:} the acknowledgement was given to the operator rather than posted in Discord before the restart, so its exact time is not timestamped in the channel; the next exercise should acknowledge in the channel first. Probe timing is limited to 30\,s samples. -The minute-long Jenkins start-up and the swap pressure in -Section~\ref{Section:SREDashboard} share one cause: too little memory. +The minute-long Jenkins start-up occurred alongside the swap pressure in +Section~\ref{Section:SREDashboard}. Memory pressure may have contributed, +but this exercise did not isolate its effect on start-up time. \emph{Shared failure domain:} monitoring runs on the same droplet, so a whole-droplet outage would silence collection and alerts together, and the probe never leaves the droplet. Improvements, in priority order: @@ -972,9 +1022,15 @@ updated title and abstract; \ChapterRef{HostsPasswords} adds the monitoring host details, \texttt{metrics.yebilly.me}, the Grafana accounts, and the Discord webhook; new glossary terms are indexed; sources are cited in the Bibliography; and AI assistance is recorded in \ChapterRef{AIPromptLog}. The -reviewed source is the head of -\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/22}{PR~\#22}, -merged into \texttt{main}; the merge commit and the Gitea Actions run that -built this PDF are identified by the build suffix on the title page. +reviewed deployment source is PR~\#22 head \texttt{11270cf}, merged as +\href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/34c4c7488aa646ecc20f8a34012458a544c97069}{\texttt{34c4c74}}; +the configuration links above pin that merge. Version 5.1 records Vincent's +TCP retest, the final review and CI records, and qualified measurement +conclusions. The original run-11 PDF remains historical evidence. Local +builds replace the ignored PDF in \texttt{manual/}; only Actions builds add +the actual run/commit suffix. Hosts and Passwords tables remain unchanged +because this correction changes no service, account, or credential. +The missing pre-deployment build observation remains an explicit limitation +in Section~\ref{Section:SREDashboard}; the later comparison cannot recreate it. \endgroup diff --git a/manual/latex/makefilePowerShell.ps1 b/manual/latex/makefilePowerShell.ps1 index 5bd497f..1f58d18 100644 --- a/manual/latex/makefilePowerShell.ps1 +++ b/manual/latex/makefilePowerShell.ps1 @@ -36,15 +36,16 @@ try { exit 0 } - $repoDirectory = Split-Path -Parent $projectDirectory + $manualDirectory = Split-Path -Parent $projectDirectory + $repoDirectory = Split-Path -Parent $manualDirectory $projectsDirectory = Split-Path -Parent $repoDirectory $toolDirectories = @() if ($env:DEVOPS_LATEX_BIN) { $toolDirectories += $env:DEVOPS_LATEX_BIN } $toolDirectories += @( - (Join-Path $env:APPDATA 'TinyTeX\bin\windows'), (Join-Path $projectsDirectory 'Tools\LaTeX\TinyTeX\bin\windows'), + (Join-Path $env:APPDATA 'TinyTeX\bin\windows'), (Join-Path $env:LOCALAPPDATA 'Programs\MiKTeX\miktex\bin\x64'), 'C:\Program Files\MiKTeX\miktex\bin\x64' ) diff --git a/monitoring/evidence/README.md b/monitoring/evidence/README.md new file mode 100644 index 0000000..c83aa40 --- /dev/null +++ b/monitoring/evidence/README.md @@ -0,0 +1,30 @@ +# External TCP evidence, 28 October 2026 + +Vincent ran the PowerShell loop in the Codex conversation on his external +Wi-Fi connection, outside SSH. `ports-20261028-154000.csv` retains all 18 +connection outcomes and UTC completion timestamps from that run. Only the +local Wi-Fi name in `Network` has been replaced by a generic description; +the original CSV is retained under ignored `build/evidence/assignment7-port-tests/`. + +The tests ran 19:32:40-19:40:00 UTC (15:32:40-15:40:00 EDT). TCP 443 and 80 +succeeded on both droplet addresses. TCP 3000, 3001, 8080, 9090, 9100, 9115, +and 50000 failed on both. The 443 controls passed before the negative tests. +These results establish reachability from the tested client network at that +time; they do not identify which networking layer blocked a connection or +test TLS, redirects, or application authentication. + +`test-ports.ps1` preserves the executed loop as a reusable script, with network +description and output location exposed as parameters. This saved script was +syntax-checked; the historical evidence comes from Vincent's earlier run of +the conversational loop, not a subsequent execution of this file. + +To repeat from repository root in Windows PowerShell: + +```powershell +./monitoring/evidence/test-ports.ps1 -NetworkDescription 'External Wi-Fi' +``` + +A failed HTTPS control makes that address family's remaining tests +inconclusive and skips them. Keep the new date and results; do not replace +the historical evidence. See Microsoft's +[Test-NetConnection documentation](https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2025-ps). diff --git a/monitoring/evidence/ports-20261028-154000.csv b/monitoring/evidence/ports-20261028-154000.csv new file mode 100644 index 0000000..019b471 --- /dev/null +++ b/monitoring/evidence/ports-20261028-154000.csv @@ -0,0 +1,19 @@ +TimeUTC,Network,Target,Port,ExpectedReachable,TcpTestSucceeded,Result +2026-10-28T19:32:40.4700276Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,443,True,True,MATCH +2026-10-28T19:32:49.7334208Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,80,True,True,MATCH +2026-10-28T19:33:24.9527541Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,3000,False,False,MATCH +2026-10-28T19:34:00.0160397Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,3001,False,False,MATCH +2026-10-28T19:34:35.0118147Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,8080,False,False,MATCH +2026-10-28T19:35:10.1101959Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,9090,False,False,MATCH +2026-10-28T19:35:44.9897149Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,9100,False,False,MATCH +2026-10-28T19:36:19.9643517Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,9115,False,False,MATCH +2026-10-28T19:36:54.9233170Z,External Wi-Fi (Vincent laptop; local network name redacted),147.182.178.136,50000,False,False,MATCH +2026-10-28T19:36:55.4230345Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,443,True,True,MATCH +2026-10-28T19:36:55.8361207Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,80,True,True,MATCH +2026-10-28T19:37:22.1944035Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,3000,False,False,MATCH +2026-10-28T19:37:48.6712583Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,3001,False,False,MATCH +2026-10-28T19:38:15.0191304Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,8080,False,False,MATCH +2026-10-28T19:38:41.1817674Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,9090,False,False,MATCH +2026-10-28T19:39:07.6837526Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,9100,False,False,MATCH +2026-10-28T19:39:34.1413090Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,9115,False,False,MATCH +2026-10-28T19:40:00.0333941Z,External Wi-Fi (Vincent laptop; local network name redacted),2604:a880:400:d1:0:5:22d:6001,50000,False,False,MATCH diff --git a/monitoring/evidence/test-ports.ps1 b/monitoring/evidence/test-ports.ps1 new file mode 100644 index 0000000..54c5423 --- /dev/null +++ b/monitoring/evidence/test-ports.ps1 @@ -0,0 +1,39 @@ +param( + [Parameter(Mandatory)][string]$NetworkDescription, + [string]$OutputDirectory = 'build/evidence/assignment7-port-tests' +) + +# Run on an external Windows client, outside the droplet's SSH session. +# Use a generic network description; do not include a personal address or SSID. +$targets = @('147.182.178.136', '2604:a880:400:d1:0:5:22d:6001') +$results = @() +foreach ($target in $targets) { + foreach ($port in @(443, 80, 3000, 3001, 8080, 9090, 9100, 9115, 50000)) { + Write-Host "Testing $target port $port..." + $test = Test-NetConnection -ComputerName $target -Port $port ` + -InformationLevel Detailed -WarningAction SilentlyContinue + $reachable = [bool]$test.TcpTestSucceeded + $expected = $port -in @(80, 443) + $result = [pscustomobject]@{ + TimeUTC = (Get-Date).ToUniversalTime().ToString('o') + Network = $NetworkDescription + Target = $target + Port = $port + ExpectedReachable = $expected + TcpTestSucceeded = $reachable + Result = if ($port -eq 443 -and !$reachable) { + 'INCONCLUSIVE: HTTPS control failed' + } elseif ($reachable -eq $expected) { 'MATCH' } else { 'UNEXPECTED' } + } + $results += $result + $result | Format-Table Target, Port, TcpTestSucceeded, Result -AutoSize + if ($port -eq 443 -and !$reachable) { + Write-Host 'Skipping remaining ports for this address.' + break + } + } +} +New-Item -ItemType Directory -Force -Path $OutputDirectory | Out-Null +$file = Join-Path $OutputDirectory ("ports-{0}.csv" -f (Get-Date -Format 'yyyyMMdd-HHmmss')) +$results | Export-Csv -LiteralPath $file -NoTypeInformation +Write-Host "Results saved to $file"