Move CI runners to Droplet and enable application HTTPS
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-11-15 12:49:06 -05:00
parent bf28adc7fb
commit ed0a862657
36 changed files with 1266 additions and 72 deletions
+101
View File
@@ -834,3 +834,104 @@ approvals, idempotence, both recovery exercises, timing/monitoring correlation
and final submission review remain pending. Proxy/monitoring additions are not
deployed before DNS and healthy production. No commit, push, peer review,
production approval or submission was performed by Codex.
Later on November 14, Vincent explicitly authorized Codex to make the local
preparation commit \texttt{bf28adc}; Vincent pushed it, and Codex verified the
remote branch and passing Jenkins head check. At Vincent's further request,
Codex prepared \path{delivery/BILLY-CLAUDE-DNS-HANDOFF.md} for Billy/Claude,
including the two selected A records, Namecheap instructions checked against
official documentation, current public DNS observations, verification commands
and a DNS-only boundary. The provider's default nameservers and existing
Gitea/Jenkins/Grafana A records were observed; the two new names still returned
NXDOMAIN. No DNS setting was changed, and the handoff itself grants no account
authorization. Billy must authorize DNS work in his own session.
Later that evening, Vincent directed moving the delivery agent onto the now
2\,GiB droplet because campus Wi-Fi had blocked SSH and the final presentation
must demonstrate the workflow. Codex checked repository state and host capacity,
transferred the existing tool image with matching archive SHA-256 and image ID,
stopped the laptop copy, and reused the protected node identity on The-Ocean.
It added a private WebSocket route, host-gateway SSH mapping with the existing
pinned key alias, 512/768 MiB agent and 256/384 MiB BuildKit RAM/RAM+swap caps,
half a CPU each, a guarded laptop fallback and versioned verification helpers.
The first builder setup exposed a socket-group mismatch (laptop 0, host 987);
the helper was corrected to detect the host group, and Docker access succeeded.
The first browser build request used stale session state; reloading allowed the
existing preflight job to run. Build 2 passed with real credential binding,
strict SSH verification and sudo. A separate 87-second preparation trial passed
control/app tests, source/dependency checks, capped build, full image gate and
temporary HTTP smoke. Swap increased and agent memory-limit events occurred;
no OOM kill was recorded. Existing services passed private HTTP checks, and
agent restart/reconnect passed. This does not establish full release performance.
An initial CLI artifact download returned HTTP 403; evidence was retrieved over
authorized SSH instead. A complex shell diagnostic had a quoting error and was
replaced by a versioned read-only Python check. No credential values were output.
Codex updated the diagram, current host/credential hints, runbooks, DNS handoff,
preparation evidence, history and this log, and rebuilt/reviewed the local manual.
The older PDF runner remains on the laptop; campus browser access still needs
rehearsal. Shared-host Docker administration is an explicit lab trade-off.
No firewall rule, credential scope, review requirement or production approval
was relaxed. DNS, assessed releases and recovery exercises remain pending.
No additional commit or push was authorized or performed for this migration.
\section{Actions Runner Migration for the Presentation}
Date requested: November 14, 2026; Tool: OpenAI Codex; Human: Vincent Sun.
Vincent then explicitly requested moving the first (Gitea Actions) runner to
the droplet too. Codex read the runner/workflow sources and repository rules,
checked headroom, and transferred the tested compiler image with matching
archive checksum and image ID. It stopped the idle laptop daemon before
streaming the existing registration over pinned SSH into protected Docker
storage. No registration value was printed, staged in the repository, or
replaced; the legacy name/label and repository scope were preserved.
Codex added versioned remote Compose, admission, reconnect/import and read-only
verification helpers plus a guarded laptop fallback. The first 96 MiB daemon
cap was too low: a real OOM event and restart occurred during action setup.
Codex canceled that attempt, retained its log and runtime evidence, raised
the daemon to 192/256 MiB RAM/RAM+swap with 0.25 CPU, and retried. Separate
compiler job limits remained 512/768 MiB and 0.5 CPU. Run 12 attempt 3, job 14,
passed checkout, compilation and both uploads in 4m32s. It used reviewed main
\texttt{8beefde}, not the uncommitted Assignment 8 source. After a browser
download-wait timeout and debugger detachment, Vincent supplied diagnostics
in run-12. Codex retrieved the exact PDF through read-only artifact metadata
and storage over SSH, verified its checksum against those diagnostics, and
visually checked \texttt{5.1+build.12.8beefde}. This does not demonstrate the
pending application releases or recovery exercises.
The corrected daemon had no restart during the successful run; idle restart
and declaration succeeded at 04:55:52 UTC on November 15. Codex identified
the canceled job's orphaned resources for cleanup, preserved registration and
shared services, and updated operations, migration evidence, host/credential
hints, history and this record. Both active runners are on The-Ocean; no new
cloud instance or resize was made. Resource admission does not coordinate
Jenkins, so manual builds and delivery releases must run sequentially. Shared
Docker authority remains a documented trust trade-off. Campus browser rehearsal,
DNS and assessed delivery remain pending. No further commit or push was requested.
\section{DNS, HTTPS and Team Account Check}
Date: November 15, 2026; Tool: OpenAI Codex; Human: Vincent Sun; DNS: Billy Ye.
Vincent reported that Billy had added the records but HTTPS was unavailable,
and asked for server-side correction. Codex checked repository instructions,
status, official Caddy HTTPS documentation, live DNS, proxy configuration and
container state. It verified that the prepared routes were absent and app
backends undeployed. A guarded helper first stopped on CRLF/LF comparison;
normalizing only line endings confirmed the earlier routes matched. Codex
validated the candidate, saved a protected backup and gracefully reloaded Caddy
while preserving the bind inode, prior routes, allowlists and certificate state.
Google/Cloudflare answers and normal curl/Python checks verified DNS, trusted
hostname-matching TLS and HTTP 308 redirects. HTTPS 502 was correctly recorded
as missing backend deployment, not a certificate failure or healthy release.
Existing service checks passed. No DNS account, firewall or application release
was changed; production monitoring remains pending.
Vincent also requested a team-account check for access recovery. Codex queried
only account IDs/status/role flags and Jenkins profile-header IDs, never password
hashes, tokens or email fields. The expected Billy accounts were present, and
the existing vsun1 Gitea site-admin role was confirmed and corrected in the
hints table. Grafana's vsun1 remains Viewer. No password was recovered or reset,
and no permission was changed. Codex explained the distinction between checking
an account, recovering a password-manager copy and resetting an existing login.
It updated current readiness records, the preserved DNS handoff, history and
this log, then rebuilt and visually checked the local manual. Source changes
remain uncommitted; peer review, app releases, approvals and recoveries remain pending.