Files
myfileagent-pipeline/documentation/devopsSupportTicketManagement.tex
T

694 lines
43 KiB
TeX
Raw Normal View History

\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
\resizebox{\linewidth}{!}{%
\begin{tikzpicture}[
box/.style={draw=devopsBlue,rounded corners=2pt,align=center,
font=\fontsize{9}{11}\selectfont,text width=3.8cm,minimum height=1.2cm,inner sep=5pt,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,-2.8) {Existing Caddy\\TLS :443 / HTTP redirect :80};
\node[box] (old) at (-4.8,-2.8) {Existing Gitea / Jenkins\\Pricing: staging + production};
\node[store] (oldvol) at (-4.8,0) {Existing Gitea data\\Jenkins home / TLS storage\\Pricing configuration};
\node[box] (monitor) at (4.8,-2.8) {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,-13.5) rectangle (7.05,-4.6);
\node[anchor=north west,font=\small\bfseries,text=devopsBlue]
at (-6.85,-4.8) {New Zammad private network};
\node[newbox] (nginx) at (0,-6.1) {Zammad nginx :8080\\Private + proxy networks};
\node[newbox] (app) at (0,-8.9) {Rails :3000 / websocket\\Scheduler / one-shot init};
\node[newbox] (data) at (-4.8,-8.9) {PostgreSQL :5432\\Redis :6379\\Memcached :11211\\Elasticsearch :9200};
\node[newbox] (backup) at (4.8,-8.9) {Official backup container\\Private project network};
\node[store] (vol) at (0,-11.9) {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,-11.9)--(vol.west);
\draw[arrow] (backup.south)--(4.8,-11.9)--(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.
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}