2026-11-18 20:52:43 +00:00
\chapter { Support Ticket Management with Zammad}
\ChapterLabel { SupportTicketManagement}
\index { Zammad} \index { support tickets} \index { least privilege}
\section { Scope, source identity, and evidence boundary}
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} .
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.
\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
remaining evidence gaps are listed at the end of this chapter.
\end { devopsNote}
\section { 1. 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.
2026-11-18 21:04:09 +00:00
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,
2026-11-18 20:52:43 +00:00
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.
2026-11-18 21:04:09 +00:00
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.
2026-11-18 20:52:43 +00:00
\section { 2. 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 { 3. 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} ;
2026-11-18 21:04:09 +00:00
\node [right=of vol] (backup) { Official backup container\\ private project network} ;
2026-11-18 20:52:43 +00:00
\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);
2026-11-18 21:04:09 +00:00
\draw [arrow] (backup)--(vol);
2026-11-18 20:52:43 +00:00
\draw [arrow,dashed] (monitor) to[bend left=35] (proxy);
\draw [arrow] (proxy) to[bend right=25] (old);
\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 & Worker counts reduced to one\\
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.
\section { 4. Validation, initialization and startup operations}
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 { 5. 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 { 6. 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. Current cloud firewall
2026-11-18 21:10:53 +00:00
attachment/rules and host firewall rules still require a fresh explicit check
before final submission. 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
2026-11-18 20:52:43 +00:00
observation found no support AAAA answer and no global IPv6 interface address;
listeners on \texttt { [::]} alone do not establish public IPv6 access.
2026-11-18 21:04:09 +00:00
A current read-only UFW status attempt was blocked because sudo requires a
password; the failure is retained in \path { chapter7-final-audit.json} and is
not presented as proof that UFW is enabled or disabled.
2026-11-18 21:10:53 +00:00
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.
2026-11-18 20:52:43 +00:00
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}
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\endhead
2026-11-18 21:04:09 +00:00
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.\\
2026-11-18 20:52:43 +00:00
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}
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. Add vetted
password-manager references after the team transfers them; no vault entry is
claimed to exist yet. The user requested that the password handoff, Droplet
upgrade/price and Hosts chapter be reviewed together at documentation review.
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 { 8. 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 { 9. 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} .
2026-11-18 21:04:09 +00:00
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
2026-11-18 20:52:43 +00:00
\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.
2026-11-18 21:04:09 +00:00
\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}
2026-11-18 20:52:43 +00:00
\section { 10. 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}
2026-11-18 21:04:09 +00:00
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.
2026-11-18 20:52:43 +00:00
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}
\section { 11. 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\endhead
Deployment / continuity & Revision, images, manifest, architecture, final HTTPS observations & All six HTTPS checks returned 200\\
2026-11-18 21:04:09 +00:00
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\\
2026-11-18 20:52:43 +00:00
Persistence / backups & Named volume manifest, backup success, retained ticket/conversation & Database restore not tested\\
HTTPS / exposure & Certificate, redirect, blocked ports, private networks, no global IPv6/AAAA & Fresh cloud firewall and host-rule audit pending\\
Accounts / TA & Agent-only TA/group access, API CRUD 71006, authenticated screenshots & Browser login/read verified; API CRUD distinguished\\
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\\
2026-11-18 21:04:09 +00:00
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\\
2026-11-18 20:52:43 +00:00
Manual / source & This chapter, Hosts, password hints, history, AI log, sanitized configuration & No PDF compiled; final Jenkins artifact pending\\\bottomrule
\end { longtable}
Every pending item is a required evidence follow-up, not an optional extra or
an assertion of completion. Before submission: finish the click-by-click TA
2026-11-18 21:04:09 +00:00
browser create/assign/reply/close demonstration and web-portal note/reply
submission evidence (API actions and portal visibility are already verified);
refresh cloud firewall and host-rule evidence;
review the password handoff and updated Hosts chapter together with the team
as requested (plan/price now supplied); record the grading window; publish reviewed source; provide TA
2026-11-18 20:52:43 +00:00
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.