24 KiB
Assignment 8 handoff — 7 November 2026
Current state — 8 November 2026
Production is verified v1/30 after the approved rollback; staging is verified v2/36 after the delayed recovery. Main was fetched at ee128d18bddd1763b916b40f05829f2e769f0654. The continuation entries below supersede earlier historical status and instructions, including claims that later commits remain unmerged or that no release exists.
Monitoring is live, and a local assignment8/documentation branch contains a manual draft, dashboard/probe configuration and the three exercise Jenkinsfiles. These changes have not yet been pushed, independently reviewed, or merged. The compiled PDF is a draft; Grafana UI verification is pending authenticated access. No new production deployment is authorized without a separate human approval.
Continuation check, 7 November 2026
- A fresh read-only clone in
HW8/assignment8-repofoundmainat6ba31a3b44906b5c19faa7ccba601e69798b142aandassignment8/secure-deliveryat35523ccd3cc1dd2419981b5f536bfd61341826c3. The merge parents are10c85ea655efbb66a48a6c6ea7e12f7beab6493band the approvedc1cd3ad9af12e11af7c08c398c5fc93649cfd556; commits88f3bb0and35523ccare later branch-only work. - Gitea showed no open pull requests at this check. The in-app browser was signed out of Gitea, and Jenkins presented its sign-in page. The updated security job, its exact revision, live target, and registry publication/pull remain unverified in this continuation. No deployment or production approval occurred.
- This continuation note is a local, uncommitted change. It is not evidence of a successful pipeline or a substitute for independent review of the later branch commits. Recheck remote refs before proceeding.
- Subsequent continuation: SSH alias
ssw590-codexconnected ascodex; the Assignment 8 Droplet worktree was at35523ccwith pre-existing untracked.DS_Storeand__pycache__entries. Existing infrastructure containers and the trusted agent were running; no pricing containers were running. The private network gateway matched172.20.0.1. Jenkins validation job selected the Assignment 8 branch andsecure-delivery/Jenkinsfile.security. Build #10 succeeded for35523ccd3cc1dd2419981b5f536bfd61341826c3: three tests, dependency audit, secret scan, Ansible syntax, test image build and HIGH/CRITICAL image scan. Its archived dependency report lists all nine packages, including packaging, without known findings; its secret summary reports zero findings and exit 0. This test image is not a published release. PR #18 was opened for the two post-#17 commits. It requires an independent approval and required PR check; Gitea reported the branch out of date, and a branch update was requested. Recheck the actual head and repeat validation if the update changes it. - Gitea's branch update created head
9e96c831975d9c781bc896c304bf2151b7f4e353. The required PR check passed at last inspection, but independent approval was still missing. Jenkins validation #11 succeeded on that exact head, including tests, dependency and secret scans, Ansible syntax, test image build and image scan. Its archived dependency report lists all nine pinned packages without known findings. This is validation of a test image, not a registry publication or deployment. Verify the latest PR head and approval before proceeding. - PR #18 received approval from
glovelyand merged tomainas935eaa86248fb3eee26e0ae43efb7d11d520b956. A newassignment8-releaseJenkins job uses the reviewed release draft and pins that merge commit, with full checkout and concurrent builds disabled. Release #1 failed before checkout because lightweight checkout treated the commit as a branch. Full checkout fixed the configuration; release #2 checked out the pinned commit and is running. Verify final stages and artifacts; a human must approve the restricted production gate separately. - Release #2 built and scanned v1, pushed and pulled
myfileagent.tech/myfileagent/pricing@sha256:276746521e74e0506a22179ca5d299cd83864cb9e0c90e68e433d34d517373f3and deployed it to staging. At 22:24 UTC, Ansible's HTTPS checks passed for v1, commit935eaa86248fb3eee26e0ae43efb7d11d520b956, and quantity-three total 30; an independent HTTPS request returned the same values. The identical second run failed at Compose wait because the container was unhealthy, so production approval and deployment were skipped. Docker health logs showed repeated 3-second health-check timeouts, followed by successful checks and a return to healthy; the agent also briefly disconnected during the build. No idempotence success is claimed. A local, unreviewed change increases the image health-check and HTTP timeouts to 10 and 8 seconds respectively; it requires validation and independent review, and does not establish a guaranteed fix under load. Preserve the failed run and investigate resource pressure before retrying. No production deployment has occurred. - PR #19 proposes the timeout mitigation on head
746b42b72bfdb9079404b77898c2a6a252eaeea1. It is separate from local branchassignment8/healthcheck-reliability(which also contains this handoff update). The trusted validation agent has Docker host access; obtain independent review before executing changed build instructions there. The PR check was pending when last observed. After approval, validate the exact reviewed head, merge through protected main, pin the release job to the new reviewed merge commit, and re-run through staging; request production approval only after staging and idempotence pass. Do not treat the health timeout change as a proven fix without that evidence. - PR #19 was approved by
glovelyand merged as0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2. Release #3 used that exact source/configuration commit, passed its tests and security gates, published and pulledmyfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2, and deployed staging. HTTPS returned health ok, v1, that commit, and total 30 for quantity 3. The identical second Ansible run finishedok=9 changed=0 unreachable=0 failed=0at 22:39 UTC. The restricted production approval input is pending, with a 30-minute timeout; no approval or production deployment has yet occurred. A human must review the evidence and use the Jenkins gate, not ask the agent to approve it. - Release #3 was approved in Jenkins by Gowri Das Lovely at 22:44:27 UTC on 7 November. Production deployment finished successfully at 22:46:08 UTC, and the pipeline finished SUCCESS. Independent HTTPS checks returned health ok, v1, commit
0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2, and total 30 for quantity 3 in both staging and production. Both used the same published digest above. Preserve the release artifacts and matching configuration for rollback. The earlier pending-approval note is historical. - Opened PR #20 for the v2 source, test expectations and release intent, based on the v1 merge. Head at creation:
4d7e4f932fe3c8d658dcbe8d16aef806184850f2. The exact diff matches the supplied v2 preview (six additions and six deletions across three files). A local dependency installation did not complete, so no new v2 unit or security result is claimed. Obtain independent review before using the trusted agent, and verify the latest head and required PR checks. Then execute the reviewed release pipeline with its separate production approval. - PR #20 was approved by
glovelyand merged asee128d18bddd1763b916b40f05829f2e769f0654. Release #4 passed v2 tests, dependency and secret scans, Ansible syntax and image scan; it published and pulledmyfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9. Staging passed health, exact commit, v2 and total 36, and the unchanged rerun reportedok=9 changed=0 unreachable=0 failed=0at 23:02 UTC. Independent HTTPS checks confirmed v2/36 in staging and v1/30 in production. The v2 production input is pending and expires about 23:32 UTC; only an authorized human may approve it. The earlier review/validation note is historical. - Release #4 was approved by Gowri Das Lovely at 23:03:50 UTC and completed successfully at 23:05:41 UTC. Independent HTTPS checks confirmed health ok, v2, commit
ee128d18bddd1763b916b40f05829f2e769f0654, and total 36 in both staging and production. The next exercise is production rollback to the v1 digest and matching configuration recorded in release #3. A proposed gated orchestration is saved locally inHW8/rollback-v1.Jenkinsfile; it has not been reviewed, installed, or executed. It performs preflight verification, obtains a restricted human approval, samples HTTPS availability, applies the reviewed v1 Ansible configuration, and archives results. Human review and a separate production approval are still required; no rollback has occurred. - The user reviewed the local rollback proposal. It was installed as Jenkins
assignment8-rollback-v1and its saved script SHA-256 was checked against the local file. Rollback run #1 verified production v2/36 and checked out the reviewed v1 configuration. It reached the restricted human input at 23:10 UTC on 7 November; the gate expires approximately 23:40 UTC. It has not yet changed production. The prior sentence describing the proposal as unreviewed and uninstalled is historical. - Rollback #1 was approved by Gowri Das Lovely at 23:12:50 UTC and succeeded. Ansible began at 23:13:01 UTC and verified recovery at 23:14:37 UTC. Availability samples show HTTP 502 from 23:13:49 through 23:13:55, a timeout at 23:13:57, and HTTP 200 at 23:14:01; intermittent sampling bounds rather than precisely measures interruption. Independent HTTPS checks confirmed production health ok, v1, commit
0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2, and total 30; staging remained v2 atee128d18bddd1763b916b40f05829f2e769f0654and total 36. The pending-approval note above is historical. - The staging-only failure commit
c0cdd9159b430b8a27543a293cdd23aa05c8ee34conditionally bound Gunicorn to 8001 while the health check remained on 8000. Failure run #1 checked out that commit; Compose reported the staging container unhealthy, Ansible failed, and the following pipeline stage was skipped at 23:21 UTC on 7 November. A session interruption delayed recovery until the next day; do not describe it as a brief outage or infer exact downtime without continuous measurements. Recovery run #1 checked out reviewed configurationee128d18bddd1763b916b40f05829f2e769f0654and selected the v2 image/release record. Recovery began 15:54:48 UTC and Ansible verified it at 15:56:45 UTC on 8 November. Independent HTTPS checks confirmed staging health ok, v2, exact commit, and total 36; production remained v1/30. Local orchestration files areHW8/staging-failure.JenkinsfileandHW8/staging-recovery.Jenkinsfile.
This is a continuation guide for the team and its Codex session. The assignment is not complete. The instructor source is dosManual-V1.43.pdf, Chapter 6, and the provided Examples/dosSecureDelivery starter. The deliverable is one updated team IT manual PDF plus accessible reviewed source and evidence.
Read this first: branch and review state
- Repository: https://myfileagent.tech/myfileagent/myfileagent-pipeline
- PR #17 was approved by
nkogutfor headc1cd3ad9af12e11af7c08c398c5fc93649cfd556and merged tomainas6ba31a3b44906b5c19faa7ccba601e69798b142a. Check the merge parents, not the PR's moving head, when reconstructing what was reviewed. - Commit
88f3bb0d0aeffe3fe122ea3f5f797817e8c5523fwas pushed toassignment8/secure-deliveryafter PR #17 merged. It is not in that merge or in main as of this handoff. It fixes dependency-audit coverage and evidence handling. This handoff and the accompanying v2 preview patch are additional branch changes. Open a new PR against main for these changes, run checks against its exact head, and obtain the required independent review; do not treat PR #17's approval as approval of later commits. - On the Droplet, the v1 worktree is
/home/codex/myfileagent-gitea/assignment8-secure-delivery. The local v2 preview worktree is/home/codex/myfileagent-gitea/assignment8-v2-preview, branchassignment8/v2-preview, commit2147b21640a3a644e9ab156bca9e7b5a82af4011. That preview has not been pushed or reviewed.v2-preview.patchalongside this file preserves that commit for a partner who only has Gitea access. Apply it to a new branch based on the final reviewed v1 state, inspect it, and test it; do not include it in the v1 release.
Verified foundation
- Existing Gitea, Jenkins, Caddy, Prometheus, Grafana, Blackbox Exporter, and Node Exporter were running at the last check. Continue to preserve their configurations and data.
- Jenkins has a dedicated
assignment8-trustedagent. Its image definition and validated Compose recreation template are inagent/. The running container was created separately and has not been recreated with that template. The Docker socket group is currently 987; verify before any recreation. Docker socket access and thea8deployaccount's passwordless root sudo are effectively host-administrator access. Restrict use to reviewed code and authorized jobs. Agent SSH host key is pinned inansible/known_hosts; inventory uses the private gateway172.20.0.1. The gateway can change if the network is recreated: verify before use. - With explicit team approval, Jenkins stores
assignment8-deploy-sshas a Global credential fora8deploy. Jenkins build #4 verified SSH and sudo. Jenkins credentialsassignment8-registry-writeandassignment8-registry-readare configured separately; never put secret values in Git, prompts, logs or the manual. The root Docker client authenticated with the read credential in build #5. Docker warned the credential is stored unencrypted in/root/.docker/config.json; limit access and remove it after assessment. A successful login is not proof of an actual image push or pull. staging.myfileagent.techandapp.myfileagent.techwere configured in DNS and Caddy. Both returned valid TLS and HTTP 502 before application containers existed. Gitea, Jenkins and Grafana HTTPS returned 200 after the proxy reload. The saved previous proxy config is/home/codex/myfileagent-gitea/Caddyfile.before-assignment8.- The v1 app is under
secure-delivery/v1, with pinned direct/transitive requirements and a pinned Python Alpine base image. Three unit tests passed. A test image passed an isolated health/version/price check and a HIGH/CRITICAL image scan; it used a placeholder source identity and is not a release. - The supplied v2 starter and the isolated v2 preview each passed three unit tests. No v2 release image exists yet.
Evidence and limitations
- Jenkins validation #8 passed for commit
65e4011; validation #9 passed forc1cd3ad, including tests, the then-current dependency audit, secret scan, Ansible syntax, image build and image scan. Gitea reported its own PR check successful forc1cd3ad. - Dependency audit correction: the prior resolved pip-audit report listed eight of nine pinned packages and omitted
packaging. A separate stricter audit using--disable-pip --no-depslisted all nine and found no known vulnerabilities on 7 November. Commit88f3bb0updates the pipelines to use that mode; it needs review and a complete Jenkins run on the final commit. Findings can change with the database. - Artifact caution: during build #9, a separate direct test wrote
secret-scan-summary.jsoninto the shared workspace shortly before archiving. That summary is independent test output, not build #9 evidence. Its image scan report and build log are separate. Guard-test #6 also archived stale reports; do not use those as #6 evidence. Guard-test #7 blocked the unmerged branch before publication and archived no files. - A controlled unit-test failure in test-gate build #1 skipped the following demonstration delivery stage. The test was restored and all three tests passed afterward. A disposable key triggered the secret scanner and blocked secret-gate build #4; the fixture was removed. The updated redacted summary was also tested directly with clean input and a disposable-key fixture, but not yet in a full updated pipeline.
- Detailed chronological notes are in
WORK_LOG.md. Raw scan and exercise evidence is under/home/codex/myfileagent-gitea/evidence/assignment8on the Droplet; examine and redact before copying anything into the repository or manual. Do not publish real keys or tokens.
Continue in this order
- Fetch
mainand the latestassignment8/secure-deliverybranch. Review the delta after the PR #17 merge, especially88f3bb0,Jenkinsfile.release.draft,Jenkinsfile.security,scan-secrets.sh, the agent configuration and this handoff. Open a new PR for the unmerged fixes; run the updated security pipeline on its exact head and obtain the required independent review. Preserve branch protection. - The release pipeline is a draft, not an end-to-end verified production pipeline. Review its Groovy, credentials, source/config identity, report capture, restricted
ssw590approval, idempotence check, registry digest selection and target pull. The source guard intentionally blocks a branch head not already in protected main. Groovy parsing and that guard were tested; later release stages have not been exercised. Configure the release job to use the reviewed main revision only after the changes are approved and merged. - Recheck Gitea organization package-write permission for
glovelyand read access for the target with an actual release push and authenticated pull. The registry login worked, the token reportedwrite:package, and read-only database inspection showedglovelyon the organization Owners team; publication itself has not been proven. Build once from the reviewed commit, scan the actual image, publish it, and record the immutable registry digest. Do not substitute a local image ID. - Deploy v1 to staging using Ansible and its release record. Verify HTTPS health, version, full baked source commit, and quantity-3 total 30. Repeat the unchanged playbook and capture
changed=0. After a real restricted human Jenkins approval, promote the same digest to production and verify the same behavior. Record actual approver, times, build, source/config commits, scans, URLs and image digest. Never approve the human gate on the user's behalf. - After v1 is verified and preserved, create a separately reviewed v2 commit using the preview patch as reference, update
release-intent.jsonto v2/36, and run the complete build, scan, staging, approval and production flow. Retain the v1 image and matching configuration. - Perform both required exercises: (a) roll healthy production v2 back to v1 image and matching configuration, verify v1/30 and measure interruption; (b) staging only, use the instructor's Gunicorn 8001 mismatch while the image healthcheck remains on 8000, show the Jenkins failure, restore the previous reviewed config and verify recovery. Preserve timestamps and evidence; do not stop shared services, delete volumes or claim zero downtime.
- Add the production health probe to the existing Blackbox/Grafana monitoring, retain the earlier probes and metrics, and correlate actual observations with release and rollback times. Complete the release, failure, rollback and cleanup runbooks; describe single-Droplet and stateful-migration limitations.
- Update the existing team IT manual (Assignment 7 v1.9.2 baseline) with a chapter titled Secure Delivery and Rollback, actual architecture, versions, traceability table, redacted evidence, runbooks, history and AI log. Build and visually verify one final PDF and include grader access instructions. Do not claim work that was not performed.
Access and handling
The user has repeatedly run /home/codex/myfileagent-gitea/push-assignment8-private.py as codex to authenticate feature-branch pushes. Do not ask them to paste credentials into chat. Jenkins' existing assignment8-validation job should point to secure-delivery/Jenkinsfile.security; it was temporarily changed for SSH and guard checks and then restored. Recheck its configuration and exact job revision before relying on a result. Existing users must make the required review and production approval decisions themselves.
Monitoring continuation, 8 November 2026
- At 16:01:05 UTC the live Assignment 7 Prometheus configuration was extended with
https://app.myfileagent.tech/healthin the existinghttpsBlackbox job. The pre-change file is/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/prometheus/prometheus.yml.before-assignment8; Gitea and Jenkins probes were retained.promtool check configpassed, and Prometheus logged a successful SIGHUP reload without container recreation. The first application command returned a shell error after reload due to a CRLF line ending; the reload and targets were subsequently checked independently. - A separate provisioned dashboard,
assignment8-production-health.json, was added under the existing Grafana provisioning dashboard directory. Local source isHW8/production-health-dashboard.json. Its UI provisioning and rendering have not yet been independently verified. Existing dashboard was not modified. The monitoring changes are live-only and not yet committed to Gitea; preserve and version them as part of remaining work. - Prometheus target API reported the production, Gitea and Jenkins HTTPS probes and exporters up. An instant
probe_successquery returned 1 for all three on 8 November after the reload. The app probe did not exist during the 7 November promotions and rollback, so it cannot prove availability at those times. The rollback's separate HTTP samples are the only stated interval evidence. - Remaining: verify Grafana dashboard; incorporate monitoring configuration and documentation into a reviewed source branch; finish the existing team IT manual with traceability, evidence, runbooks, grader access, history and AI log; build and visually verify the PDF. Preserve the local uncommitted handoff changes when updating from latest main. No additional production deployment is authorized without a new human approval.
- The manual draft
documentation/devopsSecureDeliveryRollback.texwas compiled using the existingmanual-tex:1.7.1image without network; the 131-page local draft isHW8/output/pdf/SSW590-Assignment8-draft.pdf. The new chapter pages were rendered and reviewed; an overlapping architecture label was corrected and rebuilt. It is not the reviewed final submission. The dashboard file is visible inside Grafana but an authenticated browser session is needed to verify rendering. Grafana v13's legacydashboardtable was empty even for the existing dashboard, so that query does not prove a provisioning failure.