Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d835a15b9 | ||
|
|
596a357cd8 | ||
|
|
cfc59d3511 | ||
|
|
6fc01c26a9 | ||
|
|
99f04d48a8 | ||
|
|
3ba3940557 | ||
|
|
e908359208 | ||
|
|
22ac58c30b | ||
|
|
19f66a7845 | ||
|
|
831dcc4b54 | ||
|
|
e459785351 | ||
|
|
98a3a6d39e | ||
|
|
54a2dd85fb | ||
|
|
34edd679ea | ||
|
|
5f33bf4a4f | ||
|
|
9b0d7aed14 | ||
|
|
4a18c2e67b | ||
|
|
114fb4b11a | ||
|
|
6e2873cc6b | ||
|
|
073c176cd7 | ||
|
|
3c50432eb8 | ||
|
|
436454548a | ||
|
|
e5865202ab | ||
|
|
48704e0eff | ||
|
|
4fa2bed7ba | ||
|
|
b31a247244 | ||
|
|
3cf24224f5 | ||
|
|
ee128d18bd | ||
|
|
4d7e4f932f | ||
|
|
699d509024 | ||
|
|
126dbb00b3 | ||
|
|
0cb5a34cc4 | ||
|
|
746b42b72b | ||
|
|
935eaa8624 | ||
|
|
9e96c83197 | ||
|
|
35523ccd3c | ||
|
|
88f3bb0d0a | ||
|
|
6ba31a3b44 | ||
|
|
c1cd3ad9af | ||
|
|
65e401172b | ||
|
|
b8a2529ce9 | ||
|
|
b0e8cead18 | ||
|
|
2bdb431ef2 | ||
|
|
4cc9a2c6ac | ||
|
|
80c7fe2bdc | ||
|
|
55abfbc951 | ||
|
|
dd7c12c519 | ||
|
|
28d13ef5b8 | ||
|
|
83da3087c9 | ||
|
|
c35558c20b |
@@ -1,7 +1,7 @@
|
||||
name: Team manual PDF
|
||||
on:
|
||||
push:
|
||||
branches: [main, manual-build-validation, assignment7/manual-1.9.2]
|
||||
branches: [main, manual-build-validation, assignment7/manual-1.9.2, assignment8/evidence-documentation, assignment9/ticket-management]
|
||||
jobs:
|
||||
manual:
|
||||
runs-on: manual-latex
|
||||
@@ -26,7 +26,7 @@ jobs:
|
||||
- name: Publish verified PDF and traceability manifest
|
||||
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
|
||||
with:
|
||||
name: assignment7-1.9.2-run-${{ github.run_number }}-${{ github.sha }}
|
||||
name: team-manual-run-${{ github.run_number }}-${{ github.sha }}
|
||||
path: |
|
||||
documentation/build/main.pdf
|
||||
documentation/build/build-manifest.json
|
||||
|
||||
@@ -27,3 +27,12 @@ and resolved delivery while Gitea remained healthy. The chapter records response
|
||||
timing, restart persistence, an approved/merged operational change and owned follow-up
|
||||
issues. External IPv4 port evidence is included; IPv6 and skipped external HTTPS
|
||||
capture remain explicit limits. The documentation was approved and published through Gitea Actions; version 1.9.2 incorporates the final editorial and layout corrections.
|
||||
|
||||
Assignment 9 adds an official Zammad support desk behind the existing HTTPS
|
||||
proxy, small per-service resource caps, persistent database/search/storage and
|
||||
backups, synthetic support tickets, customer isolation and an Agent-only TA
|
||||
account. A Gitea issue links the customer request to engineering work; the
|
||||
existing HTTPS monitoring job and dashboard are extended. Actual test results,
|
||||
screenshots, failure corrections and required evidence gaps are retained. The
|
||||
version 1.11.1 includes the completed browser workflow evidence, an updated
|
||||
deployment diagram and the automated manual-build identity.
|
||||
|
||||
@@ -19,6 +19,14 @@
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
|
||||
\parbox[t]{2.7cm}{\raggedright November 20, 2026\\ 1.11.1\\ NK, CDX} & Complete browser acceptance and supporting evidence for the Zammad implementation. & Codex corrected scheduler threading and derived search indexes, exercised ticket 71007 through separate TA and Customer browser sessions, captured read-only TA identity/permissions and retained the human-authenticated SSH audit. The team subsequently requested the final TikZ routing, section numbering and draft-text cleanup; these editorial changes and one Gitea manual-only verification build are recorded with version 1.11.1. \\
|
||||
|
||||
\parbox[t]{2.7cm}{\raggedright November 18, 2026\\ 1.11.0\\ NK, CDX} & Implement instruction Chapter 7 with minimal resource use and update the newest team manual source. Consolidated under the first workday; later browser workflow, read-only role/group checks, SSH audit and source reconciliation retain their actual evidence timestamps. & The user authorized SSH through \texttt{ssw590-codex}, selected the newest documentation branch rather than main, deferred its merge, upgraded the Droplet, requested lower service ceilings, approved synthetic accounts and issue 22, and later requested full ongoing documentation with actual screenshots. Codex deployed the official stack, corrected an initially excessive heap and a Puma worker-setting interpretation, staged initialization, added limits and monitoring, tested tickets/customer isolation/TA access and backup/recovery, and retained explicit evidence limits. A recovery collector was corrected to distinguish real scrape timestamps from query times. The user expressly prohibited PDF compilation until a later authorized Jenkins build. \\
|
||||
|
||||
\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. \\
|
||||
|
||||
|
||||
|
||||
@@ -20,6 +20,14 @@
|
||||
\bottomrule
|
||||
\endlastfoot
|
||||
|
||||
November 20, 2026 / 1.11.1 & NK, CDX & Completed TA browser create/assign/internal-note/public-reply/close on ticket 71007, verified Customer visibility, and added Agent-only role/group and privileged SSH audit evidence. Final editorial revision clarifies the vector TikZ diagram, normalizes Chapter 14 numbering and removes the closing draft-status text. & \ChapterRef{SupportTicketManagement}, \AppendixRef{AIPromptLog} \\
|
||||
|
||||
November 18, 2026 / 1.11.0 & NK, CDX & Consolidated assignment entry (first workday; evidence retains actual capture dates). Completed browser workflow and role/group evidence, privileged SSH audit, source publication, Hosts and Bitwarden credential references. Added the Support Ticket Management with Zammad chapter for instruction Chapter 7 / team Assignment 9. Recorded official revision, small per-service limits, upgraded-host observations, private HTTPS networking, synthetic accounts/tickets, least-privilege TA API tests, bidirectional issue 22 linkage, backup and isolated recovery evidence. Added actual screenshots and an explicit required-deliverable gap audit. Updated Hosts, password-store hints and AI log. Source-only draft; no PDF compilation authorized. & \ChapterRef{SupportTicketManagement}, \ChapterRef{Hosts}, \ChapterRef{Passwords} \\
|
||||
|
||||
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} \\
|
||||
|
||||
|
||||
|
||||
@@ -27,3 +27,8 @@
|
||||
\item[\textbf{SLO}] Internal target for the indicator over a defined window. \hfill Reference: \hyperref[GlossaryRef:slo]{p.~\pageref*{GlossaryRef:slo}}
|
||||
\item[\textbf{error budget}] Allowed unsuccessful fraction implied by a reliability target. \hfill Reference: \hyperref[GlossaryRef:errorbudget]{p.~\pageref*{GlossaryRef:errorbudget}}
|
||||
\end{description}
|
||||
\begin{description}[style=nextline,leftmargin=3.1cm,labelindent=0pt]
|
||||
\item[\textbf{Zammad}] The official multi-container support desk used for ticket ownership, customer replies and internal notes. See \ChapterRef{SupportTicketManagement}.
|
||||
\item[\textbf{internal note}] An Agent conversation entry that must be excluded from the customer view; verified separately from a customer-visible reply.
|
||||
\item[\textbf{TA Agent}] The named non-administrator evaluator identity with ticket permissions limited to the Startup Support group.
|
||||
\end{description}
|
||||
|
||||
@@ -8,18 +8,21 @@ This chapter lists the hosts used in the development environment for this
|
||||
assignment and any that will be configured in future assignments.
|
||||
|
||||
\section{Host Registry}
|
||||
\begin{tabularx}{\linewidth}{L{3.4cm}L{2.6cm}Y}
|
||||
\begin{longtable}{L{3.4cm}L{2.6cm}L{7.0cm}}
|
||||
\caption{Host Registry\label{Table:HostRegistry}}\\
|
||||
\toprule \textbf{Host Name} & \textbf{Provider} & \textbf{Purpose / Notes}\\ \midrule
|
||||
\endfirsthead
|
||||
\multicolumn{3}{l}{\small\itshape Host Registry (continued)}\\
|
||||
\toprule \textbf{Host Name} & \textbf{Provider} & \textbf{Purpose / Notes}\\ \midrule
|
||||
\endhead \bottomrule \endlastfoot
|
||||
\texttt{ssw590-group7-}\newline\texttt{droplet} & DigitalOcean & Ubuntu Linux development environment at \texttt{142.93.193.110}; 1 virtual CPU, 1 GB memory, and 25 GB storage; normally administered through the non-root \texttt{codex} account; the team supplied the UFW check from a root shell. October 9 evidence: IPv6 disabled, attached Cloud Firewall permits inbound 22/80/443 only, UFW inactive. Hosts the MyFileAgent Gitea service at \href{https://myfileagent.tech}{\texttt{myfileagent.}\allowbreak\texttt{tech}} through Caddy-managed HTTPS. Gitea remains bound to \texttt{127.0.0.1:3000}; an authenticated SSH local forward is retained as an administrative fallback.\\
|
||||
\texttt{ssw590-group7-}\newline\texttt{droplet} & DigitalOcean & Ubuntu at \texttt{142.93.193.110}; originally 1 CPU, 1 GB RAM and 25 GB storage. User-confirmed new Basic plan: 1 vCPU, 2 GB RAM, 50 GB disk at \$12/month. November 18 observed root filesystem: 48 GB, plus 2 GB swap. Non-root \texttt{codex} administration. Current cloud rules and attachment are evidenced; November 20 privileged SSH audit confirms UFW inactive and password/keyboard-interactive SSH disabled. Cloud firewall permits inbound 22/80/443; the team's SSH source-IP exception is retained. Existing Gitea, Jenkins, proxy, monitoring and pricing services retained. See \ChapterRef{SupportTicketManagement}.\\
|
||||
\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{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.\\
|
||||
\href{https://support.myfileagent.tech}{\texttt{support.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech}} & Existing Droplet & Zammad 7.2.3-0008, official ten-container Compose project \texttt{dos-support}; Caddy TLS to nginx :8080 over the existing edge network. No Zammad host ports published. Private database/search/cache dependencies, named persistent volumes, startup backup and small CPU/RAM limits. TA Agent \texttt{ta.agent} has group ticket access, not Admin. See \ChapterRef{SupportTicketManagement}.\\
|
||||
\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{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.\\
|
||||
\end{tabularx}
|
||||
\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{longtable}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
\section{Assignment Purpose}
|
||||
This report records the team's developing DevOps environment and the work
|
||||
completed through Assignment 7, retaining the Assignment 5 automated
|
||||
completed through Assignment 9, retaining the Assignment 5 automated
|
||||
manual-build work described in \ChapterRef{AutomatedManualBuild}. The earlier chapters establish Linux
|
||||
\phantomsection\label{GlossaryRef:bash}Bash command-line skills, the Ubuntu working environment, host configuration, and
|
||||
password-management concepts. Earlier assignments extended that foundation
|
||||
@@ -25,6 +25,14 @@ Caddy-managed HTTPS, a DigitalOcean Cloud Firewall, and a verified two-member
|
||||
repository workflow.
|
||||
|
||||
\section{Team and Environment}
|
||||
Assignment 9 extends the existing deployment with the official Zammad support
|
||||
desk, private dependencies, HTTPS, synthetic ticket workflows and
|
||||
least-privilege TA access. Instruction Chapter 7 is recorded in
|
||||
\ChapterRef{SupportTicketManagement}, including monitoring, backup/recovery,
|
||||
minimal resource settings and explicit unfinished evidence. This source draft
|
||||
has not been compiled; final PDF verification awaits the user's authorized
|
||||
Jenkins build.
|
||||
|
||||
The work was completed by Nicholas Kogut and Gowri Das Lovely. The execution
|
||||
environment is an Ubuntu Linux Droplet hosted on DigitalOcean, accessed remotely
|
||||
with PuTTY. Docker provides the repeatable application environments used for
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
For security reasons, passwords in this document are stored only as links to another password store (shared BitWarden cloud account), never as the credential itself. When a new credential is created, add a row naming the user and server, add the corresponding entry to the password manager, and record only the password manager's entry name here.
|
||||
|
||||
\section{Credential Registry}
|
||||
\begin{tabularx}{\linewidth}{L{1.8cm}L{2.6cm}L{3.4cm}Y}
|
||||
\begin{longtable}{L{1.8cm}L{2.6cm}L{3.4cm}L{5.0cm}}
|
||||
\caption{Credential Registry\label{Table:CredentialRegistry}}\\
|
||||
\toprule \textbf{User} & \textbf{Server} & \textbf{Credential Reference} & \textbf{Rotation / Notes}\\ \midrule
|
||||
\endfirsthead
|
||||
@@ -25,4 +25,12 @@ Group 7 & Actions runner & Restricted state: \texttt{.runner} & Outside Git; mod
|
||||
\texttt{jenkins-}\allowbreak\texttt{ci} & Jenkins / Gitea & Jenkins credential: \texttt{gitea-}\allowbreak\texttt{jenkins-ci} & Global PAT: repo write; user/org read. Rotate on compromise.\\
|
||||
Group 7 & Grafana & Bitwarden: \path{bitwarden-grafana} & Never publish the password. The restricted initial-password file outside Git is a bootstrap value and must not be used to reset the changed login.\\
|
||||
Group 7 & Discord alert route & Restricted \path{grafana-discord-webhook} and private routing provisioning outside Git & Secret URL excluded from source and screenshots. Rotate/revoke through the team Discord integration if compromised; preserve resolved delivery.\\
|
||||
\end{tabularx}
|
||||
Startup Admin & Zammad support & Bitwarden: \path{zammad-admin} & Login \path{startup.admin@example.test}; named administrator. Rotate on compromise.\\
|
||||
\texttt{student.}\allowbreak\texttt{agent} & Zammad support & Bitwarden: \path{zammad-student-agent} & Startup Support Agent access only.\\
|
||||
\texttt{ta.agent} & Zammad support & Bitwarden: \path{zammad-ta-agent} & Agent role only. Supply privately in Canvas; revoke after evaluation.\\
|
||||
\texttt{demo.}\allowbreak\texttt{customer} & Zammad portal & Bitwarden: \path{zammad-demo-customer} & Synthetic Customer for portal workflow and visibility tests.\\
|
||||
\texttt{other.}\allowbreak\texttt{customer} & Zammad portal & Bitwarden: \path{zammad-other-customer} & Separate synthetic Customer for ticket-isolation tests.\\
|
||||
Zammad database & PostgreSQL & Bitwarden: \path{zammad-postgres} & Private deployment variable \texttt{POSTGRES\_PASS}; excluded from Git.\\
|
||||
Database superuser & PostgreSQL & Bitwarden: \path{zammad-postgres-superuser} & Private deployment variable \texttt{POSTGRES\_SUPERUSER\_PASS}; excluded from Git.\\
|
||||
Zammad search & Elasticsearch & Bitwarden: \path{zammad-elasticsearch} & Private deployment variable \texttt{ELASTICSEARCH\_PASS}; the variable does not establish enabled search authentication.\\
|
||||
\end{longtable}
|
||||
|
||||
@@ -195,3 +195,27 @@
|
||||
howpublished = {\url{https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/}},
|
||||
note = {Accessed: October 28, 2026}
|
||||
}
|
||||
|
||||
@misc{ZammadDockerA9,
|
||||
author = {{Zammad Foundation}},
|
||||
title = {Install with Docker},
|
||||
year = {2026},
|
||||
howpublished = {\url{https://docs.zammad.org/en/latest/install/docker-compose.html}},
|
||||
note = {Accessed November 18, 2026; deployment observations use the recorded pinned checkout}
|
||||
}
|
||||
|
||||
@misc{ZammadPinnedComposeA9,
|
||||
author = {{Zammad Foundation}},
|
||||
title = {Official Docker Compose deployment, pinned source revision},
|
||||
year = {2026},
|
||||
howpublished = {\url{https://github.com/zammad/zammad-docker-compose/tree/cb5ab9c805310515f4a55e70e94f9b4a28fa24a5}},
|
||||
note = {Checkout inspected November 18, 2026}
|
||||
}
|
||||
|
||||
@misc{ZammadDockerRestoreA9,
|
||||
author = {{Zammad Foundation}},
|
||||
title = {Backup and Restore (Docker)},
|
||||
year = {2026},
|
||||
howpublished = {\url{https://docs.zammad.org/en/latest/appendix/backup-and-restore/docker-compose.html}},
|
||||
note = {Accessed November 18, 2026; restore procedure documented, not executed}
|
||||
}
|
||||
|
||||
@@ -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,694 @@
|
||||
\chapter{Support Ticket Management with Zammad}
|
||||
\ChapterLabel{SupportTicketManagement}
|
||||
\index{Zammad}\index{support tickets}\index{least privilege}
|
||||
|
||||
% Chapter introduction is intentionally unnumbered so the eleven implementation
|
||||
% sections retain their natural 14.1--14.11 numbering.
|
||||
This chapter implements Chapter 7 of the instructor's
|
||||
\path{dosManual-V1.53-1.pdf} as team Assignment 9. Chapter numbers in this
|
||||
cumulative team manual differ from the instruction manual. The work extends
|
||||
the existing Droplet, Gitea, Jenkins, Caddy, monitoring and pricing deployments.
|
||||
It uses the official Zammad Compose stack and published images. Optional mail,
|
||||
SSO, alert-to-ticket automation, new exporters and new pipelines are excluded.
|
||||
All ticket customers and correspondence are synthetic.
|
||||
|
||||
The starting documentation is branch
|
||||
\path{assignment8/evidence-documentation}, commit
|
||||
\path{6e2873cc6bb476dab5ae680efb7ff6b997579081}, version 1.10.1,
|
||||
which was newer than main. The isolated implementation worktree is
|
||||
\path{/home/codex/dos-support/team-repository}, branch
|
||||
\path{assignment9/ticket-management}. Initial sanitized implementation commit
|
||||
\texttt{114fb4b} retains the previous manual and adds support configuration and
|
||||
evidence. Local source is also saved under \path{HW9/team-repository}.
|
||||
The complete manual is compiled by the existing Gitea Actions
|
||||
\textit{Team manual PDF} workflow. The PDF build stamp identifies the source
|
||||
revision, run and attempt; the full Jenkins application pipeline is separate.
|
||||
|
||||
\begin{devopsNote}[What the evidence establishes]
|
||||
HTTPS login reachability, API account and ticket operations, customer isolation,
|
||||
TA group access, a generated backup, and an nginx-only restart test were
|
||||
executed. A public login probe does not establish authenticated workflow
|
||||
correctness. API checks do not substitute for separate customer and TA browser
|
||||
checks. Browser screenshots are added only after actual observations; the
|
||||
historical baseline limitations are stated alongside their source evidence.
|
||||
\end{devopsNote}
|
||||
|
||||
\section{Baseline, capacity and preservation of earlier work}
|
||||
The initial host had a 24 GB root filesystem with 22 GB used (94\%) and
|
||||
1.6 GB available. The full upstream stack was downloaded and started; startup
|
||||
caused severe resource contention and repeated Elasticsearch exits with code
|
||||
137. That exit code alone does not identify the cause. The team subsequently
|
||||
upgraded the Droplet. After reboot, measurements showed one CPU, approximately
|
||||
2 GB physical RAM, 2 GB swap, and a 48 GB root filesystem with 26 GB available
|
||||
(46\% used). Active swap traffic and zero idle CPU showed that startup was
|
||||
competing with the existing services. Initial Rails migrations and seeding
|
||||
eventually exited successfully with code zero.
|
||||
|
||||
The instructor's capacity baseline was not captured completely before the first
|
||||
installation. The user initially deferred capacity work, later requested
|
||||
resource diagnosis, and chose a small proof of concept with explicit limits.
|
||||
The team supplied the upgraded plan at documentation review: DigitalOcean
|
||||
Basic, 1 vCPU, 2 GB RAM, 50 GB nominal disk, at \$12/month. The observed 48 GB
|
||||
root filesystem is distinct from the plan's advertised disk capacity. This
|
||||
records the user's plan/price statement, not a new billing-console audit or a
|
||||
claim that alternatives were compared before the resize. The small deployment is a tested lab configuration,
|
||||
not a claim of compliance with Zammad's general production sizing guidance.
|
||||
|
||||
The existing services and their volumes were retained. Initial HTTPS checks
|
||||
returned Gitea 200, Jenkins 403 (access-controlled response), Grafana 302,
|
||||
production health \texttt{v1/ok}, and staging health \texttt{v2/ok}.
|
||||
Prometheus was found stopped after the host restart. It was restarted; a
|
||||
premature HUP during startup caused exit 129, after which it was restarted
|
||||
again and its readiness endpoint was checked before using its data. This is
|
||||
recorded separately from the controlled Zammad outage.
|
||||
|
||||
The post-installation audit captures all six prescribed command outputs:
|
||||
Docker version, Compose version, \texttt{free -h}, \texttt{df -h}, bounded
|
||||
\texttt{docker stats --no-stream}, and Docker network inventory, in
|
||||
\path{support/evidence/chapter7-final-audit.json}. These are explicitly
|
||||
post-install measurements, not a reconstructed original six-command baseline.
|
||||
Historical Grafana comparisons provide retained before/after observations
|
||||
with their collection gaps visible.
|
||||
|
||||
\paragraph{Reuse of the prior assignment's dated baseline.}
|
||||
The team confirms that no system changes occurred between completion of the
|
||||
preceding assignment and starting this assignment. Existing evidence can
|
||||
therefore support continuity of the recorded configuration, while retaining
|
||||
its original dates. In particular,
|
||||
\path{documentation/evidence/assignment7/documentation-host-comparison-2026-10-28.json}
|
||||
records one CPU, Docker 29.8.1, Compose v5.5.1, 1,008,177,152 bytes total RAM,
|
||||
1,073,737,728 bytes swap, and a 24,883,167,232-byte root filesystem.
|
||||
Its point-in-time available RAM was 217,042,944 bytes and root available
|
||||
space was 12,422,406,144 bytes. These dynamic values are October 28 samples,
|
||||
not measurements taken immediately before the November installation; an
|
||||
unchanged configuration does not imply unchanged utilization or disk use.
|
||||
The retained November 18 Grafana screenshots add contemporaneous whole-host
|
||||
before/startup/after observations, and the recorded pre-resize versus
|
||||
post-resize capacities support the upgrade comparison. These sources are
|
||||
used together rather than declaring all baseline evidence absent.
|
||||
The remaining historical gap is the complete, contemporaneous six-command
|
||||
capture required by Step 1, especially per-container statistics and network
|
||||
inventory. A later snapshot or a stopped-Zammad test cannot recreate those
|
||||
original observations. The plan selected and recurring cost are documented;
|
||||
a pre-resize comparison of alternative paid plans is not established by
|
||||
capacity measurements alone.
|
||||
|
||||
\section{Official deployment revision and images}
|
||||
The separate deployment directory is
|
||||
\path{/home/codex/dos-support/zammad-docker-compose}. The official repository
|
||||
\url{https://github.com/zammad/zammad-docker-compose} was cloned and detached at
|
||||
\path{cb5ab9c805310515f4a55e70e94f9b4a28fa24a5}.
|
||||
The official deployment guide and pinned repository are the source references
|
||||
for the supplied stack, scenarios and environment variables
|
||||
\cite{ZammadDockerA9,ZammadPinnedComposeA9}.
|
||||
Docker Compose reported version 5.5.1 and accepted the external-network
|
||||
scenario's \texttt{!reset} syntax. The kernel's existing
|
||||
\texttt{vm.max\_map\_count} was 1048576; no privileged sysctl change was needed.
|
||||
|
||||
\begin{longtable}{L{4.0cm}L{8.8cm}}
|
||||
\caption{Official selected image inventory}\label{Table:ZammadImages}\\
|
||||
\toprule Service & Published image tag\\\midrule\endhead
|
||||
Rails, nginx, initialization, scheduler, websocket, backup &
|
||||
\path{ghcr.io/zammad/zammad:7.2.3-0008}\\
|
||||
Elasticsearch & \path{elasticsearch:9.5.5}\\
|
||||
PostgreSQL & \path{postgres:17.12-alpine}\\
|
||||
Redis & \path{redis:8.10.3-alpine}\\
|
||||
Memcached & \path{memcached:1.6.45-alpine}\\\bottomrule
|
||||
\end{longtable}
|
||||
Ten containers share five image tags; a new custom help-desk image was not
|
||||
built. Captured local image IDs, resource caps, service state, networks and
|
||||
volume mounts are in \path{support/evidence/deployment-manifest.json}.
|
||||
Local image IDs are not represented as registry manifest digests.
|
||||
|
||||
\section{Private networks, proxy and minimal settings}
|
||||
\begin{figure}[htbp]
|
||||
\centering
|
||||
\begingroup
|
||||
\linespread{1}\selectfont
|
||||
\begin{tikzpicture}[
|
||||
box/.style={draw=devopsBlue,rounded corners=2pt,align=center,
|
||||
font=\fontsize{10}{13}\selectfont,text width=3.8cm,minimum height=1.6cm,inner sep=6pt,fill=white},
|
||||
newbox/.style={box,fill=devopsLightBlue},
|
||||
store/.style={box,fill=black!5},
|
||||
arrow/.style={-{Stealth[length=2.5mm]},thick,draw=devopsBlue},
|
||||
edgeLabel/.style={font=\footnotesize,fill=white,inner sep=3pt,align=center}]
|
||||
% Explicit grid positions reserve separate lanes for every connection.
|
||||
\node[box] (browser) at (0,0) {Customer / student\\TA browser};
|
||||
\node[box] (proxy) at (0,-3.2) {Existing Caddy\\TLS :443\\HTTP redirect :80};
|
||||
\node[box] (old) at (-4.8,-3.2) {Existing Gitea / Jenkins\\Pricing: staging\\and production};
|
||||
\node[store] (oldvol) at (-4.8,0) {Existing Gitea data\\Jenkins home / TLS storage\\Pricing configuration};
|
||||
\node[box] (monitor) at (4.8,-3.2) {Prometheus / Blackbox\\Grafana / Node Exporter};
|
||||
\node[store] (monvol) at (4.8,0) {Metrics history\\Dashboards / alert rules\\Exporter configuration};
|
||||
\draw[draw=devopsBlue,dashed,rounded corners=4pt]
|
||||
(-7.05,-15.0) rectangle (7.05,-5.1);
|
||||
\node[anchor=north west,font=\small\bfseries,text=devopsBlue]
|
||||
at (-6.85,-5.3) {New Zammad private network};
|
||||
\node[newbox] (nginx) at (0,-6.9) {Zammad nginx :8080\\Private + proxy networks};
|
||||
\node[newbox] (app) at (0,-10.1) {Rails :3000 / websocket\\Scheduler / one-shot init};
|
||||
\node[newbox] (data) at (-4.8,-10.1) {PostgreSQL :5432\\Redis :6379\\Memcached :11211\\Elasticsearch :9200};
|
||||
\node[newbox] (backup) at (4.8,-10.1) {Official backup container\\Private project network};
|
||||
\node[store] (vol) at (0,-13.4) {Named database / search / Redis\\Shared application storage\\Backup volumes};
|
||||
\draw[arrow] (browser.south)--node[edgeLabel,right]{HTTPS}(proxy.north);
|
||||
\draw[arrow] (proxy.west)--(old.east);
|
||||
\draw[arrow] (old.north)--(oldvol.south);
|
||||
\draw[arrow] (monitor.north)--(monvol.south);
|
||||
\draw[arrow,dashed] (monitor.west)--(proxy.east);
|
||||
\draw[arrow] (proxy.south)--node[edgeLabel,right]{private HTTP}(nginx.north);
|
||||
\draw[arrow] (nginx.south)--(app.north);
|
||||
\draw[arrow] (app.west)--(data.east);
|
||||
\draw[arrow] (app.south)--(vol.north);
|
||||
\draw[arrow] (data.south)--(-4.8,-13.4)--(vol.west);
|
||||
\draw[arrow] (backup.south)--(4.8,-13.4)--(vol.east);
|
||||
\end{tikzpicture}
|
||||
\endgroup
|
||||
\caption{Actual logical service and storage boundaries. Only Zammad nginx
|
||||
joins \texttt{myfileagent-gitea\_edge}; all dependencies remain on
|
||||
\texttt{dos-support\_default}. Dashed line is the HTTPS probe through Caddy.
|
||||
Grouped boxes represent multiple containers, not combined processes.}
|
||||
\label{Figure:ZammadArchitecture}
|
||||
\end{figure}
|
||||
|
||||
The retained official scenario removes nginx's host port with
|
||||
\texttt{ports: !reset []}. Resolved Compose validation confirmed no published
|
||||
host port for any Zammad service. The actual external network is
|
||||
\path{myfileagent-gitea_edge}; the project network is
|
||||
\path{dos-support_default}. The non-secret example is
|
||||
\path{support/.env.example}; the real \path{.env} is outside the team repository,
|
||||
mode 600. Distinct generated application database, administrative database and
|
||||
search credentials replace defaults. PostgreSQL's application and superuser
|
||||
roles are separate. Search security remains as supplied upstream on the
|
||||
private network; a generated search password variable is not a claim that
|
||||
Elasticsearch authentication was enabled.
|
||||
|
||||
\begin{verbatim}
|
||||
COMPOSE_PROJECT_NAME=dos-support
|
||||
COMPOSE_FILE=docker-compose.yml:scenarios/add-external-network-to-nginx.yml:
|
||||
scenarios/apply-resource-limits.yml:local/minimal.yml
|
||||
ZAMMAD_NGINX_EXTERNAL_NETWORK=myfileagent-gitea_edge
|
||||
ZAMMAD_FQDN=support.myfileagent.tech
|
||||
ZAMMAD_HTTP_TYPE=https
|
||||
NGINX_SERVER_SCHEME=https
|
||||
ELASTICSEARCH_JAVA_OPTS=-Xms128m -Xmx128m
|
||||
ZAMMAD_WEB_CONCURRENCY=0
|
||||
\end{verbatim}
|
||||
The displayed Compose file list wraps for readability; the real environment
|
||||
stores it on one line. The upstream HTTPS scheme is retained even though
|
||||
Caddy's upstream connection uses HTTP, to preserve secure cookies and CSRF
|
||||
behavior. Client-IP attribution was not customized; no broad trusted-proxy
|
||||
range is asserted. API setup follows the application's normal CSRF tokens and
|
||||
session cookies; security checks were not disabled.
|
||||
|
||||
\subsection{Small proof-of-concept limits}
|
||||
\begin{longtable}{L{4.2cm}L{2.1cm}L{2.0cm}L{4.5cm}}
|
||||
\caption{Saved per-container ceilings, not preallocated reservations}\label{Table:ZammadLimits}\\
|
||||
\toprule Service & RAM cap & CPU cap & Additional setting\\\midrule\endhead
|
||||
Elasticsearch & 384 MiB & 0.35 & Heap 128 MiB initial/max\\
|
||||
Rails & 384 MiB & 0.40 & Single Puma process; 1--3 threads\\
|
||||
Scheduler & 384 MiB & 0.25 & Required services use shared-process threads; unused AI/incoming-mail workers disabled\\
|
||||
Websocket & 192 MiB & 0.15 & Official command retained\\
|
||||
Backup & 192 MiB & 0.15 & Startup backup enabled\\
|
||||
PostgreSQL & 128 MiB & 0.25 & Existing initialized volume\\
|
||||
Redis & 48 MiB & 0.10 & 16 MB data maximum; no eviction\\
|
||||
Memcached & 32 MiB & 0.10 & 8 MB cache; one thread, 64 connections\\
|
||||
nginx & 64 MiB & 0.15 & No published host port\\
|
||||
Initialization & 512 MiB & 0.35 & Saved limit for future runs; completed prior to this limit\\\bottomrule
|
||||
\end{longtable}
|
||||
These are experimental limits for kilobytes of demonstration data. Heap size
|
||||
is only part of Elasticsearch's total usage. Its upstream 1 GB heap was first
|
||||
reduced to 256 MB, then 128 MB. At the later checkpoint the constrained
|
||||
services reported zero restarts and Rails was healthy. Search startup was
|
||||
slow and emitted garbage-collection overhead messages; long-term stability
|
||||
is not inferred from a short successful workflow. The sum of service ceilings
|
||||
is not a promise that the complete host can sustain every ceiling at once.
|
||||
If a required service fails, preserve logs and raise only the demonstrated
|
||||
limiting setting. Do not silence failures or remove the required search or
|
||||
backup services to claim success.
|
||||
|
||||
\paragraph{November 20 browser-test correction.}
|
||||
Although the container remained running, a later actual browser ticket-create
|
||||
test could not find the existing synthetic Customer. The user search index
|
||||
contained only one record. Scheduler process inspection showed that the
|
||||
general delayed-job and scheduled-job workers were absent; its cgroup counters
|
||||
recorded three killed processes under the original 384 MiB ceiling.
|
||||
An initial 512 MiB scheduler trial still lost the delayed-job worker and
|
||||
recorded one killed process. Inspection of the matching upstream
|
||||
\path{lib/background_services/service_config.rb} established that a worker
|
||||
count of zero selects shared-process threading, whereas one forks a separate
|
||||
Rails process. The earlier attempt to minimize workers by setting each to one
|
||||
was therefore counterproductive. Required session-management, scheduled-job
|
||||
and delayed-job services were corrected to zero-worker threaded mode, the
|
||||
scheduler ceiling was restored to 384 MiB, and unused AI/incoming-mail workers
|
||||
were disabled. The Elasticsearch heap remained 128 MiB.
|
||||
This records a functional failure that API CRUD and container-running checks
|
||||
had not detected; the completed browser test is the acceptance check for the
|
||||
correction, not merely a successful container restart.
|
||||
|
||||
\section{Validation, initialization and startup operations}
|
||||
\paragraph{Post-build footprint tuning, November 21.}
|
||||
After manual build 29, the team reported nearly full swap. A current SSH
|
||||
audit found about 2 GiB swap used with roughly 472 MiB available RAM.
|
||||
Jenkins, Elasticsearch and the three Zammad Ruby services held most of the
|
||||
swapped pages; the many Elasticsearch rows were threads of one JVM.
|
||||
A 96 MiB Elasticsearch heap trial did not complete the bounded primary-shard
|
||||
recovery check and emitted GC pressure, so the 128 MiB setting was restored.
|
||||
The saved override sets \texttt{MALLOC\_ARENA\_MAX=2} for Elasticsearch,
|
||||
Rails, websocket and scheduler, and disables unused Elasticsearch ML.
|
||||
The existing Jenkins controller heap was reduced from 256 to 192 MiB with
|
||||
the 448 MiB container cap and persistent home retained. All 83 saved Jenkins
|
||||
build records had a final result before its restart. No volume was deleted,
|
||||
swap was not forcibly disabled, and no paid capacity change was made.
|
||||
Restarts released old swapped pages, which is immediate relief rather than
|
||||
proof of a lasting reduction; later warm-state measurements are required.
|
||||
These changes postdate the build-29 artifact and are included in this
|
||||
version's source configuration and verification record.
|
||||
|
||||
Run commands in the deployment directory so the same private environment and
|
||||
all scenarios are loaded:
|
||||
\begin{verbatim}
|
||||
cd /home/codex/dos-support/zammad-docker-compose
|
||||
docker compose config --quiet
|
||||
docker compose config --services
|
||||
docker compose pull
|
||||
docker compose up -d
|
||||
docker compose ps -a
|
||||
docker compose logs --tail=50 zammad-init zammad-railsserver zammad-nginx
|
||||
\end{verbatim}
|
||||
Do not publish resolved Compose output containing secrets. The observed
|
||||
one-shot initialization container exited zero after migrations, seeds and
|
||||
initial index setup. It is expected to be stopped, not continuously running.
|
||||
During initial contention the waiting Rails, scheduler, websocket and backup
|
||||
containers were paused so initialization could finish. They were later
|
||||
recreated with the saved small settings and restarted. For a constrained
|
||||
restart, first bring up PostgreSQL, Redis, Memcached and Elasticsearch, then
|
||||
Rails, then nginx, websocket, scheduler and backup. Check actual readiness,
|
||||
not just container state. Puma's zero-worker mode means one process; an early
|
||||
saved value of one was corrected before this constrained deployment.
|
||||
|
||||
\section{DNS, HTTPS and certificate verification}
|
||||
\url{https://support.myfileagent.tech/} resolves to the existing Droplet
|
||||
\texttt{142.93.193.110}. A new hostname route was appended to the existing
|
||||
Caddyfile; all prior host routes were preserved:
|
||||
\begin{verbatim}
|
||||
support.myfileagent.tech {
|
||||
reverse_proxy zammad-nginx:8080
|
||||
}
|
||||
\end{verbatim}
|
||||
The original is retained as \path{Caddyfile.before-assignment9}. Caddy
|
||||
validation succeeded before reload. Normal HTTPS requests returned 200
|
||||
without bypassing certificate validation. The ChatGPT browser displayed the
|
||||
actual first-run wizard and later login page. Caddy provides WebSocket
|
||||
forwarding; Zammad's websocket service remains in the official stack.
|
||||
The final observation at 20:45:47 UTC on November 18 returned HTTP 200 for
|
||||
support, Gitea login, Jenkins login, Grafana login, production health and
|
||||
staging health. HTTP support access followed a redirect to HTTPS. The trusted
|
||||
certificate identifies support.myfileagent.tech, issuer Let's Encrypt YE1,
|
||||
valid November 18, 2026 at 19:20:36 UTC through February 16, 2027 at
|
||||
19:20:35 UTC. Default trust-chain and hostname verification remained enabled.
|
||||
Evidence: \path{support/evidence/final-observations.json}.
|
||||
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.64\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/support-login.png}
|
||||
\caption{Actual support HTTPS login page after initialization and account setup.
|
||||
No password fields are populated in this screenshot. A login page alone does
|
||||
not establish successful authenticated access.}\label{Figure:ZammadLogin}
|
||||
\end{figure}
|
||||
|
||||
\section{Firewall and exposure checks}
|
||||
External TCP connection attempts from the Windows workstation could not reach
|
||||
\texttt{142.93.193.110} on 8080, 5432, 9200, 6379 or 11211. These are
|
||||
observations from that source and time, not a universal connectivity proof.
|
||||
The resolved Compose configuration publishes none of those Zammad ports.
|
||||
Published-port avoidance is independently important because Docker networking
|
||||
can bypass assumptions about host firewall rules.
|
||||
|
||||
Earlier team evidence recorded a DigitalOcean Cloud Firewall permitting
|
||||
22/80/443, UFW inactive and IPv6 disabled. Those historical observations are
|
||||
not relabeled as a new post-upgrade firewall audit. A current authenticated
|
||||
DigitalOcean inspection now confirms the cloud firewall and attachment;
|
||||
the privileged host audit was subsequently completed on November 20. The earlier Gitea foundation chapter records an
|
||||
instructor-cleared exception allowing key-only SSH from changing source
|
||||
addresses. The team explicitly carries that policy forward; no SSH source-IP
|
||||
restriction was requested or applied in this assignment. Verify the actual
|
||||
key-only controls and retain that exception rather than claiming IP filtering.
|
||||
The final
|
||||
observation found no support AAAA answer and no global IPv6 interface address;
|
||||
listeners on \texttt{[::]} alone do not establish public IPv6 access.
|
||||
The original unprivileged UFW attempt failed because sudo required a password;
|
||||
that historical failure remains in \path{chapter7-final-audit.json}.
|
||||
The team then authenticated the read-only audit through SSH. Its raw output is
|
||||
\path{support/evidence/host-security-audit.txt}, captured November 20 at
|
||||
20:33:14 EST (November 21, 01:33:14 UTC). UFW is inactive. IPv4 INPUT and
|
||||
OUTPUT policies are ACCEPT, FORWARD is DROP, with Docker-managed bridge
|
||||
and forwarding chains. IPv6 base policies are ACCEPT. Therefore the host
|
||||
firewall is not an independent inbound port allowlist; the attached cloud
|
||||
firewall supplies that restriction. Docker ACCEPT entries for private
|
||||
container ports do not alone prove public exposure; published bindings and
|
||||
external checks are recorded separately below.
|
||||
Effective \texttt{sshd -T} output reports
|
||||
\texttt{pubkeyauthentication yes}, \texttt{passwordauthentication no},
|
||||
\texttt{kbdinteractiveauthentication no}, and
|
||||
\texttt{permitemptypasswords no}. Root login is
|
||||
\texttt{without-password} (keys permitted), not disabled. No rules or SSH
|
||||
settings were changed during this audit.
|
||||
The renewed external checks are in
|
||||
\path{support/evidence/firewall-exposure-recheck.json}: HTTPS returned 200,
|
||||
all five internal TCP ports timed out from the external workstation, none of
|
||||
the five Zammad frontend/dependency containers published a host port, and
|
||||
only nginx joined the existing proxy network. The instruction requires
|
||||
checking both cloud controls and host/container networking; it does not
|
||||
mandate a particular screenshot format. One current rules/attachment capture
|
||||
from the DigitalOcean console or an equivalent authenticated API export,
|
||||
combined with these command results, is sufficient evidence of the two layers.
|
||||
The authenticated console showed
|
||||
\texttt{ssw590-group7-gitea-firewall}, six rules and one attached Droplet:
|
||||
\texttt{ssw590-group7-droplet}, described as 2 GB / 50 GB / NYC1. Its only
|
||||
inbound allowances are TCP 22, 80 and 443 from all IPv4/IPv6 sources; other
|
||||
inbound traffic is blocked. Outbound ICMP, all TCP and all UDP remain allowed.
|
||||
No internal Zammad port is allowed. No cloud rule or attachment issue was
|
||||
found relative to the recorded policy and SSH exception; nothing was changed.
|
||||
Structured evidence is \path{support/evidence/digitalocean-firewall-verification.json}.
|
||||
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.85\linewidth,height=.82\textheight,keepaspectratio]{hw9_images/digitalocean-firewall-rules-full.png}
|
||||
\caption{Actual complete DigitalOcean firewall rule capture, November 18.
|
||||
The original PNG can be zoomed to inspect all inbound and outbound rules.}
|
||||
\label{Figure:ZammadCloudFirewallRules}\end{figure}
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.70\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/digitalocean-firewall-attachment.png}
|
||||
\caption{Actual firewall attachment to the upgraded team Droplet. This is
|
||||
the same firewall whose complete rules are captured in the preceding figure.}
|
||||
\label{Figure:ZammadCloudFirewallAttachment}\end{figure}
|
||||
Do not add public rules for Zammad dependencies or monitoring ports. Keep
|
||||
80 only for the existing redirect/certificate mechanism and HTTPS on 443.
|
||||
|
||||
\section{Accounts, ticket workflow and least privilege}
|
||||
The created local accounts are \texttt{startup.admin}, \texttt{student.agent},
|
||||
\texttt{ta.agent}, \texttt{demo.customer}, and \texttt{other.customer}; all
|
||||
use synthetic \texttt{example.test} email identities. TA Agent has only the
|
||||
Agent role and full ticket permissions in \texttt{Startup Support}, sufficient
|
||||
for create, assign, reply and close; it has no Admin role. Public account
|
||||
creation was disabled. No mail channel, external notification or real customer
|
||||
address was configured.
|
||||
|
||||
\begin{longtable}{L{1.6cm}L{5.1cm}L{6.4cm}}
|
||||
\caption{Synthetic ticket examples and observed workflow}\label{Table:ZammadTickets}\\
|
||||
\toprule Number & Example & Observed result\\\midrule\endfirsthead
|
||||
\toprule Number & Example & Observed result\\\midrule\endhead
|
||||
71002 & Portal access question & Open/unassigned; Demo Customer; normal priority.\\
|
||||
71003 & Pricing investigation & Open, Student Agent owner, Demo Customer, normal priority; internal note and public reply.\\
|
||||
71004 & Support HTTPS configuration & Closed, Student Agent owner, Demo Customer, normal priority; resolution and issue 22 link.\\
|
||||
71005 & Second customer's private request & Access denied when requested as the first customer.\\
|
||||
71006 & TA permissions verification & TA created, assigned to self, replied, and closed using its Agent account.\\\bottomrule
|
||||
\end{longtable}
|
||||
The customer API view of ticket 71003 excluded the internal marker
|
||||
\texttt{INTERNAL-DEMO-NOTE}. Requesting ticket 71005 as the other customer
|
||||
returned access denial. TA authentication and reading ticket 71003 succeeded;
|
||||
its role list contained only Agent. TA ticket 71006 exercised create, own,
|
||||
reply and close. Machine-readable results are in
|
||||
\path{support/evidence/workflow-verification.json},
|
||||
\path{ticket-evidence.json} and \path{account-ids.json} in the same directory.
|
||||
Separate browser checks authenticated as TA Agent and displayed ticket 71004
|
||||
with its issue link and ticket 71003 with its internal note. After signing
|
||||
out, the browser authenticated as demo.customer. Its overview showed its own
|
||||
tickets, ticket 71003 showed the public reply without the internal note,
|
||||
and opening ticket 71005 displayed ``You are not authorized to open this
|
||||
Ticket.'' TA CRUD was tested through the API, distinct from browser login/read.
|
||||
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.47\linewidth,height=.65\textheight,keepaspectratio]{hw9_images/ta-internal-note.png}\hfill
|
||||
\includegraphics[width=.47\linewidth,height=.65\textheight,keepaspectratio]{hw9_images/customer-public-reply.png}
|
||||
\caption{Actual ticket 71003 browser views: TA can see the internal note
|
||||
(left); the customer sees the request and public Agent reply (right).}
|
||||
\label{Figure:ZammadNoteVisibility}\end{figure}
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.47\linewidth,height=.62\textheight,keepaspectratio]{hw9_images/customer-ticket-list.png}\hfill
|
||||
\includegraphics[width=.47\linewidth,height=.62\textheight,keepaspectratio]{hw9_images/customer-other-ticket-denied.png}
|
||||
\caption{Customer overview with open/closed examples (left), and explicit
|
||||
denial for the other customer's ticket 71005 (right).}
|
||||
\label{Figure:ZammadCustomerIsolation}\end{figure}
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.68\linewidth,height=.68\textheight,keepaspectratio]{hw9_images/ta-resolved-ticket.png}
|
||||
\caption{Authenticated TA Agent view of the resolved ticket and its clickable
|
||||
engineering issue link, without administrator access.}
|
||||
\label{Figure:ZammadTAResolved}\end{figure}
|
||||
|
||||
\subsection{Private TA access and evaluation checklist}
|
||||
The November 20 administrator browser inspection opened TA Agent's existing
|
||||
profile read-only: Agent selected, Admin and Customer unchecked, Startup
|
||||
Support Full permission, and active status. The dialog was canceled without
|
||||
submission. The administrator signs in using
|
||||
\texttt{startup.admin@example.test}; the originally generated
|
||||
\texttt{startup.admin} identifier was not accepted by the login form.
|
||||
Use the email identifier with the existing private password; no credential
|
||||
was reset or replaced.
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.47\linewidth]{hw9_images/ta-agent-profile.png}\hfill
|
||||
\includegraphics[width=.47\linewidth]{hw9_images/ta-agent-role-group.png}
|
||||
\caption{Read-only TA Agent identity (left) and Agent-only role with Full
|
||||
Startup Support ticket permissions (right). No access settings were changed.}
|
||||
\label{Figure:ZammadTARoleGroup}\end{figure}
|
||||
|
||||
Evaluation URL: \url{https://support.myfileagent.tech/}. Login name:
|
||||
\texttt{ta.agent}; display name: TA Agent. The separate generated passwords
|
||||
are stored privately in
|
||||
\path{/home/codex/dos-support/accounts.private.json} with mode 600, outside Git.
|
||||
Actual database secrets are in the private deployment environment.
|
||||
The Passwords chapter defines the team's Bitwarden reference names for all
|
||||
five Zammad accounts and three deployment secret variables. Those names
|
||||
are the credential handoff convention; secret values remain outside this manual.
|
||||
The Basic plan is 1 vCPU, 2 GB RAM and 50 GB disk at \$12/month.
|
||||
The approved temporary local credential copy was removed after browser tests;
|
||||
the Droplet's private store is retained. Supply the TA username and password privately in Canvas
|
||||
submission text, outside the PDF and repository, as required by the manual.
|
||||
|
||||
The TA should sign in, select Startup Support, inspect tickets 71002--71004,
|
||||
open the issue link in 71004, create a synthetic ticket, set customer/priority,
|
||||
assign it to self, post a public reply, and close it with a verification note.
|
||||
No SSH or administrator account is required for evaluation. Keep the desk and
|
||||
TA login available through the announced grading window; its dates have not
|
||||
been supplied. Revoke temporary access only after grading and retention needs
|
||||
are confirmed.
|
||||
|
||||
\section{Engineering traceability and resolution}
|
||||
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/22}{Gitea issue 22}
|
||||
is titled ``Verify resource-limited Zammad HTTPS support deployment.'' It was
|
||||
created as \texttt{nkogut} after explicit team approval and links back to
|
||||
\href{https://support.myfileagent.tech/\#ticket/zoom/4}{support ticket 71004}.
|
||||
Its acceptance criteria cover trusted HTTPS, no published dependency ports,
|
||||
customer/agent access, monitoring and recorded recovery results. A
|
||||
customer-visible HTML note in ticket 71004 links to the issue and records
|
||||
the observed resolution. The issue remains open for the remaining acceptance
|
||||
and publication checks; its existence is not evidence of a reviewed merge.
|
||||
No application code change or new Jenkins integration was necessary for this
|
||||
manual ticket-to-engineering link. Existing branch protection and the earlier
|
||||
review/check workflow remain applicable to implementation source publication.
|
||||
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.75\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/gitea-issue-22.png}
|
||||
\caption{Actual Gitea issue 22, including its reverse link to synthetic ticket
|
||||
71004. The screenshot records an open issue, not a completed review.}
|
||||
\label{Figure:ZammadEngineeringIssue}
|
||||
\end{figure}
|
||||
|
||||
\section{Existing monitoring extension}
|
||||
The support root URL was appended to the existing Prometheus \texttt{https}
|
||||
job. The Gitea, Jenkins and production application targets, \texttt{/probe}
|
||||
path, \texttt{http\_2xx} module, 30-second interval and relabeling were retained.
|
||||
No duplicate job, new exporter or new alert rule was introduced. The saved
|
||||
configuration passed \texttt{promtool check config}. After startup readiness,
|
||||
an instant query returned \texttt{probe\_success=1} for the support URL.
|
||||
|
||||
Three panels were appended to the existing provisioned team SRE dashboard:
|
||||
\begin{verbatim}
|
||||
probe_success{job="https",instance="https://support.myfileagent.tech/"}
|
||||
probe_duration_seconds{job="https",instance="https://support.myfileagent.tech/"}
|
||||
(probe_ssl_earliest_cert_expiry{job="https",
|
||||
instance="https://support.myfileagent.tech/"} - time()) / 86400
|
||||
\end{verbatim}
|
||||
They are labeled Zammad HTTPS reachable (0/1), Zammad probe duration (seconds),
|
||||
and TLS certificate remaining lifetime (days). Existing host CPU, memory and
|
||||
filesystem panels are retained for before/after comparisons; these describe
|
||||
the whole host, not individual containers. Provisioned JSON is saved in
|
||||
\path{monitoring/grafana/provisioning/dashboards/json/team-sre.json}.
|
||||
An authenticated Grafana session displayed all three Zammad panels alongside
|
||||
the existing host and Gitea/Jenkins panels. Screenshots show the actual
|
||||
support reachability dip/recovery, probe-duration measurements and roughly
|
||||
89.93 days of certificate lifetime. The TLS field's unit was changed from
|
||||
an auto-scaling duration to a literal days suffix, so it does not display
|
||||
weeks under a days title. Exporter scrape
|
||||
\texttt{up=1} and destination \texttt{probe\_success=1} are different checks.
|
||||
The login probe verifies TLS, HTTP and timing, not login or ticket persistence.
|
||||
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.75\linewidth,height=.77\textheight,keepaspectratio]{hw9_images/grafana-recovery-window.png}
|
||||
\caption{Actual authenticated Grafana view, November 18, 15:37--15:41 New York
|
||||
time. Zammad reachability falls to zero for the controlled frontend outage
|
||||
and returns to one; the existing dashboard also shows probe duration.}
|
||||
\label{Figure:ZammadGrafanaRecovery}\end{figure}
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.75\linewidth,height=.77\textheight,keepaspectratio]{hw9_images/grafana-support-duration-tls-days.png}
|
||||
\caption{Actual support duration and certificate-lifetime panels, with TLS
|
||||
lifetime explicitly displayed in days. A later duration spike remains visible;
|
||||
these measurements do not establish a latency objective or uninterrupted uptime.}
|
||||
\label{Figure:ZammadGrafanaTLS}\end{figure}
|
||||
|
||||
\subsection{Whole-host before/after comparison}
|
||||
The historical window from 13:30 New York time includes pre-installation
|
||||
observations, the original overloaded startup period and the post-upgrade,
|
||||
limited-stack period. CPU rises toward 100\% during the first startup and is
|
||||
around 40--50\% at the later screenshot. Available memory and root available
|
||||
space are shown in the retained Node Exporter panels. Root available space
|
||||
increased after the disk upgrade; this cannot be attributed to application
|
||||
tuning alone. The memory capacity also changed, so absolute available memory
|
||||
is not a like-for-like workload comparison. Missing data during the stopped
|
||||
Prometheus/restart interval is left as a gap; it does not mean zero usage or
|
||||
prove service availability. Earlier Gitea probe failures around the initial
|
||||
overloaded startup are retained in the historical view, rather than hidden
|
||||
as a claim that all earlier services stayed continuously available.
|
||||
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-cpu-before-after.png}
|
||||
\caption{Reused whole-Droplet CPU panel before and after installation and
|
||||
upgrade; observation gaps are preserved.}\label{Figure:ZammadHostCPU}\end{figure}
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-memory-before-after.png}
|
||||
\caption{Reused available-host-memory panel over the same historical window;
|
||||
this is not per-container usage.}\label{Figure:ZammadHostMemory}\end{figure}
|
||||
\begin{figure}[htbp]\centering
|
||||
\includegraphics[width=.72\linewidth,height=.72\textheight,keepaspectratio]{hw9_images/grafana-host-memory-disk.png}
|
||||
\caption{Reused root-filesystem available-space panel. The post-upgrade
|
||||
increase is interpreted alongside the changed disk capacity, not as disk
|
||||
space reclaimed by stopping a container.}\label{Figure:ZammadHostDisk}\end{figure}
|
||||
|
||||
\section{Controlled outage, persistence and backup}
|
||||
The isolated test stopped only \texttt{zammad-nginx}, then restarted it in a
|
||||
\texttt{finally} recovery path. No volume was removed. The first collector
|
||||
used query-evaluation timestamps; because different query times do not prove
|
||||
different scrapes, that collector was corrected to also query
|
||||
\texttt{timestamp(probe\_success\{...\})}. The corrected test records two
|
||||
distinct failed scrape timestamps before recovery. The corrected test ran
|
||||
20:38:30--20:39:53 UTC on November 18 (15:38:30--15:39:53 New York time).
|
||||
Failed scrapes were at 20:38:39.371 and 20:39:09.371 UTC; the recovered
|
||||
successful scrape was 20:39:39.371 UTC. These are sampled observations, not
|
||||
exact outage boundaries. Use the latest
|
||||
\path{support/evidence/recovery-evidence.json}, retaining its actual timestamps,
|
||||
rather than inferring an exact outage length from sampled data.
|
||||
|
||||
\begin{figure}[htbp]\centering
|
||||
\begin{tikzpicture}[x=.085cm,y=1.8cm]
|
||||
\draw[-{Stealth}] (-5,0)--(105,0) node[right]{\scriptsize seconds};
|
||||
\draw[-{Stealth}] (0,-.10)--(0,1.35) node[above]{\scriptsize probe success};
|
||||
\draw[devopsBlue,thick] (0,1)--(30,0)--(60,0)--(90,1);
|
||||
\foreach \x/\y in {0/1,30/0,60/0,90/1}{\fill[devopsBlue] (\x,\y) circle[radius=1.5pt];}
|
||||
\foreach \x in {0,30,60,90}{\draw (\x,0)--(\x,-.04) node[below]{\scriptsize\x};}
|
||||
\node[left] at (0,1){\scriptsize 1};
|
||||
\node[below,align=center] at (45,-.30){\scriptsize Origin: November 18, 2026, 20:38:09.371 UTC\\\scriptsize Failed scrapes: +30 s, +60 s; recovered sample: +90 s};
|
||||
\end{tikzpicture}
|
||||
\caption{Graph of the four distinct recorded scrape instants from the
|
||||
corrected recovery test. Connecting lines guide the eye only; intermediate
|
||||
availability and exact transition times are not inferred. The matching
|
||||
Grafana dashboard screenshot is a separate outstanding browser check.}
|
||||
\label{Figure:ZammadRecoverySamples}\end{figure}
|
||||
|
||||
The final audit queries the full 15:37--15:41 New York test window: Gitea
|
||||
login, Jenkins login and production health each returned nine successful
|
||||
probe samples; support included zero and one. This supports sampled continuity
|
||||
of earlier services during the isolated test, not uninterrupted availability
|
||||
outside the samples.
|
||||
|
||||
After frontend recovery, TA authentication still worked, ticket 71003 was
|
||||
present, and the retained conversation included the internal note. This is
|
||||
web-service restart persistence, not database restore or off-site backup.
|
||||
The official backup container logged \texttt{backup finished :)} after a
|
||||
startup backup. Metadata-only inspection found
|
||||
\path{20261118152258_zammad_db.psql.gz} (6,804,179 bytes) and
|
||||
\path{20261118152258_zammad_files.tar.gz} (126 bytes). Contents were not
|
||||
exposed; the small file archive does not prove attachment restoration.
|
||||
It writes to \path{dos-support_zammad-backup}; the shared
|
||||
application volume is \path{dos-support_zammad-storage}. Other retained
|
||||
volumes are \path{dos-support_postgresql-data},
|
||||
\path{dos-support_elasticsearch-data} and \path{dos-support_redis-data}.
|
||||
Memcached is disposable; Rails, nginx, websocket, scheduler and init do not
|
||||
each need an independent data volume.
|
||||
|
||||
\subsection{Startup, shutdown, recovery and restore runbook}
|
||||
\begin{enumerate}
|
||||
\item For status, use \texttt{docker compose ps -a} and bounded logs from the
|
||||
deployment directory. Check Rails health, successful init exit, search
|
||||
readiness and destination probe; a running container is insufficient.
|
||||
\item For routine shutdown use \texttt{docker compose stop}; for restart use
|
||||
\texttt{docker compose start} with the retained containers. To apply changed
|
||||
limits, validate first and use \texttt{docker compose up -d} for the affected
|
||||
services. Preserve the private environment and volume names.
|
||||
\item For a failed frontend, inspect nginx and Rails logs, restore the last
|
||||
working non-secret configuration and matching private environment, validate,
|
||||
start the affected services, and verify HTTPS plus authenticated ticket read.
|
||||
Raise only a demonstrated failing resource limit; do not disable earlier
|
||||
assignments. Recheck the complete required workflow after each adjustment.
|
||||
\item Before a restore, follow the backup/restore instructions from the exact
|
||||
recorded upstream revision and compatible application/database images. Preserve
|
||||
an additional copy of current volumes, choose a verified matching backup,
|
||||
stop application writers and stage the selected timestamped archives under
|
||||
\path{/var/tmp/zammad/restore/} in the backup volume. The built-in restore
|
||||
uses the latest filename timestamp; do not stage ambiguous backups or the
|
||||
\texttt{latest\_zammad} links. Starting the stack triggers restoration and
|
||||
other application services wait. Follow the matching guide's file-storage
|
||||
cleanup requirements only after preserving current data and authorizing
|
||||
destructive changes; none were performed here. Rebuild the search index and
|
||||
verify database, attachments, authentication and a known ticket afterward.
|
||||
The official Docker-specific restore guide is linked for operators
|
||||
\cite{ZammadDockerRestoreA9}; this exercise did not execute a restore.
|
||||
\item Never use \texttt{docker compose down -v}, remove the persistent volumes,
|
||||
or run a broad Docker prune as part of this lab. A same-Droplet backup is not
|
||||
protection against loss of the Droplet or its disk. Off-Droplet replication is
|
||||
not claimed.
|
||||
\end{enumerate}
|
||||
|
||||
\subsection{November 20 browser acceptance and indexing repair}
|
||||
Customer autocomplete initially failed because the derived User search index
|
||||
contained only one record. The official model methods
|
||||
\texttt{User.search\_index\_reload(worker: 0)} and
|
||||
\texttt{Ticket.search\_index\_reload(worker: 0)}, followed by
|
||||
\texttt{SearchIndexBackend.refresh}, completed successfully using the existing
|
||||
image and scheduler limits. The scheduler was paused during this one-time
|
||||
operation and restarted afterward. Database records and volumes were retained.
|
||||
The User index then contained six records and Customer autocomplete found
|
||||
the existing Demo Customer. The saved JSON records the operation and exit status.
|
||||
|
||||
Logged in as \texttt{ta.agent}, the browser created ticket 71007, selected
|
||||
Demo Customer, assigned TA Agent, retained normal priority, submitted an
|
||||
internal note and then submitted a customer-visible resolution reply with
|
||||
state closed. A separate Demo Customer login displayed the public reply and
|
||||
closed state, with internal article 13 absent. This supplements, rather than
|
||||
relabels, the earlier API-only CRUD test on ticket 71006. No SMTP delivery
|
||||
was attempted. The earlier open, assigned and closed example tickets remain.
|
||||
|
||||
\begin{figure}[htbp]
|
||||
\centering\includegraphics[width=\textwidth]{hw9_images/ta-browser-closed-reply.png}
|
||||
\caption{TA Agent browser workflow: saved internal note, public resolution,
|
||||
assigned owner, normal priority and closed state on ticket 71007.}
|
||||
\label{fig:taBrowserClosedReply}
|
||||
\end{figure}
|
||||
\begin{figure}[htbp]
|
||||
\centering\includegraphics[width=\textwidth]{hw9_images/customer-browser-closed-reply.png}
|
||||
\caption{Demo Customer sees ticket 71007's public resolution and closed
|
||||
state; the internal TA note is excluded from the conversation.}
|
||||
\label{fig:customerBrowserClosedReply}
|
||||
\end{figure}
|
||||
|
||||
\section{Deliverable coverage, final rechecks and remaining gaps}
|
||||
\begin{longtable}{L{3.2cm}L{6.2cm}L{3.4cm}}
|
||||
\caption{Required Chapter 7 deliverable audit}\label{Table:ZammadCoverage}\\
|
||||
\toprule Required aspect & Saved evidence / chapter location & Verification boundary\\\midrule\endfirsthead
|
||||
\toprule Required aspect & Saved evidence / chapter location & Verification boundary\\\midrule\endhead
|
||||
Deployment / continuity & Revision, images, manifest, architecture, final HTTPS observations & All six HTTPS checks returned 200\\
|
||||
Capacity and versions & Initial observations, user-confirmed Basic 1 vCPU/2 GB/50 GB at \$12/month, explicit limits & Full pre-install command baseline cannot be reconstructed\\
|
||||
Persistence / backups & Named volume manifest, backup success, retained ticket/conversation & Database restore not tested\\
|
||||
HTTPS / exposure & Certificate, redirect, blocked ports, private networks, cloud rules/attachment, privileged host audit and effective SSH & UFW inactive; cloud firewall restricts inbound ports\\
|
||||
Accounts / TA & Agent-only TA/group access, API CRUD 71006, browser workflow 71007 & Browser create, assign, internal/public reply and close verified\\
|
||||
Three ticket examples & Open 71002, assigned 71003, closed 71004; internal note/public reply & Browser visibility/isolation screenshots included\\
|
||||
Engineering link & Issue 22 and ticket 71004 bidirectional link, resolution note, screenshot & Issue remains open\\
|
||||
Monitoring & Existing job, three displayed panels, successful probe and host comparison & Authenticated Grafana screenshots included\\
|
||||
Recovery graph & Corrected timestamps, source graph, Grafana recovery window, retained conversation & Two failed distinct scrapes and recovery verified\\
|
||||
Manual / source & This chapter, Hosts, password hints, history, AI log, sanitized configuration & Versioned source; PDF build identity in the build stamp\\\bottomrule
|
||||
\end{longtable}
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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 @@
|
||||
Finished: SUCCESS
|
||||
@@ -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 @@
|
||||
2026-11-08T15:56:45Z
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 70 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 54 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 46 KiB |
@@ -49,17 +49,17 @@
|
||||
\definecolor{devopsLightBlue}{RGB}{232,240,247}
|
||||
|
||||
% Replace these values for each assignment.
|
||||
\newcommand{\AssignmentTitle}{Introduction to SRE: Monitoring and Reliability}
|
||||
\newcommand{\AssignmentNumber}{7}
|
||||
\newcommand{\DocumentVersion}{1.9.2}
|
||||
\newcommand{\DocumentStatus}{Final Draft}
|
||||
\newcommand{\AssignmentTitle}{Support Ticket Management with Zammad}
|
||||
\newcommand{\AssignmentNumber}{9}
|
||||
\newcommand{\DocumentVersion}{1.11.1}
|
||||
\newcommand{\DocumentStatus}{Final submission}
|
||||
\newcommand{\CourseNumber}{SSW 590}
|
||||
\newcommand{\CourseName}{DevOps Principles and Practices}
|
||||
\newcommand{\Instructor}{Darian Muresan}
|
||||
\newcommand{\StudentNames}{Nicholas Kogut\\Gowri Das Lovely}
|
||||
\newcommand{\PDFAuthors}{Nicholas Kogut and Gowri Das Lovely}
|
||||
\newcommand{\Organization}{Stevens Institute of Technology}
|
||||
\newcommand{\DocumentDate}{October 28, 2026}
|
||||
\newcommand{\DocumentDate}{November 20, 2026}
|
||||
\newcommand{\DueDate}{Not specified}
|
||||
% Generated only in the build workspace; never committed by the workflow.
|
||||
\newcommand{\BuildSuffix}{+local.unverified}
|
||||
@@ -73,8 +73,8 @@
|
||||
pdftitle={\CourseNumber\ --- Assignment \AssignmentNumber: \AssignmentTitle},
|
||||
pdfauthor={\PDFAuthors},
|
||||
pdfcreator={Darian Muresan, Ph.D., with OpenAI Codex and Anthropic Claude Code},
|
||||
pdfsubject={SSW 590 Assignment 7 SRE monitoring and reliability},
|
||||
pdfkeywords={DevOps, SRE, Prometheus, Grafana, alerts, SLI, SLO, incident, Jenkins}
|
||||
pdfsubject={SSW 590 Assignment 9 support ticket management with Zammad},
|
||||
pdfkeywords={DevOps, Zammad, support tickets, HTTPS, monitoring, persistence}
|
||||
}
|
||||
|
||||
\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
|
||||
@@ -158,6 +158,8 @@
|
||||
\include{devopsAutomatedManualBuild}
|
||||
\include{devopsJenkinsContinuousIntegration}
|
||||
\include{devopsSREMonitoringReliability}
|
||||
\include{devopsSecureDeliveryRollback}
|
||||
\include{devopsSupportTicketManagement}
|
||||
|
||||
\bibliographystyle{IEEEtran}
|
||||
\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"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -420,6 +420,105 @@
|
||||
"range": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"title": "Zammad HTTPS reachable (0/1)",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 27,
|
||||
"w": 8,
|
||||
"h": 7
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "probe_success{job=\"https\",instance=\"https://support.myfileagent.tech/\"}"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "short"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"title": "Zammad probe duration (seconds)",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 8,
|
||||
"y": 27,
|
||||
"w": 8,
|
||||
"h": 7
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "probe_duration_seconds{job=\"https\",instance=\"https://support.myfileagent.tech/\"}"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"title": "TLS certificate remaining lifetime (days)",
|
||||
"type": "timeseries",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 16,
|
||||
"y": 27,
|
||||
"w": 8,
|
||||
"h": 7
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"expr": "(probe_ssl_earliest_cert_expiry{job=\"https\",instance=\"https://support.myfileagent.tech/\"} - time()) / 86400"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "suffix: days"
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "list",
|
||||
"placement": "bottom"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -19,6 +19,8 @@ scrape_configs:
|
||||
- targets:
|
||||
- https://myfileagent.tech/user/login
|
||||
- https://ci.myfileagent.tech/login
|
||||
- https://app.myfileagent.tech/health
|
||||
- https://support.myfileagent.tech/
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
|
||||
@@ -4,7 +4,7 @@ services:
|
||||
container_name: myfileagent-jenkins
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
JAVA_OPTS: "-Xms64m -Xmx256m"
|
||||
JAVA_OPTS: "-Xms64m -Xmx192m"
|
||||
mem_limit: 448m
|
||||
ports:
|
||||
- "127.0.0.1:8080:8080"
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
# 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.
|
||||
|
||||
## Read this first: branch and review state
|
||||
|
||||
- Repository: https://myfileagent.tech/myfileagent/myfileagent-pipeline
|
||||
- PR [#17](https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/17) was approved by `nkogut` for head `c1cd3ad9af12e11af7c08c398c5fc93649cfd556` and merged to `main` as `6ba31a3b44906b5c19faa7ccba601e69798b142a`. Check the **merge parents**, not the PR's moving head, when reconstructing what was reviewed.
|
||||
- Commit `88f3bb0d0aeffe3fe122ea3f5f797817e8c5523f` was pushed to `assignment8/secure-delivery` **after** PR #17 merged. It is not in that merge or in main as of this handoff. It fixes dependency-audit coverage and evidence handling. This handoff and the accompanying v2 preview patch are additional branch changes. Open a new PR against main for these changes, run checks against its exact head, and obtain the required independent review; do not treat PR #17's approval as approval of later commits.
|
||||
- On the Droplet, the v1 worktree is `/home/codex/myfileagent-gitea/assignment8-secure-delivery`. The local v2 preview worktree is `/home/codex/myfileagent-gitea/assignment8-v2-preview`, branch `assignment8/v2-preview`, commit `2147b21640a3a644e9ab156bca9e7b5a82af4011`. That preview has **not** been pushed or reviewed. `v2-preview.patch` alongside this file preserves that commit for a partner who only has Gitea access. Apply it to a new branch based on the final reviewed v1 state, inspect it, and test it; do not include it in the v1 release.
|
||||
|
||||
## Verified foundation
|
||||
|
||||
- Existing Gitea, Jenkins, Caddy, Prometheus, Grafana, Blackbox Exporter, and Node Exporter were running at the last check. Continue to preserve their configurations and data.
|
||||
- Jenkins has a dedicated `assignment8-trusted` agent. Its image definition and validated Compose recreation template are in `agent/`. The running container was created separately and has not been recreated with that template. The Docker socket group is currently 987; verify before any recreation. Docker socket access and the `a8deploy` account's passwordless root sudo are effectively host-administrator access. Restrict use to reviewed code and authorized jobs. Agent SSH host key is pinned in `ansible/known_hosts`; inventory uses the private gateway `172.20.0.1`. The gateway can change if the network is recreated: verify before use.
|
||||
- With explicit team approval, Jenkins stores `assignment8-deploy-ssh` as a **Global** credential for `a8deploy`. Jenkins build [#4](https://ci.myfileagent.tech/job/assignment8-validation/4/console) verified SSH and sudo. Jenkins credentials `assignment8-registry-write` and `assignment8-registry-read` are configured separately; never put secret values in Git, prompts, logs or the manual. The root Docker client authenticated with the read credential in [build #5](https://ci.myfileagent.tech/job/assignment8-validation/5/console). Docker warned the credential is stored unencrypted in `/root/.docker/config.json`; limit access and remove it after assessment. A successful login is not proof of an actual image push or pull.
|
||||
- `staging.myfileagent.tech` and `app.myfileagent.tech` were configured in DNS and Caddy. Both returned valid TLS and HTTP 502 before application containers existed. Gitea, Jenkins and Grafana HTTPS returned 200 after the proxy reload. The saved previous proxy config is `/home/codex/myfileagent-gitea/Caddyfile.before-assignment8`.
|
||||
- The v1 app is under `secure-delivery/v1`, with pinned direct/transitive requirements and a pinned Python Alpine base image. Three unit tests passed. A test image passed an isolated health/version/price check and a HIGH/CRITICAL image scan; it used a placeholder source identity and is not a release.
|
||||
- The supplied v2 starter and the isolated v2 preview each passed three unit tests. No v2 release image exists yet.
|
||||
|
||||
## Evidence and limitations
|
||||
|
||||
- Jenkins validation [#8](https://ci.myfileagent.tech/job/assignment8-validation/8/console) passed for commit `65e4011`; validation [#9](https://ci.myfileagent.tech/job/assignment8-validation/9/console) passed for `c1cd3ad`, including tests, the then-current dependency audit, secret scan, Ansible syntax, image build and image scan. Gitea reported its own PR check successful for `c1cd3ad`.
|
||||
- **Dependency audit correction:** the prior resolved pip-audit report listed eight of nine pinned packages and omitted `packaging`. A separate stricter audit using `--disable-pip --no-deps` listed all nine and found no known vulnerabilities on 7 November. Commit `88f3bb0` updates the pipelines to use that mode; it needs review and a complete Jenkins run on the final commit. Findings can change with the database.
|
||||
- **Artifact caution:** during build #9, a separate direct test wrote `secret-scan-summary.json` into the shared workspace shortly before archiving. That summary is independent test output, not build #9 evidence. Its image scan report and build log are separate. Guard-test #6 also archived stale reports; do not use those as #6 evidence. Guard-test [#7](https://ci.myfileagent.tech/job/assignment8-validation/7/console) blocked the unmerged branch before publication and archived no files.
|
||||
- A controlled unit-test failure in [test-gate build #1](https://ci.myfileagent.tech/job/assignment8-test-gate-demo/1/console) skipped the following demonstration delivery stage. The test was restored and all three tests passed afterward. A disposable key triggered the secret scanner and blocked [secret-gate build #4](https://ci.myfileagent.tech/job/assignment8-secret-gate-demo/4/console); the fixture was removed. The updated redacted summary was also tested directly with clean input and a disposable-key fixture, but not yet in a full updated pipeline.
|
||||
- Detailed chronological notes are in `WORK_LOG.md`. Raw scan and exercise evidence is under `/home/codex/myfileagent-gitea/evidence/assignment8` on the Droplet; examine and redact before copying anything into the repository or manual. Do not publish real keys or tokens.
|
||||
|
||||
## Continue in this order
|
||||
|
||||
1. Fetch `main` and the latest `assignment8/secure-delivery` branch. Review the delta after the PR #17 merge, especially `88f3bb0`, `Jenkinsfile.release.draft`, `Jenkinsfile.security`, `scan-secrets.sh`, the agent configuration and this handoff. Open a new PR for the unmerged fixes; run the updated security pipeline on its exact head and obtain the required independent review. Preserve branch protection.
|
||||
2. The release pipeline is a **draft**, not an end-to-end verified production pipeline. Review its Groovy, credentials, source/config identity, report capture, restricted `ssw590` approval, idempotence check, registry digest selection and target pull. The source guard intentionally blocks a branch head not already in protected main. Groovy parsing and that guard were tested; later release stages have not been exercised. Configure the release job to use the reviewed main revision only after the changes are approved and merged.
|
||||
3. Recheck Gitea organization package-write permission for `glovely` and read access for the target with an actual release push and authenticated pull. The registry login worked, the token reported `write:package`, and read-only database inspection showed `glovely` on the organization Owners team; publication itself has not been proven. Build once from the reviewed commit, scan the actual image, publish it, and record the immutable registry digest. Do not substitute a local image ID.
|
||||
4. Deploy v1 to staging using Ansible and its release record. Verify HTTPS health, version, full baked source commit, and quantity-3 total 30. Repeat the unchanged playbook and capture `changed=0`. After a real restricted human Jenkins approval, promote the **same digest** to production and verify the same behavior. Record actual approver, times, build, source/config commits, scans, URLs and image digest. Never approve the human gate on the user's behalf.
|
||||
5. After v1 is verified and preserved, create a separately reviewed v2 commit using the preview patch as reference, update `release-intent.json` to v2/36, and run the complete build, scan, staging, approval and production flow. Retain the v1 image and matching configuration.
|
||||
6. Perform both required exercises: (a) roll healthy production v2 back to v1 image **and matching configuration**, verify v1/30 and measure interruption; (b) staging only, use the instructor's Gunicorn 8001 mismatch while the image healthcheck remains on 8000, show the Jenkins failure, restore the previous reviewed config and verify recovery. Preserve timestamps and evidence; do not stop shared services, delete volumes or claim zero downtime.
|
||||
7. Add the production health probe to the existing Blackbox/Grafana monitoring, retain the earlier probes and metrics, and correlate actual observations with release and rollback times. Complete the release, failure, rollback and cleanup runbooks; describe single-Droplet and stateful-migration limitations.
|
||||
8. Update the existing team IT manual (Assignment 7 v1.9.2 baseline) with a chapter titled **Secure Delivery and Rollback**, actual architecture, versions, traceability table, redacted evidence, runbooks, history and AI log. Build and visually verify one final PDF and include grader access instructions. Do not claim work that was not performed.
|
||||
|
||||
## Access and handling
|
||||
|
||||
The user has repeatedly run `/home/codex/myfileagent-gitea/push-assignment8-private.py` as `codex` to authenticate feature-branch pushes. Do not ask them to paste credentials into chat. Jenkins' existing `assignment8-validation` job should point to `secure-delivery/Jenkinsfile.security`; it was temporarily changed for SSH and guard checks and then restored. Recheck its configuration and exact job revision before relying on a result. Existing users must make the required review and production approval decisions themselves.
|
||||
|
||||
## Monitoring continuation, 8 November 2026
|
||||
|
||||
- At 16:01:05 UTC the live Assignment 7 Prometheus configuration was extended with `https://app.myfileagent.tech/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,19 @@
|
||||
pipeline {
|
||||
agent { label 'assignment8-trusted' }
|
||||
options { skipDefaultCheckout(); timeout(time: 5, unit: 'MINUTES') }
|
||||
stages {
|
||||
stage('Checkout') { steps { checkout scm } }
|
||||
stage('Authenticate target registry reader') {
|
||||
steps {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY', usernameVariable: 'DEPLOY_USER'), usernamePassword(credentialsId: 'assignment8-registry-read', usernameVariable: 'REG_USER', passwordVariable: 'REG_TOKEN')]) {
|
||||
sh '''#!/bin/sh
|
||||
set +x
|
||||
set -eu
|
||||
case "$REG_USER" in *[!a-zA-Z0-9_.-]*|'') echo 'Invalid registry username' >&2; exit 1;; esac
|
||||
printf '%s' "$REG_TOKEN" | ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile="$WORKSPACE/secure-delivery/ansible/known_hosts" -i "$DEPLOY_KEY" "$DEPLOY_USER@172.20.0.1" "sudo -n docker login myfileagent.tech --username $REG_USER --password-stdin"
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
pipeline {
|
||||
agent { label 'assignment8-trusted' }
|
||||
options { disableConcurrentBuilds(); skipDefaultCheckout(); timeout(time: 45, unit: 'MINUTES'); timestamps() }
|
||||
environment { IMAGE_REPO = 'myfileagent.tech/myfileagent/pricing' }
|
||||
stages {
|
||||
stage('Checkout reviewed source') {
|
||||
steps {
|
||||
deleteDir()
|
||||
checkout scm
|
||||
sh '''set -eu
|
||||
# Only source already present in protected main can be released.
|
||||
git fetch origin main
|
||||
git merge-base --is-ancestor HEAD origin/main
|
||||
mkdir -p reports releases/generated
|
||||
'''
|
||||
script {
|
||||
env.SOURCE_COMMIT = sh(script: 'git rev-parse HEAD', returnStdout: true).trim()
|
||||
env.RELEASE_VERSION = sh(script: "python3 -c 'import json; print(json.load(open(\"secure-delivery/release-intent.json\"))[\"version\"])'", returnStdout: true).trim()
|
||||
if (!(env.RELEASE_VERSION in ['v1', 'v2'])) { error('Unknown release version') }
|
||||
env.EXPECTED_TOTAL = env.RELEASE_VERSION == 'v1' ? '30' : '36'
|
||||
def configured = sh(script: "python3 -c 'import json; print(json.load(open(\"secure-delivery/release-intent.json\"))[\"quantity3_total\"])'", returnStdout: true).trim()
|
||||
if (configured != env.EXPECTED_TOTAL) { error('Release intent total does not match the version') }
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Tests and dependency audit') {
|
||||
steps { dir('secure-delivery/v1') { sh '''set -eu
|
||||
python3 -m venv .test-venv
|
||||
.test-venv/bin/pip install -r requirements.txt pip-audit==2.10.1
|
||||
.test-venv/bin/python -m unittest -v
|
||||
.test-venv/bin/pip-audit --disable-pip --no-deps -r requirements.txt -f json -o "$WORKSPACE/reports/dependency-audit.json"
|
||||
''' } }
|
||||
}
|
||||
stage('Repository secret scan') { steps { sh 'sh secure-delivery/scan-secrets.sh' } }
|
||||
stage('Ansible syntax') { steps { dir('secure-delivery') { sh 'ansible-playbook -i ansible/inventory.ini ansible/deploy.yml --syntax-check' } } }
|
||||
stage('Build once') { steps { sh 'docker build --build-arg APP_COMMIT="$SOURCE_COMMIT" -t "$IMAGE_REPO:$SOURCE_COMMIT" secure-delivery/v1' } }
|
||||
stage('Image security scan') {
|
||||
steps { sh '''set -eu
|
||||
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/codex/myfileagent-gitea/evidence/assignment8/trivy-cache:/root/.cache/ aquasec/trivy@sha256:1c78ed1ef824ab8bb05b04359d186e4c1229d0b3e67005faacb54a7d71974f73 image --quiet --scanners vuln --severity HIGH,CRITICAL --exit-code 1 --format json "$IMAGE_REPO:$SOURCE_COMMIT" > reports/image-scan.json
|
||||
''' }
|
||||
}
|
||||
stage('Publish immutable image') {
|
||||
steps {
|
||||
withCredentials([usernamePassword(credentialsId: 'assignment8-registry-write', usernameVariable: 'REG_USER', passwordVariable: 'REG_TOKEN')]) {
|
||||
sh '''#!/bin/sh
|
||||
set +x
|
||||
set -eu
|
||||
export DOCKER_CONFIG=$(mktemp -d)
|
||||
trap 'rm -rf "$DOCKER_CONFIG"' EXIT
|
||||
printf '%s' "$REG_TOKEN" | docker login myfileagent.tech --username "$REG_USER" --password-stdin
|
||||
docker push "$IMAGE_REPO:$SOURCE_COMMIT"
|
||||
docker pull "$IMAGE_REPO:$SOURCE_COMMIT"
|
||||
docker image inspect "$IMAGE_REPO:$SOURCE_COMMIT" --format '{{index .RepoDigests 0}}' > reports/image-digest.txt
|
||||
'''
|
||||
}
|
||||
script {
|
||||
env.RELEASE_IMAGE = readFile('reports/image-digest.txt').trim()
|
||||
if (!(env.RELEASE_IMAGE ==~ /myfileagent\.tech\/myfileagent\/pricing@sha256:[0-9a-f]{64}/)) { error('Registry digest is missing or unexpected') }
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Pull published digest on target') {
|
||||
steps {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY', usernameVariable: 'DEPLOY_USER')]) {
|
||||
sh '''#!/bin/sh
|
||||
set +x
|
||||
set -eu
|
||||
ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile="$WORKSPACE/secure-delivery/ansible/known_hosts" -i "$DEPLOY_KEY" "$DEPLOY_USER@172.20.0.1" sudo -n docker pull "$RELEASE_IMAGE" > reports/target-pull.txt
|
||||
cat reports/target-pull.txt
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy staging') {
|
||||
steps {
|
||||
script { writeFile file: "releases/generated/${env.RELEASE_VERSION}-staging.yml", text: "target_env: staging\nrelease_image: ${env.RELEASE_IMAGE}\nexpected_version: ${env.RELEASE_VERSION}\nexpected_commit: ${env.SOURCE_COMMIT}\nconfiguration_commit: ${env.SOURCE_COMMIT}\nbuild_url: ${env.BUILD_URL}\nexpected_total: ${env.EXPECTED_TOTAL}\npublic_url: https://staging.myfileagent.tech\nproxy_network: myfileagent-gitea_gitea-private\n" }
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY')]) {
|
||||
sh '''set +x
|
||||
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 @releases/generated/$RELEASE_VERSION-staging.yml
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Confirm staging idempotence') {
|
||||
steps {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY')]) {
|
||||
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 @releases/generated/$RELEASE_VERSION-staging.yml > reports/staging-second-run.txt
|
||||
cat reports/staging-second-run.txt
|
||||
grep -Eq 'startup[[:space:]]*:.*changed=0[[:space:]]+unreachable=0[[:space:]]+failed=0' reports/staging-second-run.txt
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Production approval') {
|
||||
steps {
|
||||
script {
|
||||
def approver = timeout(time: 30, unit: 'MINUTES') { input message: "Source/configuration: ${env.SOURCE_COMMIT}\nImage: ${env.RELEASE_IMAGE}\nSecurity gates: passed\nStaging checks and unchanged rerun: passed\nEvidence: ${env.BUILD_URL}\nApprove production promotion?", ok: 'Promote', 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()}\nBuild: ${env.BUILD_URL}\nSource and configuration commit: ${env.SOURCE_COMMIT}\nImage: ${env.RELEASE_IMAGE}\nVersion: ${env.RELEASE_VERSION}\nExpected total for 3: ${env.EXPECTED_TOTAL}\nStaging and scans: passed\n"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy production') {
|
||||
steps {
|
||||
script { writeFile file: "releases/generated/${env.RELEASE_VERSION}-production.yml", text: "target_env: production\nrelease_image: ${env.RELEASE_IMAGE}\nexpected_version: ${env.RELEASE_VERSION}\nexpected_commit: ${env.SOURCE_COMMIT}\nconfiguration_commit: ${env.SOURCE_COMMIT}\nbuild_url: ${env.BUILD_URL}\nexpected_total: ${env.EXPECTED_TOTAL}\npublic_url: https://app.myfileagent.tech\nproxy_network: myfileagent-gitea_gitea-private\n" }
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY')]) {
|
||||
sh '''set +x
|
||||
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 @releases/generated/$RELEASE_VERSION-production.yml
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post { always { archiveArtifacts artifacts: 'reports/*,releases/generated/*', allowEmptyArchive: true } }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
pipeline {
|
||||
agent { label 'assignment8-trusted' }
|
||||
options { disableConcurrentBuilds(); timeout(time: 20, unit: 'MINUTES'); timestamps(); skipDefaultCheckout() }
|
||||
stages {
|
||||
stage('Checkout') { steps { deleteDir(); checkout scm; sh 'mkdir -p reports' } }
|
||||
stage('Unit tests and dependency audit') {
|
||||
steps { dir('secure-delivery/v1') { sh '''set -eu
|
||||
python3 -m venv .test-venv
|
||||
.test-venv/bin/pip install -r requirements.txt pip-audit==2.10.1
|
||||
.test-venv/bin/python -m unittest -v
|
||||
.test-venv/bin/pip-audit --disable-pip --no-deps -r requirements.txt -f json -o "$WORKSPACE/reports/dependency-audit.json"
|
||||
''' } }
|
||||
}
|
||||
stage('Secret scan') { steps { sh 'sh secure-delivery/scan-secrets.sh' } }
|
||||
stage('Ansible syntax') { steps { dir('secure-delivery') { sh 'ansible-playbook -i ansible/inventory.ini ansible/deploy.yml --syntax-check' } } }
|
||||
stage('Build test image') { steps { sh 'docker build --build-arg APP_COMMIT=$(git rev-parse HEAD) -t assignment8-pricing:security-check secure-delivery/v1' } }
|
||||
stage('Image vulnerability scan') {
|
||||
steps { sh '''set -eu
|
||||
mkdir -p reports
|
||||
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/codex/myfileagent-gitea/evidence/assignment8/trivy-cache:/root/.cache/ aquasec/trivy@sha256:1c78ed1ef824ab8bb05b04359d186e4c1229d0b3e67005faacb54a7d71974f73 image --quiet --scanners vuln --severity HIGH,CRITICAL --exit-code 1 --format json assignment8-pricing:security-check > reports/image-scan.json
|
||||
''' }
|
||||
}
|
||||
}
|
||||
post { always { archiveArtifacts artifacts: 'reports/*.json', allowEmptyArchive: true } }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
pipeline {
|
||||
agent { label 'assignment8-trusted' }
|
||||
options { timeout(time: 5, unit: 'MINUTES'); skipDefaultCheckout() }
|
||||
stages {
|
||||
stage('Checkout') { steps { checkout scm } }
|
||||
stage('Verify deployment connection') {
|
||||
steps {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'assignment8-deploy-ssh', keyFileVariable: 'DEPLOY_KEY', usernameVariable: 'DEPLOY_USER')]) {
|
||||
sh '''set +x
|
||||
set -eu
|
||||
ssh -o BatchMode=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile="$WORKSPACE/secure-delivery/ansible/known_hosts" -i "$DEPLOY_KEY" "$DEPLOY_USER@172.20.0.1" 'id; sudo -n id'
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
pipeline {
|
||||
agent { label 'assignment8-trusted' }
|
||||
options { timeout(time: 10, unit: 'MINUTES') }
|
||||
stages {
|
||||
stage('Checkout v1') {
|
||||
steps { git branch: 'assignment8/secure-delivery', url: 'https://myfileagent.tech/myfileagent/myfileagent-pipeline.git' }
|
||||
}
|
||||
stage('Controlled failing test') {
|
||||
steps {
|
||||
dir('secure-delivery/v1') {
|
||||
sh '''#!/bin/sh
|
||||
set -eu
|
||||
python3 -m venv .test-venv
|
||||
.test-venv/bin/pip install -r requirements.txt
|
||||
trap 'git checkout -- test_app.py' EXIT
|
||||
python3 -c 'from pathlib import Path; p=Path("test_app.py"); s=p.read_text(); old="self.assertEqual(total_price(3), 30)"; assert old in s; p.write_text(s.replace(old,"self.assertEqual(total_price(3), 31)",1))'
|
||||
.test-venv/bin/python -m unittest -v
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Delivery would proceed') {
|
||||
steps { echo 'This stage must be skipped when tests fail.' }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
# Secure delivery operations (draft)
|
||||
|
||||
These procedures must be updated with verified hostnames, release records, commit links and actual roles before use. Never put passwords, tokens or private keys in release records or logs.
|
||||
|
||||
## Release
|
||||
1. Review source and configuration changes. Record source commit, configuration commit, base digest, locked dependencies, scan reports, build ID, resulting image digest and expected behavior.
|
||||
2. Deploy that digest to staging with the reviewed Ansible configuration. Verify HTTPS health, version, full source commit and price for quantity three. Run the same playbook again and investigate any unexpected changes.
|
||||
3. An authorized person reviews the digest, scan and staging results in Jenkins. Record their identity and decision. If rejected or timed out, stop.
|
||||
4. Promote the same digest to production using its matching release record and verify the same checks. Record times and monitoring observations.
|
||||
|
||||
## Failed staging deployment
|
||||
Stop promotion. Preserve the failed build and checks. Restore the last reviewed template/configuration commit and its matching release record, rerun Ansible and verify HTTPS health, identity and business result. The playbook does not roll back automatically. Avoid changing shared Docker, proxy or monitoring services.
|
||||
|
||||
## Production rollback
|
||||
Record decision and start time. Restore the reviewed v1 deployment configuration and v1 production release record, then run Ansible. Verify health, v1 identity, original source commit and total 30. Record recovery time and observed interruption. This stateless demonstration does not prove a real database migration can be rolled back; use an expand-and-contract compatible migration for stateful services.
|
||||
|
||||
## Cleanup after grading
|
||||
Only when assessment and retention requirements permit, remove the two application projects, their routes, test DNS records and dedicated credentials. Preserve shared volumes, infrastructure and required evidence. Do not use compose down -v or system pruning.
|
||||
@@ -0,0 +1,7 @@
|
||||
# Assignment 8 release security policy
|
||||
|
||||
The trusted release job must run only reviewed source and must not expose deployment or registry credentials to pull-request builds. Restrict the agent to labeled release jobs and authorized Jenkins users. Docker daemon access confers host-administrator privileges. Record agent identity, access scope, tool versions, scan time, database version, exit status, and archived reports for each release.
|
||||
|
||||
Before publication, fail on discovered secrets and on HIGH or CRITICAL vulnerabilities unless a documented time-limited exception is accepted by the instructor. Fail closed if a scanner fails or its database is unavailable. Investigate false positives and unfixed findings; document owner, reason, expiry, and approval for any exception. Never publish a deliberately vulnerable image as the working release.
|
||||
|
||||
Run a dependency audit against the exact locked requirements, a repository secret scan, and an image vulnerability scan against the built release image. Demonstrate a blocked gate with a scanner-supported synthetic fixture and remove it before release. The initial pip-audit result in WORK_LOG.md is a baseline, not the final release scan.
|
||||
@@ -24,3 +24,75 @@
|
||||
|
||||
## Validation preparation
|
||||
- Ansible syntax check passed on assignment8-trusted against the starter playbook on 2026-11-04. The inventory and release records still contain placeholders; syntax success is not deployment. Added a separate draft validation Jenkinsfile for tests and syntax checks; it has not been run in Jenkins.
|
||||
|
||||
## Gitea-backed validation
|
||||
- Published branch assignment8/secure-delivery at 242372e381ecbcab4078e7d8c0916073d600d970. Jenkins assignment8-validation build #1 checked out that commit on assignment8-trusted, passed all 3 v1 unit tests and passed Ansible syntax check. Evidence: https://ci.myfileagent.tech/job/assignment8-validation/1/console . This does not demonstrate deployment, security gates, or image publication.
|
||||
|
||||
## Initial image security checks
|
||||
- User approved host Docker daemon access for the label-restricted trusted agent; its connection was verified. This access is effectively host administration. Agent-built test image succeeded with placeholder identity, not a release.
|
||||
- Trivy 0.69.1 scan of the Debian slim test image failed the HIGH/CRITICAL gate: 45 Debian and 5 Python findings. A pinned Python Alpine candidate had no OS findings but 5 Python tooling findings. After removing pip and ensurepip bundled wheels from runtime, the candidate scan reported zero HIGH/CRITICAL findings, exit 0, at the time of scan. Reports are in server evidence/assignment8; rescan the actual release image and archive results.
|
||||
- Isolated candidate smoke test initially ran before startup and got connection refused; after allowing startup, health was ok, v1 identity returned development placeholder, and quantity 3 returned 30. No production deployment occurred.
|
||||
|
||||
- Trivy 0.69.1 secret scanner standalone test: an example-format fixture was ignored (exit 0), then a newly generated disposable private-key fixture produced one finding and exit 1. Both fixture files were removed. This proves scanner behavior only; a blocked Jenkins pipeline run remains required.
|
||||
|
||||
## Jenkins synthetic secret gate
|
||||
- Jenkins assignment8-secret-gate-demo #4 detected one generated disposable private key and failed with scanner exit 1; the job removed the fixture. Earlier attempts #1-3 failed due to transfer or job-script errors, not secret detections. Evidence: https://ci.myfileagent.tech/job/assignment8-secret-gate-demo/4/console . Prepared source-controlled security pipeline; it has not yet been run.
|
||||
|
||||
## Jenkins security validation build #2
|
||||
- Jenkins assignment8-validation #2 checked out commit 28d13ef5b8757645bee640ca1dd9a8eea417ce18 on assignment8-trusted. Three unit tests, pip-audit, v1 application-source secret scan, Ansible syntax, image build and HIGH/CRITICAL image scan all passed; image JSON report was archived. Evidence: https://ci.myfileagent.tech/job/assignment8-validation/2/console . Agent briefly disconnected and reconnected during syntax check; build completed successfully. This was a test image, not a registry-published or deployed release. Secret scan currently covers v1 source, not the entire repository.
|
||||
- Added .test-venv to Docker ignore after observing a 47 MB test environment in the build context; this change has not yet run in Jenkins.
|
||||
- At inspection, staging.myfileagent.tech and app.myfileagent.tech did not resolve via the Droplet resolver. Existing Caddy routes serve Gitea, Jenkins and Grafana; no pricing routes added yet.
|
||||
|
||||
- Expanded secret scan to the checked-out repository (excluding Git metadata, disposable test environment and generated reports); direct agent test returned zero findings and exit 0. This change still requires a Jenkins run after publication.
|
||||
|
||||
## Jenkins validation #3 and deployment preparation
|
||||
- Jenkins assignment8-validation #3 succeeded for commit dd7c12c519b14f59d9842ebd6d417e7117d92e94, including tests, dependency audit, expanded repository secret scan, Ansible syntax, image build and HIGH/CRITICAL image scan; report archived. Evidence: https://ci.myfileagent.tech/job/assignment8-validation/3/console . Build context was 7.68 kB after excluding test venv.
|
||||
- Verified agent-to-host private SSH gateway 172.20.0.1 matches the host ED25519 fingerprint SHA256:CXrEv4+pv1jTwBtwxdTGlouS6I4H1Q6TkKbvQrbacu0. Prepared inventory and verified public known_hosts entry; dedicated account and Jenkins SSH credential are not yet configured. Prepared private deployment key and a reviewable administrator setup script, not yet executed. Gitea registry endpoint returns 401 as expected for authentication; registry push/pull has not been verified.
|
||||
|
||||
## Deployment access and DNS verification
|
||||
- On 2026-11-04, a8deploy account existed. Both staging.myfileagent.tech and app.myfileagent.tech resolved to 142.93.193.110 via Droplet resolver. From assignment8-trusted, SSH using the dedicated private key and pinned host key returned uid 1001; sudo -n id returned root. The test key was removed from the agent after verification. Passwordless sudo grants host-administrator access. No Jenkins SSH credential configured yet.
|
||||
- Prepared Caddy route and v1 release-record templates; neither route nor application deployment has been applied. Registry endpoint requires authentication; no registry package-write or package-read credential has been verified.
|
||||
|
||||
## Jenkins deployment credential
|
||||
- With explicit team approval for Global scope, created Jenkins credential assignment8-deploy-ssh for a8deploy. It permits host-administrator access through the deployment account. A temporary key copy on the controller was removed after credential creation; credential binding still needs a Jenkins job verification.
|
||||
|
||||
- Jenkins assignment8-validation #4 successfully bound the approved assignment8-deploy-ssh credential on assignment8-trusted, verified pinned SSH host key, connected as a8deploy, and confirmed noninteractive root sudo. Evidence: https://ci.myfileagent.tech/job/assignment8-validation/4/console . Job currently points to Jenkinsfile.ssh-check; restore security validation before further security runs. Registry endpoint requires authentication and no Jenkins package-specific credential was found.
|
||||
|
||||
## Registry authentication
|
||||
- Jenkins assignment8-registry-check #1 authenticated to myfileagent.tech using assignment8-registry-write, with a temporary Docker config removed at job exit. Evidence: https://ci.myfileagent.tech/job/assignment8-registry-check/1/console . Login alone does not prove permission to publish to the myfileagent organization or target-host pull access.
|
||||
|
||||
- Restored assignment8-validation job configuration to Jenkinsfile.security after SSH check. Registry login #1 succeeded using a temporary Docker config, which the job removed. The glovely credential can authenticate, but organization package write and target-host read remain unverified.
|
||||
|
||||
## Proxy preparation
|
||||
- Validated and reloaded existing Caddy configuration with staging.myfileagent.tech -> pricing-staging:8000 and app.myfileagent.tech -> pricing-production:8000. Saved previous configuration at /home/codex/myfileagent-gitea/Caddyfile.before-assignment8. Gitea, Jenkins and Grafana HTTPS login routes returned 200 with certificate validation. New staging and app HTTPS endpoints returned 502 with certificate validation successful, expected before app containers exist. One initial staging DNS lookup timed out; retry reached HTTPS.
|
||||
- Jenkinsfile.release.draft is untested and not enabled. It requires reviewed source on protected main, package publication rights, target registry authentication, scan and deployment validation before operational use.
|
||||
|
||||
- Prepared Jenkinsfile.registry-read-setup to configure root Docker registry authentication using a separate read-only Jenkins credential over pinned SSH. Draft only; not run. Root Docker configuration will hold authentication material and must be protected and removed after assessment.
|
||||
|
||||
## Registry reader and release guard
|
||||
- Jenkins assignment8-validation #5 authenticated the Droplet root Docker client with assignment8-registry-read; login succeeded. Docker warned that its root configuration stores credentials without encryption; restrict access and remove after assessment. Actual image pull has not yet been proven. Evidence: https://ci.myfileagent.tech/job/assignment8-validation/5/console .
|
||||
- Draft release pipeline parsed and Jenkins build #6 stopped at the protected-main ancestry guard for the unmerged feature commit; image publication and deployment stages were skipped. Evidence: https://ci.myfileagent.tech/job/assignment8-validation/6/console . Added a workspace clean before checkout to prevent old reports being archived in future runs; that revision remains untested.
|
||||
- Build #6 used a reused workspace and its post step archived pre-existing reports; those artifacts are stale and must not be presented as build #6 scan evidence. The draft now deletes the workspace before checkout to prevent recurrence; that correction is not yet verified.
|
||||
|
||||
## 2026-11-07 release draft review
|
||||
- Verified branch b8a2529 on Gitea, shared services healthy and pricing routes still return 502 while application is absent. Jenkins guard build #7 rejected unmerged source before image publication; no files were archived. https://ci.myfileagent.tech/job/assignment8-validation/7/console
|
||||
- Extended the local release draft to explicitly pull the published digest on the target and read a reviewed version/expected-total intent for v1 and v2. Jenkins Groovy 2.4 parser accepted syntax only; stages after the source guard, registry publication, promotion, and recovery remain untested. The v2 source is not yet applied.
|
||||
- Hardened the secret scan to fail if the source archive fails, then directly tested it on the trusted agent: zero findings and exit 0. No claim is made about a new Jenkins pipeline run.
|
||||
|
||||
- Registry permission-only check #4 returned token scope write:package; this does not prove glovely can publish to the organization. https://ci.myfileagent.tech/job/assignment8-registry-check/4/console
|
||||
- Jenkins assignment8-test-gate-demo #1 deliberately changed one pricing assertion in its own workspace; the test failed (30 versus 31), and its following demonstration delivery stage was skipped. The trap restored the test, git diff confirmed no test change, and all three tests subsequently passed directly on the agent. https://ci.myfileagent.tech/job/assignment8-test-gate-demo/1/console
|
||||
- Supplied v2 starter was tested separately on the trusted agent: all three tests passed. It has not been applied to the reviewed v1 source, committed as v2, built, published, or deployed.
|
||||
|
||||
- Prepared reproducible agent Compose configuration and validated it with docker compose config; it documents the currently used Docker socket group and private network but has not replaced the running container.
|
||||
- Prepared isolated v2 preview commit 2147b21 on local branch assignment8/v2-preview based on the v1 feature branch. It changes the application/tests and release intent; all three tests passed on the trusted agent. It is not yet reviewed, published, built as a release or deployed, and must be based on the final reviewed v1 state before promotion.
|
||||
|
||||
- Jenkins security validation #8 passed on Gitea commit 65e401172b0e4ec40116df0d07876484020ce454, including three unit tests, dependency audit, repository secret scan, Ansible syntax, image build and HIGH/CRITICAL image scan. The scan report was archived: https://ci.myfileagent.tech/job/assignment8-validation/8/console . This is validation of that commit, not an approved release.
|
||||
- Agent Compose draft was checked against the running image, socket group, memory and restart policy and passed docker compose config. It has not been used to recreate the agent.
|
||||
|
||||
## PR-head validation and report corrections
|
||||
- PR #17 was checked at c1cd3ad9af12e11af7c08c398c5fc93649cfd556; Gitea reported its existing PR Jenkins check successful. Jenkins assignment8-validation #9 ran the separate security pipeline on that head.
|
||||
- During #9, a separate direct test of the revised secret-scan summary wrote a summary file into the shared validation workspace shortly before artifact archiving. That summary is independent test output, not generated by build #9, and must not be presented as #9 evidence. The build log and its own image-scan report remain distinct. Future validation now starts with a clean workspace; the updated pipeline and scan summary remain unvalidated in a full Jenkins run.
|
||||
|
||||
- Follow-up audit review found the prior pip-audit resolved report listed eight of nine pinned packages and omitted packaging==26.3; earlier green dependency-audit results should not be characterized as covering every pinned input. Tested pip-audit --disable-pip --no-deps against the exact pinned requirements: all nine listed, zero known vulnerabilities on 2026-11-07. Updated local security and release pipeline drafts to use this mode; the updated Jenkins pipeline has not yet been run.
|
||||
- Revised secret scanner produces a redacted JSON summary and independently detected one disposable key with exit 1; its clean-source test reported zero findings. Both revised Jenkinsfiles passed Groovy parsing, but parsing alone does not establish end-to-end behavior.
|
||||
- Read-only inspection of Gitea organization membership showed glovely in the myfileagent Owners team. Together with the token scope check this supports, but does not prove, package publication access; an actual registry push is still required.
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# Run only after reviewing host paths, Docker socket group and privileges.
|
||||
services:
|
||||
assignment8-agent:
|
||||
image: assignment8-jenkins-agent:2
|
||||
build: .
|
||||
container_name: assignment8-jenkins-agent
|
||||
restart: unless-stopped
|
||||
mem_limit: 256m
|
||||
group_add:
|
||||
- "987" # Current Docker socket group; verify on the target host.
|
||||
networks:
|
||||
- private
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /home/codex/myfileagent-gitea/secrets/assignment8-agent-secret:/run/secrets/agent-secret:ro
|
||||
entrypoint: ["java"]
|
||||
command: ["-jar", "/usr/share/jenkins/agent.jar", "-url", "http://myfileagent-jenkins:8080/", "-webSocket", "-secret", "@/run/secrets/agent-secret", "-name", "assignment8-trusted", "-workDir", "/home/jenkins/agent"]
|
||||
networks:
|
||||
private:
|
||||
external: true
|
||||
name: myfileagent-gitea_gitea-private
|
||||
@@ -0,0 +1,7 @@
|
||||
# Add to the existing Caddy configuration; preserve all existing routes.
|
||||
staging.myfileagent.tech {
|
||||
reverse_proxy pricing-staging:8000
|
||||
}
|
||||
app.myfileagent.tech {
|
||||
reverse_proxy pricing-production:8000
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
# Run as root after reviewing the deployment privilege scope.
|
||||
set -eu
|
||||
[ "$(id -u)" -eq 0 ] || { echo "Run as root" >&2; exit 1; }
|
||||
key=/home/codex/myfileagent-gitea/secrets/assignment8-deploy.pub
|
||||
[ -s "$key" ] || { echo "Deployment public key missing" >&2; exit 1; }
|
||||
if ! id a8deploy >/dev/null 2>&1; then useradd -m -s /bin/bash a8deploy; fi
|
||||
home=$(getent passwd a8deploy | cut -d: -f6)
|
||||
[ "$home" = /home/a8deploy ] || { echo "Unexpected account home" >&2; exit 1; }
|
||||
install -d -o a8deploy -g a8deploy -m 700 "$home/.ssh"
|
||||
touch "$home/.ssh/authorized_keys"
|
||||
chown a8deploy:a8deploy "$home/.ssh/authorized_keys"
|
||||
chmod 600 "$home/.ssh/authorized_keys"
|
||||
grep -qxF "$(cat "$key")" "$home/.ssh/authorized_keys" || cat "$key" >> "$home/.ssh/authorized_keys"
|
||||
tmp=$(mktemp)
|
||||
trap 'rm -f "$tmp"' EXIT
|
||||
printf '%s\n' 'a8deploy ALL=(root) NOPASSWD: ALL' > "$tmp"
|
||||
visudo -cf "$tmp" >/dev/null
|
||||
install -o root -g root -m 440 "$tmp" /etc/sudoers.d/90-assignment8-deploy
|
||||
echo 'Assignment 8 deploy account prepared.'
|
||||