Prepare Assignment 8 secure delivery and rollback
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

Add the locked pricing service, trusted-agent pipeline, Ansible deployments, security gates, recovery runbooks, prerequisite evidence, and preparation manual.

Prepared with Codex assistance. Vincent explicitly authorized this local commit and will handle the push. Assessed releases and recovery exercises remain pending.
This commit is contained in:
2026-11-14 17:09:25 -05:00
parent 8beefde2a4
commit bf28adc7fb
51 changed files with 2091 additions and 14 deletions
+26 -3
View File
@@ -19,6 +19,9 @@ On October 28, 2026 (\ChapterRef{SREMonitoring}) the droplet record gained
the four monitoring containers, \texttt{metrics.yebilly.me}, the second swap
file, and real monitoring status; the Passwords table gained the Grafana
accounts, the monitoring secrets file, and the Discord webhook.
On November 14, 2026 (\ChapterRef{SecureDelivery}), Vincent resized the droplet
to 2\,GiB and updated host packages. The tables gained deployment access and a
trusted laptop Jenkins agent. Pricing DNS and deployments remain pending.
\section{Hosts}
\small
@@ -36,8 +39,8 @@ since 28 Oct 2026 also the monitoring stack (Prometheus 3.15.1, Grafana OSS
stopped with restart policy \texttt{no}; its Caddy route remains\\
Environment & Course production (team use)\\
Provider & DigitalOcean, NYC1; Ubuntu 24.04 LTS; 1 vCPU; resized from
512\,MB to the 1\,GiB Basic plan in October 2026 (961\,MiB reported, 25\,GB
plan disk); swap files \texttt{/swapfile} and \texttt{/swapfile2}, 1\,GiB
512\,MB to 1\,GiB in October, then to 2\,GiB on November 14, 2026
(1,967\,MiB reported, original 25\,GB plan disk retained); swap files \texttt{/swapfile} and \texttt{/swapfile2}, 1\,GiB
each (second added 28 Oct 2026); \texttt{multipathd}, \texttt{fwupd},
\texttt{udisks2}, and \texttt{ModemManager} disabled and masked\\
Public address / DNS & IPv4 \texttt{147.182.178.136}; \texttt{A} records
@@ -62,7 +65,9 @@ otherwise; monitoring ports 9090, 9100, 9115 not reachable\\
Owner & BY (server administration); VS (review)\\
HTTPS URLs & \url{https://git.yebilly.me}, \url{https://ci.yebilly.me/login},
\url{https://metrics.yebilly.me/login}\\
Backup status & No backup job; container-replacement persistence verified for
Backup status & No scheduled backup job; manual Gitea SQLite and Jenkins-home
backups saved in a protected root directory before the November 14 delivery
bootstrap. Container-replacement persistence verified for
Gitea (\ChapterRef{GiteaFoundation}), restart persistence for Jenkins
(\ChapterRef{JenkinsCI}) and for Prometheus and Grafana
(\ChapterRef{SREMonitoring}); manual volume backup procedure in
@@ -89,6 +94,12 @@ Network path & Outbound HTTPS to \texttt{git.yebilly.me:443} and GitHub Actions
Execution label & \texttt{latex-local}; local image \texttt{ssw590-manual-ci:20261007}\\
Persistent state & Runner registration in named Docker volume \texttt{ssw590-local-runner-data}; compiler image retained in Docker Desktop\\
Availability & Start Docker Desktop and the versioned runner helper after reboot; laptop must remain awake for jobs\\
Assignment 8 agent & Separate Jenkins node \texttt{ssw590-vince-delivery},
label \texttt{delivery-trusted}, one exclusive executor; Docker/Python/Ansible/
scanners in image \texttt{ssw590-delivery-agent:20261114}; 2\,GiB / 2 CPU cap;
outbound HTTPS/WebSocket to Jenkins. Docker socket access is administrative.
Identity in \texttt{ssw590-delivery-identity}, workspace/cache in
\texttt{ssw590-delivery-workspace}; prerequisite build 1 passed on November 14.\\
Monitoring / backup & Runner logs and Gitea Actions checked manually; no automatic backup of runner registration configured\\
\end{tabularx}
\normalsize
@@ -104,6 +115,18 @@ Monitoring / backup & Runner logs and Gitea Actions checked manually; no automat
\endhead
\bottomrule \endlastfoot
Gitea local runner identity & VS & Docker volume \texttt{ssw590-local-runner-data}, file \texttt{/data/.runner}; generated identity, no values in Git; registration token supplied privately from repository settings & Repository runner; Docker control on VS laptop\\
Jenkins delivery agent identity & VS & Protected Jenkins-generated identity and local Docker volume
\texttt{ssw590-delivery-identity}; outside Git & Trusted laptop agent; Docker control\\
Deployment SSH key & VS & Jenkins folder \texttt{secure-delivery}, credential
\texttt{delivery-deploy-ssh}; encrypted in Jenkins home & \texttt{deploy} SSH;
passwordless root sudo for Ansible\\
Pinned deployment host key & VS & Same folder, file credential
\texttt{delivery-known-hosts}; public key verified over existing pinned SSH &
Strict host verification\\
Package-write token & VS & Same folder, credential \texttt{delivery-registry-write};
distinct named token under Gitea \texttt{vsun1}; no value in report & Package write only\\
Package-read token & VS & Root Docker login configuration on The-Ocean;
distinct named token under Gitea \texttt{vsun1}; bootstrap metadata retains name & Package read only\\
Gitea \texttt{bill} & BY & BY's password manager & Site administrator\\
Gitea \texttt{vsun1} & VS & VS's password manager & Repository administrator\\
Gitea \texttt{jenkins-bot} (added 22 Oct 2026) & BY & BY's password manager; used only to create its token & Write collaborator on \texttt{vpn-dns-gateway}\\