Document Zammad implementation with actual evidence and review gaps
This commit is contained in:
@@ -0,0 +1,465 @@
|
||||
\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.
|
||||
The plan name, billing amount and resize cost have not been supplied; no
|
||||
recurring cost is asserted. Record those from the team's DigitalOcean billing
|
||||
view before submission. 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.
|
||||
|
||||
\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};
|
||||
\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,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
|
||||
attachment/rules, management-source SSH restrictions and host firewall rules
|
||||
still require a fresh explicit check before final submission. The final
|
||||
observation found no support AAAA answer and no global IPv6 interface address;
|
||||
listeners on \texttt{[::]} alone do not establish public IPv6 access.
|
||||
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
|
||||
71002 & Portal access question & Open; synthetic customer and normal priority.\\
|
||||
71003 & Pricing investigation & Open, owned by Student Agent; internal investigation note plus customer-visible reply.\\
|
||||
71004 & Support HTTPS configuration & Closed with resolution; linked engineering issue 22.\\
|
||||
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}.
|
||||
Authenticated rendering and a final screenshot must be verified separately
|
||||
before claiming that Grafana displayed the new panels. 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.
|
||||
|
||||
\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}
|
||||
|
||||
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\\
|
||||
Capacity and versions & Initial disk/load observations, post-upgrade size, explicit small limits & Billing/plan and full historical baseline pending\\
|
||||
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\\
|
||||
Monitoring & Existing job extended, three saved panels, successful probe & Authenticated dashboard rendering screenshot pending\\
|
||||
Recovery graph & Corrected timestamps, source graph, retained conversation & Sampled graph included; Grafana screenshot pending\\
|
||||
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
|
||||
browser CRUD demonstration if required by the evaluator; verify the three
|
||||
panels and recovery graph; refresh cloud firewall and host-rule evidence;
|
||||
review the actual plan/cost, password handoff and Hosts chapter together with
|
||||
the team as requested; record the grading window; publish reviewed source; 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.
|
||||
Reference in New Issue
Block a user