Fix noninteractive Ansible deployment and record delivery gates
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-11-15 18:07:48 -05:00
parent 09731acb03
commit 5b703edc79
15 changed files with 313 additions and 57 deletions
+12 -24
View File
@@ -1,27 +1,15 @@
# Prepare secure delivery and rollback for Assignment 8
# Fix noninteractive Ansible deployment over the restricted SSH key
The existing CI checks code but does not publish or promote an application.
Add the instructor's pricing service with locked inputs and a trusted-agent
pipeline for security gates, digest-based staging/production deployment,
unchanged Ansible reruns, recorded human approval and recovery operations.
Keep the earlier PR job separate from folder-scoped deployment credentials.
The first reviewed v1 release passed its tests and security gates and published
an image, but stopped during Ansible Gathering Facts: Ansible forced a PTY
that the dedicated deploy key forbids. Set `ansible_ssh_use_tty=false` in the
delivery inventory and extend the administrator preflight to exercise Ansible's
actual SSH/sudo path. Keep the key restriction and pinned host verification.
Include the reproducible agent/bootstrap, scan policy, runbooks, actual
prerequisite evidence and a clearly marked preparation chapter. Billy's DNS
records and Caddy HTTPS routes are now verified; app requests return 502 until
the backends are deployed. Monitoring additions await healthy production.
The release job is configured but disabled until reviewed source
reaches main. Assessed v1/v2 promotions and both recovery exercises remain
pending and will require separate reviewed changes and execution evidence.
Record the actual Jenkins test/secret blocks, passing image scans and publication,
zero-change staging connection failure, and successful connection preflight.
No app deployment or production approval is claimed. Retry v1 after merge;
v2 promotion, both recoveries and monitoring evidence still remain.
Validation: two existing tests, three Flask tests, twelve control tests;
controlled test/secret blocks; passing source/dependency and runtime-image
gates; Ansible syntax, agent Compose and installed Jenkins parser checks;
successful prerequisite builds 1 (laptop) and 2 (Droplet), including pinned
deployment SSH and noninteractive sudo. The agent now runs on the existing
2 GiB Droplet to avoid campus SSH restrictions, with separate agent/builder
resource caps and a passing bounded build/scan/smoke trial. Shared-host Docker
administration is documented. The original Gitea Actions runner also moved to
the Droplet with its existing identity, separate daemon/job caps and a passing
reviewed-main run 12 rerun (attempt 3); the initial low-memory attempt is retained.
No production approval or completed release is claimed.
Validation: credential-bound Jenkins agent-preflight build 3 passed and returned
root UID 0 through Ansible without a PTY; twelve release-control tests passed.