Document release evidence with screenshots and correct version
This commit is contained in:
@@ -6,11 +6,11 @@ The stateless Startup Pricing Service uses Flask and Gunicorn. A trusted Jenkins
|
||||
\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 / grader\\public HTTPS};
|
||||
\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 Compose\\pricing-staging :8000};
|
||||
\node (prod) at (10.8,-4.4) {Production Compose\\pricing-production :8000};
|
||||
\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};
|
||||
@@ -62,6 +62,18 @@ Full immutable registry references (the source and configuration commits are lin
|
||||
\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.
|
||||
|
||||
@@ -76,7 +88,25 @@ In staging only, configuration commit \texttt{c0cdd915} bound Gunicorn to 8001 w
|
||||
|
||||
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.
|
||||
|
||||
\section{Operations and grader access}
|
||||
\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.
|
||||
@@ -85,4 +115,4 @@ On 8 November at 16:01:05, the production \url{https://app.myfileagent.tech/heal
|
||||
|
||||
\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, Dockerfile, release intent, Ansible inventory, playbook and template are available in the \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/secure-delivery}{Gitea secure-delivery directory}. Jenkins links above contain run logs and redacted artifacts. The grader needs a team-provided authorized Gitea/Jenkins account and network access; this grader access has not been independently tested. Request access from the team without sending credentials in the submission. This PDF records results so a live pipeline run is not needed to understand them.
|
||||
Source, tests, release records and automation are linked in Section 13.3. Jenkins retains the supporting run logs and artifacts.
|
||||
|
||||
Reference in New Issue
Block a user