Compare commits

..
Author SHA1 Message Date
jenkins-ci 6e2873cc6b Wrap exporter hostname in host registry
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m46s
2026-11-08 14:13:52 -05:00
jenkins-ci 073c176cd7 Wrap application hostnames in host registry 2026-11-08 14:13:01 -05:00
jenkins-ci 3c50432eb8 Document release evidence with screenshots and correct version
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 3m21s
2026-11-08 13:55:59 -05:00
jenkins-ci 436454548a Clarify architecture diagram connections
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m54s
2026-11-08 11:43:55 -05:00
jenkins-ci e5865202ab Complete assignment 8 evidence and architecture documentation 2026-11-08 11:42:19 -05:00
glovely 48704e0eff Merge pull request 'Document secure delivery evidence and production monitoring' (#21) from assignment8/documentation into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m47s
Reviewed-on: #21
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-08 16:24:42 +00:00
nkogut 4fa2bed7ba Update handoff with review and Grafana status
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 16:20:36 +00:00
nkogut b31a247244 Record verified production health dashboard
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 16:20:01 +00:00
jenkins-ci 3cf24224f5 Document secure delivery evidence and production monitoring
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 11:13:54 -05:00
glovely ee128d18bd Merge pull request 'Release v2 pricing at $12 per unit' (#20) from assignment8/v2-release into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 3m5s
Reviewed-on: #20
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-07 22:53:47 +00:00
nkogut 4d7e4f932f Set release intent to v2
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 22:49:35 +00:00
nkogut 699d509024 Update tests for v2 pricing
myfileagent-python-ci/pipeline/head Build queued...
2026-11-07 22:49:16 +00:00
nkogut 126dbb00b3 Prepare v2 pricing source
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 22:48:53 +00:00
68 changed files with 5427 additions and 15 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
name: Team manual PDF name: Team manual PDF
on: on:
push: push:
branches: [main, manual-build-validation, assignment7/manual-1.9.2] branches: [main, manual-build-validation, assignment7/manual-1.9.2, assignment8/evidence-documentation]
jobs: jobs:
manual: manual:
runs-on: manual-latex runs-on: manual-latex
@@ -26,7 +26,7 @@ jobs:
- name: Publish verified PDF and traceability manifest - name: Publish verified PDF and traceability manifest
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
with: with:
name: assignment7-1.9.2-run-${{ github.run_number }}-${{ github.sha }} name: team-manual-run-${{ github.run_number }}-${{ github.sha }}
path: | path: |
documentation/build/main.pdf documentation/build/main.pdf
documentation/build/build-manifest.json documentation/build/build-manifest.json
+4
View File
@@ -19,6 +19,10 @@
\bottomrule \bottomrule
\endlastfoot \endlastfoot
\parbox[t]{2.7cm}{\raggedright November 8, 2026\\ 1.10.1\\ GDL, NK, CDX} & Continue the handoff; verify and document the release and recovery evidence. & Codex checked the merged and later branch work separately, assisted with approved v1 and v2 releases, and recorded immutable digests, scan results, staging idempotence and human production approvals. It orchestrated the approved rollback and staging-only port mismatch, documented the overnight recovery delay, added the HTTPS probe, checked Grafana, and audited archived evidence. The team reviews the manual and evidence. \\
\parbox[t]{2.7cm}{\raggedright November 7, 2026\\ 1.10.0\\ GDL, NK, CDX} & Prepare the service, trusted agent, Ansible automation and delivery pipeline. & The previous Codex inspected the existing Droplet, adapted the starter, locked dependencies, built the trusted agent and installed Ansible and the Docker collection. It assisted with pinned SSH, scoped Jenkins credentials, registry authentication, proxy routes, security scans, a synthetic secret gate and reviewed delivery code. The team provided access and reviewed changes; Codex preserved the limitations and unfinished work in the handoff. \\
\parbox[t]{2.7cm}{\raggedright October 28, 2026\\ 1.9.2\\ GDL, NK, CDX} & Write the full SRE chapter through the Gitea-backed Droplet checkout; retain the team's screenshot choices, add Grafana host/vault hints, apply final editorial/layout corrections and compile through Gitea Actions. & Codex authored from recorded deployment, probes, alert tests, incident samples and persistence evidence; created source diagrams without changing original screenshots; recorded PR 14's human approval/merge and post-merge CI. The team supplied outside-Droplet port results and incognito/dashboard images, skipped the extra external HTTPS capture, and specified \texttt{bitwarden-grafana}. The team approved documentation PR 15 and Actions run 16 compiled the manual; version 1.9.2 applies the requested final wording and wrapping corrections. Next-day recovery-build timing remains accurately identified. \\ \parbox[t]{2.7cm}{\raggedright October 28, 2026\\ 1.9.2\\ GDL, NK, CDX} & Write the full SRE chapter through the Gitea-backed Droplet checkout; retain the team's screenshot choices, add Grafana host/vault hints, apply final editorial/layout corrections and compile through Gitea Actions. & Codex authored from recorded deployment, probes, alert tests, incident samples and persistence evidence; created source diagrams without changing original screenshots; recorded PR 14's human approval/merge and post-merge CI. The team supplied outside-Droplet port results and incognito/dashboard images, skipped the extra external HTTPS capture, and specified \texttt{bitwarden-grafana}. The team approved documentation PR 15 and Actions run 16 compiled the manual; version 1.9.2 applies the requested final wording and wrapping corrections. Next-day recovery-build timing remains accurately identified. \\
+4
View File
@@ -20,6 +20,10 @@
\bottomrule \bottomrule
\endlastfoot \endlastfoot
November 8, 2026 / 1.10.1 & GDL, NK, CDX & Completed the secure delivery evidence audit, expanded the architecture with actual hosts, volumes and private paths, and linked release records, scans and recovery output. Recorded the v1 and v2 promotions, human decisions, production rollback samples, staging port-mismatch failure and delayed recovery. Added production HTTPS monitoring and preserved its limitation: the probe started after rollback. Recorded the unverified historical scanner database version and stateful rollback limitations. & \ChapterRef{SecureDeliveryRollback}, \ChapterRef{Hosts} \\
November 7, 2026 / 1.10.0 & GDL, NK, CDX & Established the Assignment 8 service and delivery foundation. Locked application dependencies and base image; prepared a dedicated Jenkins agent with Python, Docker, Ansible and the Docker collection. Configured pinned SSH, restricted deployment credentials, registry access, Caddy routes and separate staging and production Compose projects. Added tests, dependency and secret scans, image scanning, approval and Ansible deployment. Reviewed and merged the foundation and follow-up security corrections; documented initial validation and the health-check timeout investigation. & \ChapterRef{SecureDeliveryRollback} \\
October 28, 2026 / 1.9.2 & GDL, NK, CDX & Expanded Assignment 7 into eight evidence sections; added architecture and measured incident diagrams, original team screenshots, final alert/runbook details, SLI counts, persistence, reviewed operational links and explicit verification limits. Updated Hosts with Grafana, Passwords with the team-specified \texttt{bitwarden-grafana} hint, front matter and reference controls. Operational PR 14 and documentation PR 15 were approved and merged; Actions run 16 compiled the manual. Final editorial and table-wrapping corrections are incorporated in version 1.9.2. & \ChapterRef{SREMonitoringReliability}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\ October 28, 2026 / 1.9.2 & GDL, NK, CDX & Expanded Assignment 7 into eight evidence sections; added architecture and measured incident diagrams, original team screenshots, final alert/runbook details, SLI counts, persistence, reviewed operational links and explicit verification limits. Updated Hosts with Grafana, Passwords with the team-specified \texttt{bitwarden-grafana} hint, front matter and reference controls. Operational PR 14 and documentation PR 15 were approved and merged; Actions run 16 compiled the manual. Final editorial and table-wrapping corrections are incorporated in version 1.9.2. & \ChapterRef{SREMonitoringReliability}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
+3 -1
View File
@@ -19,7 +19,9 @@ assignment and any that will be configured in future assignments.
\texttt{gitea} & Existing Droplet & Repository-scoped Actions runner ID 1; temporary TeX jobs on the same host. Team-owned, capacity one, no public runner/compiler ports; runner 192 MiB and jobs 256 MiB. HTTPS to \href{https://myfileagent.tech}{Gitea}; separate Docker bridges. Runner state is outside Git; service health was checked during setup. See \ChapterRef{AutomatedManualBuild}.\\ \texttt{gitea} & Existing Droplet & Repository-scoped Actions runner ID 1; temporary TeX jobs on the same host. Team-owned, capacity one, no public runner/compiler ports; runner 192 MiB and jobs 256 MiB. HTTPS to \href{https://myfileagent.tech}{Gitea}; separate Docker bridges. Runner state is outside Git; service health was checked during setup. See \ChapterRef{AutomatedManualBuild}.\\
\texttt{ci.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Jenkins 2.580.1 at \href{https://ci.myfileagent.tech/login}{HTTPS login}; public browser access, authentication required. Caddy forwards to \texttt{jenkins:8080} on the private bridge. Host port 8080 is loopback-only; no agent port is published. Team-owned, controller builds, persistent \texttt{jenkins-home}. Login, restart and main build 2 verified October 9, 2026; CI AAAA query returned no address. Named Matrix admin access team-confirmed; public-access approval remains unresolved. At the October 9 baseline, backup/monitoring was not established. Assignment 7 subsequently added HTTPS probes and host monitoring; monitoring does not establish Jenkins backup/restore. See \ChapterRef{JenkinsContinuousIntegration}.\\ \texttt{ci.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Jenkins 2.580.1 at \href{https://ci.myfileagent.tech/login}{HTTPS login}; public browser access, authentication required. Caddy forwards to \texttt{jenkins:8080} on the private bridge. Host port 8080 is loopback-only; no agent port is published. Team-owned, controller builds, persistent \texttt{jenkins-home}. Login, restart and main build 2 verified October 9, 2026; CI AAAA query returned no address. Named Matrix admin access team-confirmed; public-access approval remains unresolved. At the October 9 baseline, backup/monitoring was not established. Assignment 7 subsequently added HTTPS probes and host monitoring; monitoring does not establish Jenkins backup/restore. See \ChapterRef{JenkinsContinuousIntegration}.\\
\texttt{metrics.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Grafana OSS 13.2.4 at \href{https://metrics.myfileagent.tech/login}{HTTPS login}; authentication required, anonymous access and signup disabled in provisioning. Caddy forwards privately to \texttt{grafana:3000}. Persistent Grafana volume; six-panel monitoring and two-panel runbook dashboards; team Discord alert route. See \ChapterRef{SREMonitoringReliability}.\\ \texttt{metrics.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Grafana OSS 13.2.4 at \href{https://metrics.myfileagent.tech/login}{HTTPS login}; authentication required, anonymous access and signup disabled in provisioning. Caddy forwards privately to \texttt{grafana:3000}. Persistent Grafana volume; six-panel monitoring and two-panel runbook dashboards; team Discord alert route. See \ChapterRef{SREMonitoringReliability}.\\
\href{https://staging.myfileagent.tech}{\texttt{staging.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech}} & Existing Droplet & Staging pricing service; Caddy forwards HTTPS privately to port 8000.\\
\href{https://app.myfileagent.tech}{\texttt{app.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech}} & Existing Droplet & Production-like pricing service; Caddy forwards HTTPS privately to port 8000.\\
\texttt{prometheus} & Existing Droplet & Prometheus v3.15.1 on the private monitoring bridge at port 9090; separate persistent volume, 30-second scrapes, seven-day/512 MB block retention. No public port published.\\ \texttt{prometheus} & Existing Droplet & Prometheus v3.15.1 on the private monitoring bridge at port 9090; separate persistent volume, 30-second scrapes, seven-day/512 MB block retention. No public port published.\\
\texttt{node-exporter} & Existing Droplet & Node Exporter v1.12.1, private port 9100; read-only host root/proc/sys and host PID namespace for whole-host CPU, memory and filesystem collectors.\\ \texttt{node-exporter} & Existing Droplet & Node Exporter v1.12.1, private port 9100; read-only host root/proc/sys and host PID namespace for whole-host CPU, memory and filesystem collectors.\\
\texttt{blackbox-exporter} & Existing Droplet & Blackbox Exporter v0.29.1, private port 9115; probes Gitea/Jenkins HTTPS login URLs with TLS verification. Same-Droplet probes do not prove reachability from all external networks.\\ \texttt{blackbox-}\allowbreak\texttt{exporter} & Existing Droplet & Blackbox Exporter v0.29.1, private port 9115; probes Gitea/Jenkins HTTPS login URLs with TLS verification. Same-Droplet probes do not prove reachability from all external networks.\\
\end{tabularx} \end{tabularx}
@@ -0,0 +1,118 @@
\chapter{Secure Delivery and Rollback}
\ChapterLabel{SecureDeliveryRollback}
\section{Scope and architecture}
The stateless Startup Pricing Service uses Flask and Gunicorn. A trusted Jenkins agent runs tests, scans, image publication and Ansible; the controller schedules work and records human approval. Ansible connects by pinned SSH to the Droplet and manages separate staging and production Compose projects. Caddy terminates public HTTPS and forwards private container traffic to port 8000. The Gitea registry stores immutable images. Prometheus probes HTTPS through Blackbox Exporter; Grafana displays metrics. All services share one Droplet, so neither availability nor tenant isolation is equivalent to a multi-host deployment.
\begin{figure}[p]
\centering
\begin{tikzpicture}[x=1cm,y=1cm, every node/.style={draw,rounded corners,align=center,font=\scriptsize,inner sep=3pt}, arrow/.style={-{Stealth},thick}]
\node (client) at (0,0) {Team browser\\public HTTPS};
\node[draw,dashed,minimum width=13.6cm,minimum height=9.4cm,label={[draw=none]above:Existing single DigitalOcean Droplet}] (host) at (7,-5.6) {};
\node (proxy) at (6.9,-1.7) {Caddy container\\TLS / reverse proxy};
\node (stage) at (10.8,-3.1) {staging.myfileagent.tech\\pricing-staging :8000};
\node (prod) at (10.8,-4.4) {app.myfileagent.tech\\pricing-production :8000};
\node (git) at (2.2,-3.4) {Gitea + SQLite\\OCI registry};
\node (controller) at (5.7,-4.1) {Jenkins controller};
\node (agent) at (5.7,-5.6) {Trusted agent container\\Ansible process};
\node (docker) at (8.4,-6.5) {Host SSH account\\Docker Engine + Compose};
\node (mon) at (2.5,-7.5) {Prometheus + Grafana\\Blackbox + Node Exporter};
\node (dirs) at (10.5,-8.0) {Host deployment directories\\pricing-staging / pricing-production};
\draw[arrow] (client) -- (proxy);
\draw[arrow] (proxy) -- (stage); \draw[arrow] (proxy) -- (prod);
\draw[arrow] (controller) -- (agent); \draw[arrow] (agent) -- (docker);
\draw[arrow] (docker) -- (stage); \draw[arrow] (docker) -- (prod); \draw[arrow] (docker) -- (dirs);
\draw[arrow] (agent) -- (git); \draw[arrow] (mon.west) -- ++(-0.8,0) |- (proxy.west);
\end{tikzpicture}
\caption{Actual single-host delivery: external HTTPS, private container paths, and Ansible SSH to the host. Application containers are stateless.}
\label{Fig:A8Architecture}
\end{figure}
\begin{table}[p]
\centering\footnotesize
\begin{tabularx}{\linewidth}{L{3.4cm}Y}
\toprule Component & Actual persistent volume or host bind mount \\ \midrule
Gitea / SQLite & \path{myfileagent-gitea_gitea-data} and \path{myfileagent-gitea_gitea-config} \\
Jenkins controller & \path{myfileagent-gitea_jenkins-home} \\
Caddy & \path{myfileagent-gitea_caddy-data}, \path{myfileagent-gitea_caddy-config}; \path{/home/codex/myfileagent-gitea/Caddyfile} \\
Prometheus & \path{myfileagent-monitoring_prometheus_data}; \path{/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/prometheus/prometheus.yml} \\
Grafana & \path{myfileagent-monitoring_grafana_data}; \path{/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/grafana/provisioning} \\
Blackbox / Node & \path{/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/blackbox/blackbox.yml}; host \path{/} mounted read-only for Node \\
Agent & Docker socket \path{/var/run/docker.sock}; separate agent workspace volumes; no Ansible service container \\
Applications & \path{/opt/startup/pricing-staging}, \path{/opt/startup/pricing-production}; no persistent application volume \\ \bottomrule
\end{tabularx}
\caption{Observed durable volumes and host mounts in the single-Droplet architecture. Exporters have no data volumes.}
\end{table}
The diagram is logical: the probe reaches the application through Caddy, and Ansible changes the host over SSH, not inside an application container. The agent has the Docker socket and the dedicated \texttt{a8deploy} account has passwordless root sudo; both confer effective host-administrator rights. Only authorized operators and reviewed code may use those privileges. Separate registry write and read credentials are held in Jenkins; target root Docker authentication is stored without encryption and must be restricted and removed after assessment. No credentials belong in source, screenshots or reports.
Persistent volumes retained are \path{myfileagent-gitea_gitea-data}, \path{myfileagent-gitea_gitea-config}, \path{myfileagent-gitea_jenkins-home}, \path{myfileagent-gitea_caddy-data}, \path{myfileagent-gitea_caddy-config}, \path{myfileagent-monitoring_prometheus_data}, and \path{myfileagent-monitoring_grafana_data}. Gitea uses SQLite within its existing data. The Caddyfile and monitoring configuration are host bind mounts under \path{/home/codex/myfileagent-gitea/}; Node Exporter reads the host root and Blackbox has no data volume. Ansible's application directories are \path{/opt/startup/pricing-staging} and \path{/opt/startup/pricing-production}; the pricing containers have no persistent application volume. The application ports are private. Shared proxy-network membership permits more lateral access than dedicated isolation.
\section{Build inputs and security}
On the trusted agent the recorded versions were Python 3.13.5, Git 2.47.3, Docker CLI 26.1.5, Ansible core 2.22.0 and community.docker 5.0.4; the target reported Docker 29.8.1 and Compose 5.5.1 on x86\_64. The release Dockerfile pins \path{python:3.13-alpine@sha256:7984cf56ceaddebe4fefeb75d64000b9f45d8b77b11a09b24524da6cdc3af0c8}; exact dependencies, including Flask 3.1.3 and Gunicorn 23.0.0, are in the linked requirements file. The image runs as UID 10001; Compose drops capabilities and uses a read-only root filesystem with writable temporary storage.
The release gates run unit tests, \texttt{pip-audit}, repository secret scanning and Trivy HIGH/CRITICAL image scanning. A finding, scanner error, or unavailable database blocks release unless an instructor accepts a documented, time-limited exception; false positives and unfixed findings require explicit triage, not silent suppression. Scan results are time-specific and do not prove absence of vulnerabilities. A disposable private-key fixture blocked \href{https://ci.myfileagent.tech/job/assignment8-secret-gate-demo/4/console}{secret gate \#4}; the fixture was removed. A controlled test failure blocked \href{https://ci.myfileagent.tech/job/assignment8-test-gate-demo/1/console}{test gate \#1}. The corrected audit covers all nine locked packages; the earlier validation \#9 summary has an evidence-contamination limitation and is not used as release evidence.
\section{Release traceability and evidence}
Times below are UTC on 7 November 2026. The abbreviated identifiers identify the linked full commits; the full digests are recorded in the Jenkins artifacts and handoff. The same published digest was used for each release's staging and production deployment. Both staging reruns reported \texttt{changed=0}. Human approver Gowri Das Lovely approved each restricted Jenkins input; the agent did not approve it.
\begin{longtable}{L{1.4cm}L{3.8cm}L{3.4cm}L{5.4cm}}
\toprule Release & Source and config commit & Registry digest (SHA-256 prefix) & Verified pipeline and production approval \\ \midrule\endhead
v1 & \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/commit/0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2}{\texttt{0cb5a34}} & \texttt{715a3c80d5fff431} & \href{https://ci.myfileagent.tech/job/assignment8-release/3/}{Jenkins release \#3}; approval 22:44:27; finished 22:46:08; health OK, v1, quantity 3 total 30. \\
v2 & \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/commit/ee128d18bddd1763b916b40f05829f2e769f0654}{\texttt{ee128d1}} & \texttt{2ab86894ada4c12b} & \href{https://ci.myfileagent.tech/job/assignment8-release/4/}{Jenkins release \#4}; approval 23:03:50; finished 23:05:41; health OK, v2, quantity 3 total 36. \\ \bottomrule
\end{longtable}
Full immutable registry references (the source and configuration commits are linked above):\par
\path{myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2}\par
\path{myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9}\par
Both release runs passed their tests, dependency and secret gates, syntax and image checks, and included authenticated publication and pull. Trivy 0.69.1 reported zero HIGH/CRITICAL findings in both release image reports; the dependency reports list all nine locked packages with zero known findings, and secret summaries report exit status 0. The reports record scan timestamps, but the exact vulnerability database version was not retained and cannot be reconstructed. Findings may change. \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/17}{PR \#17} covered its reviewed head; later fixes were independently reviewed and merged in \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/18}{PR \#18}. The health-timeout mitigation and v2 source were separately reviewed in \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/19}{PR \#19} and \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/20}{PR \#20}. Earlier release \#2 reached staging but failed the unchanged rerun after health-check timeouts; it did not reach production. The later successes do not establish a guaranteed fix under every load.
\subsection{Selected recorded results}
The following lines summarize results recorded in the archived Jenkins and Ansible output. Release times are UTC on 7 November 2026.
\begin{verbatim}
Release #3: Ran 3 tests; dependency audit: no known vulnerabilities
Staging v1 repeat: ok=9 changed=0 unreachable=0 failed=0
Release #4: Ran 3 tests; dependency audit: no known vulnerabilities
Staging v2 repeat: ok=9 changed=0 unreachable=0 failed=0
Staging mismatch: container pricing-staging-app-1 is unhealthy
Recovery: ok=9 changed=2 unreachable=0 failed=0
\end{verbatim}
The staging recovery excerpt is from 8 November. Full task output and the immutable release records are linked below; the recovery's two changes reflect restoration, not an unchanged rerun.
\subsection{Direct evidence and source links}
A checked, redacted \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/documentation/evidence/assignment8}{repository evidence bundle} preserves the selected reports, release records, recovery responses, checksums and excerpts. The bundle includes a separate timestamped current-state check; it is not substituted for historical data. The v1 and v2 runs retain redacted evidence: dependency reports (\href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/dependency-audit.json}{v1}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/dependency-audit.json}{v2}), image scans (\href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/image-scan.json}{v1}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/image-scan.json}{v2}), secret summaries (\href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/secret-scan-summary.json}{v1}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/secret-scan-summary.json}{v2}), and target pulls (\href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/target-pull.txt}{v1}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/target-pull.txt}{v2}). The unchanged staging reruns are linked for \href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/staging-second-run.txt}{v1} and \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/staging-second-run.txt}{v2}; each reported nine tasks OK, zero changes and zero failures.
Release records: \href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/releases/generated/v1-staging.yml}{v1 staging}, \href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/releases/generated/v1-production.yml}{v1 production}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/releases/generated/v2-staging.yml}{v2 staging} and \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/releases/generated/v2-production.yml}{v2 production}. Each release's console contains the checked Ansible health, identity and price assertions. Approval events occurred at 22:44:27 and 23:03:50 UTC; the associated approval files were written at 22:44:31 and 23:03:54 respectively.
The reviewed \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2/secure-delivery/v1}{v1 source, tests, Dockerfile and lockfile} and \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/ee128d18bddd1763b916b40f05829f2e769f0654/secure-delivery/v1}{v2 source, tests, Dockerfile and lockfile} are distinct revisions of the same application. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/ee128d18bddd1763b916b40f05829f2e769f0654/secure-delivery/Jenkinsfile.release.draft}{reviewed release pipeline}, \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/ee128d18bddd1763b916b40f05829f2e769f0654/secure-delivery/ansible}{inventory, playbook and template}, and \href{https://ci.myfileagent.tech/job/assignment8-agent-check/2/console}{agent version check} complete the implementation links. Despite its historical filename, the linked release pipeline was executed in releases \#3 and \#4.
\section{Recovery exercises and monitoring}
\href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/}{Rollback \#1} checked healthy production v2 and restored the matching reviewed v1 configuration and digest. Gowri approved at 23:12:50; Ansible began at 23:13:01 and verified v1 at 23:14:37. HTTP samples observed 502 from 23:13:49 through 23:13:55, a timeout at 23:13:57 and 200 at 23:14:01. Samples bound observations, not exact interruption duration. The archived \href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-identity.json}{identity}, \href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-health.json}{health}, \href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-price.json}{price} and \href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/availability-samples.txt}{samples} show v1, the full v1 commit and total 30.
In staging only, configuration commit \texttt{c0cdd915} bound Gunicorn to 8001 while its image health check remained on 8000. \href{https://ci.myfileagent.tech/job/assignment8-staging-failure/1/}{Failure run \#1} stopped after Compose reported unhealthy at 23:21 on 7 November. A session interruption delayed recovery overnight. \href{https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/}{Recovery run \#1} restored reviewed v2 configuration and digest starting 15:54:48 on 8 November; Ansible verified recovery at 15:56:45. Archived staging \href{https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/health.json}{health}, \href{https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/identity.json}{identity} and \href{https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/price.json}{price} confirmed v2/36. A separate current HTTPS observation at 16:29:04 UTC on 8 November showed production v1/30 and staging v2/36; it does not replace earlier release evidence. There was no continuous availability measurement for the whole staging interval.
On 8 November at 16:01:05, the production \url{https://app.myfileagent.tech/health} target was added to the existing HTTPS Blackbox job; Gitea, Jenkins and host metrics were retained. Prometheus accepted the configuration and reported all three HTTPS \texttt{probe\_success} values as 1 afterward. The provisioned Grafana dashboard displayed the production probe with latest value 1 when checked on 8 November. Since the production probe was added after the promotions and rollback, it cannot establish their historical availability or alert behavior. A 30-second scrape may miss a short interruption, and a status probe cannot validate price or source identity.
\subsection{Release and recovery screenshots}
The following images show the Jenkins records after the events. Captions identify the affected environment, release and event time in UTC; the images are not claimed to have been captured during the events. The archived logs and release records linked above contain the detailed results.
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/release-v1.jpg}
\caption{Staging and production, v1: Jenkins release \#3 succeeded on 7 November 2026; production verification completed at 22:46:08 UTC. The run retained approval, scan, digest and staging records.}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/release-v2.jpg}
\caption{Staging and production, v2: Jenkins release \#4 succeeded on 7 November 2026; production verification completed at 23:05:41 UTC. The recorded revision and release artifacts appear in the run.}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/rollback.jpg}
\caption{Production, rollback from v2 to v1: Jenkins rollback \#1 succeeded; Ansible verified the restored release at 23:14:37 UTC on 7 November 2026. Before/after responses and interruption samples are archived.}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/staging-failure.jpg}
\caption{Staging, v2 image with deliberate port-mismatch configuration: Jenkins failure \#1 stopped at approximately 23:21 UTC on 7 November 2026. The archived Ansible log records the unhealthy container.}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/staging-recovery.jpg}
\caption{Staging, restored v2: Jenkins recovery \#1 succeeded; Ansible verified recovery at 15:56:45 UTC on 8 November 2026. The health, identity and price responses are archived.}\end{figure}
\FloatBarrier
\section{Operations runbooks}
\textbf{Release:} review the exact source and configuration, input locks, security reports, staging behavior and immutable digest. Run the release job on reviewed main; verify health, identity and price, then the unchanged Ansible rerun. An authorized human reviews and approves the restricted Jenkins input before production. Promote the same digest and verify again; record the approver, times and artifacts.
\textbf{Failed staging deployment:} stop promotion, preserve logs and release metadata, inspect the health failure, restore the last reviewed configuration and corresponding image record, run Ansible and verify health, identity and price. The playbook does not automatically roll back.
\textbf{Production rollback:} an authorized human decides and approves a rollback; check the current release, restore the reviewed earlier image \emph{and} matching configuration, run Ansible, verify health, source and price, and record start, recovery and sampled interruption. A real database migration, external payment, or incompatible stored state may make image-only rollback unsafe. Prefer an expand-and-contract migration compatible with both versions; this stateless exercise did not test a database rollback.
\textbf{Cleanup:} after grading and only when retention permits, remove application projects, their Caddy routes, test DNS and dedicated credentials; retain earlier services, their volumes and required evidence. Do not prune Docker or use \texttt{compose down -v}. The single Droplet has shared CPU, memory and failure domain; earlier health-check timeouts illustrate that capacity matters.
Source, tests, release records and automation are linked in Section 13.3. Jenkins retains the supporting run logs and artifacts.
@@ -0,0 +1,50 @@
{
"collected_utc": "2026-11-08T16:34:38.771243+00:00",
"runs": {
"assignment8-staging-failure": {
"source": "https://ci.myfileagent.tech/job/assignment8-staging-failure/1/artifact/reports/failure-ansible.txt",
"selected_nonsecret_lines": [
"TASK [Gathering Facts] *********************************************************",
"TASK [Validate release selection] **********************************************",
"TASK [Create deployment directory] *********************************************",
"TASK [Render selected Compose configuration] ***********************************",
"TASK [Converge application without rebuilding] *********************************",
"[ERROR]: Task failed: Module failed: General error: container pricing-staging-app-1 is unhealthy",
"PLAY RECAP *********************************************************************",
"startup : ok=4 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 "
]
},
"assignment8-staging-recovery": {
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/recovery-ansible.txt",
"selected_nonsecret_lines": [
"TASK [Gathering Facts] *********************************************************",
"TASK [Validate release selection] **********************************************",
"TASK [Create deployment directory] *********************************************",
"TASK [Render selected Compose configuration] ***********************************",
"TASK [Converge application without rebuilding] *********************************",
"TASK [Verify health through public TLS endpoint] *******************************",
"TASK [Read release identity] ***************************************************",
"TASK [Exercise business behavior] **********************************************",
"TASK [Check release identity and calculation] **********************************",
"PLAY RECAP *********************************************************************",
"startup : ok=9 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
]
},
"assignment8-rollback-v1": {
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/rollback-ansible.txt",
"selected_nonsecret_lines": [
"TASK [Gathering Facts] *********************************************************",
"TASK [Validate release selection] **********************************************",
"TASK [Create deployment directory] *********************************************",
"TASK [Render selected Compose configuration] ***********************************",
"TASK [Converge application without rebuilding] *********************************",
"TASK [Verify health through public TLS endpoint] *******************************",
"TASK [Read release identity] ***************************************************",
"TASK [Exercise business behavior] **********************************************",
"TASK [Check release identity and calculation] **********************************",
"PLAY RECAP *********************************************************************",
"startup : ok=9 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
]
}
}
}
@@ -0,0 +1,5 @@
[2026-11-07T22:34:38.502Z] Ran 3 tests in 0.056s
[2026-11-07T22:34:40.697Z] No known vulnerabilities found
[2026-11-07T22:34:50.357Z] Secret scanner exit status: 0
[2026-11-07T22:39:47.533Z] startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Finished: SUCCESS
@@ -0,0 +1,9 @@
target_env: production
release_image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
expected_version: v1
expected_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
configuration_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
build_url: https://ci.myfileagent.tech/job/assignment8-release/3/
expected_total: 30
public_url: https://app.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,9 @@
target_env: staging
release_image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
expected_version: v1
expected_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
configuration_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
build_url: https://ci.myfileagent.tech/job/assignment8-release/3/
expected_total: 30
public_url: https://staging.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,9 @@
Approver: ssw590
Decision: approved
Time (UTC): 2026-11-07T22:44:31Z
Build: https://ci.myfileagent.tech/job/assignment8-release/3/
Source and configuration commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
Image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
Version: v1
Expected total for 3: 30
Staging and scans: passed
@@ -0,0 +1 @@
{"dependencies": [{"name": "blinker", "version": "1.9.0", "vulns": []}, {"name": "click", "version": "8.5.0", "vulns": []}, {"name": "flask", "version": "3.1.3", "vulns": []}, {"name": "gunicorn", "version": "23.0.0", "vulns": []}, {"name": "itsdangerous", "version": "2.2.0", "vulns": []}, {"name": "jinja2", "version": "3.1.6", "vulns": []}, {"name": "markupsafe", "version": "3.0.4", "vulns": []}, {"name": "packaging", "version": "26.3", "vulns": []}, {"name": "werkzeug", "version": "3.1.9", "vulns": []}], "fixes": []}
@@ -0,0 +1 @@
myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
{
"scanner": "Trivy 0.69.1",
"scope": "checked-out repository excluding Git metadata, temporary test environment and generated reports",
"findings": 0,
"exit_code": 0,
"timestamp_utc": "2026-11-07T22:34:49.489244+00:00"
}
@@ -0,0 +1,39 @@
PLAY [Deploy a selected immutable pricing release] *****************************
TASK [Gathering Facts] *********************************************************
ok: [startup]
TASK [Validate release selection] **********************************************
ok: [startup] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [Create deployment directory] *********************************************
ok: [startup]
TASK [Render selected Compose configuration] ***********************************
ok: [startup]
TASK [Converge application without rebuilding] *********************************
ok: [startup]
TASK [Verify health through public TLS endpoint] *******************************
ok: [startup]
TASK [Read release identity] ***************************************************
ok: [startup]
TASK [Exercise business behavior] **********************************************
ok: [startup]
TASK [Check release identity and calculation] **********************************
ok: [startup] => {
"changed": false,
"msg": "All assertions passed"
}
PLAY RECAP *********************************************************************
startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
@@ -0,0 +1,4 @@
myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2: Pulling from myfileagent/pricing
Digest: sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
Status: Image is up to date for myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
@@ -0,0 +1,5 @@
[2026-11-07T22:57:07.313Z] Ran 3 tests in 0.061s
[2026-11-07T22:57:10.242Z] No known vulnerabilities found
[2026-11-07T22:57:32.642Z] Secret scanner exit status: 0
[2026-11-07T23:02:33.262Z] startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Finished: SUCCESS
@@ -0,0 +1,9 @@
target_env: production
release_image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
expected_version: v2
expected_commit: ee128d18bddd1763b916b40f05829f2e769f0654
configuration_commit: ee128d18bddd1763b916b40f05829f2e769f0654
build_url: https://ci.myfileagent.tech/job/assignment8-release/4/
expected_total: 36
public_url: https://app.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,9 @@
target_env: staging
release_image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
expected_version: v2
expected_commit: ee128d18bddd1763b916b40f05829f2e769f0654
configuration_commit: ee128d18bddd1763b916b40f05829f2e769f0654
build_url: https://ci.myfileagent.tech/job/assignment8-release/4/
expected_total: 36
public_url: https://staging.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,9 @@
Approver: ssw590
Decision: approved
Time (UTC): 2026-11-07T23:03:54Z
Build: https://ci.myfileagent.tech/job/assignment8-release/4/
Source and configuration commit: ee128d18bddd1763b916b40f05829f2e769f0654
Image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
Version: v2
Expected total for 3: 36
Staging and scans: passed
@@ -0,0 +1 @@
{"dependencies": [{"name": "blinker", "version": "1.9.0", "vulns": []}, {"name": "click", "version": "8.5.0", "vulns": []}, {"name": "flask", "version": "3.1.3", "vulns": []}, {"name": "gunicorn", "version": "23.0.0", "vulns": []}, {"name": "itsdangerous", "version": "2.2.0", "vulns": []}, {"name": "jinja2", "version": "3.1.6", "vulns": []}, {"name": "markupsafe", "version": "3.0.4", "vulns": []}, {"name": "packaging", "version": "26.3", "vulns": []}, {"name": "werkzeug", "version": "3.1.9", "vulns": []}], "fixes": []}
@@ -0,0 +1 @@
myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
{
"scanner": "Trivy 0.69.1",
"scope": "checked-out repository excluding Git metadata, temporary test environment and generated reports",
"findings": 0,
"exit_code": 0,
"timestamp_utc": "2026-11-07T22:57:30.639294+00:00"
}
@@ -0,0 +1,39 @@
PLAY [Deploy a selected immutable pricing release] *****************************
TASK [Gathering Facts] *********************************************************
ok: [startup]
TASK [Validate release selection] **********************************************
ok: [startup] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [Create deployment directory] *********************************************
ok: [startup]
TASK [Render selected Compose configuration] ***********************************
ok: [startup]
TASK [Converge application without rebuilding] *********************************
ok: [startup]
TASK [Verify health through public TLS endpoint] *******************************
ok: [startup]
TASK [Read release identity] ***************************************************
ok: [startup]
TASK [Exercise business behavior] **********************************************
ok: [startup]
TASK [Check release identity and calculation] **********************************
ok: [startup] => {
"changed": false,
"msg": "All assertions passed"
}
PLAY RECAP *********************************************************************
startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
@@ -0,0 +1,4 @@
myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9: Pulling from myfileagent/pricing
Digest: sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
Status: Image is up to date for myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
@@ -0,0 +1 @@
Finished: SUCCESS
@@ -0,0 +1 @@
{"status":"ok","version":"v1"}
@@ -0,0 +1 @@
{"commit":"0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2","service":"Startup Pricing","version":"v1"}
@@ -0,0 +1 @@
{"currency":"USD","quantity":3,"total":30}
@@ -0,0 +1,3 @@
Approver: ssw590
Decision: approved
Time UTC: 2026-11-07T23:12:54Z
@@ -0,0 +1,66 @@
2026-11-07T23:13:01Z 200
2026-11-07T23:13:03Z 200
2026-11-07T23:13:04Z 200
2026-11-07T23:13:05Z 200
2026-11-07T23:13:07Z 200
2026-11-07T23:13:08Z 200
2026-11-07T23:13:09Z 200
2026-11-07T23:13:11Z 200
2026-11-07T23:13:13Z 200
2026-11-07T23:13:15Z 200
2026-11-07T23:13:17Z 200
2026-11-07T23:13:18Z 200
2026-11-07T23:13:19Z 200
2026-11-07T23:13:20Z 200
2026-11-07T23:13:22Z 200
2026-11-07T23:13:23Z 200
2026-11-07T23:13:24Z 200
2026-11-07T23:13:27Z 200
2026-11-07T23:13:29Z 200
2026-11-07T23:13:31Z 200
2026-11-07T23:13:32Z 200
2026-11-07T23:13:33Z 200
2026-11-07T23:13:35Z 200
2026-11-07T23:13:36Z 200
2026-11-07T23:13:37Z 200
2026-11-07T23:13:38Z 200
2026-11-07T23:13:39Z 200
2026-11-07T23:13:40Z 200
2026-11-07T23:13:42Z 200
2026-11-07T23:13:43Z 200
2026-11-07T23:13:45Z 200
2026-11-07T23:13:47Z 200
2026-11-07T23:13:48Z 200
2026-11-07T23:13:49Z 502
2026-11-07T23:13:50Z 502
2026-11-07T23:13:51Z 502
2026-11-07T23:13:53Z 502
2026-11-07T23:13:54Z 502
2026-11-07T23:13:55Z 502
2026-11-07T23:13:57Z 000
2026-11-07T23:14:01Z 200
2026-11-07T23:14:02Z 200
2026-11-07T23:14:03Z 200
2026-11-07T23:14:04Z 200
2026-11-07T23:14:06Z 200
2026-11-07T23:14:07Z 200
2026-11-07T23:14:08Z 200
2026-11-07T23:14:10Z 200
2026-11-07T23:14:11Z 200
2026-11-07T23:14:13Z 200
2026-11-07T23:14:15Z 200
2026-11-07T23:14:16Z 200
2026-11-07T23:14:17Z 200
2026-11-07T23:14:19Z 200
2026-11-07T23:14:20Z 200
2026-11-07T23:14:21Z 200
2026-11-07T23:14:22Z 200
2026-11-07T23:14:24Z 200
2026-11-07T23:14:25Z 200
2026-11-07T23:14:26Z 200
2026-11-07T23:14:29Z 200
2026-11-07T23:14:30Z 200
2026-11-07T23:14:32Z 200
2026-11-07T23:14:34Z 200
2026-11-07T23:14:35Z 200
2026-11-07T23:14:36Z 200
@@ -0,0 +1 @@
{"commit":"ee128d18bddd1763b916b40f05829f2e769f0654","service":"Startup Pricing","version":"v2"}
@@ -0,0 +1 @@
{"currency":"USD","quantity":3,"total":36}
@@ -0,0 +1 @@
2026-11-07T23:13:01Z
@@ -0,0 +1 @@
2026-11-07T23:14:37Z
@@ -0,0 +1,8 @@
target_env: production
release_image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
expected_version: v1
expected_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
configuration_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
expected_total: 30
public_url: https://app.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,2 @@
Scanner exit status: 1
Finished: FAILURE
@@ -0,0 +1,2 @@
Stage "Must not run after failure" skipped due to earlier failure(s)
Finished: FAILURE
@@ -0,0 +1 @@
2026-11-07T23:19:26Z
@@ -0,0 +1,8 @@
target_env: staging
release_image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
expected_version: v2
expected_commit: ee128d18bddd1763b916b40f05829f2e769f0654
configuration_commit: c0cdd9159b430b8a27543a293cdd23aa05c8ee34
expected_total: 36
public_url: https://staging.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1 @@
{"status":"ok","version":"v2"}
@@ -0,0 +1 @@
{"commit":"ee128d18bddd1763b916b40f05829f2e769f0654","service":"Startup Pricing","version":"v2"}
@@ -0,0 +1 @@
{"currency":"USD","quantity":3,"total":36}
@@ -0,0 +1 @@
2026-11-08T15:54:48Z
@@ -0,0 +1,8 @@
target_env: staging
release_image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
expected_version: v2
expected_commit: ee128d18bddd1763b916b40f05829f2e769f0654
configuration_commit: ee128d18bddd1763b916b40f05829f2e769f0654
expected_total: 36
public_url: https://staging.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,3 @@
Ran 3 tests in 0.099s
Stage "Delivery would proceed" skipped due to earlier failure(s)
Finished: FAILURE
@@ -0,0 +1,55 @@
{
"observed_utc": "2026-11-08T16:29:04.799527+00:00",
"observations": {
"production": {
"identity": {
"http_status": 200,
"body": {
"commit": "0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2",
"service": "Startup Pricing",
"version": "v1"
}
},
"health": {
"http_status": 200,
"body": {
"status": "ok",
"version": "v1"
}
},
"price": {
"http_status": 200,
"body": {
"currency": "USD",
"quantity": 3,
"total": 30
}
}
},
"staging": {
"identity": {
"http_status": 200,
"body": {
"commit": "ee128d18bddd1763b916b40f05829f2e769f0654",
"service": "Startup Pricing",
"version": "v2"
}
},
"health": {
"http_status": 200,
"body": {
"status": "ok",
"version": "v2"
}
},
"price": {
"http_status": 200,
"body": {
"currency": "USD",
"quantity": 3,
"total": 36
}
}
}
}
}
@@ -0,0 +1,40 @@
{
"collected_utc": "2026-11-08T16:36:54.785553+00:00",
"source": "Prometheus instant query probe_success",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1794155814.759,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1794155814.759,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://app.myfileagent.tech/health",
"job": "https"
},
"value": [
1794155814.759,
"1"
]
}
],
"note": "Collected after release and rollback; not historical incident evidence."
}
@@ -0,0 +1,227 @@
{
"collected_utc": "2026-11-08T16:28:20.498976+00:00",
"files": [
{
"file": "assignment8-release/3/reports/approval.txt",
"sha256": "3e711b141733b5de0553d3638feaa63a9cb57e12f7107c7da1fe7a5aad5e302c",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/approval.txt"
},
{
"file": "assignment8-release/3/reports/dependency-audit.json",
"sha256": "59f9628f3f974199f9e85238081b96d21533724b33a6d7b781176bfccd9770b9",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/dependency-audit.json"
},
{
"file": "assignment8-release/3/reports/image-digest.txt",
"sha256": "5bd0acd332644fd8891a806792439302ca6fc5c9563a9d9d5e4fefbb5e4a79cd",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/image-digest.txt"
},
{
"file": "assignment8-release/3/reports/image-scan.json",
"sha256": "19606907f109ce8c1a27f89ed18ecf2af72fc1badd69372693247a292409f00e",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/image-scan.json"
},
{
"file": "assignment8-release/3/reports/secret-scan-summary.json",
"sha256": "e3b74170db54f8bfb490bf9e60ff13966aec19f042e07dd08768c82fb3c79df3",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/secret-scan-summary.json"
},
{
"file": "assignment8-release/3/reports/staging-second-run.txt",
"sha256": "eb0335d3d5a06a7c6954fbc281fda349c6e36619318894676e9b131488f17323",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/staging-second-run.txt"
},
{
"file": "assignment8-release/3/reports/target-pull.txt",
"sha256": "67932ed478ea1eca2041b6f08253c717bf3d803c641982133ab74368a3843059",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/target-pull.txt"
},
{
"file": "assignment8-release/3/releases/generated/v1-staging.yml",
"sha256": "3166da6a55651832c3808bea04a1f1c7a72cdea7091d1f167c978920486ef7a4",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/releases/generated/v1-staging.yml"
},
{
"file": "assignment8-release/3/releases/generated/v1-production.yml",
"sha256": "b9b0e903b3ef41d0396746edfaf3b6a854437bde8f84c472960f73ecb6f4b22f",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/artifact/releases/generated/v1-production.yml"
},
{
"file": "assignment8-release/4/reports/approval.txt",
"sha256": "ba069e5b32accc31b744ab78cf65092bbd7dbec73d51446f3062897a35e1963f",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/approval.txt"
},
{
"file": "assignment8-release/4/reports/dependency-audit.json",
"sha256": "59f9628f3f974199f9e85238081b96d21533724b33a6d7b781176bfccd9770b9",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/dependency-audit.json"
},
{
"file": "assignment8-release/4/reports/image-digest.txt",
"sha256": "e5c9b967e1f5553363105a51775f214be449290ec3117edd78c7c22f8f542a35",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/image-digest.txt"
},
{
"file": "assignment8-release/4/reports/image-scan.json",
"sha256": "eecd806454d4a8b4e1ee8427f793753f0db1c463675fac7eee58fdbb891a7d53",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/image-scan.json"
},
{
"file": "assignment8-release/4/reports/secret-scan-summary.json",
"sha256": "339e410dc91f72fc808700f4bc6ef59e9c8ef7b77b60b247fb6b7be833d8997b",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/secret-scan-summary.json"
},
{
"file": "assignment8-release/4/reports/staging-second-run.txt",
"sha256": "eb0335d3d5a06a7c6954fbc281fda349c6e36619318894676e9b131488f17323",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/staging-second-run.txt"
},
{
"file": "assignment8-release/4/reports/target-pull.txt",
"sha256": "939dc16d70a7ac1745cd022a2e0bd210791cd17388e054967f0ae6db6ca518d8",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/target-pull.txt"
},
{
"file": "assignment8-release/4/releases/generated/v2-staging.yml",
"sha256": "5a213a9cd7ff170f9c8b2c7a510d8d9a4bc44444340d540a485a0c1da1257d7d",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/releases/generated/v2-staging.yml"
},
{
"file": "assignment8-release/4/releases/generated/v2-production.yml",
"sha256": "4e25ce1118dd88f1c49a9161ffa7e45c80b824c3c8ecc2e55288e4969e06a528",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/artifact/releases/generated/v2-production.yml"
},
{
"file": "assignment8-rollback-v1/1/reports/after-health.json",
"sha256": "2b3a2a367721bc1ee45af6e885c5c5217c13c9059fdc13902a2bcf27336d0d5f",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-health.json"
},
{
"file": "assignment8-rollback-v1/1/reports/after-identity.json",
"sha256": "552bd1deeab9b28518762058420b60d82d0d519d8fc1d3f0f3367e2d0aed90da",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-identity.json"
},
{
"file": "assignment8-rollback-v1/1/reports/after-price.json",
"sha256": "c93057649589d0ad423b4ac7a609e21ae5bafc50b8ea12f72163e43e54626c72",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-price.json"
},
{
"file": "assignment8-rollback-v1/1/reports/before-identity.json",
"sha256": "907b2d7480b4aac01cda066e9754c55c28d517b5837c7c4a8ea16a2b8cd84338",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/before-identity.json"
},
{
"file": "assignment8-rollback-v1/1/reports/before-price.json",
"sha256": "3835afb15152c4abaf9e7a2747bf2c86f9ccda3e54478fc9be5337582685b23c",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/before-price.json"
},
{
"file": "assignment8-rollback-v1/1/reports/approval.txt",
"sha256": "be3ac5b89a5c6ce6d5a8dc098ea552d5a369ba86491a6f0134eb626b1db494f1",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/approval.txt"
},
{
"file": "assignment8-rollback-v1/1/reports/availability-samples.txt",
"sha256": "da54c6d928a9f9f35f40a3dd876b0cbf16bef61895a8340bea88310ed49551c0",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/availability-samples.txt"
},
{
"file": "assignment8-rollback-v1/1/reports/rollback-start.txt",
"sha256": "f84a158de836a1f9faa69adf93458314ac3ff16c2e484386e88b1d545a4c68a1",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/rollback-start.txt"
},
{
"file": "assignment8-rollback-v1/1/reports/rollback-verified.txt",
"sha256": "ae6f171402e1bca0407d7606e817daff72baa08b0ed5e8bfb0c4b19e6cbbe310",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/rollback-verified.txt"
},
{
"file": "assignment8-rollback-v1/1/reports/v1-production.yml",
"sha256": "68a4ae913aaa71ea3ad693dce56239ec8360c2c9108b90b8d561ff18abff52f5",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/v1-production.yml"
},
{
"file": "assignment8-staging-failure/1/reports/failure-start.txt",
"sha256": "53f013f0ece370dd50e68536763199f5a8ba7e0473348b6e6a576023757a789c",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-failure/1/artifact/reports/failure-start.txt"
},
{
"file": "assignment8-staging-failure/1/reports/staging.yml",
"sha256": "8b11277db0d3f0f3fa23d100105419caaabc7ed237f325063ff60a2d051dcfad",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-failure/1/artifact/reports/staging.yml"
},
{
"file": "assignment8-staging-recovery/1/reports/health.json",
"sha256": "b5e2937446977598e4214035f232d7d885f6b7cf6566e13dd8e42a75f0853e1c",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/health.json"
},
{
"file": "assignment8-staging-recovery/1/reports/identity.json",
"sha256": "907b2d7480b4aac01cda066e9754c55c28d517b5837c7c4a8ea16a2b8cd84338",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/identity.json"
},
{
"file": "assignment8-staging-recovery/1/reports/price.json",
"sha256": "3835afb15152c4abaf9e7a2747bf2c86f9ccda3e54478fc9be5337582685b23c",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/price.json"
},
{
"file": "assignment8-staging-recovery/1/reports/recovery-start.txt",
"sha256": "b15e4c199be174295201ec574749c9ee362754a58e3e30178b9834889aa35b65",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/recovery-start.txt"
},
{
"file": "assignment8-staging-recovery/1/reports/recovery-verified.txt",
"sha256": "1d959bdcec8f871cb4cc7b30cf75994f90076002f21cb2a5c723584135f392f5",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/recovery-verified.txt"
},
{
"file": "assignment8-staging-recovery/1/reports/staging.yml",
"sha256": "7ee5cd4483cd3f76cfa01c83230ca23f1109d4662be047fb664e82b9e654aaf4",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/staging.yml"
},
{
"file": "assignment8-release/3/redacted-log-excerpt.txt",
"sha256": "cd5c7301ec510550d458c4ac42a3625e9f62057539247500cb62a7471e7fdd69",
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/console",
"note": "Selected non-secret lines only; use original archived run for full context."
},
{
"file": "assignment8-release/4/redacted-log-excerpt.txt",
"sha256": "e0684f93a11f053e445b6658de93d8efe6257e8a63b058cf478be83fe33ac679",
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/console",
"note": "Selected non-secret lines only; use original archived run for full context."
},
{
"file": "assignment8-rollback-v1/1/redacted-log-excerpt.txt",
"sha256": "74b883f806bb5eaa53cb31b3f55a748ffa0b8c76e271d1dedcc4512c0cf3bc6f",
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/console",
"note": "Selected non-secret lines only; use original archived run for full context."
},
{
"file": "assignment8-staging-failure/1/redacted-log-excerpt.txt",
"sha256": "c4ffc21120b2a7f69e860e7865e4039ce6689cac4893975a7dc01951a594c8c1",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-failure/1/console",
"note": "Selected non-secret lines only; use original archived run for full context."
},
{
"file": "assignment8-staging-recovery/1/redacted-log-excerpt.txt",
"sha256": "74b883f806bb5eaa53cb31b3f55a748ffa0b8c76e271d1dedcc4512c0cf3bc6f",
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/console",
"note": "Selected non-secret lines only; use original archived run for full context."
},
{
"file": "assignment8-secret-gate-demo/4/redacted-log-excerpt.txt",
"sha256": "414fe9bcd24a2b5ca60376e87f055e695bf25dd378d42874e522d7bb019a2024",
"source": "https://ci.myfileagent.tech/job/assignment8-secret-gate-demo/4/console",
"note": "Selected non-secret lines only; use original archived run for full context."
},
{
"file": "assignment8-test-gate-demo/1/redacted-log-excerpt.txt",
"sha256": "9d802ce7a63f3cf9cb9ad515daea130a4ebb427ba3fad6fc7b065b28be7a5ccb",
"source": "https://ci.myfileagent.tech/job/assignment8-test-gate-demo/1/console",
"note": "Selected non-secret lines only; use original archived run for full context."
}
]
}
@@ -0,0 +1,142 @@
{
"collected_utc": "2026-11-08T16:34:55.981764+00:00",
"runs": {
"3": {
"source": "https://ci.myfileagent.tech/job/assignment8-release/3/console",
"selected_nonsecret_lines": [
"[2026-11-07T22:34:38.502Z] Ran 3 tests in 0.056s",
"[2026-11-07T22:34:40.697Z] No known vulnerabilities found",
"[2026-11-07T22:34:50.357Z] Secret scanner exit status: 0",
"[2026-11-07T22:37:01.948Z] TASK [Gathering Facts] *********************************************************",
"[2026-11-07T22:37:16.393Z] ok: [startup]",
"[2026-11-07T22:37:16.393Z] TASK [Validate release selection] **********************************************",
"[2026-11-07T22:37:16.393Z] ok: [startup] => {",
"[2026-11-07T22:37:16.393Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T22:37:16.396Z] TASK [Create deployment directory] *********************************************",
"[2026-11-07T22:37:19.308Z] ok: [startup]",
"[2026-11-07T22:37:19.308Z] TASK [Render selected Compose configuration] ***********************************",
"[2026-11-07T22:37:30.151Z] TASK [Converge application without rebuilding] *********************************",
"[2026-11-07T22:38:04.481Z] TASK [Verify health through public TLS endpoint] *******************************",
"[2026-11-07T22:38:12.044Z] ok: [startup]",
"[2026-11-07T22:38:12.045Z] TASK [Read release identity] ***************************************************",
"[2026-11-07T22:38:18.155Z] ok: [startup]",
"[2026-11-07T22:38:18.155Z] TASK [Exercise business behavior] **********************************************",
"[2026-11-07T22:38:27.064Z] ok: [startup]",
"[2026-11-07T22:38:27.064Z] TASK [Check release identity and calculation] **********************************",
"[2026-11-07T22:38:27.064Z] ok: [startup] => {",
"[2026-11-07T22:38:27.065Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T22:38:27.065Z] PLAY RECAP *********************************************************************",
"[2026-11-07T22:39:47.530Z] TASK [Gathering Facts] *********************************************************",
"[2026-11-07T22:39:47.530Z] ok: [startup]",
"[2026-11-07T22:39:47.530Z] TASK [Validate release selection] **********************************************",
"[2026-11-07T22:39:47.530Z] ok: [startup] => {",
"[2026-11-07T22:39:47.531Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T22:39:47.531Z] TASK [Create deployment directory] *********************************************",
"[2026-11-07T22:39:47.531Z] ok: [startup]",
"[2026-11-07T22:39:47.532Z] TASK [Render selected Compose configuration] ***********************************",
"[2026-11-07T22:39:47.532Z] ok: [startup]",
"[2026-11-07T22:39:47.532Z] TASK [Converge application without rebuilding] *********************************",
"[2026-11-07T22:39:47.532Z] ok: [startup]",
"[2026-11-07T22:39:47.532Z] TASK [Verify health through public TLS endpoint] *******************************",
"[2026-11-07T22:39:47.532Z] ok: [startup]",
"[2026-11-07T22:39:47.532Z] TASK [Read release identity] ***************************************************",
"[2026-11-07T22:39:47.532Z] ok: [startup]",
"[2026-11-07T22:39:47.532Z] TASK [Exercise business behavior] **********************************************",
"[2026-11-07T22:39:47.532Z] ok: [startup]",
"[2026-11-07T22:39:47.533Z] TASK [Check release identity and calculation] **********************************",
"[2026-11-07T22:39:47.533Z] ok: [startup] => {",
"[2026-11-07T22:39:47.533Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T22:39:47.533Z] PLAY RECAP *********************************************************************",
"[2026-11-07T22:39:47.533Z] startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ",
"[2026-11-07T22:44:41.461Z] TASK [Gathering Facts] *********************************************************",
"[2026-11-07T22:44:51.897Z] ok: [startup]",
"[2026-11-07T22:44:51.899Z] TASK [Validate release selection] **********************************************",
"[2026-11-07T22:44:51.899Z] ok: [startup] => {",
"[2026-11-07T22:44:51.899Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T22:44:51.902Z] TASK [Create deployment directory] *********************************************",
"[2026-11-07T22:44:57.526Z] TASK [Render selected Compose configuration] ***********************************",
"[2026-11-07T22:45:14.454Z] TASK [Converge application without rebuilding] *********************************",
"[2026-11-07T22:45:46.476Z] TASK [Verify health through public TLS endpoint] *******************************",
"[2026-11-07T22:45:55.457Z] ok: [startup]",
"[2026-11-07T22:45:55.464Z] TASK [Read release identity] ***************************************************",
"[2026-11-07T22:46:02.323Z] ok: [startup]",
"[2026-11-07T22:46:02.323Z] TASK [Exercise business behavior] **********************************************",
"[2026-11-07T22:46:08.340Z] ok: [startup]",
"[2026-11-07T22:46:08.340Z] TASK [Check release identity and calculation] **********************************",
"[2026-11-07T22:46:08.746Z] ok: [startup] => {",
"[2026-11-07T22:46:08.746Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T22:46:08.746Z] PLAY RECAP *********************************************************************",
"Finished: SUCCESS"
]
},
"4": {
"source": "https://ci.myfileagent.tech/job/assignment8-release/4/console",
"selected_nonsecret_lines": [
"[2026-11-07T22:57:07.313Z] Ran 3 tests in 0.061s",
"[2026-11-07T22:57:10.242Z] No known vulnerabilities found",
"[2026-11-07T22:57:32.642Z] Secret scanner exit status: 0",
"[2026-11-07T22:59:03.452Z] TASK [Gathering Facts] *********************************************************",
"[2026-11-07T22:59:14.723Z] ok: [startup]",
"[2026-11-07T22:59:14.723Z] TASK [Validate release selection] **********************************************",
"[2026-11-07T22:59:15.463Z] ok: [startup] => {",
"[2026-11-07T22:59:15.463Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T22:59:15.466Z] TASK [Create deployment directory] *********************************************",
"[2026-11-07T22:59:22.526Z] ok: [startup]",
"[2026-11-07T22:59:22.528Z] TASK [Render selected Compose configuration] ***********************************",
"[2026-11-07T22:59:39.496Z] TASK [Converge application without rebuilding] *********************************",
"[2026-11-07T23:00:22.321Z] TASK [Verify health through public TLS endpoint] *******************************",
"[2026-11-07T23:00:29.870Z] ok: [startup]",
"[2026-11-07T23:00:29.870Z] TASK [Read release identity] ***************************************************",
"[2026-11-07T23:00:37.959Z] ok: [startup]",
"[2026-11-07T23:00:37.960Z] TASK [Exercise business behavior] **********************************************",
"[2026-11-07T23:00:44.268Z] ok: [startup]",
"[2026-11-07T23:00:44.268Z] TASK [Check release identity and calculation] **********************************",
"[2026-11-07T23:00:44.268Z] ok: [startup] => {",
"[2026-11-07T23:00:44.270Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T23:00:44.270Z] PLAY RECAP *********************************************************************",
"[2026-11-07T23:02:33.254Z] TASK [Gathering Facts] *********************************************************",
"[2026-11-07T23:02:33.254Z] ok: [startup]",
"[2026-11-07T23:02:33.254Z] TASK [Validate release selection] **********************************************",
"[2026-11-07T23:02:33.254Z] ok: [startup] => {",
"[2026-11-07T23:02:33.254Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T23:02:33.255Z] TASK [Create deployment directory] *********************************************",
"[2026-11-07T23:02:33.255Z] ok: [startup]",
"[2026-11-07T23:02:33.255Z] TASK [Render selected Compose configuration] ***********************************",
"[2026-11-07T23:02:33.255Z] ok: [startup]",
"[2026-11-07T23:02:33.255Z] TASK [Converge application without rebuilding] *********************************",
"[2026-11-07T23:02:33.255Z] ok: [startup]",
"[2026-11-07T23:02:33.255Z] TASK [Verify health through public TLS endpoint] *******************************",
"[2026-11-07T23:02:33.255Z] ok: [startup]",
"[2026-11-07T23:02:33.257Z] TASK [Read release identity] ***************************************************",
"[2026-11-07T23:02:33.257Z] ok: [startup]",
"[2026-11-07T23:02:33.257Z] TASK [Exercise business behavior] **********************************************",
"[2026-11-07T23:02:33.257Z] ok: [startup]",
"[2026-11-07T23:02:33.258Z] TASK [Check release identity and calculation] **********************************",
"[2026-11-07T23:02:33.258Z] ok: [startup] => {",
"[2026-11-07T23:02:33.258Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T23:02:33.262Z] PLAY RECAP *********************************************************************",
"[2026-11-07T23:02:33.262Z] startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ",
"[2026-11-07T23:04:08.810Z] TASK [Gathering Facts] *********************************************************",
"[2026-11-07T23:04:25.462Z] ok: [startup]",
"[2026-11-07T23:04:25.462Z] TASK [Validate release selection] **********************************************",
"[2026-11-07T23:04:26.457Z] ok: [startup] => {",
"[2026-11-07T23:04:26.457Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T23:04:26.458Z] TASK [Create deployment directory] *********************************************",
"[2026-11-07T23:04:34.048Z] ok: [startup]",
"[2026-11-07T23:04:34.048Z] TASK [Render selected Compose configuration] ***********************************",
"[2026-11-07T23:04:42.725Z] TASK [Converge application without rebuilding] *********************************",
"[2026-11-07T23:05:24.330Z] TASK [Verify health through public TLS endpoint] *******************************",
"[2026-11-07T23:05:28.963Z] ok: [startup]",
"[2026-11-07T23:05:28.963Z] TASK [Read release identity] ***************************************************",
"[2026-11-07T23:05:37.475Z] ok: [startup]",
"[2026-11-07T23:05:37.475Z] TASK [Exercise business behavior] **********************************************",
"[2026-11-07T23:05:41.153Z] ok: [startup]",
"[2026-11-07T23:05:41.154Z] TASK [Check release identity and calculation] **********************************",
"[2026-11-07T23:05:41.477Z] ok: [startup] => {",
"[2026-11-07T23:05:41.477Z] \"msg\": \"All assertions passed\"",
"[2026-11-07T23:05:41.477Z] PLAY RECAP *********************************************************************",
"Finished: SUCCESS"
]
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

+7 -6
View File
@@ -49,9 +49,9 @@
\definecolor{devopsLightBlue}{RGB}{232,240,247} \definecolor{devopsLightBlue}{RGB}{232,240,247}
% Replace these values for each assignment. % Replace these values for each assignment.
\newcommand{\AssignmentTitle}{Introduction to SRE: Monitoring and Reliability} \newcommand{\AssignmentTitle}{Secure Delivery and Rollback}
\newcommand{\AssignmentNumber}{7} \newcommand{\AssignmentNumber}{8}
\newcommand{\DocumentVersion}{1.9.2} \newcommand{\DocumentVersion}{1.10.1}
\newcommand{\DocumentStatus}{Final Draft} \newcommand{\DocumentStatus}{Final Draft}
\newcommand{\CourseNumber}{SSW 590} \newcommand{\CourseNumber}{SSW 590}
\newcommand{\CourseName}{DevOps Principles and Practices} \newcommand{\CourseName}{DevOps Principles and Practices}
@@ -59,7 +59,7 @@
\newcommand{\StudentNames}{Nicholas Kogut\\Gowri Das Lovely} \newcommand{\StudentNames}{Nicholas Kogut\\Gowri Das Lovely}
\newcommand{\PDFAuthors}{Nicholas Kogut and Gowri Das Lovely} \newcommand{\PDFAuthors}{Nicholas Kogut and Gowri Das Lovely}
\newcommand{\Organization}{Stevens Institute of Technology} \newcommand{\Organization}{Stevens Institute of Technology}
\newcommand{\DocumentDate}{October 28, 2026} \newcommand{\DocumentDate}{November 8, 2026}
\newcommand{\DueDate}{Not specified} \newcommand{\DueDate}{Not specified}
% Generated only in the build workspace; never committed by the workflow. % Generated only in the build workspace; never committed by the workflow.
\newcommand{\BuildSuffix}{+local.unverified} \newcommand{\BuildSuffix}{+local.unverified}
@@ -73,8 +73,8 @@
pdftitle={\CourseNumber\ --- Assignment \AssignmentNumber: \AssignmentTitle}, pdftitle={\CourseNumber\ --- Assignment \AssignmentNumber: \AssignmentTitle},
pdfauthor={\PDFAuthors}, pdfauthor={\PDFAuthors},
pdfcreator={Darian Muresan, Ph.D., with OpenAI Codex and Anthropic Claude Code}, pdfcreator={Darian Muresan, Ph.D., with OpenAI Codex and Anthropic Claude Code},
pdfsubject={SSW 590 Assignment 7 SRE monitoring and reliability}, pdfsubject={SSW 590 Assignment 8 secure delivery and rollback},
pdfkeywords={DevOps, SRE, Prometheus, Grafana, alerts, SLI, SLO, incident, Jenkins} pdfkeywords={DevOps, delivery, security, Ansible, Jenkins, rollback, monitoring}
} }
\newcolumntype{Y}{>{\raggedright\arraybackslash}X} \newcolumntype{Y}{>{\raggedright\arraybackslash}X}
@@ -158,6 +158,7 @@
\include{devopsAutomatedManualBuild} \include{devopsAutomatedManualBuild}
\include{devopsJenkinsContinuousIntegration} \include{devopsJenkinsContinuousIntegration}
\include{devopsSREMonitoringReliability} \include{devopsSREMonitoringReliability}
\include{devopsSecureDeliveryRollback}
\bibliographystyle{IEEEtran} \bibliographystyle{IEEEtran}
\bibliography{devopsReferences} \bibliography{devopsReferences}
@@ -0,0 +1,69 @@
{
"id": null,
"uid": "assignment8-production-health",
"title": "Assignment 8 - Production Health",
"tags": [
"SSW590",
"Assignment 8"
],
"timezone": "America/New_York",
"schemaVersion": 39,
"version": 1,
"refresh": "30s",
"time": {
"from": "now-1h",
"to": "now"
},
"editable": true,
"panels": [
{
"id": 1,
"type": "timeseries",
"title": "Production HTTPS health",
"description": "Blackbox HTTP 2xx probe; 1 = healthy, 0 = failed. Missing data is not evidence of availability.",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 0
},
"targets": [
{
"expr": "probe_success{job=\"https\",instance=\"https://app.myfileagent.tech/health\"}",
"refId": "A",
"legendFormat": "Production health"
}
],
"fieldConfig": {
"defaults": {
"min": 0,
"max": 1,
"unit": "short",
"custom": {
"drawStyle": "line",
"lineWidth": 2,
"fillOpacity": 10,
"spanNulls": false
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom",
"calcs": [
"lastNotNull"
]
},
"tooltip": {
"mode": "single"
}
}
}
]
}
+1
View File
@@ -19,6 +19,7 @@ scrape_configs:
- targets: - targets:
- https://myfileagent.tech/user/login - https://myfileagent.tech/user/login
- https://ci.myfileagent.tech/login - https://ci.myfileagent.tech/login
- https://app.myfileagent.tech/health
relabel_configs: relabel_configs:
- source_labels: [__address__] - source_labels: [__address__]
target_label: __param_target target_label: __param_target
+37
View File
@@ -1,5 +1,30 @@
# Assignment 8 handoff — 7 November 2026 # 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. The `assignment8/documentation` branch is published in [PR #21](https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/21) and contains the manual draft, monitoring configuration and exercise Jenkinsfiles; independent review and merge remain pending. On 8 November an authenticated Grafana view showed the production health graph with latest value 1. The compiled PDF remains a draft and must be rebuilt from the final reviewed source. Earlier pending-status notes below are historical. No new production deployment is authorized without a separate human approval.
## Continuation check, 7 November 2026
- A fresh read-only clone in `HW8/assignment8-repo` found `main` at `6ba31a3b44906b5c19faa7ccba601e69798b142a` and `assignment8/secure-delivery` at `35523ccd3cc1dd2419981b5f536bfd61341826c3`. The merge parents are `10c85ea655efbb66a48a6c6ea7e12f7beab6493b` and the approved `c1cd3ad9af12e11af7c08c398c5fc93649cfd556`; commits `88f3bb0` and `35523cc` are 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-codex` connected as `codex`; the Assignment 8 Droplet worktree was at `35523cc` with pre-existing untracked `.DS_Store` and `__pycache__` entries. Existing infrastructure containers and the trusted agent were running; no pricing containers were running. The private network gateway matched `172.20.0.1`. Jenkins validation job selected the Assignment 8 branch and `secure-delivery/Jenkinsfile.security`. Build [#10](https://ci.myfileagent.tech/job/assignment8-validation/10/console) succeeded for `35523ccd3cc1dd2419981b5f536bfd61341826c3`: 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](https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/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](https://ci.myfileagent.tech/job/assignment8-validation/11/console) 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 `glovely` and merged to `main` as `935eaa86248fb3eee26e0ae43efb7d11d520b956`. A new `assignment8-release` Jenkins job uses the reviewed release draft and pins that merge commit, with full checkout and concurrent builds disabled. [Release #1](https://ci.myfileagent.tech/job/assignment8-release/1/console) failed before checkout because lightweight checkout treated the commit as a branch. Full checkout fixed the configuration; [release #2](https://ci.myfileagent.tech/job/assignment8-release/2/console) 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:276746521e74e0506a22179ca5d299cd83864cb9e0c90e68e433d34d517373f3` and deployed it to staging. At 22:24 UTC, Ansible's HTTPS checks passed for v1, commit `935eaa86248fb3eee26e0ae43efb7d11d520b956`, 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](https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/19) proposes the timeout mitigation on head `746b42b72bfdb9079404b77898c2a6a252eaeea1`. It is separate from local branch `assignment8/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 `glovely` and merged as `0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2`. [Release #3](https://ci.myfileagent.tech/job/assignment8-release/3/console) used that exact source/configuration commit, passed its tests and security gates, published and pulled `myfileagent.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 finished `ok=9 changed=0 unreachable=0 failed=0` at 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](https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/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 `glovely` and merged as `ee128d18bddd1763b916b40f05829f2e769f0654`. [Release #4](https://ci.myfileagent.tech/job/assignment8-release/4/) passed v2 tests, dependency and secret scans, Ansible syntax and image scan; it published and pulled `myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9`. Staging passed health, exact commit, v2 and total 36, and the unchanged rerun reported `ok=9 changed=0 unreachable=0 failed=0` at 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 in `HW8/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-v1` and its saved script SHA-256 was checked against the local file. [Rollback run #1](https://ci.myfileagent.tech/job/assignment8-rollback-v1/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 at `ee128d18bddd1763b916b40f05829f2e769f0654` and total 36. The pending-approval note above is historical.
- The staging-only failure commit `c0cdd9159b430b8a27543a293cdd23aa05c8ee34` conditionally bound Gunicorn to 8001 while the health check remained on 8000. [Failure run #1](https://ci.myfileagent.tech/job/assignment8-staging-failure/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](https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/) checked out reviewed configuration `ee128d18bddd1763b916b40f05829f2e769f0654` and 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 are `HW8/staging-failure.Jenkinsfile` and `HW8/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. 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 ## Read this first: branch and review state
@@ -40,3 +65,15 @@ This is a continuation guide for the team and its Codex session. The assignment
## Access and handling ## 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. 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/health` in the existing `https` Blackbox 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 config` passed, 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 is `HW8/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_success` query 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.tex` was compiled using the existing `manual-tex:1.7.1` image without network; the 131-page local draft is `HW8/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 legacy `dashboard` table was empty even for the existing dashboard, so that query does not prove a provisioning failure.
## Evidence audit and manual revision — 8 November 2026
PR #21 merged as `48704e0efff62585d6efd0d1fab19433dc7ff900`. Gitea Actions run 24 produced the reviewed 131-page PDF; the retrieved artifact and manifest hashes match. A Chapter 6 evidence audit and 43 checksummed redacted Jenkins artifacts were preserved locally under `HW8/EVIDENCE_AUDIT.md` and `HW8/evidence/assignment8-evidence`. Current HTTPS observation at 16:29 UTC showed production v1/30 and staging v2/36. The historical vulnerability database version was not found, and the application probe began after rollback; neither can be reconstructed as historical proof. The user instructed not to create an issue. A follow-up documentation branch expands the diagram, source links and evidence; verify its Gitea Action output and current review state. Grader access remains unverified. No further production deployment is authorized without separate human review and approval.
@@ -0,0 +1,67 @@
pipeline {
agent { label 'assignment8-trusted' }
options { disableConcurrentBuilds(); timeout(time: 45, unit: 'MINUTES'); timestamps() }
stages {
stage('Prepare reviewed v1 configuration') {
steps {
deleteDir()
git url: 'https://myfileagent.tech/myfileagent/myfileagent-pipeline.git', branch: 'main'
sh '''set -eu
git checkout --detach 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
test "$(git rev-parse HEAD)" = 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
mkdir -p reports
cat > reports/v1-production.yml <<'EOF'
target_env: production
release_image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
expected_version: v1
expected_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
configuration_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
expected_total: 30
public_url: https://app.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
EOF
curl -fsS https://app.myfileagent.tech/ > reports/before-identity.json
curl -fsS 'https://app.myfileagent.tech/price?quantity=3' > reports/before-price.json
python3 -c 'import json; a=json.load(open("reports/before-identity.json")); p=json.load(open("reports/before-price.json")); assert a["version"]=="v2" and a["commit"]=="ee128d18bddd1763b916b40f05829f2e769f0654" and p["total"]==36'
'''
}
}
stage('Human rollback approval') {
steps {
script {
def approver = timeout(time: 30, unit: 'MINUTES') { input message: 'Approve the Assignment 8 production rollback exercise from verified v2/36 to v1/30 using configuration 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2 and image sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2? Recreating the container may interrupt traffic.', ok: 'Roll back', submitter: 'ssw590', submitterParameter: 'APPROVER' }
writeFile file: 'reports/approval.txt', text: "Approver: ${approver}\nDecision: approved\nTime UTC: ${sh(script: 'date -u +%FT%TZ', returnStdout: true).trim()}\n"
}
}
}
stage('Roll back and verify') {
steps {
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY')]) {
sh '''#!/bin/sh
set +x
set -eu
export ANSIBLE_SSH_ARGS="-o StrictHostKeyChecking=yes -o UserKnownHostsFile=$WORKSPACE/secure-delivery/ansible/known_hosts"
(
while :; do
stamp=$(date -u +%FT%TZ)
code=$(curl -sS -o /dev/null -w '%{http_code}' --max-time 3 https://app.myfileagent.tech/health 2>/dev/null || true)
printf '%s %s\n' "$stamp" "$code" >> reports/availability-samples.txt
sleep 1
done
) &
probe=$!
trap 'kill "$probe" 2>/dev/null || true; wait "$probe" 2>/dev/null || true' EXIT
date -u +%FT%TZ > reports/rollback-start.txt
ansible-playbook -i secure-delivery/ansible/inventory.ini secure-delivery/ansible/deploy.yml --private-key "$DEPLOY_KEY" -e @reports/v1-production.yml > reports/rollback-ansible.txt 2>&1
date -u +%FT%TZ > reports/rollback-verified.txt
curl -fsS https://app.myfileagent.tech/health > reports/after-health.json
curl -fsS https://app.myfileagent.tech/ > reports/after-identity.json
curl -fsS 'https://app.myfileagent.tech/price?quantity=3' > reports/after-price.json
python3 -c 'import json; h=json.load(open("reports/after-health.json")); a=json.load(open("reports/after-identity.json")); p=json.load(open("reports/after-price.json")); assert h["status"]=="ok" and a["version"]=="v1" and a["commit"]=="0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2" and p["total"]==30'
'''
}
}
}
}
post { always { archiveArtifacts artifacts: 'reports/*', allowEmptyArchive: true } }
}
@@ -0,0 +1,41 @@
pipeline {
agent { label 'assignment8-trusted' }
options { disableConcurrentBuilds(); timeout(time: 20, unit: 'MINUTES'); timestamps() }
stages {
stage('Prepare staging-only failure') {
steps {
deleteDir()
git url: 'https://myfileagent.tech/myfileagent/myfileagent-pipeline.git', branch: 'assignment8/staging-failure-exercise'
sh '''set -eu
test "$(git rev-parse HEAD)" = c0cdd9159b430b8a27543a293cdd23aa05c8ee34
mkdir -p reports
cat > reports/staging.yml <<'EOF'
target_env: staging
release_image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
expected_version: v2
expected_commit: ee128d18bddd1763b916b40f05829f2e769f0654
configuration_commit: c0cdd9159b430b8a27543a293cdd23aa05c8ee34
expected_total: 36
public_url: https://staging.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
EOF
date -u +%FT%TZ > reports/failure-start.txt
'''
}
}
stage('Deploy deliberate mismatch') {
steps {
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY')]) {
sh '''#!/bin/sh
set +x
set -eu
export ANSIBLE_SSH_ARGS="-o StrictHostKeyChecking=yes -o UserKnownHostsFile=$WORKSPACE/secure-delivery/ansible/known_hosts"
ansible-playbook -i secure-delivery/ansible/inventory.ini secure-delivery/ansible/deploy.yml --private-key "$DEPLOY_KEY" -e @reports/staging.yml > reports/failure-ansible.txt 2>&1
'''
}
}
}
stage('Must not run after failure') { steps { error('Unexpected success: the staging failure did not block the pipeline') } }
}
post { always { archiveArtifacts artifacts: 'reports/*', allowEmptyArchive: true } }
}
@@ -0,0 +1,41 @@
pipeline {
agent { label 'assignment8-trusted' }
options { disableConcurrentBuilds(); timeout(time: 20, unit: 'MINUTES'); timestamps() }
stages {
stage('Restore reviewed staging configuration') {
steps {
deleteDir()
git url: 'https://myfileagent.tech/myfileagent/myfileagent-pipeline.git', branch: 'main'
sh '''set -eu
git checkout --detach ee128d18bddd1763b916b40f05829f2e769f0654
test "$(git rev-parse HEAD)" = ee128d18bddd1763b916b40f05829f2e769f0654
mkdir -p reports
cat > reports/staging.yml <<'EOF'
target_env: staging
release_image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
expected_version: v2
expected_commit: ee128d18bddd1763b916b40f05829f2e769f0654
configuration_commit: ee128d18bddd1763b916b40f05829f2e769f0654
expected_total: 36
public_url: https://staging.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
EOF
date -u +%FT%TZ > reports/recovery-start.txt
'''
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY')]) {
sh '''#!/bin/sh
set +x
set -eu
export ANSIBLE_SSH_ARGS="-o StrictHostKeyChecking=yes -o UserKnownHostsFile=$WORKSPACE/secure-delivery/ansible/known_hosts"
ansible-playbook -i secure-delivery/ansible/inventory.ini secure-delivery/ansible/deploy.yml --private-key "$DEPLOY_KEY" -e @reports/staging.yml > reports/recovery-ansible.txt 2>&1
date -u +%FT%TZ > reports/recovery-verified.txt
curl -fsS https://staging.myfileagent.tech/health > reports/health.json
curl -fsS https://staging.myfileagent.tech/ > reports/identity.json
curl -fsS 'https://staging.myfileagent.tech/price?quantity=3' > reports/price.json
'''
}
}
}
}
post { always { archiveArtifacts artifacts: 'reports/*', allowEmptyArchive: true } }
}
+1 -1
View File
@@ -1 +1 @@
{"version": "v1", "quantity3_total": 30} {"version": "v2", "quantity3_total": 36}
+2 -2
View File
@@ -2,8 +2,8 @@ import os
from flask import Flask, jsonify, request from flask import Flask, jsonify, request
app = Flask(__name__) app = Flask(__name__)
VERSION = "v1" VERSION = "v2"
UNIT_PRICE = 10 UNIT_PRICE = 12
COMMIT = os.environ.get("APP_COMMIT", "development") COMMIT = os.environ.get("APP_COMMIT", "development")
+3 -3
View File
@@ -7,17 +7,17 @@ class PricingTests(unittest.TestCase):
self.client = app.test_client() self.client = app.test_client()
def test_price(self): def test_price(self):
self.assertEqual(total_price(3), 30) self.assertEqual(total_price(3), 36)
response = self.client.get("/price?quantity=3") response = self.client.get("/price?quantity=3")
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
self.assertEqual(response.json["total"], 30) self.assertEqual(response.json["total"], 36)
def test_invalid_quantity(self): def test_invalid_quantity(self):
for value in ["0", "-1", "1001", "abc", "1.5"]: for value in ["0", "-1", "1001", "abc", "1.5"]:
self.assertEqual(self.client.get("/price?quantity=" + value).status_code, 400) self.assertEqual(self.client.get("/price?quantity=" + value).status_code, 400)
def test_release_identity(self): def test_release_identity(self):
self.assertEqual(self.client.get("/").json["version"], "v1") self.assertEqual(self.client.get("/").json["version"], "v2")
self.assertEqual(self.client.get("/health").json["status"], "ok") self.assertEqual(self.client.get("/health").json["status"], "ok")