diff --git a/secure-delivery/WORK_LOG.md b/secure-delivery/WORK_LOG.md index 65bf2da..9de923d 100644 --- a/secure-delivery/WORK_LOG.md +++ b/secure-delivery/WORK_LOG.md @@ -82,3 +82,9 @@ - Registry permission-only check #4 returned token scope write:package; this does not prove glovely can publish to the organization. https://ci.myfileagent.tech/job/assignment8-registry-check/4/console - Jenkins assignment8-test-gate-demo #1 deliberately changed one pricing assertion in its own workspace; the test failed (30 versus 31), and its following demonstration delivery stage was skipped. The trap restored the test, git diff confirmed no test change, and all three tests subsequently passed directly on the agent. https://ci.myfileagent.tech/job/assignment8-test-gate-demo/1/console - Supplied v2 starter was tested separately on the trusted agent: all three tests passed. It has not been applied to the reviewed v1 source, committed as v2, built, published, or deployed. + +- Prepared reproducible agent Compose configuration and validated it with docker compose config; it documents the currently used Docker socket group and private network but has not replaced the running container. +- Prepared isolated v2 preview commit 2147b21 on local branch assignment8/v2-preview based on the v1 feature branch. It changes the application/tests and release intent; all three tests passed on the trusted agent. It is not yet reviewed, published, built as a release or deployed, and must be based on the final reviewed v1 state before promotion. + +- Jenkins security validation #8 passed on Gitea commit 65e401172b0e4ec40116df0d07876484020ce454, including three unit tests, dependency audit, repository secret scan, Ansible syntax, image build and HIGH/CRITICAL image scan. The scan report was archived: https://ci.myfileagent.tech/job/assignment8-validation/8/console . This is validation of that commit, not an approved release. +- Agent Compose draft was checked against the running image, socket group, memory and restart policy and passed docker compose config. It has not been used to recreate the agent. diff --git a/secure-delivery/agent/compose.yaml b/secure-delivery/agent/compose.yaml new file mode 100644 index 0000000..6b1283f --- /dev/null +++ b/secure-delivery/agent/compose.yaml @@ -0,0 +1,21 @@ +# Run only after reviewing host paths, Docker socket group and privileges. +services: + assignment8-agent: + image: assignment8-jenkins-agent:2 + build: . + container_name: assignment8-jenkins-agent + restart: unless-stopped + mem_limit: 256m + group_add: + - "987" # Current Docker socket group; verify on the target host. + networks: + - private + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /home/codex/myfileagent-gitea/secrets/assignment8-agent-secret:/run/secrets/agent-secret:ro + entrypoint: ["java"] + command: ["-jar", "/usr/share/jenkins/agent.jar", "-url", "http://myfileagent-jenkins:8080/", "-webSocket", "-secret", "@/run/secrets/agent-secret", "-name", "assignment8-trusted", "-workDir", "/home/jenkins/agent"] +networks: + private: + external: true + name: myfileagent-gitea_gitea-private