Merge pull request 'Manual 4.1: access path, campus test, audit fixes' (#17) from docs/history-initials into main
vpn-dns-gateway/pipeline/head This commit looks good
Automated Manual Build / manual (push) Successful in 34s

Reviewed-on: #17
Reviewed-by: vsun1 <vsun4046@gmail.com>
This commit was merged in pull request #17.
This commit is contained in:
2026-10-23 20:55:12 +00:00
8 changed files with 174 additions and 64 deletions
+3 -2
View File
@@ -7,8 +7,9 @@ colors.yebilly.me {
reverse_proxy color-buttons-app:3000
}
# Jenkins: Stevens network (155.246.0.0/16, campus or Stevens VPN) plus team IPs
# from CI_TEAM_IPS in the untracked .env. Everyone else gets 403 before login.
# Jenkins: Stevens campus network (155.246.0.0/16) plus team and approved grader
# IPs from CI_TEAM_IPS in the untracked .env. Everyone else gets 403 before login.
# The Stevens VPN is split-tunnel, so it does not give visitors a 155.246.x.x address.
ci.yebilly.me {
@denied not remote_ip 155.246.0.0/16 {$CI_TEAM_IPS}
respond @denied 403
+20 -1
View File
@@ -604,7 +604,7 @@ password, or the \texttt{jenkins-bot} token.
Claude read the droplet state, ran Vincent's guarded test unchanged
(first run aborted on upload permissions it introduced; fixed with
\texttt{chmod}; second run passed), wrote the Dockerfile, plugin lockfile,
Compose, Caddy, and README changes, deployed Jenkins with a backup and
Compose, Caddy, and README changes, deployed Jenkins after backing up the Compose and Caddy files and with a
monitored rollout, and pushed the feature commits after Billy asked.
Billy performed every web-interface step (DNS, Jenkins setup and security,
bot account and token, credential, job, webhook, branch protection, PR
@@ -628,3 +628,22 @@ Unresolved: three theme plugins installed through the web interface are not
in the lockfile; the course deadline was reported as Friday but not checked
on the course page by Claude; the final PDF needs the Gitea Actions runner
on Vincent's laptop. No submission was performed by Claude.
\section{Assignment 6 Access-Path Correction}
Date: October 23, 2026; Tool: Anthropic Claude Code (Claude Opus 5.5);
Human: Billy Ye.
Inputs: an independent model review of the version 4.0 PDF, which noted that
the instructor access path (campus or Stevens VPN) had not been tested;
Billy's GlobalProtect connection to \texttt{sitvpn.stevens.edu} and his
redacted settings screenshot. Claude checked the public address and routing
table on Billy's laptop while the VPN was connected: the address was
unchanged and only 155.246.0.0/16 used the VPN adapter, so the VPN is
split-tunnel. Human decision: state the campus network plus addresses added
on request as the approved path. Outputs used: corrected access-path text,
an exposure-table row, the GlobalProtect figure, the Caddyfile comment,
version 4.1 and its history row. Billy's residential address was kept out of
the report. Vincent then tested from campus Wi-Fi \texttt{Stevens-Net}
(public address 155.246.151.38) and the sign-in page loaded; Claude combined
his screenshots into one figure, blurring the password field and profile
icon. A friend reportedly on campus saw a blank page (the 403); his network
and address were not recorded, so no conclusion is drawn from it.
+2 -2
View File
@@ -36,13 +36,13 @@
% Replace these values for each assignment.
\newcommand{\AssignmentTitle}{Gitea + Jenkins Autobuild and Testing -- Group}
\newcommand{\AssignmentNumber}{6}
\newcommand{\DocumentVersion}{4.0}
\newcommand{\DocumentVersion}{4.1}
\newcommand{\DocumentStatus}{Draft}
\newcommand{\CourseNumber}{SSW 590}
\newcommand{\CourseName}{DevOps}
\newcommand{\Authors}{Vincent Sun and Billy Ye}
\newcommand{\Organization}{Stevens Institute of Technology}
\newcommand{\DocumentDate}{10/22/2026}
\newcommand{\DocumentDate}{10/23/2026}
\newcommand{\DueDate}{Friday by 11:59pm}
% CI writes this ignored file in its checkout; ordinary local builds stay unchanged.
\providecommand{\CIBuildSuffix}{}
+23 -22
View File
@@ -12,28 +12,29 @@ 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 22--23, 2026 / 4.0 & BY, VS, Claude & Assignment 6: ran the guarded Jenkins capacity test on the resized 1\,GiB droplet; deployed Jenkins 2.580.1 LTS with a hashed plugin lockfile behind Caddy at \texttt{ci.yebilly.me} (Stevens and team allowlist); integrated Gitea via a private webhook and the \texttt{jenkins-bot} identity; required check \texttt{vpn-dns-gateway/pipeline/pr-main} on \texttt{main}; recorded PR~\#15's pass, blocked failure, repair, review, and merge, the restart-persistence and IPv4/IPv6 exposure tests, and the plugin-update check. \textbf{Updated the Hosts table} (resize, Jenkins, \texttt{ci} DNS, Color Buttons retired) and \textbf{the Passwords table} (Jenkins administrators, \texttt{jenkins-bot} account and token, CI allowlist file). Added glossary terms, set the Assignment 6 title page and abstract, and noted the completed Assignment 5 merge. & Title and abstract, \ChapterRef{JenkinsCI}, \ChapterRef{HostsPasswords}, \ChapterRef{AutomatedManualBuild}, \ChapterRef{AIPromptLog}\\
October 21, 2026 / preparation & VS, Codex & Recorded core-test timing qualification and the Billy/Claude handoff; prepared the plugin/pipeline test and verified it locally after separating plugin resolution from runtime. The droplet run remains unverified. Hosts and Passwords tables are unchanged because no persistent Jenkins service or real integration credential was added. & \ChapterRef{AIPromptLog}\\
October 7, 2026 / 3.4 & VS, Codex & Added the successful run-4 repair screenshots and verified its commit, PDF version, artifact contents, and SHA-256; completed the failure/repair evidence. Replaced the abstract's template instructions with an Assignment 5 summary. Hosts and Passwords tables are unchanged from 3.3; final workflow PDF review and submission remain pending. & Title and abstract, \ChapterRef{AutomatedManualBuild}, \ChapterRef{AIPromptLog}\\
October 7, 2026 / 3.3 & VS, Codex & Recorded successful run 2 and intentional failure run 3 with screenshots and downloaded diagnostic verification; removed the test error for a repair push. Updated both the Hosts section and hints-only Passwords table for the local runner; passing repair evidence and final artifact review remain pending. & \ChapterRef{AutomatedManualBuild}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
October 7, 2026 / 3.2 & VS, Codex & Set the Assignment 5 title, number, and date after successful Gitea run 1; retained its original PDF and evidence. The new title omits the duplicate LMS suffix. Added the draft Automated Manual Build chapter with the workflow and first-PDF screenshots. Hosts and Passwords tables are unchanged; remaining workflow tests and runner records are pending. & Title page, \ChapterRef{AutomatedManualBuild}, \ChapterRef{AIPromptLog}\\
October 7, 2026 / preparation & VS, Codex & Prepared the Assignment 5 local runner, compiler image, and push workflow; verified local compilation, failure/repair, and revision checks. Corrected Windows glossary/index regeneration after layout settles. Real workflow artifacts and the assignment chapter remain pending. Document version, Hosts table, and Passwords table are unchanged. & \ChapterRef{AIPromptLog}\\
September 29, 2026 / 3.1 & BY, Claude & Restored the Assignment 3 Color Buttons site at \texttt{colors.yebilly.me} behind the same Caddy proxy (no published port, 96\,MiB memory cap, graceful reload without restarting Gitea); versioned the change through reviewed PR~\#11 (closes issue~\#10); updated the Caddyfile excerpt and verification note, and \textbf{updated the Hosts table} with the new hostname, URL, and private service. The Passwords table is unchanged. & \ChapterRef{GiteaFoundation}, \ChapterRef{HostsPasswords}\\
September 28, 2026 / 3.0 & BY, VS, Claude & Assignment 4: deployed pinned Gitea 1.27.3 with SQLite behind Caddy and Let's Encrypt at \texttt{git.yebilly.me} (Student Pack domain), applied the \texttt{gitea-fw} Cloud Firewall, and recorded DNS, persistence, certificate-renewal, external-exposure, and issue-to-merge evidence; \textbf{created the Hosts table and the Passwords (hints-only) table}; added TLS, SSH, and ACME glossary terms and set the Assignment 4 title page. & \ChapterRef{GiteaFoundation}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.6 & VS, Codex & Kept each proposed SWOT table with its tool heading and removed the forced page break that separated the comparison charts. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.5 & VS, Codex & Clarified that AdGuard Home and Pi-hole can be compared through direct Ubuntu installation or containers; made Docker Compose optional and aligned the deployment workflow and SWOT wording. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.4 & VS, Codex & Removed the provisional TikZ dashboard figure and marked the dashboard approach as subject to change after the group consults the professor; retained the proposed operational checks. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.3 & VS, Codex & Simplified the proposed operations dashboard around DigitalOcean Insights and planned VPN stability-under-load and DNS ad-block tests; updated the TikZ mockup to distinguish host graphs from service-check results. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.2 & VS, Codex & Added a TikZ mockup of the proposed operational dashboard, with placeholder values and planned comparison filters; clarified that live measurements and a running dashboard remain future project work. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.1 & VS, Codex & Added second-device LaTeX Docker evidence: a versioned one-go PowerShell helper, the successful build/run screenshot, a folder listing, and the opened PDF; documented retained logs and distinct run values. & \ChapterRef{LaTeXDocker}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.0 & VS, Codex & Drafted the Project Proposal for a resource-constrained personal VPN and DNS gateway, including proposed tools, comparison tests, dashboard, security plan, feasibility limits, and four provisional SWOT charts; updated the glossary and rebuilt the report. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 1.9 & BY, Claude & Added the LaTeX Docker chapter (Assignment 3, Task 4): a Debian TeX Live Dockerfile, a sample document, and the local build and compile evidence; removed title-page placeholder brackets and corrected the due date. & \ChapterRef{LaTeXDocker}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 1.8 & BY, Claude & Added the Digital Ocean Docker Deployment chapter (Assignment 3, Tasks 1--3) with screenshots, converted Assignment 2 terminal output to framed \texttt{Verbatim} blocks, set the Assignment 3 title-page values, and added the \texttt{minted}/TikZ packages and \texttt{-shell-escape} build flag they require. & \ChapterRef{DigitalOceanDockerDeployment}, \ChapterRef{AIAgentGuide}, \ChapterRef{AIPromptLog}\\
September 20, 2026 / 1.7 & VS, Codex & Clarified that the Projects folder layout is optional, distinguished user-terminal compiler operation from AI sandbox access, and documented explicit TinyTeX path and short-path workarounds while retaining MiKTeX only as an existing fallback. & \ChapterRef{AIAgentGuide}, \ChapterRef{DocumentGuide}, \ChapterRef{AIPromptLog}\\
September 19, 2026 / 1.6 & VS, Codex & Relocated the shared TinyTeX toolchain, documented per-user TinyTeX setup, and automated complete local compilation including bibliography, glossary, acronym, and index passes. & \ChapterRef{AIAgentGuide}\\
September 19, 2026 / 1.5 & VS, Codex & Established the Group 1 repository structure, preserved the original instructor template as a separate reference snapshot, and added the AI Agent Requirements appendix and repository routing files. & \ChapterRef{AIAgentRequirements}, \ChapterRef{AIAgentGuide}, \ChapterRef{AIPromptLog}\\
September 15, 2026 / 1.4 & VS, Codex & Completed Sections C, F, G, H, I, and J (Questions 13--16 and 24--40), including verified Linux-environment evidence, explanations, compilation, visual review, and the corresponding AI prompt-log records. & \ChapterRef{LinuxCommands}, \ChapterRef{AIPromptLog}\\
September 15, 2026 / 1.3 & BY, Claude & Completed Sections A, B, D, and E (Questions 1--12 and 17--23), including environment-setup evidence, explanations, and LaTeX formatting, with the corresponding Claude assistance record retained as written. & \ChapterRef{LinuxCommands}, \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}\\
October 22--23, 2026 / 4.0 & BY, VS, CD & Assignment 6: ran the guarded Jenkins capacity test on the resized 1\,GiB droplet; deployed Jenkins 2.580.1 LTS with a hashed plugin lockfile behind Caddy at \texttt{ci.yebilly.me} (Stevens and team allowlist); integrated Gitea via a private webhook and the \texttt{jenkins-bot} identity; required check \texttt{vpn-dns-gateway/pipeline/pr-main} on \texttt{main}; recorded PR~\#15's pass, blocked failure, repair, review, and merge, the restart-persistence and IPv4/IPv6 exposure tests, and the plugin-update check. \textbf{Updated the Hosts table} (resize, Jenkins, \texttt{ci} DNS, Color Buttons retired) and \textbf{the Passwords table} (Jenkins administrators, \texttt{jenkins-bot} account and token, CI allowlist file). Added glossary terms, set the Assignment 6 title page and abstract, and noted the completed Assignment 5 merge. & Title and abstract, \ChapterRef{JenkinsCI}, \ChapterRef{HostsPasswords}, \ChapterRef{AutomatedManualBuild}, \ChapterRef{AIPromptLog}\\
October 21, 2026 / preparation & VS, CDX & Recorded core-test timing qualification and the Billy/Claude handoff; prepared the plugin/pipeline test and verified it locally after separating plugin resolution from runtime. The droplet run remains unverified. Hosts and Passwords tables are unchanged because no persistent Jenkins service or real integration credential was added. & \ChapterRef{AIPromptLog}\\
October 7, 2026 / 3.4 & VS, CDX & Added the successful run-4 repair screenshots and verified its commit, PDF version, artifact contents, and SHA-256; completed the failure/repair evidence. Replaced the abstract's template instructions with an Assignment 5 summary. Hosts and Passwords tables are unchanged from 3.3; final workflow PDF review and submission remain pending. & Title and abstract, \ChapterRef{AutomatedManualBuild}, \ChapterRef{AIPromptLog}\\
October 7, 2026 / 3.3 & VS, CDX & Recorded successful run 2 and intentional failure run 3 with screenshots and downloaded diagnostic verification; removed the test error for a repair push. Updated both the Hosts section and hints-only Passwords table for the local runner; passing repair evidence and final artifact review remain pending. & \ChapterRef{AutomatedManualBuild}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
October 7, 2026 / 3.2 & VS, CDX & Set the Assignment 5 title, number, and date after successful Gitea run 1; retained its original PDF and evidence. The new title omits the duplicate LMS suffix. Added the draft Automated Manual Build chapter with the workflow and first-PDF screenshots. Hosts and Passwords tables are unchanged; remaining workflow tests and runner records are pending. & Title page, \ChapterRef{AutomatedManualBuild}, \ChapterRef{AIPromptLog}\\
October 7, 2026 / preparation & VS, CDX & Prepared the Assignment 5 local runner, compiler image, and push workflow; verified local compilation, failure/repair, and revision checks. Corrected Windows glossary/index regeneration after layout settles. Real workflow artifacts and the assignment chapter remain pending. Document version, Hosts table, and Passwords table are unchanged. & \ChapterRef{AIPromptLog}\\
September 29, 2026 / 3.1 & BY, CD & Restored the Assignment 3 Color Buttons site at \texttt{colors.yebilly.me} behind the same Caddy proxy (no published port, 96\,MiB memory cap, graceful reload without restarting Gitea); versioned the change through reviewed PR~\#11 (closes issue~\#10); updated the Caddyfile excerpt and verification note, and \textbf{updated the Hosts table} with the new hostname, URL, and private service. The Passwords table is unchanged. & \ChapterRef{GiteaFoundation}, \ChapterRef{HostsPasswords}\\
September 28, 2026 / 3.0 & BY, VS, CD & Assignment 4: deployed pinned Gitea 1.27.3 with SQLite behind Caddy and Let's Encrypt at \texttt{git.yebilly.me} (Student Pack domain), applied the \texttt{gitea-fw} Cloud Firewall, and recorded DNS, persistence, certificate-renewal, external-exposure, and issue-to-merge evidence; \textbf{created the Hosts table and the Passwords (hints-only) table}; added TLS, SSH, and ACME glossary terms and set the Assignment 4 title page. & \ChapterRef{GiteaFoundation}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.6 & VS, CDX & Kept each proposed SWOT table with its tool heading and removed the forced page break that separated the comparison charts. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.5 & VS, CDX & Clarified that AdGuard Home and Pi-hole can be compared through direct Ubuntu installation or containers; made Docker Compose optional and aligned the deployment workflow and SWOT wording. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.4 & VS, CDX & Removed the provisional TikZ dashboard figure and marked the dashboard approach as subject to change after the group consults the professor; retained the proposed operational checks. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.3 & VS, CDX & Simplified the proposed operations dashboard around DigitalOcean Insights and planned VPN stability-under-load and DNS ad-block tests; updated the TikZ mockup to distinguish host graphs from service-check results. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.2 & VS, CDX & Added a TikZ mockup of the proposed operational dashboard, with placeholder values and planned comparison filters; clarified that live measurements and a running dashboard remain future project work. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.1 & VS, CDX & Added second-device LaTeX Docker evidence: a versioned one-go PowerShell helper, the successful build/run screenshot, a folder listing, and the opened PDF; documented retained logs and distinct run values. & \ChapterRef{LaTeXDocker}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 2.0 & VS, CDX & Drafted the Project Proposal for a resource-constrained personal VPN and DNS gateway, including proposed tools, comparison tests, dashboard, security plan, feasibility limits, and four provisional SWOT charts; updated the glossary and rebuilt the report. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 1.9 & BY, CD & Added the LaTeX Docker chapter (Assignment 3, Task 4): a Debian TeX Live Dockerfile, a sample document, and the local build and compile evidence; removed title-page placeholder brackets and corrected the due date. & \ChapterRef{LaTeXDocker}, \ChapterRef{AIPromptLog}\\
September 24, 2026 / 1.8 & BY, CD & Added the Digital Ocean Docker Deployment chapter (Assignment 3, Tasks 1--3) with screenshots, converted Assignment 2 terminal output to framed \texttt{Verbatim} blocks, set the Assignment 3 title-page values, and added the \texttt{minted}/TikZ packages and \texttt{-shell-escape} build flag they require. & \ChapterRef{DigitalOceanDockerDeployment}, \ChapterRef{AIAgentGuide}, \ChapterRef{AIPromptLog}\\
September 20, 2026 / 1.7 & VS, CDX & Clarified that the Projects folder layout is optional, distinguished user-terminal compiler operation from AI sandbox access, and documented explicit TinyTeX path and short-path workarounds while retaining MiKTeX only as an existing fallback. & \ChapterRef{AIAgentGuide}, \ChapterRef{DocumentGuide}, \ChapterRef{AIPromptLog}\\
September 19, 2026 / 1.6 & VS, CDX & Relocated the shared TinyTeX toolchain, documented per-user TinyTeX setup, and automated complete local compilation including bibliography, glossary, acronym, and index passes. & \ChapterRef{AIAgentGuide}\\
September 19, 2026 / 1.5 & VS, CDX & Established the Group 1 repository structure, preserved the original instructor template as a separate reference snapshot, and added the AI Agent Requirements appendix and repository routing files. & \ChapterRef{AIAgentRequirements}, \ChapterRef{AIAgentGuide}, \ChapterRef{AIPromptLog}\\
September 15, 2026 / 1.4 & VS, CDX & Completed Sections C, F, G, H, I, and J (Questions 13--16 and 24--40), including verified Linux-environment evidence, explanations, compilation, visual review, and the corresponding AI prompt-log records. & \ChapterRef{LinuxCommands}, \ChapterRef{AIPromptLog}\\
September 15, 2026 / 1.3 & BY, CD & Completed Sections A, B, D, and E (Questions 1--12 and 17--23), including environment-setup evidence, explanations, and LaTeX formatting, with the corresponding Claude assistance record retained as written. & \ChapterRef{LinuxCommands}, \ChapterRef{AIPromptLog}\\
September 2, 2026 / 1.2 & DDM, CDX & Added macOS MacTeX and Windows MiKTeX installation, verification, compilation, cleanup, and troubleshooting instructions to the Document Authoring Guide appendix. & \ChapterRef{DocumentGuide}\\
September 2, 2026 / 1.1 & DDM, CDX & Reorganized the example assignment as one chapter with activity, workflow, evidence, retrospective, and submission sections so each homework can follow the same chapter pattern. & Omitted chapter\\
September 2, 2026 / 1.0 & DDM, CDX & Created the reusable SSW 590 DevOps assignment template from the architecture template infrastructure; replaced requirements and design chapters with activity, workflow, evidence, retrospective, and submission chapters. & Omitted chapters, \ChapterRef{AIAgentGuide}\\
+1 -1
View File
@@ -90,7 +90,7 @@ 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\\
CI allowlist \texttt{.env} & BY & \texttt{\textasciitilde/gitea/.env} on the droplet, root-only; holds team IP addresses (personal data, not a secret) & n/a\\
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\\
Namecheap (\texttt{yebilly.me}) & BY & BY's password manager & Domain owner\\
Droplet \texttt{root} SSH & BY & Key-based only; private key \texttt{digiOcean} on BY's laptop; no password login & Root\\
+125 -36
View File
@@ -113,8 +113,10 @@ Jenkins is a third service in the existing
The first deployment kept the test's limits (256\,MiB RAM, 128\,MiB heap,
0.5 CPU). Builds worked, but the setup wizard and plugin pages hung with
\texttt{OutOfMemoryError: Java heap space} once Jenkins loaded the
update-center catalog. The limits were doubled to those shown above at
03:35; Jenkins then answered in 45\,s instead of 184\,s, used about
update-center catalog. At 03:35 the limits were raised to those shown above
(RAM and heap doubled to 512\,MiB and 256\,MiB, RAM plus swap 512 to
768\,MiB, CPU 0.5 to 0.75); Jenkins then answered in 45\,s instead of
184\,s on its next start, used about
350\,MiB, and left about 180\,MiB of host RAM available with Gitea still
returning 200. The service runs one executor so only one build uses memory
at a time.
@@ -150,10 +152,48 @@ The Jenkins login page is
\textbf{\url{https://ci.yebilly.me/login}}. Caddy serves it only to the Stevens
network (155.246.0.0/16, registered to Stevens Institute of Technology in
ARIN) and the team's dorm address; every other source receives HTTP 403
before reaching Jenkins. \textbf{Instructor access:} open the URL from the
Stevens campus network or while connected to the Stevens VPN. No sign-in is
needed to see the login page, and no grader account exists. This confirms
web-service availability only, not that a pipeline works.
before reaching Jenkins.
\textbf{Instructor access:} open the URL from the Stevens campus network
(Wi-Fi \texttt{Stevens-Net}), whose public addresses fall in 155.246.0.0/16.
On October 23 Vincent tested this path from campus: on \texttt{Stevens-Net}
his public address was \texttt{155.246.151.38} and the Jenkins sign-in page
loaded (Figure~\ref{Figure:JenkinsCampus}).
Off campus, look up your public IPv4 address at \url{https://ifconfig.me}
and send it to Billy or Vincent; it is added to \texttt{CI\_TEAM\_IPS}, Caddy
is recreated, and the URL then opens. No sign-in is needed to see the login
page, and no grader account exists. This confirms web-service availability
only, not that a pipeline works.
The Stevens VPN is \emph{not} an access path. On October 23 at 18:56 UTC,
Billy connected the GlobalProtect client to \texttt{sitvpn.stevens.edu}, the
only gateway it offers (Figure~\ref{Figure:StevensVPN}). The laptop's public
address stayed the team's allowlisted residential address, and its routing
table sent only 155.246.0.0/16 through the VPN adapter, while the default
route kept using the home connection. The VPN is therefore split-tunnel:
traffic to \texttt{ci.yebilly.me} leaves through the user's own internet
provider, so an off-campus visitor on the VPN would receive 403.
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{images/jenkins-campus-test-2026-10-23.png}
\caption{October 23, 2026: Vincent's campus test on \texttt{Stevens-Net}.
ifconfig.me reports public address \texttt{155.246.151.38} (the second
forwarded address is ifconfig.me's own Google front end), and
\texttt{ci.yebilly.me/login} shows the Jenkins sign-in page. The screenshots
show no clock; Billy received them at 3:43 p.m.\ Eastern. The password field
and browser profile icon are blurred.}
\label{Figure:JenkinsCampus}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.6\linewidth]{images/stevens-vpn-split-tunnel-2026-10-23.png}
\caption{October 23, 2026: GlobalProtect connected to the single gateway
\texttt{sitvpn.stevens.edu} (IPSec, about 66\,KB received in 32 minutes,
consistent with a split tunnel). Assigned and gateway IPs redacted by Billy.}
\label{Figure:StevensVPN}
\end{figure}
\begin{figure}[H]
\centering
@@ -183,7 +223,14 @@ ci.yebilly.me {
\texttt{CI\_TEAM\_IPS} is read from the untracked, root-only
\texttt{\textasciitilde/gitea/.env}, so home addresses are not in Git. Caddy's
\texttt{reverse\_proxy} forwards the \texttt{X-Forwarded-*} headers, and the
Jenkins URL is set to \texttt{https://ci.yebilly.me/}.
Jenkins URL (\emph{Manage Jenkins $\rightarrow$ System $\rightarrow$ Jenkins
Location}) is \texttt{https://ci.yebilly.me/}, as stored in the controller's
configuration (read on the droplet, October 23):
\begin{minted}{text}
$ docker exec gitea-jenkins-1 grep jenkinsUrl \
/var/jenkins_home/jenkins.model.JenkinsLocationConfiguration.xml
<jenkinsUrl>https://ci.yebilly.me/</jenkinsUrl>
\end{minted}
\begin{figure}[H]
\centering
@@ -212,6 +259,8 @@ TCP 3000 (Gitea backend) & IPv4; Oct 23 01:02 & closed & closed/filtered \Status
HTTPS \texttt{ci} via droplet IPv6 & IPv6, not allowlisted; Oct 23 01:02:42 & 403 & 403 \StatusPass\\
HTTP \texttt{ci} via IPv6 & same & redirect & 308 \StatusPass\\
TCP 8080, 50000, 3000 via IPv6 & same & closed & closed/filtered \StatusPass\\
HTTPS \texttt{ci\ldots/login} from campus & \texttt{Stevens-Net}, \texttt{155.246.151.38} (Vincent); Oct 23 & 200 & Sign-in page shown \StatusPass\\
Public IPv4 while on Stevens VPN & GlobalProtect connected; Oct 23 18:56:13 & Stevens address & Unchanged residential address; VPN is split-tunnel, so not offered as an access path \textbf{\footnotesize INFO}\\
\bottomrule
\end{tabularx}}
@@ -264,29 +313,30 @@ droplet.
box/.style={draw, rounded corners, align=center, font=\small, minimum height=1.0cm},
lbl/.style={font=\scriptsize, fill=white, inner sep=1pt},
arr/.style={-{Stealth}, thick}]
\node[box] (browser) at (0,0) {Team / instructor\\browser};
\node[box, fill=devopsLightBlue] (fw) at (4.3,0) {Cloud Firewall\\\texttt{gitea-fw}\\443 / 80};
\node[box] (caddy) at (8.6,0) {Caddy TLS proxy\\allowlist for \texttt{ci}\\alias \texttt{git.yebilly.me}};
\node[box] (gitea) at (13.2,1.9) {Gitea \texttt{:3000}};
\node[box] (jenkins) at (13.2,-1.9) {Jenkins controller \texttt{:8080}\\\textbf{builds run here}\\(1 executor)};
\node[box] (gvol) at (17.4,1.9) {\texttt{gitea-data}\\SQLite + repos};
\node[box] (jvol) at (17.4,-1.9) {\texttt{jenkins-home}\\jobs, users,\\credentials};
\node[box] (browser) at (0,0) {\guillemotleft device\guillemotright\\Team / instructor\\browser};
\node[box, fill=devopsLightBlue] (fw) at (4.3,0) {\guillemotleft device\guillemotright\\Cloud Firewall\\\texttt{gitea-fw}, 443 / 80};
\node[box] (caddy) at (8.6,0) {\guillemotleft container\guillemotright\\Caddy TLS proxy\\allowlist for \texttt{ci}\\alias \texttt{git.yebilly.me}};
\node[box] (gitea) at (13.6,2.2) {\guillemotleft container\guillemotright\\Gitea \texttt{:3000}};
\node[box] (jenkins) at (13.6,-3.0) {\guillemotleft container\guillemotright\\Jenkins controller \texttt{:8080}\\\textbf{builds run here}\\(1 executor)};
\node[box] (gvol) at (18.4,2.2) {\guillemotleft artifact\guillemotright\\\texttt{gitea-data}\\SQLite + repos};
\node[box] (jvol) at (18.4,-3.0) {\guillemotleft artifact\guillemotright\\\texttt{jenkins-home}\\jobs, users,\\credentials};
\draw[arr] (browser) -- node[lbl, above=2pt]{HTTPS} (fw);
\draw[arr] (fw) -- (caddy);
\draw[arr] (caddy.north) |- node[lbl, pos=0.75]{HTTP} (gitea.west);
\draw[arr] (caddy.south) |- node[lbl, pos=0.75]{HTTP} (jenkins.west);
\draw[arr, dashed, devopsGreen] ([xshift=-6mm]gitea.south) -- node[lbl, left=2pt]{1. webhook} ([xshift=-6mm]jenkins.north);
\draw[arr, dashed, devopsBlue] ([xshift=6mm]jenkins.north) -- node[lbl, right=2pt, align=left]{2. checkout + status\\via Caddy alias} ([xshift=6mm]gitea.south);
\draw[arr, dashed, devopsGreen] (gitea.south) -- node[lbl, right=2pt]{1. webhook (private)} (jenkins.north);
\draw[arr, dashed, devopsBlue] (jenkins.north west) -- node[lbl, pos=0.5, left=3pt]{2. checkout + status} (caddy.south east);
\draw[arr] (gitea) -- (gvol);
\draw[arr] (jenkins) -- (jvol);
\node[draw, dashed, rounded corners, fit=(caddy) (gitea) (jenkins) (gvol) (jvol), inner sep=8pt,
label={[font=\scriptsize]above:Droplet \texttt{The-Ocean} (1\,GiB) / Docker network \texttt{gitea\_web}}] {};
\node[draw, dashed, rounded corners, fit=(caddy) (gitea) (jenkins) (gvol) (jvol), inner sep=10pt,
label={[font=\scriptsize]above:\guillemotleft device\guillemotright\ Droplet \texttt{The-Ocean} (1\,GiB) / \guillemotleft executionEnvironment\guillemotright\ Docker network \texttt{gitea\_web}}] {};
\end{tikzpicture}}
\caption{Actual deployment, October 2026. Only Caddy's 80/443 are public.
Gitea sends the webhook to \texttt{http://jenkins:8080} on the private
network; Jenkins checks out code and posts statuses to
\texttt{https://git.yebilly.me}, which resolves to Caddy inside the Docker
network. Builds run on the controller; there is no separate agent.}
\caption{UML deployment diagram of the actual deployment, October 2026. Only
Caddy's 80/443 are public. (1) Gitea sends the webhook to
\texttt{http://jenkins:8080} on the private network. (2) Jenkins checks out
code and posts statuses to \texttt{https://git.yebilly.me}, which resolves to
Caddy inside the Docker network; Caddy forwards to Gitea. Builds run on the
controller; there is no separate agent.}
\label{Figure:JenkinsDeployment}
\end{figure}
@@ -338,8 +388,35 @@ in one header is blurred.}
\label{Figure:JenkinsWebhook}
\end{figure}
All 14 deliveries to date, read from Gitea's delivery records on October 23,
are summarized in Table~\ref{Table:JenkinsDeliveries}.
{\small
\begin{tabularx}{\linewidth}{L{0.6cm}L{2.7cm}L{2.6cm}L{1.4cm}Y}
\caption{Gitea webhook deliveries to Jenkins (UTC)\label{Table:JenkinsDeliveries}}\\
\toprule \textbf{\#} & \textbf{Time} & \textbf{Event} & \textbf{Commit} & \textbf{Result}\\ \midrule
1 & Oct 22 22:54:06 & test push & --- & 200 \texttt{Processed}\\
2 & Oct 22 22:57:43 & push & \texttt{ad35197} & 200; started branch job\\
3 & Oct 22 23:01:59 & PR \#15 opened & \texttt{ad35197} & \textbf{failed}: client timeout awaiting headers (see below)\\
4--5 & Oct 22 23:10:32 & push, PR synchronized & \texttt{52b297c} & 200; started PR-15 run 2\\
6--7 & Oct 22 23:15:09 & push, PR synchronized & \texttt{9381d2a} & 200; started PR-15 run 3\\
8--9 & Oct 23 00:55:22 & PR closed, push & \texttt{9381d2a}, \texttt{420ba4c} & 200; started main run 1\\
10--14 & Oct 23 01:21--01:24 & push, PR \#16 events & \texttt{1149e9f}, \texttt{e4f3ce5} & 200; started PR-16 run 1 and main run 2\\
\bottomrule
\end{tabularx}}
\paragraph{Diagnosing a failed delivery.}
If a push does not start a build: (1) open \emph{Repository Settings
Delivery~3 is a real failure. Gitea recorded \texttt{Post
"http://jenkins:8080/gitea-webhook/post": context deadline exceeded
(Client.Timeout exceeded while awaiting headers)}. Diagnosis: Jenkins did
receive the event, because Gitea shows PR-15's status ``Build queued'' at
23:02:01, two seconds later, and run~1 passed at 23:02:18. Jenkins answered
after Gitea's delivery timeout because it was busy with the PR discovery on
its 0.75-CPU limit. No action was needed; had the build not started,
\emph{Redeliver} on that delivery, or \emph{Scan Multibranch Pipeline Now},
would recover it, and raising Gitea's \texttt{webhook.DELIVER\_TIMEOUT}
would prevent repeats. General procedure if a push does not start a build:
(1) open \emph{Repository Settings
$\rightarrow$ Webhooks $\rightarrow$ jenkins-ci $\rightarrow$ Recent
Deliveries} and read the response; (2) ``can only call allowed HTTP
servers'' means \texttt{ALLOWED\_HOST\_LIST} was lost, so recreate the Gitea
@@ -487,8 +564,9 @@ Merge & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/420ba4
\end{tabularx}
Each Jenkins log names the commit it checked out
(\texttt{Checking out Revision 52b297c2f338\ldots} for run~2,
\texttt{9381d2aa9a11\ldots} for run~3), and each matches the PR head shown
(\texttt{Checking out Revision ad35197ee490\ldots} for run~1,
\texttt{52b297c2f338\ldots} for run~2, \texttt{9381d2aa9a11\ldots} for
run~3), and each matches the PR head shown
in Gitea at that time. The branch job \texttt{feature/issue-14}~\#1 also
passed on \texttt{ad35197} before the PR existed; its context
\texttt{vpn-dns-gateway/pipeline/head} is not the required one.
@@ -525,9 +603,10 @@ credentials and their key, so a malicious \texttt{Jenkinsfile} could steal
the bot token.\footnote{\url{https://www.jenkins.io/doc/book/security/controller-isolation/}}
Compensating restrictions:
\begin{itemize}[nosep]
\item Only Billy and Vincent can push to the repository, so only they can
change the \texttt{Jenkinsfile}; \texttt{main} accepts changes only through
reviewed PRs.
\item Only Billy and Vincent, plus the \texttt{jenkins-bot} identity whose
token exists only inside Jenkins, have write access to the repository, so
only they can change the \texttt{Jenkinsfile}; \texttt{main} accepts changes
only through reviewed PRs, which also applies to the bot.
\item PRs from forks are not discovered, so untrusted code never runs.
\item No Docker socket is mounted and the container is not privileged; its
memory, CPU, and process count are capped.
@@ -538,7 +617,11 @@ Jenkins.
\paragraph{Plugin-update check.}
On October 23 at 01:03, the 63 locked plugins were compared with the Jenkins
update center for core 2.580.1. One newer version exists
update center for core 2.580.1. (Counts: the capacity bundle had 59;
\texttt{matrix-auth} and \texttt{pipeline-graph-view} with its two
dependencies make 63 locked; Jenkins reports 66 installed, the other three
being the theme plugins described in Section~\ref{Section:JenkinsQuality},
which this check did not cover.) One newer version exists
(\texttt{workflow-api} \texttt{1413.v2ff1a\_5e720fa\_} $\rightarrow$
\texttt{1429.v7a\_1b\_efb\_a\_f7c5}); no security warning matches any installed
version. The update was deferred: it is not a security fix and would change
@@ -562,7 +645,7 @@ Section~\ref{Section:JenkinsTrigger}. Memory trouble (slow pages,
\label{Section:JenkinsQuality}
\paragraph{Corrective actions.}
Four problems were found and fixed during this work, each recorded with its
Five problems were found and fixed during this work, each recorded with its
evidence: (1) the official plugin installer ran out of its 128\,MiB heap while
reading the update-center catalog, so the Dockerfile downloads the pinned
plugins with \texttt{curl} and checks their SHA-256; (2) the first droplet
@@ -570,7 +653,9 @@ capacity run failed on upload permissions, fixed by \texttt{chmod}; (3) the
128\,MiB heap hung the web interface, fixed by the larger limits in
Section~\ref{Section:JenkinsDeployment}; (4) matrix authorization was missing
because the capacity bundle covered only Pipeline and Gitea, so
\texttt{matrix-auth} was added and the image rebuilt. Three theme plugins
\texttt{matrix-auth} was added and the image rebuilt; (5) no stage-by-stage
run view was installed, so \texttt{pipeline-graph-view} was added the same
way. Three theme plugins
(\texttt{dark-theme}, \texttt{dracula-theme}, \texttt{theme-manager}) were
installed from the web interface during setup and are not in the lockfile;
they survive in \texttt{jenkins-home} but would be lost if the volume were
@@ -587,15 +672,18 @@ docker compose logs --tail 100 jenkins # startup errors, OutOfMemoryError
docker compose build jenkins && docker compose up -d jenkins
\end{minted}
After a droplet reboot, Docker starts all three services because of their
restart policies; Jenkins needs about one minute before the login page
answers. Gitea does not depend on Jenkins, so a Jenkins outage only delays
restart policies. Measured container starts took 25\,s (warm
\texttt{docker compose restart}) to 45\,s (first start after the limit
change); a full droplet reboot was not tested, so allow about a minute before
the login page answers. Gitea does not depend on Jenkins, so a Jenkins outage only delays
checks (PRs stay blocked until Jenkins reports).
\paragraph{Cost, ownership, and cleanup.}
Jenkins adds no paid resource; it uses the droplet's 1\,GiB Basic plan
(listed at \$6/month on DigitalOcean's pricing page on October 21, 2026; the
account's billing was not re-checked here) and about 0.9\,GB of disk for its
image. Billy administers the droplet and Jenkins; Vincent reviews. To remove
image. On October 23 the root filesystem had 18\,GB free of 24\,GB
(\texttt{df -h /}, 25\% used). Billy administers the droplet and Jenkins; Vincent reviews. To remove
Jenkins: delete the \texttt{main} protection's required check, stop and
remove the service (\texttt{docker compose rm -sf jenkins}), delete the volume
(\texttt{docker volume rm gitea\_jenkins-home}), remove the \texttt{ci} block
@@ -603,7 +691,8 @@ from the Caddyfile and the \texttt{ci} DNS record, delete the webhook, and
delete the \texttt{jenkins-bot} user and token.
\paragraph{Document controls.}
This version is 4.0. Document History records the change and both updated
This chapter was introduced in version 4.0 and corrected in 4.1 (access path,
delivery evidence, wording). Document History records both and the updated
tables in \ChapterRef{HostsPasswords}: the Hosts table adds \texttt{ci.yebilly.me},
the Jenkins service, and the 1\,GiB resize; the Passwords table adds the
Jenkins administrators, the \texttt{jenkins-bot} account, and its token.
Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB