Move CI runners to Droplet and enable application HTTPS
vpn-dns-gateway/pipeline/pr-main This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
This commit is contained in:
@@ -21,7 +21,12 @@ 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.
|
||||
trusted Jenkins agent. Later that evening the agent moved from the laptop to
|
||||
The-Ocean to avoid campus SSH restrictions. Vincent then requested migrating
|
||||
the original Actions runner too; both laptop daemons are now stopped, with
|
||||
their protected fallback state retained. On November 15 Billy added the pricing
|
||||
DNS records and Codex enabled Caddy HTTPS; certificates and redirects passed,
|
||||
while the undeployed application backends return 502.
|
||||
|
||||
\section{Hosts}
|
||||
\small
|
||||
@@ -37,6 +42,16 @@ Role & Gitea work hub (Gitea 1.27.3 behind Caddy 2.11.4 TLS proxy); since
|
||||
since 28 Oct 2026 also the monitoring stack (Prometheus 3.15.1, Grafana OSS
|
||||
13.2.5, Node Exporter 1.12.1, Blackbox Exporter 0.29.1). The Assignment 3 Color Buttons app (29 Sep 2026) is retired: container
|
||||
stopped with restart policy \texttt{no}; its Caddy route remains\\
|
||||
Delivery agent & Legacy node \texttt{ssw590-vince-delivery}, label
|
||||
\texttt{delivery-trusted}, one exclusive executor; image
|
||||
\texttt{ssw590-delivery-agent:20261114}. RAM / RAM+swap: 512 / 768 MiB,
|
||||
0.5 CPU; separate pinned BuildKit: 256 / 384 MiB, 0.5 CPU.
|
||||
Private WebSocket to Jenkins and SSH through Docker host gateway with pinned
|
||||
public-IP host-key alias. Docker socket control grants host administration.
|
||||
Named identity/workspace and BuildKit cache volumes stay outside Git;
|
||||
configuration under \path{/opt/ssw590-delivery-agent/}; restart unless stopped.
|
||||
Prerequisite build 2 and bounded build/scan/smoke trial passed; campus browser
|
||||
rehearsal and assessed delivery remain pending.\\
|
||||
Environment & Course production (team use)\\
|
||||
Provider & DigitalOcean, NYC1; Ubuntu 24.04 LTS; 1 vCPU; resized from
|
||||
512\,MB to 1\,GiB in October, then to 2\,GiB on November 14, 2026
|
||||
@@ -44,7 +59,8 @@ Provider & DigitalOcean, NYC1; Ubuntu 24.04 LTS; 1 vCPU; resized from
|
||||
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
|
||||
\texttt{git}, \texttt{ci}, \texttt{metrics}, and \texttt{colors} \texttt{.yebilly.me}; public
|
||||
\texttt{git}, \texttt{ci}, \texttt{metrics}, \texttt{colors}, \texttt{staging}
|
||||
and \texttt{app} \texttt{.yebilly.me}; public
|
||||
IPv6 \texttt{2604:a880:400:d1:0:5:22d:6001} assigned but not published in DNS\\
|
||||
Private services & Gitea \texttt{:3000} and Jenkins \texttt{:8080} (512\,MiB
|
||||
RAM, 0.75 CPU cap; agent port disabled) on Docker network \texttt{gitea\_web},
|
||||
@@ -64,7 +80,9 @@ addresses (Caddy allowlist; \texttt{ci} also the probe address), 403
|
||||
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}\\
|
||||
\url{https://metrics.yebilly.me/login}; \url{https://staging.yebilly.me} and
|
||||
\url{https://app.yebilly.me} have trusted certificates but return 502 until
|
||||
application deployment\\
|
||||
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
|
||||
@@ -81,25 +99,29 @@ Shares the droplet's failure domain; no external check yet (issue~\#20)\\
|
||||
|
||||
\small
|
||||
\begin{tabularx}{\linewidth}{@{}L{3.3cm}Y@{}}
|
||||
\caption{Local build runner host, added October 7, 2026\label{Table:HostsRunner}}\\
|
||||
\toprule \textbf{Field} & \textbf{Vincent's laptop (\texttt{ssw590-vince-local})}\\ \midrule
|
||||
\caption{Actions runner, added October 7 and migrated November 14, 2026\label{Table:HostsRunner}}\\
|
||||
\toprule \textbf{Field} & \textbf{Actions runner on The-Ocean}\\ \midrule
|
||||
\endfirsthead
|
||||
\toprule \textbf{Field} & \textbf{Vincent's laptop (\texttt{ssw590-vince-local})}\\ \midrule
|
||||
\toprule \textbf{Field} & \textbf{Actions runner on The-Ocean}\\ \midrule
|
||||
\endhead
|
||||
\bottomrule \endlastfoot
|
||||
Role & Repository-scoped Gitea Actions runner; manual compilation in temporary Docker job containers\\
|
||||
Environment & Windows laptop, Docker Desktop Linux engine; runner 2.3.0; capacity one job\\
|
||||
Provider / owner & Local device; VS maintains Docker Desktop, runner availability, and job image\\
|
||||
Role & Repository-scoped Gitea Actions runner; temporary manual compiler containers;
|
||||
historical registration name \texttt{ssw590-vince-local} retained\\
|
||||
Environment & Docker on The-Ocean's Ubuntu 24.04 host; runner 2.3.0;
|
||||
capacity one job; current container \texttt{ssw590-manual-runner}\\
|
||||
Provider / owner & Existing DigitalOcean host; VS maintains runner and image;
|
||||
BY retains server administration; no new instance or resize\\
|
||||
Network path & Outbound HTTPS to \texttt{git.yebilly.me:443} and GitHub Actions sources; Caddy forwards to private Gitea \texttt{:3000}; no public runner or Docker daemon port\\
|
||||
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.\\
|
||||
Persistent state & Registration in Droplet volume \texttt{ssw590-local-runner-data},
|
||||
mode 0600; same tested compiler image on the host. Stopped laptop copy retains
|
||||
its original image and volume outside Git\\
|
||||
Availability / limits & Restart unless stopped; daemon 192/256 MiB RAM/RAM+swap,
|
||||
0.25 CPU; compiler job 512/768 MiB, 0.5 CPU. New jobs pause below 600 MiB
|
||||
available host RAM or 3 GiB free disk. Run manual and delivery work sequentially\\
|
||||
Laptop fallback & Both original daemons are stopped. Their helpers require
|
||||
\texttt{-AllowLaptopFallback} after stopping the corresponding remote copy;
|
||||
never run two copies of either identity. No active runner requires Docker Desktop\\
|
||||
Monitoring / backup & Runner logs and Gitea Actions checked manually; no automatic backup of runner registration configured\\
|
||||
\end{tabularx}
|
||||
\normalsize
|
||||
@@ -114,9 +136,11 @@ Monitoring / backup & Runner logs and Gitea Actions checked manually; no automat
|
||||
\toprule \textbf{Service / account} & \textbf{Owner} & \textbf{Where it is kept (hint)} & \textbf{Privilege}\\ \midrule
|
||||
\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\\
|
||||
Gitea Actions runner identity & VS & Droplet Docker volume \texttt{ssw590-local-runner-data},
|
||||
file \texttt{/data/.runner}, mode 0600; transferred over pinned SSH, no values in Git;
|
||||
stopped laptop fallback retains its copy & Repository runner; Droplet Docker control\\
|
||||
Jenkins delivery agent identity & VS & Protected Jenkins-generated identity and Droplet Docker volume
|
||||
\texttt{ssw590-delivery-identity}; stopped laptop fallback retains its copy; outside Git & Trusted Droplet agent; host 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\\
|
||||
@@ -128,7 +152,7 @@ distinct named token under Gitea \texttt{vsun1}; no value in report & Package wr
|
||||
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{vsun1} & VS & VS's password manager & Site administrator (verified November 15)\\
|
||||
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}\\
|
||||
\texttt{jenkins-bot} token \texttt{jenkins-ci} & BY & Jenkins credential ID \texttt{gitea-jenkins-bot} (System, Global), encrypted in volume \texttt{gitea\_jenkins-home}; revoke under the bot's Gitea Applications settings & Repository read/write; organization and user read\\
|
||||
Jenkins \texttt{billy} & BY & BY's password manager & Administer (all)\\
|
||||
|
||||
Reference in New Issue
Block a user