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:
@@ -0,0 +1,64 @@
|
||||
# Delivery agent migration — preparation evidence
|
||||
|
||||
Vincent selected The-Ocean instead of the laptop to avoid the previously
|
||||
observed campus SSH restriction. This work occurred on November 14 Eastern;
|
||||
the host's UTC timestamps below fall on November 15, 2026.
|
||||
|
||||
- Existing host: 1 CPU, 1,967 MiB RAM, original 25 GB plan disk, 2 GiB swap.
|
||||
At 03:29 UTC, 811 MiB RAM was available and swap used was 129 MiB.
|
||||
- Transferred the existing agent image, without rebuilding its toolchain:
|
||||
`sha256:0752666650a3afe7b61854c1df4dca21f4ef381fab1f4fb9b042adaa203c58a8`.
|
||||
Transfer archive SHA-256 matched on both machines:
|
||||
`f987fdb285757aabe91fffd21a3a58da00bec975efcce7ee8ef3f127b27d0696`.
|
||||
- Stopped the laptop container before connecting its replacement. Existing
|
||||
node name `ssw590-vince-delivery`, label `delivery-trusted`, one exclusive
|
||||
executor, folder credentials and disabled pricing job were retained.
|
||||
- Remote agent: 512 MiB RAM / 768 MiB RAM+swap, 0.5 CPU, 96 MiB JVM heap,
|
||||
no published port, existing `gitea_web` network, private WebSocket connection.
|
||||
Socket group detected as 987; initial group-0 mismatch was corrected.
|
||||
- Builder: BuildKit v0.34.2 image pinned by index digest in the start helper;
|
||||
256 MiB RAM / 384 MiB RAM+swap, CPU quota 50000/100000, no published port.
|
||||
The pipeline explicitly selects this builder when `DELIVERY_BUILDER` is set.
|
||||
- Deployment SSH: `ssh -G` reports `hostname host.docker.internal` and
|
||||
`hostkeyalias 147.182.178.136`. The existing Jenkins known-hosts credential
|
||||
remains authoritative; host verification was not bypassed.
|
||||
- [Jenkins prerequisite build 2](https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/2/)
|
||||
passed at 03:47 UTC, including real credential binding, deploy login, pinned
|
||||
host key and sudo. See [inventory](agent-preflight-2.txt).
|
||||
- 03:50:16–03:51:43 UTC: the separate capacity preparation trial passed 12
|
||||
control tests and 3 app tests, source-secret/dependency gates, capped image
|
||||
build, full image gate (zero HIGH/CRITICAL), and a temporary 64 MiB app smoke.
|
||||
Health v1, identity `uncommitted-remote-preflight`, total 30 for quantity 3,
|
||||
and HTTP 400 for invalid quantity were verified. The smoke container was
|
||||
removed. No image was pushed and no assessed environment was deployed.
|
||||
- The trial used a non-secret local snapshot of `delivery/app`, `delivery/ci`,
|
||||
the scanner rule and the trial script, not a reviewed full repository checkout.
|
||||
Snapshot archive SHA-256:
|
||||
`2cd5d23062ff9904b48a23dfd5d9f2b9c67929cb86db006e7b2677060da3afa0`.
|
||||
Gate reports retain actual timestamps and tool/database metadata.
|
||||
- Observed available RAM exceeded 700 MiB; swap used increased from 263 to
|
||||
372 MiB during the sampled trial. At 03:54 UTC, 861 MiB was available, swap
|
||||
used was 370 MiB and root disk was 56% used (11 GiB available, rounded by df).
|
||||
Agent cgroup memory-limit events were nonzero; agent and builder `oom` and
|
||||
`oom_kill` counters were zero, and both reported `OOMKilled=false`.
|
||||
- Gitea, Jenkins login and Grafana login returned HTTP 200 through private
|
||||
Docker routes after the trial. Seven previous containers remained running.
|
||||
- Restarted only the agent; logs recorded a fresh WebSocket connection and
|
||||
`Connected` at 03:57:57 UTC. `unless-stopped` is configured for both agent and
|
||||
builder; an entire-host reboot was not performed as part of this migration.
|
||||
|
||||
Raw reports, partial resource-output capture, runtime JSON and screenshot:
|
||||
ignored `build/evidence/assignment8-agent-migration/`. Protected server reports:
|
||||
`/root/ssw590-delivery-bootstrap/agent-migration/`. The short trial used swap
|
||||
and does not prove full release, recovery or campus presentation performance.
|
||||
|
||||
No firewall rule, credential scope, TLS verification, peer-review requirement
|
||||
or human production approval changed. Co-located Docker authority gives trusted
|
||||
jobs administrative access to the shared host; this is an explicit course-lab
|
||||
trade-off. The older Gitea Actions PDF runner remains on the laptop. No new
|
||||
instance or cloud plan change was made. Migration changes are uncommitted;
|
||||
DNS, reviewed releases, production approvals and recovery exercises remain pending.
|
||||
|
||||
Subsequently Vincent requested moving that Actions runner too. The statement
|
||||
above describes the end of the delivery-agent migration, not current placement.
|
||||
See the [later runner record](../../gitea/droplet-runner/EVIDENCE.md).
|
||||
@@ -0,0 +1,32 @@
|
||||
Sun Nov 15 03:47:13 UTC 2026
|
||||
uid=1000(jenkins) gid=1000(jenkins) groups=1000(jenkins),987
|
||||
Python 3.13.5
|
||||
ansible [core 2.21.6]
|
||||
config file = None
|
||||
configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
|
||||
ansible python module location = /opt/delivery-tools/lib/python3.13/site-packages/ansible
|
||||
ansible collection location = /opt/ansible-collections
|
||||
executable location = /opt/delivery-tools/bin/ansible
|
||||
python version = 3.13.5 (main, Aug 10 2026, 12:06:59) [GCC 14.2.0] (/opt/delivery-tools/bin/python3)
|
||||
jinja version = 3.1.6
|
||||
pyyaml version = 6.0.3 (with libyaml v0.2.5)
|
||||
|
||||
# /opt/ansible-collections/ansible_collections
|
||||
Collection Version
|
||||
---------------------------------------- -------
|
||||
community.docker 5.4.0
|
||||
community.library_inventory_filtering_v1 1.1.5
|
||||
Docker version 29.9.3, build 5457199
|
||||
Docker Compose version v5.7.1
|
||||
Version: 0.76.2
|
||||
pip-audit 2.10.1
|
||||
uid=1000(deploy) gid=1000(deploy) groups=1000(deploy)
|
||||
Python 3.12.3
|
||||
Docker version 29.9.3, build 5457199
|
||||
Docker Compose version v5.7.1
|
||||
total used free shared buff/cache available
|
||||
Mem: 1967 1205 106 3 832 762
|
||||
Swap: 2047 265 1782
|
||||
1
|
||||
Filesystem Size Used Avail Use% Mounted on
|
||||
/dev/vda1 24G 12G 13G 49% /
|
||||
@@ -0,0 +1,36 @@
|
||||
# DNS and HTTPS readiness — 15 November 2026
|
||||
|
||||
Billy added A records for `staging.yebilly.me` and `app.yebilly.me` pointing to
|
||||
`147.182.178.136`. At 06:14 UTC, Google and Cloudflare DNS-over-HTTPS both returned
|
||||
that A record and no AAAA answer for each name. No DNS account was accessed or
|
||||
changed by Codex.
|
||||
|
||||
At 06:09:34 UTC, the prepared `deploy/Caddyfile` additions were validated with
|
||||
installed Caddy 2.11.4, backed up and gracefully reloaded. The helper checked
|
||||
that earlier routes matched before changing anything and preserved the existing
|
||||
bind-mounted inode. The first comparison stopped because of CRLF versus LF;
|
||||
normalizing only that comparison allowed the matching routes to pass.
|
||||
|
||||
- Before SHA-256: `0197f100c5a1f2a21c6a293964fada27f61fe6f4ddf0b0c6d1ed6455f2cfbcc5`.
|
||||
- After SHA-256: `7adbd9469b1e0ebcb8d6b62c8576eb4fb8b51efc70409607f604f453f8ac8187`.
|
||||
- Backup: `/root/ssw590-delivery-bootstrap/https-20261115/Caddyfile.before`.
|
||||
- Existing Gitea/Jenkins/Grafana routes, allowlist placeholders, volumes and
|
||||
certificate storage were preserved. No firewall or published port changed.
|
||||
|
||||
Normal Windows curl and Ubuntu Python TLS checks passed without insecure mode.
|
||||
Both hostnames negotiated TLS 1.3 with trusted hostname-matching certificates.
|
||||
HTTP returned 308 with the corresponding HTTPS Location. HTTPS returned 502:
|
||||
the staging/production pricing containers do not exist yet. This proves DNS,
|
||||
TLS and redirects, not app health or a completed release.
|
||||
|
||||
All ten prior service/agent/builder containers remained running. Gitea, Jenkins
|
||||
login and Grafana login returned private HTTP 200 after the reload. Production
|
||||
monitoring was not enabled while the pricing service was absent.
|
||||
|
||||
Actual DNS answers, certificate issuer/SAN/validity/fingerprints and HTTP results
|
||||
are in ignored `build/evidence/assignment8-https/verification.json`; application
|
||||
and existing-service checks remain separate. No reviewed release, registry
|
||||
publication, promotion, rollback, password reset or account-permission change
|
||||
was performed during this work. The source changes remain uncommitted.
|
||||
|
||||
Caddy behavior: [Automatic HTTPS](https://caddyserver.com/docs/automatic-https).
|
||||
Reference in New Issue
Block a user