From 83da3087c9aa15bdebd43e118ccc2c301dc61862 Mon Sep 17 00:00:00 2001 From: Codex Date: Wed, 4 Nov 2026 19:49:32 +0000 Subject: [PATCH] Use scanned lean pricing image and record baseline evidence --- secure-delivery/WORK_LOG.md | 5 +++++ secure-delivery/v1/Dockerfile | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/secure-delivery/WORK_LOG.md b/secure-delivery/WORK_LOG.md index 2e03af6..500fc16 100644 --- a/secure-delivery/WORK_LOG.md +++ b/secure-delivery/WORK_LOG.md @@ -27,3 +27,8 @@ ## Gitea-backed validation - Published branch assignment8/secure-delivery at 242372e381ecbcab4078e7d8c0916073d600d970. Jenkins assignment8-validation build #1 checked out that commit on assignment8-trusted, passed all 3 v1 unit tests and passed Ansible syntax check. Evidence: https://ci.myfileagent.tech/job/assignment8-validation/1/console . This does not demonstrate deployment, security gates, or image publication. + +## Initial image security checks +- User approved host Docker daemon access for the label-restricted trusted agent; its connection was verified. This access is effectively host administration. Agent-built test image succeeded with placeholder identity, not a release. +- Trivy 0.69.1 scan of the Debian slim test image failed the HIGH/CRITICAL gate: 45 Debian and 5 Python findings. A pinned Python Alpine candidate had no OS findings but 5 Python tooling findings. After removing pip and ensurepip bundled wheels from runtime, the candidate scan reported zero HIGH/CRITICAL findings, exit 0, at the time of scan. Reports are in server evidence/assignment8; rescan the actual release image and archive results. +- Isolated candidate smoke test initially ran before startup and got connection refused; after allowing startup, health was ok, v1 identity returned development placeholder, and quantity 3 returned 30. No production deployment occurred. diff --git a/secure-delivery/v1/Dockerfile b/secure-delivery/v1/Dockerfile index a380e8c..921ebb2 100644 --- a/secure-delivery/v1/Dockerfile +++ b/secure-delivery/v1/Dockerfile @@ -1,9 +1,10 @@ -FROM python:3.13-slim@sha256:ae14d4ce8771606477a81446e7ef429edd6762305fc50c84507c1041fa8285d1 +FROM python:3.13-alpine@sha256:7984cf56ceaddebe4fefeb75d64000b9f45d8b77b11a09b24524da6cdc3af0c8 ARG APP_COMMIT=development ENV APP_COMMIT=$APP_COMMIT PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt +RUN python -m pip uninstall -y pip && rm -rf /usr/local/lib/python3.13/ensurepip/_bundled COPY app.py . USER 10001:10001 EXPOSE 8000