devOpsManual/devopsHosts.tex
carmen-cortese b2ddec4565 Restructure Chapter 5 into the eight required evidence sections
Rename the chapter to "Introduction to SRE: Monitoring and Reliability"
and reorganize it around the eight evidence sections and rubric rows in
dosManual v1.42 Chapter 5. Add an evidence-status table, the actual
deployment diagram, metric inventory, dashboard and alert tables, the
worked SLO example, and an incident timeline template. Completed and
pending work are marked separately; no new operational results are
claimed.

Include the chapter in the manual (version 1.12) and add monitoring
records to Hosts and Passwords, glossary terms, citations, document
history, and the AI prompt log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:05:56 -05:00

82 lines
5.5 KiB
TeX

\chapter{Hosts}
\ChapterLabel{Hosts}
\index{hosts}
\index{development environment}
Name.com is the domain registrar for \texttt{590hcm.dev}; AWS Lightsail is
the hosting provider for the production Gitea instance at
\texttt{git.590hcm.dev}. The table also records proposed local development
hosts. The supplied production endpoint is not independent evidence of
instance configuration or firewall testing.
\section{Development Host Inventory}
The local entries use the proposed \texttt{dev-<role>} naming rule. The Gitea
host is a distinct reported production resource; see
\autoref{Table:GiteaDeployment} for instance details still to capture.
\small
\begin{longtable}{@{}L{2.8cm}L{3.2cm}L{3.2cm}L{4.0cm}@{}}
\caption{Development and Gitea Host Inventory\label{Table:DevelopmentHosts}}\\
\toprule
\textbf{Hostname} & \textbf{Role} & \textbf{Environment / provider} & \textbf{Address / exposed ports / URL}\\
\midrule
\endfirsthead
\multicolumn{4}{l}{\small\itshape Development and Gitea hosts (continued)}\\
\toprule
\textbf{Hostname} & \textbf{Role} & \textbf{Environment / provider} & \textbf{Address / exposed ports / URL}\\
\midrule
\endhead
\midrule
\multicolumn{4}{r}{\small\itshape Continued on next page}\\
\endfoot
\bottomrule
\endlastfoot
\texttt{dev-workstation} & Primary workspace for writing code and managing course files. & Development / not specified. & Proposed; address to be confirmed.\\
\addlinespace
\texttt{dev-app} & Run and test the development application. & Development / not specified. & Proposed; address to be confirmed.\\
\addlinespace
\texttt{dev-db} & Store test data for the development application. & Development / not specified. & Proposed; address to be confirmed.\\
\addlinespace
\texttt{dev-build} & Run repeatable builds and automated tests. & Development / not specified. & Proposed; address to be confirmed.\\
\addlinespace
\texttt{git.590hcm.dev} & Gitea Work Hub / Source Control \& Issue Tracking. & Production / AWS Lightsail. & IPv4: \texttt{184.193.0.32}; intended 80/TCP, 443/TCP, restricted 22/TCP. Screenshot observed 80/TCP any IPv4/IPv6, 443/TCP any IPv4, and 22/TCP any IPv4/IPv6 (unrestricted; correction required). \url{https://git.590hcm.dev}.\\
\end{longtable}
\normalsize
The four \texttt{dev-*} entries remain proposed. The Gitea production hostname,
role, provider, IPv4 address, and intended exposed ports above were supplied
for this revision; obtain console and external-test evidence before marking
them independently verified. Account rules and non-secret vault references
are listed in \ChapterRef{Passwords}.
\section{Verified Chapter 3 Build Host}
\begin{longtable}{p{0.28\textwidth}p{0.62\textwidth}}
\textbf{Component} & \textbf{Observed October 10, 2026}\\\hline
Gitea-Project & AWS Lightsail, 184.193.0.32; Ubuntu 24.04.4; 2 GB RAM, 2 vCPU, 60 GB disk.\\
Runner & lightsail-actions-runner, act runner 0.6.1; global scope; texlive label; Docker mode, default capacity one.\\
Job container & Digest-pinned TeX image; limit 1 GB RAM and one CPU; no published runner port.\\
Services & Existing Gitea 1.22.3 and Caddy 2.8.4 remain on this host.\\
\end{longtable}
\section{Verified Chapter 4 CI Components}
\begin{longtable}{p{0.27\textwidth}p{0.63\textwidth}}
\textbf{Component} & \textbf{Observed October 23, 2026}\\\hline
\texttt{ci.590hcm.dev} & Jenkins on existing Lightsail Gitea-Project, 184.193.0.32; DNS A TTL 300. Browser URL \url{https://ci.590hcm.dev:8443/login} through an approved SSH tunnel and local hostname mapping. Direct public CI HTTPS returns 403.\\
Controller & Official Jenkins 2.580.1 LTS; 768 MiB/1 CPU limit; zero executors; host-loopback 8080 only; named persistent home; inbound agent port disabled.\\
\texttt{jenkins-python-agent} & Private SSH 22, no host-published port; one exclusive python executor; 384 MiB/0.75 CPU limit; persistent workspace and host keys; Python 3.13.5.\\
External exposure & IPv4: 22/80/443 reachable; 3000/8080/50000 timed out. IPv6: 22/80 reachable; 443/3000/8080/50000 timed out. Unrestricted SSH remains open remediation.\\
Ownership / recovery & Existing Lightsail administrator owns CI. Restart persistence verified; no backup/restore claim. No new cloud instance or plan purchased; billing not audited.\\
\end{longtable}
See \ChapterRef{JenkinsCI} for the actual deployment diagram and test evidence.
\section{Chapter 5 Monitoring Components}
\begin{longtable}{p{0.27\textwidth}p{0.63\textwidth}}
\textbf{Component} & \textbf{Observed October 30, 2026 unless marked pending}\\\hline
\texttt{metrics.590hcm.dev} & Planned Grafana HTTPS hostname through Caddy to private \texttt{grafana:3000}. Pending: Name.com DNS record and Caddy route.\\
Prometheus & \texttt{prom/prometheus:v3.15.1}; private 9090; 30-second scrapes; 7-day retention; named volume \texttt{prometheus\_data}.\\
Grafana OSS & \texttt{grafana/grafana:13.2.4}; private 3000 on the monitoring and existing \texttt{gitea-deploy\_internal} networks; no host port; named volume \texttt{grafana\_data}.\\
Node Exporter & \texttt{quay.io/prometheus/node-exporter:v1.12.1}; private 9100; host root, proc, and sys mounted read-only; host PID namespace; not privileged.\\
Blackbox Exporter & \texttt{quay.io/prometheus/blackbox-exporter:v0.29.1}; private 9115; probes the Gitea and Jenkins HTTPS login URLs.\\
Deployment / capacity & \path{/home/ubuntu/monitoring}, a copy of the repository's \path{monitoring/} directory. Persistent 2 GiB swap file added; 592 MiB RAM available with monitoring running in one sample. Monitoring shares the instance's failure domain.\\
\end{longtable}
See \ChapterRef{Monitoring} for the deployment diagram and evidence status.