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
+35
View File
@@ -0,0 +1,35 @@
Sun Nov 15 22:50:10 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 1239 86 3 817 728
Swap: 2047 413 1634
1
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 24G 15G 9.2G 61% /
147.182.178.136 | CHANGED | rc=0 >>
0
+31
View File
@@ -0,0 +1,31 @@
# Assessed Jenkins gate demonstrations — 15 November 2026
Reviewed source: `09731acb0370566471dd4e401e59bafe55e927dc`, the merge of
[PR 24](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/24).
Billy (`bill`) approved the latest preparation head `ed0a862` at 21:06 UTC;
Vincent merged it at 21:59 UTC. The merge-triggered manual workflow
[run 13](https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/actions/runs/13)
passed in 2m25s before the delivery demonstrations began.
| Jenkins pricing run | Mode | Actual result |
|---|---|---|
| [1](https://ci.yebilly.me/job/secure-delivery/job/pricing/1/) | `blocked-test` | FAILURE as intended, 54.202 seconds. Twelve control tests and three normal Flask tests passed; the additional expected-total=-1 assertion failed against the real v1 total 30. All later security, publication, deployment and approval stages were skipped. |
| [2](https://ci.yebilly.me/job/secure-delivery/job/pricing/2/) | `blocked-secret` | FAILURE as intended, 31.375 seconds. Twelve control tests and three Flask tests passed. Clean-source scanning and all nine locked dependency audits passed; the generated synthetic-secret fixture was detected, blocking publication, deployment and approval. |
Run 1 began at 22:11:34.732 UTC. Run 2 began at 22:12:51.073 UTC;
its source gate ran from 22:13:14.233 to 22:13:20.115 UTC. The scanner itself
returned zero after writing a valid report; the gate wrapper returned one
because that report contained a finding. This is expected policy enforcement,
not a scanner execution error. The synthetic fixture is nonfunctional and
generated only in a temporary directory; captured match/code fields are redacted.
Jenkins archives the test and gate reports for each run. Exact local copies,
selected build metadata and console logs are retained in ignored
`build/evidence/assignment8-execution/jenkins-{1,2}/`. These two negative
demonstrations do not establish a successful release or production approval.
The job was enabled only after the merge. A bootstrap MODE choice parameter
allowed the first run to select `blocked-test`; the reviewed Jenkinsfile then
installed its normal four parameter definitions and retained its approval,
timeout, concurrency and ancestry checks. Existing credentials and access
permissions were unchanged.
@@ -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.