devOpsManual/devopsPasswords.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

81 lines
5.7 KiB
TeX

\chapter{Passwords}
\ChapterLabel{Passwords}
\index{password rules}
This chapter records proposed development credentials and non-secret vault
references for the reported Gitea production host. These entries do not
confirm that accounts exist. No password, token, private key, or secret value
is included in this report.
\section{My Proposed Password Rule}
My rule is \textbf{one host, one account, one unique secret}. I will use a
separate, randomly generated password of at least 16 characters for each
password-based account and keep it in a password manager. I will not derive
passwords from host names, usernames, the course number, or a shared base
password. Hints below identify only the purpose and vault location, never any
password characters, token, or generation pattern.
\section{User, Password, and Server Rules}
The hosts are described in \ChapterRef{Hosts}. Use unique credentials and
least privilege; use SSH key authentication where available and keep private
keys out of this document and source control.
\small
\begin{longtable}{@{}L{2.1cm}L{3.2cm}L{4.7cm}L{3.6cm}@{}}
\caption{User, Password, and Server Rules\label{Table:PasswordRules}}\\
\toprule
\textbf{User label} & \textbf{Server / host} & \textbf{Password and access rule} & \textbf{Non-secret hint / vault reference}\\
\midrule
\endfirsthead
\multicolumn{4}{l}{\small\itshape Password rules (continued)}\\
\toprule
\textbf{User label} & \textbf{Server / host} & \textbf{Password and access rule} & \textbf{Non-secret hint / vault reference}\\
\midrule
\endhead
\midrule
\multicolumn{4}{r}{\small\itshape Continued on next page}\\
\endfoot
\bottomrule
\endlastfoot
\texttt{devuser} & \texttt{dev-workstation} & Use a unique generated password for the everyday development account; reserve administrative access for tasks that require it. & Vault reference: Development / Workstation (entry title only).\\
\addlinespace
\texttt{appuser} & \texttt{dev-app} & Use a separate generated password if password login is enabled; limit this account to application development tasks. & Vault reference: Development / Application host (entry title only).\\
\addlinespace
\texttt{dbuser} & \texttt{dev-db} & Use a unique database-account password, distinct from the host login; restrict access to the development database. & Vault reference: Development / Database (entry title only).\\
\addlinespace
\texttt{builduser} & \texttt{dev-build} & Use a distinct generated password if interactive login is needed; keep automation credentials separate and out of source files. & Vault reference: Development / Build host (entry title only).\\
\addlinespace
Gitea administrator & \texttt{git.590hcm.dev} & Individual administrator account with only required privileges; account name and existence require confirmation. & Vault reference: Infrastructure / Gitea / Administrator (entry title only).\\
\addlinespace
\texttt{ubuntu} SSH user & AWS Lightsail instance & Prefer key authentication; restrict SSH access to authorized administrators. Never record private key material here. & Vault reference: Infrastructure / Lightsail / SSH key metadata only.\\
\addlinespace
SQLite DB user & \texttt{git.590hcm.dev} & Not applicable for SQLite: the local database file has no separate database login. & N/A; no database-user password or token exists for this configuration.\\
\end{longtable}
\normalsize
\section{Chapter 3 Credential Boundaries}
\begin{longtable}{p{0.28\textwidth}p{0.62\textwidth}}
\textbf{Credential} & \textbf{Hint and boundary only}\\\hline
Gitea push identity & Existing project account max; authenticate only to git.590hcm.dev. No credential value is documented.\\
Runner registration & Existing runner-data volume, .runner registration file; restrict to administrators; never commit or publish.\\
Actions checkout & Job authentication supplied by Gitea; checkout disables credential persistence. No custom workflow secret required.\\
\end{longtable}
\section{Chapter 4 CI Credential Boundaries}
\begin{longtable}{p{0.27\textwidth}p{0.63\textwidth}}
\textbf{Account / credential} & \textbf{Scope and non-secret storage hint}\\\hline
Jenkins \texttt{max} & Named administrator; user created the secret privately. Signup disabled. Current authenticated-user authorization grants full control; review before adding users.\\
Gitea \texttt{jenkins-ci} & Restricted non-admin integration identity; write collaborator on pricing-app only. Token scopes read:user and write:repository; no repository-administration scope.\\
{\small\path{gitea-jenkins-ci-token}} & Jenkins credential ID for source checkout/API status reporting. Protected host secrets directory is outside Git; never include its values in reports or logs.\\
\path{python-agent-ssh} & SYSTEM credential for Jenkins-to-agent SSH only; host key pinned. Not the owner's Lightsail administration key.\\
Operator SSH key & Each operator needs their own approved Lightsail access for the private browser tunnel. Do not share the owner's private key or embed it in CI containers.\\
\end{longtable}
These rows record actual CI account purposes and storage references, not secret values.
\section{Chapter 5 Monitoring Credential Boundaries}
\begin{longtable}{p{0.27\textwidth}p{0.63\textwidth}}
\textbf{Account / credential} & \textbf{Scope and non-secret storage hint}\\\hline
Grafana administrator & Random password in host-only file \path{/home/ubuntu/monitoring/grafana_admin_password}, mode 0600, owned by the Grafana container user, mounted read-only and ignored by Git. Retrieve locally with \texttt{sudo}; never paste it into reports. Default login rejected.\\
Notification destination & Pending: SMTP credential or webhook URL. Must be supplied locally outside Git and redacted from screenshots.\\
Prometheus and exporters & No credentials; reachable only on the private monitoring network.\\
\end{longtable}