|
|
|
@@ -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,47 @@ 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);
|
|
|
|
|
\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.
|
|
|
|
@@ -225,7 +243,25 @@ 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.
|
|
|
|
|
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}
|
|
|
|
@@ -248,7 +284,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:
|
|
|
|
@@ -277,7 +313,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.
|
|
|
|
@@ -345,7 +381,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
|
|
|
|
@@ -356,6 +392,7 @@ 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.\\
|
|
|
|
@@ -432,7 +469,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
|
|
|
|
@@ -453,7 +490,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.
|
|
|
|
@@ -523,7 +560,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
|
|
|
|
@@ -639,9 +676,10 @@ 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
|
|
|
|
|
\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\\
|
|
|
|
@@ -652,30 +690,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.
|
|
|
|
|