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
@@ -0,0 +1,55 @@
# v1 publication and blocked deployment — 15 November 2026
[Pricing build 3](https://ci.yebilly.me/job/secure-delivery/job/pricing/3/)
ran in `release` mode from reviewed source/configuration commit
`09731acb0370566471dd4e401e59bafe55e927dc`. It began at 22:25:23.584 UTC,
took 77.799 seconds, and finished FAILURE. This was a published image followed
by a connection failure, **not a successful staging or production release**.
Tests, clean-source scanning and all nine locked dependency audits passed.
Both pre-push and registry-digest Trivy image reports analyzed two targets and
contained zero HIGH/CRITICAL findings. The agent built the image once, pushed
the source-SHA tag, pulled it back and verified this registry reference:
```text
git.yebilly.me/ssw590-group1/pricing@sha256:cccd47f112f839f3443c88c4d16fd7a1ed0fec2100a26464156526d53ccc2695
```
The generated staging/production records were timestamped 22:26:29.144 UTC.
Staging deployment began 22:26:33.530 and stopped at 22:26:39.422 UTC
(5.892 seconds), before any application configuration or container was created:
```text
TASK [Gathering Facts]
Failed to connect to the host via ssh: PTY allocation request failed on channel 0
startup : ok=0 changed=0 unreachable=1 failed=0
Ansible exit code: 4
```
Jenkins skipped the unchanged rerun and production approval/deployment.
The generated records and scans are archived in that build and copied to ignored
`build/evidence/assignment8-execution/jenkins-3/`. They are deliberately absent
from `delivery/releases/`: neither environment has been verified healthy.
## Correction and verification
Ansible's SSH connection plugin defaults to forcing a terminal. The deploy
key intentionally forbids PTY allocation. The inventory now selects
`ansible_ssh_use_tty=false` for the delivery group, matching that restriction.
See the official [Ansible 2.21 SSH connection options](https://docs.ansible.com/projects/ansible-core/2.21/collections/ansible/builtin/ssh_connection.html#parameter-use_tty).
Pinned host verification, key restrictions, credentials and sudo policy are unchanged.
The administrator-only preflight was extended to exercise Ansible's actual
SSH/become path using the same bound credentials, rather than plain SSH alone.
[Agent preflight build 3](https://ci.yebilly.me/job/secure-delivery/job/agent-preflight/3/)
passed in 17 seconds at 22:50 UTC. Its `ansible.builtin.command` invocation
of `id -u` returned `0`, proving the noninteractive module and sudo path.
The module reports CHANGED by default for a command; this is not a pricing
deployment or an unchanged-rerun result. Exact non-secret output is retained in
[`agent-preflight-3.txt`](agent-preflight-3.txt).
The source correction awaits Vincent's commit/push and Billy's review/merge.
Retry `release` from the corrected full main SHA; let the pipeline generate
fresh records for that reviewed source/configuration. Do not manually change
the failed attempt's record to imply a successful deployment or reuse it for
rollback. Retain its published image and reports as evidence.