Finalize Assignment 8 recovery evidence and manual
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-11-16 00:03:46 -05:00
parent 72bf10dcec
commit fbda9516fe
23 changed files with 7696 additions and 126 deletions
+14 -14
View File
@@ -1,17 +1,17 @@
This group document records the SSW 590 coursework and its supporting
commands, designs, and evidence. Assignment 8 implements secure delivery with
a trusted Jenkins agent, locked Flask/Gunicorn service, security gates,
Ansible, scoped deployment credentials and recovery runbooks. The prerequisite
jobs, DNS/TLS and deliberate Jenkins test/secret blocks passed. The reviewed v1
images were published with passing scans. After the SSH and health-deadline
corrections were reviewed, Jenkins builds 5 and 6 promoted v1 and v2 by exact
digest through separate staging/production environments. Both unchanged reruns
passed with zero changes; Vincent approved each production operation. The
production probe and Grafana panel are live. One failed availability sample
was observed during v2 replacement; zero downtime is not claimed. The actual
release records and staging-only fault still require review before the healthy
production rollback and failed-staging recovery demonstrations.
This draft is not ready for submission.
This group manual records SSW 590 coursework, commands, designs and evidence.
Assignment 8 delivers a locked Flask/Gunicorn service through a trusted Jenkins
agent, security gates, Ansible, scoped credentials and human approval. Reviewed
builds 5 and 6 promoted v1/v2 by exact digest; both unchanged staging reruns
passed with zero changes. Production monitoring is live. After review of the
release records and fault/revert history, build 8 restored the original v1
production image and configuration with Vincent's approval. Build 9 blocked
the staging-only port mismatch; build 10 restored v2 with changed=0. Final
production is v1 (total 30), staging v2 (total 36). Finer HTTPS sampling recorded
nine failed production requests during rollback and 169 during the staging
fault. The 30-second probe missed the brief rollback interruption but captured
an earlier v2-release dip; zero downtime is not claimed. Technical demonstrations
are complete, and this version is for group submission review. The tracking
issue's late creation during finalization is disclosed.
Assignment 7 introduced site reliability
engineering: Prometheus, Grafana OSS, Node Exporter, and Blackbox Exporter
run as four pinned containers beside Gitea and Jenkins on the originally 1\,GiB
+56
View File
@@ -1050,3 +1050,59 @@ still require those reviewed commits and measured evidence. Codex updated
current inventory, architecture, runbooks, history and this record, then rebuilt
and visually checked the ignored local PDF. Existing Billy/Claude records and
historical execution evidence were preserved.
\section{Completed Rollback and Staging Recovery}
Date: November 15, 2026 Eastern (November 16 UTC); Tool: OpenAI Codex;
Human: Vincent Sun; Reviewer of preceding PR: Billy Ye. Vincent reported
PR~\#27 merged and asked Codex to finish. Codex reread repository requirements
and status, fetched main, verified Billy's 04:12:09 UTC approval and Vincent's
04:14:30 merge, and created \texttt{codex/assignment8-final-evidence} from
\texttt{72bf10d}. Actions workflow 16 passed before recovery. No commit or
push was performed by Codex.
Codex recorded the healthy-v2 rollback decision and started the reviewed HTTPS
observer on The-Ocean. Build 7 stopped before deployment with \texttt{Cannot
fork}; task-limit pressure was observed, but its underlying accumulation cause
was not established. Codex restarted only the idle delivery agent without
raising limits or changing identity, workspace or image. Build 8 passed tests
and source gates, then requested a real human production approval. Vincent
clicked it himself; Codex verified the archived \texttt{vsun1} identity and
04:23:36 UTC decision. The job restored the original v1 image and matching
configuration, then verified source, health and total 30. Its deployment took
63.904 seconds; the observer captured nine failed requests. The original
12.641-second gap between adjacent successful response completions is not
claimed as an exact continuous outage.
A separate staging observer preceded build 9's explicitly selected reviewed
port-mismatch configuration. The same v2 digest was retained; Compose wait
reported unhealthy and blocked Jenkins before production. Codex captured the
failed state and production isolation, then ran build 10 with the original
good v2 staging record. It restored the historical playbook/template with
\texttt{git archive}, verified v2/source/total 36 and passed changed=0 on rerun.
The staging observer captured 169 failed requests; its adjacent successful
responses were 172.650 seconds apart, including collection/selection and new-job
gates as well as deployment. No image was rebuilt for either recovery.
Codex preserved exact Jenkins reports, hashes and actual timing. A final runtime
capture confirmed production v1/staging v2, correct digests/configuration,
invalid-input HTTP 400 and six targets up. The 30-second production probe
missed the rollback interruption seen by the finer observer; the actual Grafana
chart was flat. No alert-notification history or zero-downtime claim was
invented. The first new Grafana screenshot was taken while its panel was still
loading; it was replaced only after the chart visibly rendered. Both task
observers were stopped by verified PID after post-recovery samples. Original
CSV bytes were recopied and checked over pinned SSH; an earlier helper's
normalized-text hash is explicitly distinguished from the original byte hash.
Git attributes preserve the committed CSV bytes and runtime JSON line endings.
The assignment requires a tracking issue; none existed. Codex prepared a
concrete issue with actual completed-run links and asked Vincent before
publishing a project message under his account. Vincent explicitly replied
``Yes, publish the prepared issue.'' Codex created issue~\#28 at 04:33:40 UTC
and verified it. This late creation is disclosed, not backdated. It prepared
the final evidence PR description, source/access links, measured timeline and
CSV-derived figure; updated the Hosts table/diagram to production v1 and
staging v2, Document History and this log; and prepared the complete TinyTeX
build and visual review. Passwords hints, credentials, permissions, earlier
coursework, Billy/Claude records and shared services were preserved.
Vincent handles final commits/pushes and submission; Billy reviews the final PR.
+2 -2
View File
@@ -36,8 +36,8 @@
% Replace these values for each assignment.
\newcommand{\AssignmentTitle}{Secure Delivery and Rollback -- Group}
\newcommand{\AssignmentNumber}{8}
\newcommand{\DocumentVersion}{6.3}
\newcommand{\DocumentStatus}{Draft}
\newcommand{\DocumentVersion}{6.4}
\newcommand{\DocumentStatus}{For submission review}
\newcommand{\CourseNumber}{SSW 590}
\newcommand{\CourseName}{DevOps}
\newcommand{\Authors}{Vincent Sun and Billy Ye}
+1
View File
@@ -12,6 +12,7 @@ link each entry to the changed chapter, table, figure, or controlled artifact.
\multicolumn{4}{l}{\small\itshape Document Update History (continued)}\\
\toprule \textbf{Date / Version} & \textbf{Author Initials} & \textbf{Change} & \textbf{Changed At}\\ \midrule
\endhead \bottomrule \endlastfoot
November 15, 2026 / 6.4 & VS, BY, CDX & Verified Billy's PR~\#27 review and Vincent's merge; completed human-approved production rollback (build 8), blocked staging fault (9), and original-configuration recovery with changed=0 (10). Preserved build 7's pre-deployment runner error, measured HTTPS interruptions and monitoring sampling limits. Added original CSVs, hashes, runtime state, timelines, source/access links and final evidence; created issue~\#28 with Vincent's approval during finalization. Updated the Hosts table and architecture to production v1/staging v2; Passwords hints and permissions are unchanged. Prepared the complete manual for submission review. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
November 15, 2026 / 6.3 & BY, VS, CDX & Recorded PR~\#26's review/merge and successful Jenkins v1/v2 releases 5/6, zero-change reruns, actual vsun1 approvals and identical per-release staging/production digests. Saved the four real selectors for review. Applied the reviewed production probe/panel after healthy v1, verified live targets/Grafana and preserved one HTTP 502 sample during v2 replacement. Updated both-app inventory and architecture; prepared a staging-only fault patch and reviewed-history/revert procedure for the still-pending recovery exercises. Passwords hints and access scopes are unchanged. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
November 15, 2026 / 6.2 & VS, CDX & Verified PR~\#25's review/merge and ran pricing build 4: scans/publication and initial staging checks passed; the unchanged rerun blocked at the three-second Docker health deadline. Tested ten seconds under identical limits in an isolated temporary container: eight checks passed, then the container was removed. Prepared the health correction and separate v2 source/test change for one review preserving both commits. Updated staging inventory, diagram and actual evidence; Passwords hints are unchanged. No production approval or completed release is claimed. & \ChapterRef{SecureDelivery}, \ChapterRef{HostsPasswords}, \ChapterRef{AIPromptLog}\\
November 15, 2026 / 6.1 & VS, CDX & Verified Billy's latest review and Vincent's merge of PR~\#24; enabled delivery and recorded real blocked-test/secret runs and the first scanned, published v1 image. Preserved the staging SSH failure before any app change. Set Ansible to avoid PTY allocation and verified its credential-bound connection/sudo path in preflight build 3; the correction awaits review/merge before a release retry. Updated current evidence and retained the incomplete-submission status. Hosts and Passwords tables are unchanged: no service, account, credential or permission was added. & \ChapterRef{SecureDelivery}, \ChapterRef{AIPromptLog}\\
+16 -9
View File
@@ -30,9 +30,11 @@ while the undeployed application backends returned 502. Later that evening
(November 16 UTC), build 4 deployed staging v1 and verified its HTTPS identity
and price; its unchanged rerun stopped on a Docker health timeout. Production
was still absent at that point. The subsequent reviewed builds 5 and 6 promoted
both versions with Vincent's approvals; staging and production are now v2.
Their unchanged reruns passed. The production probe and Grafana panel were
added after healthy production. No credential or permission changed during these runs.
both versions with Vincent's approvals; their unchanged reruns passed.
After PR~\#27, build 8 rolled production back to v1; build 9 blocked the
staging-only fault; build 10 restored staging v2 with changed=0. Final production
is v1 and staging v2. The production probe and Grafana panel were added after
healthy production. No credential or permission changed during these runs.
\section{Hosts}
\small
@@ -57,7 +59,9 @@ public-IP host-key alias. Docker socket control grants host administration.
Named identity/workspace and BuildKit cache volumes stay outside Git;
configuration under \path{/opt/ssw590-delivery-agent/}; restart unless stopped.
Prerequisite builds 2/3 and preparation trials passed; pricing builds 5/6
completed both promotions. Campus rehearsal and both recovery exercises remain pending.\\
completed both promotions; builds 8--10 completed both recovery cases. Build 7
stopped before deployment at the process limit; restarting only the idle agent
cleared the condition without raising limits. Campus rehearsal remains pending.\\
Environment & Course production (team use)\\
Provider & DigitalOcean, NYC1; Ubuntu 24.04 LTS; 1 vCPU; resized from
512\,MB to 1\,GiB in October, then to 2\,GiB on November 14, 2026
@@ -80,12 +84,13 @@ each; Blackbox runs as \texttt{nobody}) on network \texttt{monitoring\_monitorin
\texttt{monitoring\_prometheus\_data} (7\,d / 500\,MB) and
\texttt{monitoring\_grafana\_data}\\
Pricing applications & Separate Compose projects/aliases
\texttt{pricing-staging} and \texttt{pricing-production}, currently v2 on private
\texttt{pricing-staging} (v2) and \texttt{pricing-production} (v1), on private
port 8000. Each: 64/96 MiB RAM/RAM+swap, 0.25 CPU, 64 PIDs, UID 10001,
read-only root, 16 MiB /tmp, ten-second overall health deadline and no host
port or app data volume. Separate configuration/release directories:
\texttt{/opt/startup/pricing-\{staging,production\}}.
Both versions passed promotion and unchanged staging reruns.\\
Both versions passed promotion and unchanged staging reruns; production was
then rolled back to v1 and staging recovered to v2.\\
Exposed ports & 443/TCP and 80/TCP to all; 22/TCP to approved team addresses only
(Cloud Firewall \texttt{gitea-fw}); \texttt{ci.yebilly.me} and
\texttt{metrics.yebilly.me} answer only Stevens 155.246.0.0/16 and team
@@ -94,8 +99,9 @@ otherwise; monitoring ports 9090, 9100, 9115 not reachable\\
Owner & BY (server administration); VS (review)\\
HTTPS URLs & \url{https://git.yebilly.me}, \url{https://ci.yebilly.me/login},
\url{https://metrics.yebilly.me/login}; \url{https://staging.yebilly.me} and
\url{https://app.yebilly.me} have trusted certificates. Both were verified
as healthy v2, source \texttt{6bddbfb}, total 36, with invalid input HTTP 400\\
\url{https://app.yebilly.me} have trusted certificates. Final verification:
staging v2/source \texttt{6bddbfb}/total 36; production v1/source
\texttt{34f26e6}/total 30. Both healthy; invalid input HTTP 400\\
Backup status & No scheduled backup job; manual Gitea SQLite and Jenkins-home
backups saved in a protected root directory before the November 14 delivery
bootstrap. Container-replacement persistence verified for
@@ -106,7 +112,8 @@ Gitea (\ChapterRef{GiteaFoundation}), restart persistence for Jenkins
Monitoring status & Prometheus and Grafana: host CPU, memory, root disk, and
HTTPS probes of Gitea, Jenkins and pricing production every 30\,s; Grafana
retains seven earlier panels plus pricing availability. One production HTTP 502
sample was recorded during v2 replacement (\ChapterRef{SecureDelivery}); no
sample was recorded during v2 replacement. The 30-second probe missed nine
finer observer failures during rollback (\ChapterRef{SecureDelivery}); no
zero-downtime or app alert-notification claim is made. Existing alerts \emph{HTTPS service
down}, \emph{Root disk space low}, and \emph{Monitoring target down} to Discord \texttt{\#devops-alerts}.
Shares the droplet's failure domain; no external check yet (issue~\#20)\\
+235 -29
View File
@@ -12,9 +12,11 @@ job is enabled, and reviewed Jenkins builds 5 and 6 successfully promoted v1
and v2 through staging and production using exact digests. Both unchanged
staging reruns passed with zero changes, and Vincent approved each production
operation in Jenkins. Production monitoring is live. The actual successful
records are prepared for review before the two recovery exercises.
\textbf{It is not ready for submission.} Healthy production rollback, deliberate
staging failure/recovery and their measured timelines remain pending.
records and staging-only fault/revert were reviewed in PR~\#27. Build 8 then
restored healthy production v1 after Vincent's approval; build 9 blocked the
staging fault, and build 10 restored staging v2 with changed=0. Both recovery
cases and measured evidence are complete. The final state is production v1,
staging v2. This version awaits final group review and submission.
The instructor's v1 source and tests were copied from
\path{Examples/dosSecureDelivery/v1/} to \path{delivery/app/}. Flask validates
@@ -44,7 +46,7 @@ identity and pricing are verified separately.
\node[box] (monitor) at (0,-2.8) {Prometheus, Grafana,\\Blackbox and Node Exporter\\Private metrics ports};
\node[box] (proxy) at (4.8,-2.8) {Caddy TLS proxy\\Public 80/443\\Private \texttt{gitea\_web} network};
\node[box] (stage) at (9.6,-2.8) {Staging v2\\\texttt{staging.yebilly.me}\\{\scriptsize\texttt{pricing-staging:8000}}};
\node[box] (prod) at (9.6,-5.2) {Production v2\\\texttt{app.yebilly.me}\\{\scriptsize\texttt{pricing-production:8000}}};
\node[box] (prod) at (9.6,-5.2) {Production v1\\\texttt{app.yebilly.me}\\{\scriptsize\texttt{pricing-production:8000}}};
\node[data,text width=12.9cm,align=left] (storage) at (4.8,-8.45) {
\textbf{Persistent state and read-only mounts on The-Ocean}\\[3pt]
\begin{tabular}{@{}ll@{}}
@@ -72,8 +74,8 @@ App configuration & \texttt{/opt/startup/pricing-\{staging,production\}}; no app
\draw[flow] (proxy)--node[note,above]{HTTP}(stage);
\draw[flow] (proxy.south east)--node[note,above,sloped]{HTTP}(prod.north west);
\end{tikzpicture}}
\caption{Current architecture after both releases: staging and production v2
are installed, and the production health probe is live. Gray boxes identify durable state
\caption{Current architecture after both recovery cases: staging is v2 and
production has been rolled back to v1; the production health probe is live. Gray boxes identify durable state
or read-only mounts. Pricing is stateless; each environment retains only its
Compose and release files on the host. The agent and builder now share the
droplet; deployment SSH uses Docker's host gateway with the original pinned
@@ -185,7 +187,7 @@ node and disabled release job. No token or private key was printed or copied
into the repository. Private bootstrap inputs were removed after Jenkins stored
the credentials; generated agent identity stays in protected named volumes.
\section{Prepared Pipeline and Release Records}
\section{Pipeline and Release Records}
The normal release path is checkout of reviewed main ancestry, control and
application tests, repository-secret and dependency checks, build, image scan,
registry push/pull, exact digest recording, staging deployment, unchanged rerun,
@@ -219,11 +221,12 @@ timing and makes a nonzero changed count on the unchanged rerun a blocking error
\small
\begin{tabularx}{\linewidth}{L{2.1cm}Y Y}
\toprule Traceability field & v1 & v2\\\midrule
Source / config commits & Reviewed \texttt{34f26e6} & Reviewed \texttt{6bddbfb}\\
Registry digest / Jenkins release build & Exact digest; build 5 SUCCESS & Exact digest; build 6 SUCCESS\\
Source / config commits & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/34f26e6948b7001ede8ca19f23b67a02082e6a9a}{Reviewed 34f26e6} & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/commit/6bddbfba5a36e0e397537678ffb197e101fb0670}{Reviewed 6bddbfb}\\
Registry digest / Jenkins release build & Exact digest below; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/5/}{build 5 SUCCESS} & Exact digest below; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/6/}{build 6 SUCCESS}\\
Publication image scans & 2 targets; zero HIGH/CRITICAL, before push and by pulled digest & 2 targets; zero HIGH/CRITICAL, before push and by pulled digest\\
Staging + unchanged rerun & Passed; changed=0 on rerun & Passed; changed=0 on rerun\\
Production approval / result & \texttt{vsun1}; total 30 verified & \texttt{vsun1}; total 36 verified\\
Recovery evidence & Healthy rollback pending & Staging failure/recovery pending\\
Production approval / UTC & \texttt{vsun1}; 03:04:01; total 30 verified & \texttt{vsun1}; 03:11:18; total 36 verified\\
Recovery evidence & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/8/}{Build 8}: original v1 restored & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/9/}{Build 9} blocked; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/10/}{10} recovered; changed=0\\
\bottomrule
\end{tabularx}
\normalsize
@@ -352,7 +355,8 @@ following section records their subsequent assessed Jenkins runs.
Vincent kept the v1 health fix and v2 app/tests in separate commits within
PR~\#26. Billy reviewed both; the merge preserved their SHAs for explicit
Jenkins selection. Each then passed the full release path and its own real
human approval. The actual successful selectors now await review before recovery.
human approval. PR~\#27 subsequently reviewed the actual successful selectors
and preserved the separate staging fault and restoration commits before recovery.
\section{Successful v1 and v2 Releases}
Billy approved PR~\#26 at 02:56:00 UTC on November 16 (November 15 Eastern).
@@ -404,9 +408,9 @@ sha256:efe8658a0adf0854038d58199652030cbd0ef70047a1c6ebc7b09906cf1ec88b
\end{minipage}\par\smallskip
The four JSON files under \path{delivery/releases/} are copied unchanged from
these successful builds and pass the strict selector validation. They still
need review/commit before recovery; earlier failed-attempt records were not
substituted. Jenkins archives the full tests, scans, recaps and actual approval
these successful builds and pass the strict selector validation. PR~\#27
reviewed and merged them before recovery; earlier failed-attempt records were
not substituted. Jenkins archives the full tests, scans, recaps and actual approval
records. Dated human-readable and machine-readable evidence under
\path{delivery/evidence/} preserves their timestamps, results and scan-report
hashes. Full local archives remain in the ignored execution evidence directory.
@@ -452,17 +456,192 @@ in the dated runtime JSON. The display uses Eastern time.}
\label{Figure:DeliveryProductionMonitoring}
\end{figure}
\section{Recovery Exercises and Timeline}
Billy approved \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/pulls/27}{PR~\#27}
at 04:12:09 UTC on November 16 (November 15 Eastern); Vincent merged it at
04:14:30 as \texttt{72bf10d}. The merge preserved the four actual release
records, staging-only fault \texttt{1e23001} and immediate revert
\texttt{29e580c}; the final main template remained correct. Actions workflow
16 passed in 2m17s before the recovery jobs. Builds 7--10 used that reviewed
main for control code; their records independently selected the historical
image and Ansible configuration. Full results, report hashes, selected runtime
state and original observer CSVs are versioned under \path{delivery/evidence/}
as \path{recovery-20261115.md}, its JSON companion, the runtime JSON and the
production/staging CSVs. CSV byte hashes were checked against the remote
originals; Git attributes preserve them across checkouts.
\subsection{Healthy Production Rollback}
This was an authorized exercise on healthy v2, not an invented production
incident. The decision was recorded at 04:17:46.307 UTC; the reviewed HTTPS
observer started before approval. The first attempt,
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/7/}{build 7}, stopped
after 17.784 seconds during test setup with \texttt{Cannot fork}, before any
deployment or approval. The agent reported about 115 tasks against its 128
limit and two process-limit events, with no OOM kill. Its process listing
showed Java only; the underlying accounting/accumulation mechanism was not
established. Only the idle delivery-agent container was restarted, preserving
identity, workspace, image and resource/security limits. Immediate task count
fell to 13. Earlier services and both apps stayed running; no limit was raised.
\small
\begin{tabularx}{\linewidth}{L{4.4cm}Y}
\toprule Production rollback event & Actual UTC / result\\\midrule
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/8/}{Build 8} & SUCCESS; 04:22:04.875--04:24:48.529; 163.654 s including human wait\\
Actual human approval & \texttt{vsun1}; 04:23:36\\
Ansible rollback start & 04:23:42.801\\
First observed v1 response complete & 04:24:25.313; health request began 04:24:23.645\\
Ansible verification complete & 04:24:46.705; 63.904 s; ok=10 changed=3 unreachable=0 failed=0\\
Restored release & Original v1 digest/configuration \texttt{34f26e6}; HTTPS health, exact source and total 30 passed\\
\bottomrule
\end{tabularx}
\normalsize
The rollback reused the original build-5 digest and restored its matching
Ansible playbook/template with \texttt{git archive}; no image was rebuilt or
published. Twelve control tests, three app tests, source-secret and all nine
dependency gates passed. The prior passing image scans remain linked to the
same exact digest. Deployment-start to first observed v1 response completion
was 42.512 seconds. The longer decision-to-recovery timeline includes the
runner error, troubleshooting and real approval wait; these are distinct from
deployment time and traffic interruption.
The production observer captured 863 requests from 04:17:46.447 to
04:32:10.607, with \textbf{nine failed requests}: eight HTTP 502 responses and
one timeout. The first failed request began 04:24:13.629. Adjacent successful
response completions were 04:24:12.672 (v2) and 04:24:25.313 (v1), 12.641
seconds apart. This does not establish an exact continuous outage; time
between samples remains unobserved. The maximum request-start gap was 2.015
seconds because a two-second timeout delays the nominal one-second cadence.
\subsection{Staging-Only Failure and Configuration Recovery}
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/9/}{Build 9}
selected the committed good v2 staging record and the full reviewed bad
configuration commit:
\begin{Verbatim}[fontsize=\footnotesize,frame=single]
1e23001e7303d14630cfa97c8de36f31f30b81a0
\end{Verbatim}
Only the runtime configuration selection changed; the existing v2 digest was
reused. Gunicorn bound to 8001 while image health and Caddy still used 8000.
Compose reported the container unhealthy and the Jenkins run ended FAILURE.
The command retained \texttt{--wait --wait-timeout 90}; Ansible blocked after
86.690 seconds including earlier tasks, with \texttt{ok=4 changed=1
unreachable=0 failed=1} and exit code 2. The unchanged rerun and both production
stages were skipped. No host daemon, proxy or earlier service was altered to
create this failure.
At 04:28:54.827 UTC staging was unhealthy and returned HTTP 502 while
production remained healthy v1, total 30. The failed run did not reach the
last metadata-copy task: host \path{release.json} still described the last
successful release while Compose was bad. That file alone is not health
evidence. The final main template had already been restored by the reviewed
revert; the recovery job selected the original good v2 configuration from its
unchanged record, rather than rebuilding the image or selecting the bad SHA.
\small
\begin{tabularx}{\linewidth}{L{4.4cm}Y}
\toprule Staging event & Actual UTC / result\\\midrule
Decision / observer start & 04:25:23.940 / 04:25:24.078\\
Failed Ansible deployment & 04:26:25.354--04:27:52.043; 86.690 s; build 9 blocked\\
First failed request & 04:26:53.130\\
\href{https://ci.yebilly.me/job/secure-delivery/job/pricing/10/}{Build 10 recovery} began & 04:28:38.093\\
Recovery Ansible deployment & 04:29:10.106--04:30:06.603; 56.497 s; ok=10 changed=2 failed=0\\
First recovered v2 response complete & 04:29:44.923; health request began 04:29:43.205\\
Unchanged Ansible rerun & 04:30:10.352--04:30:58.451; 48.099 s; ok=10 changed=0 failed=0\\
Recovery job ended & 04:30:59.765 SUCCESS; 141.672 s total\\
\bottomrule
\end{tabularx}
\normalsize
Build 10 restored the recorded \texttt{6bddbfb} playbook/template and the same
v2 image. Actual HTTPS health, baked source and total 36 passed, followed by
the zero-change rerun. Staging sampling captured 406 requests, with 169 failures
(168 HTTP 502 and one timeout). Adjacent successful response completions were
04:26:52.273 and 04:29:44.923, 172.650 seconds apart; this includes the
deliberate failure, collection/selection and new-job gates as well as recovery.
It is not Ansible duration or an exact continuous outage. Maximum request-start
gap was 2.018 seconds. Production had no additional failed observer requests
during this staging exercise, and its Compose hash stayed unchanged.
\begin{figure}[htbp]
\centering
\renewcommand{\theHfigure}{delivery.observer.\arabic{figure}}
\includegraphics[width=\linewidth]{images/assignment8-recovery-observers-20261115.png}
\caption{Actual HTTPS samples on November 16 UTC: healthy production rollback
to v1, then the separate staging v2 fault and recovery. Lines join request-start
samples; gaps between requests remain unobserved. Original CSVs and hashes are
retained. The staging observer began at 04:25:24.}
\label{Figure:DeliveryRecoveryObservers}
\end{figure}
\begin{figure}[htbp]
\centering
\renewcommand{\theHfigure}{delivery.failure.\arabic{figure}}
\includegraphics[width=\linewidth,trim=360bp 0bp 0bp 0bp,clip]{images/assignment8-staging-failure-9-20261115.jpg}
\caption{Staging v2, build 9, November 16 at 04:27:57 UTC: unhealthy-container
failure, failed recap and both production stages skipped. The original v2
image was retained; the reviewed command-only fault was not promoted.}
\label{Figure:DeliveryStagingFailure}
\end{figure}
\begin{figure}[htbp]
\centering
\renewcommand{\theHfigure}{delivery.recovery.\arabic{figure}}
\includegraphics[width=\linewidth,trim=360bp 0bp 0bp 0bp,clip]{images/assignment8-staging-recovery-10-20261115.jpg}
\caption{Recovered staging v2, build 10, November 16 at 04:30:59 UTC: original
configuration restored, unchanged rerun \texttt{changed=0}, production stages
excluded and final SUCCESS. Production stays at rolled-back v1.}
\label{Figure:DeliveryStagingRecovery}
\end{figure}
\subsection{Monitoring Correlation and Final Verification}
The 34 production-probe samples since the rollback decision were all 1 at the
04:34:28 UTC capture: the 30-second probe missed the interruption that the
finer observer measured. Grafana's production chart is correspondingly flat
over this exercise (Figure~\ref{Figure:DeliveryRecoveryMonitoring}). This does
not contradict the earlier real v2-release dip. The captured 90-minute
\texttt{ALERTS} query returned no series; no notification history was collected
and no Discord-notification claim is made. The production-only panel does not
measure staging; its separate CSV captures that intentional failure.
At 04:34:28.765 UTC both containers were healthy: production v1, source
\texttt{34f26e6}, total 30; staging v2, source \texttt{6bddbfb}, total 36.
Both retained their original digest and matching restored configuration,
returned HTTP 400 for quantity 0, and published no host application port.
All six scrape targets were up and all three HTTPS probes were 1. The observers
were intentionally stopped after post-recovery samples, before their 1,800-second
maximum, by signaling only their verified task PIDs. They share the droplet's
failure domain; they are not off-site uptime monitoring.
The capacity snapshot showed 1,967 MiB RAM with 660 MiB available, 476 of
2,047 MiB swap used, and 8.9 GiB root space available (62\% used). Production
and staging used 32.53 and 33.68 MiB; the agent used 131.9/512 MiB, with
71/128 tasks and zero new process-limit events since restart. Grafana used
188.4/192 MiB. These are point samples, not a load/soak test or a guarantee
against future pressure. Keep manual and delivery jobs sequential on the
shared CPU and investigate renewed process-limit events before retrying.
\begin{figure}[htbp]
\centering
\renewcommand{\theHfigure}{delivery.recoverymonitor.\arabic{figure}}
\includegraphics[width=\linewidth,trim=320bp 0bp 0bp 0bp,clip]{images/assignment8-recovery-monitoring-20261115.jpg}
\caption{Actual Grafana view after recovery, November 15 Eastern (November 16
UTC). Production and prior service probes remain up at scrape times. The flat
production line misses the short rollback interruption shown by the finer
CSV sampler; it is not evidence of zero downtime.}
\label{Figure:DeliveryRecoveryMonitoring}
\end{figure}
\section{Release, Recovery and Monitoring Runbooks}
The versioned \path{delivery/RUNBOOKS.md} gives the executable sequence.
Vincent handles commits/pushes; Billy reviews repository changes. The v1
preparation is now on main, DNS/TLS are ready, and the two deliberate gate
demonstrations and both reviewed releases have run. The four successful release
records must now be reviewed/committed before recovery. The patch in
\path{delivery/exercises/} defines a staging-only port mismatch. Preserve a
reviewed intermediate bad-configuration commit followed by its immediate revert;
the final main template remains correct. Billy must review all three commits
(records, fault, restoration), and a merge commit must preserve the bad SHA.
Only the explicit staging-failure job selects that historical configuration.
records and the staging-only fault/revert were reviewed in PR~\#27, and both
recoveries are complete. The procedure and patch under
\path{delivery/exercises/} retain the reviewed intermediate fault and restoration
history; final main remains correct. Only the explicit staging-failure job
selects that bad historical configuration. No repeat fault is needed for this
submission. The following instructions support later authorized operations.
For healthy production rollback, record detection/decision time, start the
HTTPS observer, select the committed v1 production record and approve the
@@ -483,7 +662,7 @@ the failure.
The production \texttt{/health} probe and Grafana availability panel are now
live, as verified above. Future changes must preserve the existing Gitea/Jenkins
probes and host metrics. Correlate actual Prometheus/Grafana samples with the
remaining rollback and recovery times; 30-second scrapes and
actual rollback and recovery times; 30-second scrapes and
alert durations can miss a brief interruption. Uptime probes do not verify
pricing. The observer in \path{delivery/ci/observe.py} records finer HTTPS
samples without treating an intended failure as an observer-script failure.
@@ -494,7 +673,7 @@ compatible expand/migrate/contract approach keeps both old and new code working
during migration and delays destructive changes until rollback is no longer
needed. This assignment does not add a database.
\section{Outstanding Work and Cleanup Boundary}
\section{Source Links, Grader Access and Cleanup Boundary}
Billy added A records for \texttt{staging} and \texttt{app}. On November 15,
Google and Cloudflare both returned \texttt{147.182.178.136} for each name,
with no AAAA answer. Codex validated the prepared Caddy additions, saved the
@@ -508,14 +687,41 @@ were verified as healthy v2. Certificate and DNS
details are recorded in \path{delivery/evidence/https-20261115.md}. Existing
Gitea/Jenkins/Grafana checks still passed. The public application port is HTTPS
443, with internal port 8000 remaining private. Distinct DNS hostnames satisfy
the routing boundary; rollback and staging recovery remain outstanding.
the routing boundary. Both recovery cases are now complete as recorded above.
PR~\#24 now includes the runner migration and HTTPS changes and is merged.
The health correction, v2, both promotions and their human approvals are
complete. Issue creation if still absent, review/merge of the successful records
and preserved staging-only fault, both recovery demonstrations and their
measured monitoring correlation, and final submission review remain outstanding.
The diagnostic trials are not substitutes for the two remaining executions.
The health correction, v2, both promotions, actual approvals and both measured
recovery cases are complete. \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/issues/28}{Tracking issue 28}
was created at 04:33:40 UTC with Vincent's explicit authorization during
finalization. The manual asks for an issue at baseline; this late correction
does not claim that the issue preceded implementation. Final evidence
review/merge and PDF submission remain group actions.
The following links select reviewed source at \texttt{72bf10d}, unless a
historical release is identified. They do not require running a new pipeline.
\small
\begin{tabularx}{\linewidth}{L{3.3cm}Y}
\toprule Artifact & Clickable source or evidence\\\midrule
Application and tests & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/34f26e6948b7001ede8ca19f23b67a02082e6a9a/delivery/app}{v1 source/tests}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/6bddbfba5a36e0e397537678ffb197e101fb0670/delivery/app}{v2 source/tests}\\
Locked image build & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/app/Dockerfile}{Dockerfile}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/app/requirements.txt}{exact dependencies}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/agent/Dockerfile}{trusted agent image}\\
Pipeline and policy & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/Jenkinsfile}{delivery Jenkinsfile}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/SECURITY.md}{scan policy}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/ci}{gates and control tests}\\
Ansible & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/ansible/inventory.ini}{inventory without secrets}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/ansible/deploy.yml}{playbook}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/ansible/templates/compose.yaml.j2}{good Compose template}\\
Exact release records & \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/releases/v1-staging.json}{v1 staging}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/releases/v1-production.json}{v1 production}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/releases/v2-staging.json}{v2 staging}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/commit/72bf10dcecc8db65dce4750c05bf841bea9b0834/delivery/releases/v2-production.json}{v2 production}\\
Original release reports & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/5/artifact/}{build 5 tests/scans/approval}; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/6/artifact/}{build 6 tests/scans/approval}\\
Recovery reports & \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/8/artifact/}{rollback 8}; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/9/artifact/}{blocked staging 9}; \href{https://ci.yebilly.me/job/secure-delivery/job/pricing/10/artifact/}{recovery/rerun 10}; \href{https://git.yebilly.me/ssw590-group1/vpn-dns-gateway/src/branch/main/delivery/evidence}{versioned summaries and CSVs}\\
\bottomrule
\end{tabularx}
\normalsize
For grader access, Jenkins and Grafana retain the existing Stevens-campus/team
network allowlist. Off campus, contact Vincent or Billy for approved-network
access; the split-tunnel Stevens VPN is not a substitute
(Section~\ref{Section:JenkinsAccess}). A login page is not job access: use an
authorized account, or request a team-assisted review/read-only access.
No separate grader account or new permission is claimed. Never put account
secrets in the submission. Public application URLs allow independent health,
identity and price checks; the PDF includes the actual results and limitations,
and Gitea retains non-secret evidence so a new pipeline run is unnecessary.
After grading, only when instructed, retain required evidence and remove only
the two pricing projects, their routes, monitoring additions and test DNS.
Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB