diff --git a/devopsAIPromptLog.tex b/devopsAIPromptLog.tex index 816d127..603a7ca 100644 --- a/devopsAIPromptLog.tex +++ b/devopsAIPromptLog.tex @@ -104,3 +104,5 @@ Date: October 8, 2026; Contributors: MB, CDX; Task: improve Chapter 2 formatting \section{Automated Manual Build Implementation} Date: October 10, 2026; contributors: MB, CDX; tool: OpenAI Codex using Computer Use in Safari. The user authorized completing Chapter 3 in the existing Lightsail Gitea project. Read the earlier report and dosManual version 1.18. Observed Gitea 1.22.3, Caddy 2.8.4, act runner 0.6.1, and an already registered texlive runner. The draft workflow existed only outside the repository. Prepared a versioned push workflow, pinned TeX image, Node runtime, and visible build metadata. An isolated preflight compilation succeeded. Actions run and artifact verification remain pending at this source revision; subsequent evidence will record actual results. No secrets are included. + +Verified runs 1 and 2 passed for successive changes; run 3 failed for the intentional undefined command with upload skipped; run 4 passed after repair. Added Chapter 3, host and hint-only credential records, glossary terms, and evidence links. No credential value was written to source. diff --git a/devopsAssignment.tex b/devopsAssignment.tex index 43c26e3..2ba3f27 100644 --- a/devopsAssignment.tex +++ b/devopsAssignment.tex @@ -89,6 +89,8 @@ } \changenormalspacing{\singlespacing} +\newglossaryentry{ciartifact}{name={build artifact},description={A retained output associated with a specific workflow run}} +\newglossaryentry{cirunner}{name={Actions runner},description={An agent that receives and executes Gitea workflow jobs}} \begin{document} \pagenumbering{roman} \singlespacing diff --git a/devopsAutomatedManualBuild.tex b/devopsAutomatedManualBuild.tex index 652f5b9..e627e08 100644 --- a/devopsAutomatedManualBuild.tex +++ b/devopsAutomatedManualBuild.tex @@ -1,17 +1,18 @@ \chapter{Automated Manual Build} +\sloppy \ChapterLabel{AutomatedManualBuild} \index{Gitea Actions}\index{runner}\index{build artifact}\index{traceability} \section{Source and Trigger} -The source of record is \url{https://git.590hcm.dev/SSW590Team/devOpsManual}. The main document is \texttt{devopsAssignment.tex}; tracked chapter files, bibliography, figures in \texttt{prism-uploads}, and \texttt{.latexmkrc} form the build input. The workflow is \texttt{.gitea/workflows/build-manual.yaml}. Pushes to \texttt{main} and the isolated \texttt{chapter3-validation} branch trigger a build. Generated metadata and PDFs are ignored, so the build never commits its own output. +The source of record is \url{https://git.590hcm.dev/SSW590Team/devOpsManual}. The main document is \path{devopsAssignment.tex}; tracked chapter files, bibliography, figures in \path{prism-uploads}, and \path{.latexmkrc} form the build input. The workflow is \path{.gitea/workflows/build-manual.yaml}. Pushes to \path{main} and the isolated \path{chapter3-validation} branch trigger a build. Generated metadata and PDFs are ignored, so the build never commits its own output. \begin{center}\fbox{HTTPS push :443 $\rightarrow$ Caddy $\rightarrow$ Gitea :3000}\par\smallskip \fbox{Runner polls Gitea $\rightarrow$ TeX container $\rightarrow$ PDF artifact}\end{center} The public HTTPS route retains certificate verification. Gitea port 3000 stays on the Docker network. The runner polls outward; no new public runner port is needed. \section{Runner Installation and Execution} -Observed October 10, 2026: the existing \texttt{lightsail-actions-runner} runs act runner 0.6.1 in Docker on Gitea-Project, Ubuntu 24.04.4 LTS, at 184.193.0.32. Its deployment is in \texttt{/home/ubuntu/gitea-deploy}; registration persists in its runner-data volume. The server has 2 GB RAM, two vCPUs, and 60 GB disk. The runner uses the \texttt{texlive} label. Its generated default configuration has capacity one. Each workflow job uses a temporary container with one CPU and 1 GB memory, leaving capacity for Gitea and Caddy. The runner was already registered; the missing repository workflow, rather than absent registration, prevented builds. -Registration scope is recorded in the final verification notes. The runner requires outbound HTTPS to Gitea, GitHub action repositories, the container registry, and Alpine package repositories. No deployment service was moved or replaced. +Observed October 10, 2026: the existing \path{lightsail-actions-runner} runs act runner 0.6.1 in Docker on Gitea-Project, Ubuntu 24.04.4 LTS, at 184.193.0.32. Its deployment is in \path{/home/ubuntu/gitea-deploy}; registration persists in its runner-data volume. The server has 2 GB RAM, two vCPUs, and 60 GB disk. The runner uses the \path{texlive} label. Its generated default configuration has capacity one. Each workflow job uses a temporary container with one CPU and 1 GB memory, leaving capacity for Gitea and Caddy. The runner was already registered; the missing repository workflow, rather than absent registration, prevented builds. +The repository runner settings show global scope, runner ID 1, idle and online. This pre-existing global scope was not changed. The runner requires outbound HTTPS to Gitea, GitHub action repositories, the container registry, and Alpine package repositories. No deployment service was moved or replaced. \section{Reproducible Compilation} The workflow pins the TeX image to the digest below, records Node.js 24.18.1-r0, and uses checkout v3.6.0 and upload-artifact v3.1.3 from their GitHub action repositories. The existing runner image uses a latest tag; its observed executable version is recorded above. Action tags and Alpine package availability remain external dependencies; the TeX filesystem is digest-pinned. -\begin{quote}\small\url{ghcr.io/xu-cheng/texlive-full@sha256:c06416ebbc69c8e90e07d1f1a6f7a3f9b334e773daa3543ce879ea533317c3a7}\end{quote} +\begin{quote}\small\url{ghcr.io/xu-cheng/texlive-full@sha256:c06416ebbc69c8e90e07d1f1a6f7a3f9}\par\noindent\texttt{b334e773daa3543ce879ea533317c3a7}\end{quote} The container has the TeX packages required by this manual. Node is installed before JavaScript actions execute. Checkout selects the triggering revision and does not persist Git credentials. From the repository root, compilation uses: \begin{verbatim} latexmk -pdf -interaction=nonstopmode \ @@ -20,14 +21,16 @@ test -s devopsAssignment.pdf \end{verbatim} Latexmk repeats the necessary LaTeX and bibliography passes. The repository's custom dependencies invoke makeglossaries; the index is generated during the build. Missing inputs, invalid TeX, and an absent or empty PDF fail the job. An isolated preflight with networking disabled succeeded, and Actions run 1 compiled in 21 seconds. No host TeX installation is required. \section{PDF Version and Traceability} -The human document version is combined with \texttt{+build.RUN.SHORTSHA}. Gitea supplies the run number and triggering SHA to a generated \texttt{build\_meta.tex}; only its seven-character commit abbreviation and numeric run are written. The main document imports this file and displays the version in the page footer. Local compilation falls back to build 0/local. Metadata is untracked and no write-back step exists. The artifact name retains the full SHA so a downloaded PDF can be correlated with the exact source revision. +The human document version is combined with \path{+build.RUN.SHORTSHA}. Gitea supplies the run number and triggering SHA to a generated \path{build\_meta.tex}; only its seven-character commit abbreviation and numeric run are written. The main document imports this file and displays the version in the page footer. Local compilation falls back to build 0/local. Metadata is untracked and no write-back step exists. The artifact name retains the full SHA so a downloaded PDF can be correlated with the exact source revision. \section{Artifact Publication and Retrieval} -Only a successful compilation reaches upload. The named artifact is \texttt{devops-manual-build-RUN-FULLSHA}; it contains \texttt{devopsAssignment.pdf}, uses a 30-day retention request, and treats a missing file as an error. Open the repository Actions tab, choose a successful run, and select its artifact link. Extract the downloaded archive and inspect the PDF version before submission. Keep a local copy before retention expires. A failed run must not be used as a source of a new PDF. +Only a successful compilation reaches upload. The named artifact is \path{devops-manual-build-RUN-FULLSHA}; it contains \path{devopsAssignment.pdf}, uses a 30-day retention request, and treats a missing file as an error. Open the repository Actions tab, choose a successful run, and select its artifact link. Extract the downloaded archive and inspect the PDF version before submission. Keep a local copy before retention expires. A failed run must not be used as a source of a new PDF. \section{Successive Changes and Failure Recovery} \input{devopsBuildEvidence} \section{Runner and Secret Boundaries} Repository writers who can edit workflows can execute commands on this runner. The runner mounts the host Docker socket, which grants powerful host-level control; a temporary job container is not a security boundary against a malicious workflow author. Only trusted project contributors should have write access. No new membership or permission was granted. This workflow uses no custom repository secret, disables checkout credential persistence, and does not print registration credentials. The runner registration file and deployment credentials remain outside the repository. Hosts and Passwords chapters add runner-specific, hint-only records. Never place passwords, tokens, or private keys in source, screenshots, logs, or artifacts. \section{Operations, Evidence, and Troubleshooting} -Evidence was collected on October 10, 2026 from Safari, the Lightsail SSH session, and Gitea Actions. Run 1 (\texttt{fb97d71}) succeeded in 56 seconds including checkout, metadata, compilation, and artifact upload: \url{https://git.590hcm.dev/SSW590Team/devOpsManual/actions/runs/1}. -For a queued job, check the runner is online, its registration scope includes this repository, and its label matches \texttt{texlive}. For checkout failures, check HTTPS reachability and source permissions. For a TeX error, open the compilation step and fix the reported file and line, then push a new commit. For missing artifacts, inspect the upload step and PDF existence check. For memory pressure, keep capacity one and the job limits; do not run parallel full TeX builds on this host. The original draft workflow was under the deployment directory, so Gitea could not discover it until it was committed under the repository's workflow path. +Evidence was collected on October 10, 2026 from Safari, the Lightsail SSH session, and Gitea Actions. Run 1 (\path{fb97d71}) succeeded in 56 seconds including checkout, metadata, compilation, and artifact upload: \url{https://git.590hcm.dev/SSW590Team/devOpsManual/actions/runs/1}. +For a queued job, check the runner is online, its registration scope includes this repository, and its label matches \path{texlive}. For checkout failures, check HTTPS reachability and source permissions. For a TeX error, open the compilation step and fix the reported file and line, then push a new commit. For missing artifacts, inspect the upload step and PDF existence check. For memory pressure, keep capacity one and the job limits; do not run parallel full TeX builds on this host. The original draft workflow was under the deployment directory, so Gitea could not discover it until it was committed under the repository's workflow path. References (accessed October 10, 2026): \url{https://docs.gitea.com/1.22/usage/actions/comparison/}. Gitea 1.22 does not enforce all GitHub workflow keys, including concurrency and permissions; this workflow does not rely on those keys for isolation or scheduling. + +\fussy diff --git a/devopsBuildEvidence.tex b/devopsBuildEvidence.tex index 9fdab38..9072b11 100644 --- a/devopsBuildEvidence.tex +++ b/devopsBuildEvidence.tex @@ -1 +1,16 @@ -Run 1 establishes the first successful source revision. Further validation is pending at this intermediate revision. +Verified October 10, 2026. Two successive pushes to main produced distinct successful PDFs. A covered test branch demonstrated failure and recovery. +\begin{longtable}{p{0.10\textwidth}p{0.18\textwidth}p{0.57\textwidth}} +\textbf{Run} & \textbf{Commit} & \textbf{Change and result}\\\hline +1 & fb97d71 & Added workflow and metadata. Success, 56 s; artifact published; version 1.9+build.1.fb97d71.\\ +2 & d316cbb & Added this chapter and updated title/date. Success, 24 s; distinct artifact; version 1.9+build.2.d316cbb.\\ +3 & eb4e42c & Undefined LaTeX command on chapter3-validation. Failed, 8 s; upload skipped, no artifact.\\ +4 & 398093b & Removed the deliberate error on the same branch. Success; artifact restored; version 1.9+build.4.398093b.\\ +\end{longtable} +Run 3 reports Undefined control sequence in \path{devopsBuildEvidence.tex}, line 2, for \path{\ChapterThreeIntentionalError}. Latexmk exits 12; compilation fails and upload is skipped. The repair removes precisely that line. Successful run pages expose artifacts named with the run number and full commit SHA. +\begin{itemize} +\item \url{https://git.590hcm.dev/SSW590Team/devOpsManual/actions/runs/1} +\item \url{https://git.590hcm.dev/SSW590Team/devOpsManual/actions/runs/2} +\item \url{https://git.590hcm.dev/SSW590Team/devOpsManual/actions/runs/3} +\item \url{https://git.590hcm.dev/SSW590Team/devOpsManual/actions/runs/4} +\end{itemize} +The final main revision adds these results, verified host/credential tables, and layout improvements. Its footer and artifact name identify the exact delivery build. diff --git a/devopsDocumentHistory.tex b/devopsDocumentHistory.tex index 2a59a1c..f193b79 100644 --- a/devopsDocumentHistory.tex +++ b/devopsDocumentHistory.tex @@ -12,7 +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 / contributor} & \textbf{Change} & \textbf{Sections / related tables}\\ \midrule \endhead \bottomrule \endlastfoot -October 10, 2026 / 1.9 (draft) & MB, CDX & Prepared Gitea Actions PDF compilation and visible commit/run metadata. Runner already registered; end-to-end run verification pending. Hosts and Passwords tables will be updated with verified runner details in the completed chapter. & \ChapterRef{AIPromptLog}\\ +October 10, 2026 / 1.9 & MB, CDX & Added Automated Manual Build chapter, push workflow, visible build metadata, validation evidence, and glossary terms. Updated Hosts with verified runner resources and global scope; updated Passwords with hint-only credential boundaries. & \ChapterRef{AIPromptLog}\\ October 8, 2026 / 1.8 (draft) & MB, CDX & Improved Chapter 2 wording and layout, removed screenshot transcriptions that duplicated the supplied figures, and standardized contributor initials. & \ChapterRef{Gitea}, \ChapterRef{AIPromptLog}\\ October 8, 2026 / 1.7 (draft) & MB, CDX & Clarified provider responsibilities: Name.com is the domain registrar and AWS Lightsail is the production hosting provider. & \hyperref[sec:gitea-domain]{Section~\ref*{sec:gitea-domain}}, \hyperref[sec:gitea-deployment]{Section~\ref*{sec:gitea-deployment}}, \ChapterRef{Gitea}, \ChapterRef{Hosts}\\ diff --git a/devopsHosts.tex b/devopsHosts.tex index 38a7789..693ef18 100644 --- a/devopsHosts.tex +++ b/devopsHosts.tex @@ -47,4 +47,12 @@ 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}. \ No newline at end of file +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} diff --git a/devopsPasswords.tex b/devopsPasswords.tex index 3a3ace9..c2b0358 100644 --- a/devopsPasswords.tex +++ b/devopsPasswords.tex @@ -51,4 +51,11 @@ Gitea administrator & \texttt{git.590hcm.dev} & Individual administrator account \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 \ No newline at end of file +\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}