Finalize manual 1.11.1 diagram, chapter numbering and acceptance record
myfileagent-python-ci/pipeline/head There was a failure building this commit
Team manual PDF / manual (push) Successful in 2m20s

This commit is contained in:
Codex
2026-11-22 01:00:08 +00:00
parent e908359208
commit 3ba3940557
5 changed files with 64 additions and 67 deletions
+57 -65
View File
@@ -2,7 +2,8 @@
\ChapterLabel{SupportTicketManagement}
\index{Zammad}\index{support tickets}\index{least privilege}
\section{Scope, source identity, and evidence boundary}
% 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
@@ -19,9 +20,9 @@ which was newer than main. The isolated implementation worktree is
\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}.
Remote branch publication, independent review and the final Jenkins PDF build
are separate verification steps. The user explicitly instructed that no PDF
be compiled during this source-authoring stage.
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,
@@ -29,10 +30,10 @@ 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
remaining evidence gaps are listed at the end of this chapter.
historical baseline limitations are stated alongside their source evidence.
\end{devopsNote}
\section{1. Baseline, capacity and preservation of earlier work}
\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
@@ -92,7 +93,7 @@ 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{2. Official deployment revision and images}
\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
@@ -119,30 +120,46 @@ 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{3. Private networks, proxy and minimal settings}
\section{Private networks, proxy and minimal settings}
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[node distance=7mm,
every node/.style={draw,rounded corners,align=center,font=\footnotesize,text width=3.7cm,inner sep=4pt},
arrow/.style={-{Stealth},thick}]
\node (browser) {Customer / student / TA browser};
\node[below=of browser] (proxy) {Existing Caddy :443\\TLS and HTTP redirect};
\node[below=of proxy] (nginx) {Zammad nginx :8080\\existing edge + support network};
\node[below=of nginx] (app) {Rails :3000 / websocket\\scheduler / one-shot init};
\node[left=of app] (old) {Retained Gitea / Jenkins\\pricing staging + production};
\node[right=of app] (data) {PostgreSQL :5432\\Redis :6379 / Memcached :11211\\Elasticsearch :9200};
\node[below=of app] (vol) {Named storage / database / search\\Redis / backup volumes};
\node[right=of vol] (backup) {Official backup container\\private project network};
\node[left=of vol] (monitor) {Existing Prometheus + Blackbox\\Grafana + Node Exporter};
\draw[arrow] (browser)--(proxy);
\draw[arrow] (proxy)--node[right,draw=none,text width=2cm]{private HTTP}(nginx);
\draw[arrow] (nginx)--(app);
\draw[arrow] (app)--(data);
\draw[arrow] (app)--(vol);
\draw[arrow] (backup)--(vol);
\draw[arrow,dashed] (monitor) to[bend left=35] (proxy);
\draw[arrow] (proxy) to[bend right=25] (old);
\end{tikzpicture}
\resizebox{\linewidth}{!}{%
\begin{tikzpicture}[
box/.style={draw=devopsBlue,rounded corners=2pt,align=center,
font=\small,text width=3.65cm,minimum height=1.05cm,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,-1.8) {Existing Caddy :443\\TLS termination / HTTP redirect};
\node[box] (old) at (-4.8,-1.8) {Existing Gitea / Jenkins\\pricing staging + production};
\node[store] (oldvol) at (-4.8,0) {Existing Gitea data / Jenkins home\\pricing configuration / TLS storage};
\node[box] (monitor) at (4.8,-1.8) {Existing Prometheus + Blackbox\\Grafana + Node Exporter};
\node[store] (monvol) at (4.8,0) {Metrics history / dashboards\\exporter and alert configuration};
\draw[draw=devopsBlue,dashed,rounded corners=4pt]
(-7.05,-9.45) rectangle (7.05,-2.75);
\node[anchor=north west,font=\small\bfseries,text=devopsBlue]
at (-6.85,-2.9) {New Zammad private project network};
\node[newbox] (nginx) at (0,-4.05) {Zammad nginx :8080\\also joins existing proxy network};
\node[newbox] (app) at (0,-6.1) {Rails :3000 / websocket\\scheduler / one-shot initialization};
\node[newbox] (data) at (-4.8,-6.1) {PostgreSQL :5432\\Redis :6379 / Memcached :11211\\Elasticsearch :9200};
\node[newbox] (backup) at (4.8,-6.1) {Official backup container\\private project network};
\node[store] (vol) at (0,-8.6) {Named database / search / Redis\\shared application storage\\and 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,-8.6)--(vol.west);
\draw[arrow] (backup.south)--(4.8,-8.6)--(vol.east);
\end{tikzpicture}%
}
\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.
@@ -225,7 +242,7 @@ 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{4. Validation, initialization and startup operations}
\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.
@@ -241,8 +258,8 @@ 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 require a later manual build
to appear in its PDF.
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:
@@ -266,7 +283,7 @@ 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{5. DNS, HTTPS and certificate verification}
\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:
@@ -295,7 +312,7 @@ No password fields are populated in this screenshot. A login page alone does
not establish successful authenticated access.}\label{Figure:ZammadLogin}
\end{figure}
\section{6. Firewall and exposure checks}
\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.
@@ -363,7 +380,7 @@ the same firewall whose complete rules are captured in the preceding 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{7. Accounts, ticket workflow and least privilege}
\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
@@ -451,7 +468,7 @@ 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{8. Engineering traceability and resolution}
\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
@@ -472,7 +489,7 @@ review/check workflow remain applicable to implementation source publication.
\label{Figure:ZammadEngineeringIssue}
\end{figure}
\section{9. Existing monitoring extension}
\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.
@@ -542,7 +559,7 @@ this is not per-container usage.}\label{Figure:ZammadHostMemory}\end{figure}
increase is interpreted alongside the changed disk capacity, not as disk
space reclaimed by stopping a container.}\label{Figure:ZammadHostDisk}\end{figure}
\section{10. Controlled outage, persistence and backup}
\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
@@ -658,7 +675,7 @@ state; the internal TA note is excluded from the conversation.}
\label{fig:customerBrowserClosedReply}
\end{figure}
\section{11. Deliverable coverage, final rechecks and remaining gaps}
\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
@@ -672,30 +689,5 @@ Three ticket examples & Open 71002, assigned 71003, closed 71004; internal note/
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 & No PDF compiled; final Jenkins artifact pending\\\bottomrule
Manual / source & This chapter, Hosts, password hints, history, AI log, sanitized configuration & Versioned source; PDF build identity in the build stamp\\\bottomrule
\end{longtable}
Every pending item is a required evidence follow-up, not an optional extra or
an assertion of completion. Before submission: review the saved TA
browser evidence for ticket 71007 (create, assign, internal/public
reply and close are now exercised through the portal);
the privileged host-rule and effective key-only SSH evidence is now included,
alongside cloud rules and attachment screenshots;
record the grading window; provide TA
credentials privately; and run the user-authorized Jenkins PDF build followed
by visual and reference verification. Do not submit this unbuilt source draft
as a verified final PDF. After grading, retain evidence and the manual, revoke
temporary TA access, and obtain team approval before stopping paid resources
or changing costs. Existing services and their storage remain team-owned.
The assignment branch was published to Gitea and independently verified with
\texttt{git ls-remote}, including host-audit commit
\texttt{98a3a6d39e438e7fef7579f4f695687aa0a5b5e7}. This publication did not
merge main or compile a manual PDF. Use these immutable source links for the
verified implementation and evidence:
\begin{itemize}
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/98a3a6d39e438e7fef7579f4f695687aa0a5b5e7/support}{Sanitized support configuration and evidence directory}.
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/98a3a6d39e438e7fef7579f4f695687aa0a5b5e7/documentation/devopsSupportTicketManagement.tex}{Support chapter source at the verified revision}.
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/98a3a6d39e438e7fef7579f4f695687aa0a5b5e7/documentation/hw9_images}{Original screenshot evidence}.
\end{itemize}
Later source-reconciliation commits supplement this immutable evidence set.