Files
vpn-dns-gateway/manual/latex/devopsHostsPasswords.tex
T
billandClaude Opus 5.5 336eaaefa7
vpn-dns-gateway/pipeline/pr-main This commit looks good
Add SRE monitoring chapter and manual v5.0 (refs #19)
New chapter "Introduction to SRE: Monitoring and Reliability" covering the
eight Assignment 7 rubric rows: deployment and capacity trial, metrics and
probes, HTTPS and exposure tests, dashboard and build comparison, SLI/SLO
worked example and measured window, alert rules and tests, the Jenkins
outage exercise with blameless review (#20, #21), and controls.

- Title page and abstract for Assignment 7 "Grafana and Prometheus SRE --
  Group", version 5.0; Document History entry.
- Hosts table: monitoring containers, ports, volumes, metrics DNS, swap,
  disabled host services, monitoring and backup status.
- Passwords table: Grafana billy and vsun1, monitoring secrets file,
  Discord webhook (hints only).
- Glossary: SLI, SLA, SRE, error budget, exporter, scrape, contact point,
  blameless review. AI prompt log record.
- EVIDENCE.md: SLO window, post-recovery build, probe status codes,
  improvement issues, Grafana accounts. Outage dashboard figure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 13:08:23 -04:00

132 lines
9.1 KiB
TeX

\chapter{Hosts and Passwords}
\ChapterLabel{HostsPasswords}
\sloppy
\index{hosts table}
\index{passwords table}
These tables record the startup's current hosts and where each credential is
kept. The Passwords table holds \emph{hints only}: it never contains a
password, token, recovery code, or private key. Distinct services use distinct
credentials, which are stored outside this manual and outside every
repository. Both tables were created on 28 September 2026 for Assignment 4
(\ChapterRef{GiteaFoundation}). The local runner host and its identity hint
were added on October 7, 2026 for \ChapterRef{AutomatedManualBuild}. On
October 22--23, 2026 (\ChapterRef{JenkinsCI}) the droplet record was updated
for the 1\,GiB resize, the Jenkins service, and \texttt{ci.yebilly.me}; the
Color Buttons app was marked retired; and the Passwords table gained the
Jenkins administrators, the \texttt{jenkins-bot} Gitea account, and its token.
On October 28, 2026 (\ChapterRef{SREMonitoring}) the droplet record gained
the four monitoring containers, \texttt{metrics.yebilly.me}, the second swap
file, and real monitoring status; the Passwords table gained the Grafana
accounts, the monitoring secrets file, and the Discord webhook.
\section{Hosts}
\small
\begin{tabularx}{\linewidth}{@{}L{3.3cm}Y@{}}
\caption{Hosts\label{Table:Hosts}}\\
\toprule \textbf{Field} & \textbf{Droplet The-Ocean (git, ci, metrics .yebilly.me)}\\ \midrule
\endfirsthead
\toprule \textbf{Field} & \textbf{Droplet The-Ocean (git, ci, metrics .yebilly.me)}\\ \midrule
\endhead
\bottomrule \endlastfoot
Role & Gitea work hub (Gitea 1.27.3 behind Caddy 2.11.4 TLS proxy); since
22 Oct 2026 also the Jenkins 2.580.1 LTS controller, which runs the CI builds;
since 28 Oct 2026 also the monitoring stack (Prometheus 3.15.1, Grafana OSS
13.2.5, Node Exporter 1.12.1, Blackbox Exporter 0.29.1). The Assignment 3 Color Buttons app (29 Sep 2026) is retired: container
stopped with restart policy \texttt{no}; its Caddy route remains\\
Environment & Course production (team use)\\
Provider & DigitalOcean, NYC1; Ubuntu 24.04 LTS; 1 vCPU; resized from
512\,MB to the 1\,GiB Basic plan in October 2026 (961\,MiB reported, 25\,GB
plan disk); swap files \texttt{/swapfile} and \texttt{/swapfile2}, 1\,GiB
each (second added 28 Oct 2026); \texttt{multipathd}, \texttt{fwupd},
\texttt{udisks2}, and \texttt{ModemManager} disabled and masked\\
Public address / DNS & IPv4 \texttt{147.182.178.136}; \texttt{A} records
\texttt{git}, \texttt{ci}, \texttt{metrics}, and \texttt{colors} \texttt{.yebilly.me}; public
IPv6 \texttt{2604:a880:400:d1:0:5:22d:6001} assigned but not published in DNS\\
Private services & Gitea \texttt{:3000} and Jenkins \texttt{:8080} (512\,MiB
RAM, 0.75 CPU cap; agent port disabled) on Docker network \texttt{gitea\_web},
no host ports; SQLite file in volume \texttt{gitea\_gitea-data}; Jenkins state
in volume \texttt{gitea\_jenkins-home}. Monitoring (Compose project
\texttt{monitoring}, no host ports): Prometheus \texttt{:9090} (128\,MiB),
Node Exporter \texttt{:9100} and Blackbox Exporter \texttt{:9115} (32\,MiB
each) on network \texttt{monitoring\_monitoring}; Grafana \texttt{:3000}
(192\,MiB) also on \texttt{gitea\_web}; Blackbox at \texttt{172.30.90.10} on
\texttt{gitea\_probe} (172.30.90.0/28); volumes
\texttt{monitoring\_prometheus\_data} (7\,d / 500\,MB) and
\texttt{monitoring\_grafana\_data}\\
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
addresses (Caddy allowlist; \texttt{ci} also the probe address), 403
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}\\
Backup status & No backup job; container-replacement persistence verified for
Gitea (\ChapterRef{GiteaFoundation}), restart persistence for Jenkins
(\ChapterRef{JenkinsCI}) and for Prometheus and Grafana
(\ChapterRef{SREMonitoring}); manual volume backup procedure in
\texttt{monitoring/README.md}\\
Monitoring status & Prometheus and Grafana: host CPU, memory, root disk, and
HTTPS probes of Gitea and Jenkins every 30\,s; alerts \emph{HTTPS service
down} and \emph{Root disk space low} to Discord \texttt{\#devops-alerts}.
Shares the droplet's failure domain; no external check yet (issue~\#20)\\
\end{tabularx}
\normalsize
\small
\begin{tabularx}{\linewidth}{@{}L{3.3cm}Y@{}}
\caption{Local build runner host, added October 7, 2026\label{Table:HostsRunner}}\\
\toprule \textbf{Field} & \textbf{Vincent's laptop (\texttt{ssw590-vince-local})}\\ \midrule
\endfirsthead
\toprule \textbf{Field} & \textbf{Vincent's laptop (\texttt{ssw590-vince-local})}\\ \midrule
\endhead
\bottomrule \endlastfoot
Role & Repository-scoped Gitea Actions runner; manual compilation in temporary Docker job containers\\
Environment & Windows laptop, Docker Desktop Linux engine; runner 2.3.0; capacity one job\\
Provider / owner & Local device; VS maintains Docker Desktop, runner availability, and job image\\
Network path & Outbound HTTPS to \texttt{git.yebilly.me:443} and GitHub Actions sources; Caddy forwards to private Gitea \texttt{:3000}; no public runner or Docker daemon port\\
Execution label & \texttt{latex-local}; local image \texttt{ssw590-manual-ci:20261007}\\
Persistent state & Runner registration in named Docker volume \texttt{ssw590-local-runner-data}; compiler image retained in Docker Desktop\\
Availability & Start Docker Desktop and the versioned runner helper after reboot; laptop must remain awake for jobs\\
Monitoring / backup & Runner logs and Gitea Actions checked manually; no automatic backup of runner registration configured\\
\end{tabularx}
\normalsize
\clearpage
\section{Passwords (Hints Only)}
\small
\begin{tabularx}{\linewidth}{@{}L{3.2cm}L{1.3cm}YL{2.5cm}@{}}
\caption{Passwords (hints only)\label{Table:Passwords}}\\
\toprule \textbf{Service / account} & \textbf{Owner} & \textbf{Where it is kept (hint)} & \textbf{Privilege}\\ \midrule
\endfirsthead
\toprule \textbf{Service / account} & \textbf{Owner} & \textbf{Where it is kept (hint)} & \textbf{Privilege}\\ \midrule
\endhead
\bottomrule \endlastfoot
Gitea local runner identity & VS & Docker volume \texttt{ssw590-local-runner-data}, file \texttt{/data/.runner}; generated identity, no values in Git; registration token supplied privately from repository settings & Repository runner; Docker control on VS laptop\\
Gitea \texttt{bill} & BY & BY's password manager & Site administrator\\
Gitea \texttt{vsun1} & VS & VS's password manager & Repository administrator\\
Gitea \texttt{jenkins-bot} (added 22 Oct 2026) & BY & BY's password manager; used only to create its token & Write collaborator on \texttt{vpn-dns-gateway}\\
\texttt{jenkins-bot} token \texttt{jenkins-ci} & BY & Jenkins credential ID \texttt{gitea-jenkins-bot} (System, Global), encrypted in volume \texttt{gitea\_jenkins-home}; revoke under the bot's Gitea Applications settings & Repository read/write; organization and user read\\
Jenkins \texttt{billy} & BY & BY's password manager & Administer (all)\\
Jenkins \texttt{vsun1} & VS & VS's password manager & Administer (all)\\
Jenkins initial admin password & --- & One-time setup secret in \texttt{/var/jenkins\_home/secrets/}; read once by BY, superseded by named accounts & Setup only\\
Grafana \texttt{billy} (added 28 Oct 2026) & BY & BY's password manager; initial value in the monitoring secrets file, used only when Grafana first created its database & Grafana Admin\\
Grafana \texttt{vsun1} (added 28 Oct 2026) & VS & VS's password manager; temporary password set by BY and sent privately, to be changed by VS at first login & Viewer\\
Monitoring secrets \texttt{.env.secret} & BY & \texttt{\textasciitilde/monitoring/.env.secret} on the droplet, mode 600, root; typed by BY; holds the initial Grafana admin password and the Discord webhook URL; never in Git & n/a\\
Discord webhook \texttt{Grafana} & BY & BY's password manager and the monitoring secrets file; revoke under \texttt{\#devops-alerts} $\rightarrow$ Integrations $\rightarrow$ Webhooks & Post to \texttt{\#devops-alerts}\\
CI allowlist \texttt{.env} & BY & \texttt{\textasciitilde/gitea/.env} on the droplet, root-only; holds team and approved grader IP addresses (personal data, not a secret); grader entries are removed after grading & n/a\\
DigitalOcean team & BY, VS & Each member's own login, in their password manager & Team member\\
Namecheap (\texttt{yebilly.me}) & BY & BY's password manager & Domain owner\\
Droplet \texttt{root} SSH & BY & Key-based only; private key \texttt{digiOcean} on BY's laptop; no password login & Root\\
Let's Encrypt ACME account & --- & Account key generated by Caddy in volume \texttt{caddy-data}; no password & Certificate issuance\\
Gitea database (SQLite) & --- & No credential; file access limited to droplet \texttt{root} & n/a\\
\end{tabularx}
\normalsize
Multi-factor authentication and rotation status have not yet been recorded for
these accounts. Some credentials also have local copies on members' devices;
moving them into the password managers is an open follow-up.
\fussy