Prepare Assignment 8 secure delivery and rollback
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

Add the locked pricing service, trusted-agent pipeline, Ansible deployments, security gates, recovery runbooks, prerequisite evidence, and preparation manual.

Prepared with Codex assistance. Vincent explicitly authorized this local commit and will handle the push. Assessed releases and recovery exercises remain pending.
This commit is contained in:
2026-11-14 17:09:25 -05:00
parent 8beefde2a4
commit bf28adc7fb
51 changed files with 2091 additions and 14 deletions
+25
View File
@@ -0,0 +1,25 @@
FROM docker:29-cli@sha256:5a7af0dcb0e46c803efe9b45371dd21cb500e5b4453250394ac6f06d49b6e6f1 AS dockercli
FROM aquasec/trivy:0.76.2@sha256:8f6bb947dbc528902e11f2f5be52f7b519f6a39d5d148f41166f2040499768fb AS scanner
FROM jenkins/inbound-agent:jdk21@sha256:25a3704f7de4d3d0becc441f5683a227556658df1473865ee94c5232355678ab
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 python3-venv git openssh-client ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
COPY --from=dockercli /usr/local/bin/docker /usr/local/bin/docker
COPY --from=dockercli /usr/local/libexec/docker/cli-plugins/ /usr/local/libexec/docker/cli-plugins/
COPY --from=scanner /usr/local/bin/trivy /usr/local/bin/trivy
COPY agent/requirements.txt /tmp/requirements.txt
RUN python3 -m venv /opt/delivery-tools \
&& /opt/delivery-tools/bin/pip install --no-cache-dir -r /tmp/requirements.txt
ENV PATH="/opt/delivery-tools/bin:${PATH}" \
ANSIBLE_COLLECTIONS_PATH=/opt/ansible-collections \
PYTHONDONTWRITEBYTECODE=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
COPY ansible/requirements.yml /tmp/collections.yml
RUN ansible-galaxy collection install -r /tmp/collections.yml -p /opt/ansible-collections \
&& chmod -R a+rX /opt/ansible-collections \
&& mkdir -p /opt/delivery-tools/inventory \
&& dpkg-query -W > /opt/delivery-tools/inventory/debian-packages.txt \
&& pip freeze > /opt/delivery-tools/inventory/python-packages.txt
USER jenkins
+33
View File
@@ -0,0 +1,33 @@
name: ssw590-delivery
services:
agent:
image: ssw590-delivery-agent:20261114
restart: "no"
entrypoint: ["java", "-jar", "/usr/share/jenkins/agent.jar"]
command:
- -url
- https://ci.yebilly.me/
- -name
- ssw590-vince-delivery
- -secret
- "@/run/delivery-identity/agent-secret"
- -webSocket
- -workDir
- /home/jenkins/agent
# Docker's Linux VM socket is owned by group 0. Membership grants Docker
# administration privileges. Use this node exclusively for trusted jobs.
group_add: ["0"]
volumes:
- workspace:/home/jenkins/agent
- /var/run/docker.sock:/var/run/docker.sock
- identity:/run/delivery-identity:ro
mem_limit: 2g
cpus: 2
security_opt: ["no-new-privileges:true"]
cap_drop: ["ALL"]
volumes:
identity:
external: true
name: ssw590-delivery-identity
workspace:
name: ssw590-delivery-workspace
+2
View File
@@ -0,0 +1,2 @@
ansible-core==2.21.6
pip-audit==2.10.1
+35
View File
@@ -0,0 +1,35 @@
ansible-core==2.21.6
boolean.py==5.0
CacheControl==0.14.4
certifi==2026.10.23
cffi==2.1.1
charset-normalizer==3.5.2
cryptography==50.0.2
cyclonedx-python-lib==11.12.0
defusedxml==0.7.1
filelock==4.2.10
idna==3.20
Jinja2==3.1.6
license-expression==30.4.4
markdown-it-py==4.3.0
MarkupSafe==3.0.4
mdurl==0.1.2
msgpack==1.2.4
packageurl-python==0.17.6
packaging==26.3
pip-requirements-parser==32.0.1
pip_api==0.0.35
pip_audit==2.10.1
platformdirs==4.14.5
py-serializable==2.2.0
pycparser==3.12
Pygments==2.21.0
pyparsing==3.3.3
PyYAML==6.0.3
requests==2.34.2
resolvelib==1.2.1
rich==15.0.0
sortedcontainers==2.4.0
tomli==2.5.0
tomli_w==1.2.0
urllib3==2.8.0
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
set -eu
python -m venv /tmp/tools
/tmp/tools/bin/python -m pip install --disable-pip-version-check -r /workspace/delivery/agent/requirements.in
/tmp/tools/bin/python -m pip freeze > /workspace/delivery/agent/requirements.txt
/tmp/tools/bin/ansible-galaxy collection install -r /workspace/delivery/ansible/requirements.yml -p /tmp/collections
/tmp/tools/bin/ansible-galaxy collection list -p /tmp/collections --format json > /tmp/collections.json
/tmp/tools/bin/python - <<'PY'
import json
from pathlib import Path
data = json.loads(Path('/tmp/collections.json').read_text())
versions = {
name: metadata['version']
for collections in data.values()
for name, metadata in collections.items()
if name.startswith('community.')
}
assert 'community.docker' in versions, versions
Path('/workspace/delivery/ansible/requirements.yml').write_text(
'collections:\n' + ''.join(
f' - name: {name}\n version: "{version}"\n'
for name, version in sorted(versions.items())
)
)
print(f'Pinned collections: {versions}')
PY