Author SHA1 Message Date
nageshwaran_manikumar 780b99cab8 Merge branch 'main' into docs/manual-v1.4
startup-product-gitea-ci/pipeline/pr-main This commit looks good
2026-10-23 08:10:52 +00:00
nageshwaran_manikumar 37ce610c68 docs: add Jenkins CI chapter and update DevOps manual to v1.4
startup-product-gitea-ci/pipeline/head This commit looks good
startup-product-gitea-ci/pipeline/pr-main This commit looks good
2026-10-23 04:01:36 -04:00
nageshwaran_manikumar b2cdc5cad4 Merge pull request 'Add Jenkins CI pipeline and automated Node.js tests' (#8) from feature/jenkins-ci into main
startup-product-gitea-ci/pipeline/head This commit looks good
Build DevOps IT Manual / Compile LaTeX PDF (push) Successful in 34s
Reviewed-on: #8
Reviewed-by: shiv <Shivpatel2002@gmail.com>
2026-10-23 07:14:28 +00:00
nageshwaran_manikumar e00142ae09 Fix failing health check test and restore CI
startup-product-gitea-ci/pipeline/pr-main This commit looks good
2026-10-23 02:55:58 -04:00
nageshwaran_manikumar e1d900755c Demonstrate Jenkins CI failure with intentional test mismatch
startup-product-gitea-ci/pipeline/pr-main There was a failure building this commit
2026-10-23 02:41:40 -04:00
nageshwaran_manikumar cb7a62a2a5 Test automatic Jenkins webhook trigger
startup-product-gitea-ci/pipeline/head This commit looks good
startup-product-gitea-ci/pipeline/pr-main This commit looks good
2026-10-22 22:38:43 -04:00
nageshwaran_manikumar 0b5c0a8ab1 Add Jenkins CI pipeline and Node.js automated tests
startup-product-gitea-ci/pipeline/head This commit looks good
2026-10-22 20:48:38 -04:00
nageshwaran_manikumar 7a23812277 Integrate complete Version 1.3 manual with automated PDF build
Build DevOps IT Manual / Compile LaTeX PDF (push) Successful in 33s
2026-10-09 18:18:44 -04:00
nageshwaran_manikumar e3a96889b2 Repair intentional LaTeX compilation failure
Build DevOps IT Manual / Compile LaTeX PDF (push) Successful in 21s
2026-10-09 18:03:04 -04:00
nageshwaran_manikumar 0b38b75ef3 Test CI failure detection with intentional LaTeX error
Build DevOps IT Manual / Compile LaTeX PDF (push) Failing after 10s
2026-10-09 17:58:46 -04:00
nageshwaran_manikumar 74756c8915 Record first successful push-triggered PDF build
Build DevOps IT Manual / Compile LaTeX PDF (push) Successful in 21s
2026-10-09 17:56:12 -04:00
nageshwaran_manikumar 7be302d61e Document successful Gitea Actions LaTeX build
Build DevOps IT Manual / Compile LaTeX PDF (push) Successful in 21s
2026-10-09 17:51:07 -04:00
nageshwaran_manikumar d1a62286bf Add automated LaTeX manual build workflow
Build DevOps IT Manual / Compile LaTeX PDF (push) Failing after 0s
2026-10-09 17:19:44 -04:00
nageshwaran_manikumar 8162113127 Add Caddy reverse proxy configuration 2026-10-02 21:52:09 -04:00
nageshwaran_manikumar 75e3534717 Merge pull request 'Add application health-check documentation (#2)' (#7) from feature/2-health-check into main
Reviewed-on: #7
2026-10-03 01:38:53 +00:00
nageshwaran_manikumar 74d1785704 Merge pull request 'Add product landing page documentation (#1)' (#6) from feature/1-product-landing-page into main
Reviewed-on: #6
2026-10-03 01:34:28 +00:00
nageshwaran_manikumar 7e08ef0924 Add application health-check documentation (#2) 2026-10-02 21:19:09 -04:00
40 changed files with 2240 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
FROM ghcr.io/xu-cheng/texlive-full@sha256:c06416ebbc69c8e90e07d1f1a6f7a3f9b334e773daa3543ce879ea533317c3a7
RUN apk add --no-cache nodejs npm
+54
View File
@@ -0,0 +1,54 @@
name: Build DevOps IT Manual
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-manual:
name: Compile LaTeX PDF
runs-on: latex-build
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Generate build metadata
shell: sh
run: |
set -eu
SHORT_SHA="$(printf '%s' "$GITHUB_SHA" | cut -c1-7)"
BUILD_ID="v1.4+build.${GITHUB_RUN_NUMBER}.${SHORT_SHA}"
cat > manual/build_metadata.tex <<EOF
\renewcommand{\BuildIdentifier}{${BUILD_ID}}
\renewcommand{\BuildCommit}{${GITHUB_SHA}}
\renewcommand{\BuildRun}{${GITHUB_RUN_NUMBER}}
\renewcommand{\BuildAttempt}{${GITHUB_RUN_ATTEMPT:-1}}
EOF
- name: Compile complete manual
shell: sh
run: |
set -eu
cd manual
latexmk -pdf -interaction=nonstopmode \
-halt-on-error -file-line-error itManual.tex
test -s itManual.pdf
mkdir -p dist
cp itManual.pdf dist/SSW590-DevOps-IT-Manual.pdf
- name: Upload PDF artifact
uses: actions/upload-artifact@v4
with:
name: SSW590-DevOps-IT-Manual
path: manual/dist/SSW590-DevOps-IT-Manual.pdf
retention-days: 14
if-no-files-found: error
Vendored
+49
View File
@@ -0,0 +1,49 @@
pipeline {
agent any
options {
disableConcurrentBuilds()
timeout(time: 5, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr: '5'))
}
stages {
stage('Checkout') {
steps {
checkout scm
}
}
stage('Verify Node.js') {
steps {
sh 'node --version'
sh 'npm --version'
}
}
stage('Syntax Check') {
steps {
dir('app') {
sh 'npm run check'
}
}
}
stage('Automated Tests') {
steps {
dir('app') {
sh 'npm test'
}
}
}
}
post {
success {
echo 'CI PASSED: All checks completed successfully.'
}
failure {
echo 'CI FAILED: Review the Jenkins console output.'
}
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"name": "startup-product",
"version": "1.0.0",
"private": true,
"scripts": {
"test": "node --test",
"check": "node --check src/health.js"
}
}
+8
View File
@@ -0,0 +1,8 @@
function getHealthStatus(databaseConnected) {
return {
status: databaseConnected ? "healthy" : "unhealthy",
database: databaseConnected ? "connected" : "disconnected"
};
}
module.exports = { getHealthStatus };
+17
View File
@@ -0,0 +1,17 @@
const test = require("node:test");
const assert = require("node:assert/strict");
const { getHealthStatus } = require("../src/health");
test("reports healthy when database is connected", () => {
assert.deepEqual(getHealthStatus(true), {
status: "healthy",
database: "connected"
});
});
test("reports unhealthy when database is disconnected", () => {
assert.deepEqual(getHealthStatus(false), {
status: "unhealthy",
database: "disconnected"
});
});
+1
View File
@@ -0,0 +1 @@
Jenkins webhook automatic build test
+3
View File
@@ -0,0 +1,3 @@
git.nageshwaran.dev {
reverse_proxy gitea:3000
}
+21
View File
@@ -0,0 +1,21 @@
# Application Health Check
## Purpose
The health-check endpoint provides a simple way to verify that the startup application is responding.
## Expected Behavior
A successful health check should return an HTTP 200 response and indicate that the application is available.
## Operational Use
The endpoint can be used by the startup team to perform basic service availability checks during development and deployment.
## Verification
The team should verify the endpoint after deployment and after service restarts.
## Future Development
The health check can be extended to include dependency and database availability checks when those components are introduced.
+1
View File
@@ -0,0 +1 @@
SSW590 DevOps IT Manual LaTeX project. Build from manual/: latexmk -pdf -interaction=nonstopmode -halt-on-error -file-line-error main.tex. build_metadata.tex is generated by CI and must not be committed. This is a source scaffold; the instructor requires real Gitea Actions run evidence and the final PDF downloaded from the successful workflow.
+15
View File
@@ -0,0 +1,15 @@
\chapter{Operational Registers}\label{ch:registers}
\section{Hosts Table}
\begin{longtable}{p{.24\linewidth}p{.23\linewidth}p{.28\linewidth}p{.16\linewidth}}\toprule Host or service & Role & Exposure & Owner\\\midrule
\url{git.nageshwaran.dev} & Public Gitea endpoint & HTTPS 443; HTTP 80 redirects & NM\\
DigitalOcean Droplet & Ubuntu 24.04 Docker host; IPv4 143.244.173.110 & SSH 22 restricted to approved IPv4 /32 & NM\\
Gitea container & Repository and Actions service & Private container port 3000 & NM\\
Caddy container & TLS proxy & Public TCP 80/443 & NM\\
Gitea Actions runner & Pending installation & No public management port planned & Team\\\bottomrule\end{longtable}
\section{Passwords Table (hints only)}
\begin{longtable}{p{.25\linewidth}p{.20\linewidth}p{.46\linewidth}}\toprule Service & Owner & Secret-handling hint\\\midrule
Droplet SSH & NM & Key-based login; private key remains on owner device.\\
Gitea accounts & NM / SP & Individual credentials held outside the repository.\\
Caddy ACME & NM & Account material persists in restricted Caddy data directory.\\
Runner registration & Team & Token must be kept outside repository, logs, and PDF; location to document after setup.\\\bottomrule\end{longtable}
\noindent\textbf{Controls:} The runner row is a planned addition, not evidence that a runner has been registered.\index{secrets}
+17
View File
@@ -0,0 +1,17 @@
\chapter{Startup Foundation with Gitea}\label{ch:gitea}
\section{Student Pack Domain and DNS}
The team uses the domain \texttt{nageshwaran.dev} and subdomain \url{https://git.nageshwaran.dev}. A DNS A record maps the subdomain to \texttt{143.244.173.110}. The domain was obtained through a GitHub Student Developer Pack offer at Name.com. Registration and renewal terms should be rechecked against the registrar account before final submission.
\section{Pinned Gitea Deployment}
The Ubuntu 24.04 Droplet uses Docker Compose. Gitea runs with \texttt{docker.gitea.com/gitea:1.27.3-rootless}; Caddy uses \texttt{caddy:2.10.2-alpine}. Gitea's port 3000 is not published on the host. Caddy publishes TCP 80/443 and proxies to \texttt{gitea:3000} on the private Docker network.
\section{Database and Persistence}
The deployed Gitea instance uses SQLite. Host bind mounts preserve repository and application data across container recreation. The previously documented test confirmed that the \texttt{persistence-test} repository directory survived replacement; separate issue persistence verification remains outstanding.
\section{HTTPS and Certificate Renewal}
Caddy terminates HTTPS and redirects HTTP requests to HTTPS. Earlier evidence recorded an HTTP 308 redirect, HTTPS 200 response, and a Let's Encrypt certificate issued September 30, 2026, expiring December 29, 2026. Automatic renewal scheduling was observed; an actual renewal or dry-run test was not recorded.\index{HTTPS}
\section{Firewall and External Exposure}
The DigitalOcean Cloud Firewall allows public HTTP/HTTPS and restricts SSH to an approved IPv4 source. External testing previously showed port 3000 unreachable. The approved SSH source address may change and must be maintained in the Cloud Firewall.
\section{Startup Team Workflow}
The organization \texttt{SSW590-Startup} has repository \texttt{startup-product} and two members. Five issues were created; pull requests \#6 and \#7 were peer reviewed and merged. The repository is at \url{https://git.nageshwaran.dev/SSW590-Startup/startup-product}.
\section{Architecture and Operation}
\begin{center}\fbox{\begin{minipage}{.83\linewidth}\centering Git clients (HTTPS 443) $\longrightarrow$ Caddy TLS proxy $\longrightarrow$ Gitea (private 3000)\\[.5em]Gitea $\longrightarrow$ persistent SQLite and Git repositories\\[.5em]Gitea Actions $\longleftrightarrow$ external runner (planned)\end{minipage}}\end{center}
\section{Manual Quality and Controls}
The current chapter summarizes the existing Version 1.2 manual. The full evidence screenshots remain in the previously submitted manual PDF; they have not been silently recreated in this source project. Before final submission, insert dated, labeled evidence figures and confirm the deployed public root URL configuration.\index{Gitea}
+380
View File
@@ -0,0 +1,380 @@
\chapter{Automated LaTeX Manual Builds with Gitea Actions}
\label{ch:actions}
\noindent\textbf{Evidence status:}
The self-hosted Gitea Actions runner has been registered,
configured, and successfully used to compile and publish
the LaTeX manual as a downloadable workflow artifact.
Additional source-change and failure-repair demonstrations
are still pending.
\section{Source and Trigger}
The source-of-truth repository for this project is:
\begin{center}
\url{https://git.nageshwaran.dev/SSW590-Startup/startup-product}
\end{center}
The main LaTeX document is located at
\texttt{manual/main.tex}. Chapter files are maintained
in the \texttt{manual/chapters/} directory.
The automated workflow is defined in:
\begin{center}
\texttt{.gitea/workflows/manual-build.yml}
\end{center}
The workflow is configured to execute when changes are
pushed to the \texttt{main} branch. It also supports
manual execution using \texttt{workflow\_dispatch}.
This ensures that the documentation can be rebuilt
automatically from the repository's source files.
\section{Runner Setup}
A self-hosted Gitea Actions runner was installed and
registered on a macOS computer rather than on the
DigitalOcean Droplet.
The runner was configured as follows:
\begin{itemize}
\item Runner name: \texttt{macbook-latex-runner}
\item Runner version: \texttt{v5.0.0}
\item Runner label: \texttt{latex-build}
\item Host operating system: macOS on Apple Silicon
\item Container engine: Docker through Colima
\item Execution environment: Linux AMD64 Docker container
\end{itemize}
The DigitalOcean Droplet continues to host the Gitea
server, while the MacBook performs the computationally
intensive LaTeX compilation.
This separation reduces resource usage on the
memory-constrained Droplet.
The runner uses a custom Docker image named:
\begin{center}
\texttt{ssw590-texlive-node:1.0}
\end{center}
This image contains Node.js, npm, TeX Live, and latexmk.
The runner configuration includes:
\begin{verbatim}
runner:
labels:
- "latex-build:docker://ssw590-texlive-node:1.0"
container:
docker_host: "-"
options: "--platform linux/amd64"
\end{verbatim}
The Docker host setting prevents the macOS Colima socket
from being mounted into the job container.
The runner successfully connected to Gitea and executed
the automated manual build.
\section{Reproducible Compilation}
The automated build uses a custom Docker image derived
from the following pinned TeX Live image:
\begin{verbatim}
ghcr.io/xu-cheng/texlive-full@
sha256:c06416ebbc69c8e90e07d1f1a6f7a3f9b334e773daa3543ce879ea533317c3a7
\end{verbatim}
The custom image installs Node.js and npm using Alpine
Linux's \texttt{apk} package manager.
The installed tool versions were verified as:
\begin{itemize}
\item Node.js: \texttt{v24.18.1}
\item npm: \texttt{11.12.1}
\item latexmk: \texttt{4.88}
\end{itemize}
The LaTeX document is compiled using:
\begin{verbatim}
latexmk -pdf -interaction=nonstopmode \
-halt-on-error -file-line-error main.tex
\end{verbatim}
The workflow checks that the generated PDF exists
and is nonempty before uploading it.
The base TeX Live image is pinned by digest. The custom
image is built locally and identified by its local tag;
its final image digest has not yet been recorded.
\subsection{Automated Build Verification}
The self-hosted Gitea Actions runner successfully executed
the automated LaTeX compilation workflow.
The successful workflow completed the following steps:
\begin{enumerate}
\item Started the Docker job container.
\item Checked out the source repository.
\item Generated build metadata.
\item Compiled the LaTeX document.
\item Uploaded the generated PDF artifact.
\end{enumerate}
The verified successful execution completed in
approximately 20 seconds and produced one downloadable
PDF artifact.
This successful execution was a rerun of an existing
workflow, so separate push-triggered demonstrations
are documented in the following testing section.
\section{PDF Version Traceability}
The human-maintained document version is
\texttt{\ManualVersion}.
The automated workflow generates a build identifier
using the workflow run number and the triggering
Git commit's abbreviated SHA.
The identifier follows this format:
\begin{verbatim}
v1.3+build.<run-number>.<short-commit-sha>
\end{verbatim}
The workflow writes this information to a generated
\texttt{build\_metadata.tex} file before compiling
the document.
The current PDF contains the following metadata:
\noindent\textbf{Build identifier:}
\BuildIdentifier
\noindent\textbf{Triggering commit:}
\BuildCommit
\noindent\textbf{Workflow run number:}
\BuildRun
\noindent\textbf{Workflow attempt:}
\BuildAttempt
\medskip
This metadata allows a generated PDF to be traced
back to the corresponding repository commit and
workflow execution.
The generated metadata file is not intended to be
committed to the source repository.
\section{Downloadable Artifact}
After successful compilation, the workflow copies
the generated PDF to the distribution directory.
The resulting file is named:
\begin{center}
\texttt{SSW590-DevOps-IT-Manual.pdf}
\end{center}
The workflow uploads this file using
\texttt{actions/upload-artifact@v4}.
The artifact is published under the name:
\begin{center}
\texttt{SSW590-DevOps-IT-Manual}
\end{center}
The workflow specifies an artifact retention period
of 14 days.
The upload action is configured to fail if the
expected PDF file does not exist.
The verified successful workflow published one
downloadable artifact through the Gitea Actions
interface.
\subsection{Push-Triggered Build Validation}
A source-code change was committed and pushed to the
main branch to verify automatic workflow execution.
The first successful push-triggered build used commit
\texttt{7be302d} and Gitea Actions run number 3.
The workflow completed successfully in 21 seconds
and published one downloadable PDF artifact.
This confirms that a repository push automatically
triggers the LaTeX compilation and artifact upload
process without requiring manual workflow execution.
\section{Change, Failure, and Repair}
The automated workflow must be tested using
source changes and a controlled compilation failure.
The following table records the current status
of these demonstrations.
\begin{longtable}{
p{.19\linewidth}
p{.24\linewidth}
p{.24\linewidth}
p{.23\linewidth}
}
\toprule
Test & Commit & Run / PDF & Result \\
\midrule
\endfirsthead
\toprule
Test & Commit & Run / PDF & Result \\
\midrule
\endhead
Successful push 1
& PENDING
& PENDING
& Not yet tested \\
Successful push 2
& PENDING
& PENDING
& Not yet tested \\
Controlled TeX failure
& PENDING
& PENDING
& Not yet tested \\
Repair push
& PENDING
& PENDING
& Not yet tested \\
\bottomrule
\end{longtable}
The first two tests will verify that modifying
LaTeX source files and pushing commits to
\texttt{main} automatically triggers successful builds.
The failure test will introduce a deliberate
LaTeX syntax error and verify that the workflow
reports a compilation failure.
The repair test will remove the syntax error
and confirm that the next workflow execution
successfully generates a new PDF artifact.
Each test must be supported by the corresponding
commit identifier, workflow run, and screenshot.
\section{Runner and Secret Boundary}
The Gitea Actions runner executes repository-defined
workflow commands inside Docker containers.
Therefore, workflow modification permissions must
be restricted to trusted repository maintainers.
The runner registration file is stored locally
and protected using restrictive file permissions.
Registration tokens, credentials, and private keys
must never be committed to the repository or
included in screenshots.
The workflow does not require privileged Docker
execution or access to the host Docker socket
from inside the job container.
The runner uses the following configuration:
\begin{verbatim}
container:
docker_host: "-"
privileged: false
\end{verbatim}
This reduces unnecessary container access to
the host Docker environment.
Because the runner operates on a personal computer,
untrusted pull requests and workflow changes should
not be executed without review.
\section{Manual Quality and Controls}
The automated documentation workflow improves
repeatability by generating a PDF from version-controlled
LaTeX source files.
The implementation provides:
\begin{itemize}
\item Version-controlled documentation source.
\item Automated workflow execution.
\item A self-hosted Gitea Actions runner.
\item A Docker-based LaTeX build environment.
\item PDF build metadata and commit traceability.
\item Downloadable PDF artifacts.
\item Automated failure reporting.
\end{itemize}
\subsection{Troubleshooting}
The following issues were encountered during setup:
\begin{enumerate}
\item The runner initially attempted to mount
the macOS Colima Docker socket into a Linux
container. This was addressed using
\texttt{docker\_host: "-"}.
\item The original TeX Live container did not
contain Node.js, preventing
\texttt{actions/checkout@v4} from executing.
\item A custom Docker image was created with
Node.js, npm, TeX Live, and latexmk.
\item The first Dockerfile used
\texttt{apt-get}, which was unavailable because
the TeX Live image uses Alpine Linux.
\item The Dockerfile was corrected to use
\texttt{apk add --no-cache nodejs npm}.
\item The runner configuration was updated
to use the custom Docker image.
\end{enumerate}
Following these corrections, the automated
workflow completed successfully and produced
a downloadable PDF artifact.
The final submission will incorporate screenshots,
completed testing results, and updated document
version history.
+824
View File
@@ -0,0 +1,824 @@
\chapter{Continuous Integration with Jenkins}
\label{chap:jenkins-ci}
\section{Overview}
This chapter documents the Jenkins continuous integration system deployed
for the SSW590 startup product. Jenkins integrates with Gitea to
automatically validate source code changes.
\section{Jenkins Deployment and Persistence}
Jenkins was deployed as a Docker container on the team's
DigitalOcean Droplet running Ubuntu 24.04. The deployment uses
the custom image \texttt{jenkins-node:2.580.1}, which provides
the Jenkins automation server and the Node.js tooling required
for the startup product's continuous integration pipeline.
The Docker Compose project is located at
\texttt{/opt/jenkins}. The Jenkins container uses the
\texttt{jenkins\_jenkins\_internal} bridge network.
\subsection{Persistent Storage}
Jenkins configuration, installed plugins, job definitions,
credentials, and build history are stored in the persistent
host directory \texttt{/opt/jenkins/jenkins\_home}, mounted
inside the container at \texttt{/var/jenkins\_home}.
This bind mount separates Jenkins application data from the
container's writable layer so that the data remains available
when the container is replaced, provided the host directory
is preserved.
\subsection{Resource Limits}
The Droplet has limited system resources. Docker Compose
therefore restricts Jenkins to 384 MiB of container memory
and 768 MiB of combined memory and swap.
The Java virtual machine is configured with an initial heap
of 64 MiB, a maximum heap of 192 MiB, a maximum metaspace
of 128 MiB, and the serial garbage collector.
These limits reduce resource consumption but do not
guarantee that every build will succeed under memory pressure.
\subsection{Network Exposure and Restart Policy}
The Jenkins HTTP service listens on container port 8080,
published only to \texttt{127.0.0.1:8080} on the Droplet.
This prevents direct access to Jenkins through the Droplet's
public IP address on port 8080.
The container uses the restart policy \texttt{no}.
Consequently, an administrator must explicitly start Jenkins
after a container stop or host restart.
\subsection{Deployment Verification}
The deployment was verified using the following commands
on the DigitalOcean Droplet:
\begin{verbatim}
cd /opt/jenkins
docker compose config
docker ps --filter name=jenkins
\end{verbatim}
The Docker inspection confirmed that the container was
running with image \texttt{jenkins-node:2.580.1},
persistent storage, the private bridge network, and
localhost-only HTTP port publishing.
\section{HTTPS and Reverse Proxy Configuration}
The Jenkins continuous integration service is published through
the hostname \url{https://ci.nageshwaran.dev}. The deployment
uses Caddy as its reverse proxy, alongside the existing Gitea
service at \url{https://git.nageshwaran.dev}.
\subsection{Caddy Reverse Proxy Rules}
The reverse proxy configuration is stored in
\texttt{/opt/gitea/Caddyfile} on the DigitalOcean Droplet.
The verified configuration contains the following routes:
\begin{verbatim}
git.nageshwaran.dev {
reverse_proxy gitea:3000
}
ci.nageshwaran.dev {
reverse_proxy jenkins:8080
}
\end{verbatim}
Caddy routes requests according to their requested hostname.
Traffic for the Gitea hostname is forwarded to container port
3000, while requests for the Jenkins hostname are forwarded
to container port 8080.
\subsection{Network Isolation}
The Jenkins Docker Compose configuration publishes port 8080
only on the Droplet loopback interface, using
\texttt{127.0.0.1:8080:8080}.
Caddy forwards traffic to the Jenkins service by its Docker
service name, \texttt{jenkins}, on port 8080. This separates
the public HTTPS entry point from the Jenkins application
listener.
The internal Jenkins port does not need to be published
directly on the Droplet's public network interface.
\subsection{HTTPS Operations}
The Caddy configuration uses hostname-based site blocks,
allowing Caddy to manage HTTPS for the configured domains
when DNS, certificate issuance, and network connectivity
are correctly configured.
The verified configuration establishes the reverse proxy
routes. Certificate renewal and external firewall behavior
should be verified separately rather than inferred from
the Caddyfile alone.
\section{Gitea Integration and Webhooks}
\subsection{Repository and Jenkins Server}
The startup product source code is hosted on the team's
self-managed Gitea instance at
\url{https://git.nageshwaran.dev}.
The repository belongs to the organization
\texttt{SSW590-Startup} and is named
\texttt{startup-product}.
Jenkins is accessible through
\url{https://ci.nageshwaran.dev}.
The Jenkins Gitea integration was configured with a
Gitea server entry named \texttt{SSW590-Gitea}.
An API credential identified as
\texttt{ssw590-gitea-token} is stored in the
Jenkins credential store rather than in the
version-controlled application source.
\subsection{Multibranch Pipeline}
The Jenkins multibranch pipeline is identified by
\texttt{startup-product-gitea-ci}.
The pipeline discovers repository branches and pull
requests and executes the version-controlled
\texttt{Jenkinsfile} associated with each build.
The pipeline provides continuous integration checks
for changes proposed to the protected main branch.
\subsection{Webhook-Triggered Builds}
Gitea webhooks notify Jenkins when relevant repository
events occur, including updates to pull requests.
This integration was tested during pull request
\#8, titled ``Add Jenkins CI pipeline and automated
Node.js tests.''
Jenkins executed builds after changes were pushed
to the pull request, and their results were reported
back to Gitea as commit status checks.
A deliberately failing test produced a failed
status. After the test was corrected, Jenkins
reported a successful status, allowing the reviewed
pull request to proceed through the merge workflow.
\subsection{Integration Verification}
The integration was verified through Jenkins build
results, Gitea pull request status checks, and
the successful Jenkins build of the main branch
following the merge.
The final main-branch build completed successfully
with two passing automated tests and zero failures.
\section{Version-Controlled Jenkins Pipeline}
The continuous integration pipeline is defined in a
\texttt{Jenkinsfile} stored at the root of the
\texttt{startup-product} repository.
Using a version-controlled Jenkinsfile ensures that
pipeline changes are reviewed and tracked alongside
the application source code.
\subsection{Pipeline Execution Controls}
The pipeline uses the Jenkins declarative pipeline
syntax with \texttt{agent any}.
The following execution controls are configured:
\begin{itemize}
\item Concurrent builds are disabled using
\texttt{disableConcurrentBuilds()}.
\item A five-minute timeout prevents indefinitely
running builds.
\item Build history is limited to the five most recent
builds using \texttt{buildDiscarder}.
\end{itemize}
\subsection{Pipeline Stages}
The Jenkinsfile defines four sequential stages:
\begin{enumerate}
\item \textbf{Checkout:} Retrieves the repository
revision associated with the Jenkins build using
\texttt{checkout scm}.
\item \textbf{Verify Node.js:} Executes
\texttt{node --version} and \texttt{npm --version}
to verify that the required tools are available.
\item \textbf{Syntax Check:} Changes into the
\texttt{app} directory and executes
\texttt{npm run check}.
\item \textbf{Automated Tests:} Executes
\texttt{npm test} from the \texttt{app} directory.
\end{enumerate}
\subsection{Node.js Project Scripts}
The application defines its validation commands in
\texttt{app/package.json}:
\begin{verbatim}
"scripts": {
"test": "node --test",
"check": "node --check src/health.js"
}
\end{verbatim}
The syntax-check command uses Node.js to validate
the JavaScript syntax of \texttt{src/health.js}.
The test command uses the built-in Node.js test runner
to execute the project's automated tests.
\subsection{Build Result Reporting}
The Jenkinsfile includes post-build handlers for
successful and failed executions.
On success, Jenkins prints:
\begin{verbatim}
CI PASSED: All checks completed successfully.
\end{verbatim}
On failure, Jenkins prints:
\begin{verbatim}
CI FAILED: Review the Jenkins console output.
\end{verbatim}
These messages supplement the Jenkins build status
and console output.
\section{Automated Tests and CI Verification}
\subsection{Application Health-Check Function}
The startup product includes a health-check function
in \texttt{app/src/health.js}.
The function \texttt{getHealthStatus} accepts a Boolean
parameter representing database connectivity and returns
an object containing the application status and database
connection state.
When database connectivity is true, the function returns
\texttt{healthy} and \texttt{connected}. When connectivity
is false, it returns \texttt{unhealthy} and
\texttt{disconnected}.
\subsection{Automated Unit Tests}
The test file \texttt{app/test/health.test.js} uses
the built-in Node.js test runner and strict assertions.
Two automated test cases are implemented:
\begin{enumerate}
\item \textbf{Connected database:} Calling
\texttt{getHealthStatus(true)} must return an object
with status \texttt{healthy} and database state
\texttt{connected}.
\item \textbf{Disconnected database:} Calling
\texttt{getHealthStatus(false)} must return an object
with status \texttt{unhealthy} and database state
\texttt{disconnected}.
\end{enumerate}
These tests validate the application's response to
simulated database connectivity states. They do not
establish connectivity to a live database server.
\subsection{Jenkins Test Execution}
The automated test stage runs the following command
inside the application directory:
\begin{verbatim}
npm test
\end{verbatim}
The command invokes the Node.js test runner through
the project's \texttt{package.json} configuration.
During the verified successful Jenkins main-branch
build, both automated tests passed with zero failures.
The successful build also completed the Node.js
verification and JavaScript syntax-check stages.
\subsection{Continuous Integration Result}
The Jenkins multibranch pipeline reported a successful
main-branch build after pull request \#8 was reviewed
and merged.
The verified Jenkins main-branch build was build
number \#1, which completed in approximately
33 seconds with two passing tests and zero failures.
The build console is available at:
\begin{quote}
\url{https://ci.nageshwaran.dev/job/startup-product-gitea-ci/job/main/1/console}
\end{quote}
\section{Failed Build and Successful Recovery}
\subsection{Controlled Failure Experiment}
To demonstrate that the continuous integration pipeline
detects incorrect application behavior, the team
deliberately introduced an incorrect expected result
into an automated health-check test.
The change was pushed to the feature branch
\texttt{feature/jenkins-ci}, associated with Gitea
pull request \#8.
The failing commit was identified by the abbreviated
Git SHA \texttt{e1d9007}.
The Gitea webhook triggered Jenkins to execute the
pipeline against the updated pull request.
Jenkins pull-request build \#2 failed because the
automated test assertion did not match the application's
actual result.
The failed Jenkins status was reported to Gitea,
demonstrating that the CI integration detected the
deliberately introduced defect.
\subsection{Corrective Commit}
The team corrected the failing test expectation and
pushed the repaired implementation to the same
feature branch.
The corrective commit was identified by the
abbreviated Git SHA \texttt{e00142a}.
The subsequent Jenkins pull-request build \#3
completed successfully.
The pipeline executed the syntax check and automated
tests, and Jenkins reported a successful result
back to Gitea.
\subsection{Failure and Recovery Results}
The observed results are summarized below:
\begin{center}
\begin{tabular}{llll}
\toprule
Revision & Jenkins Build & Result & Purpose \\
\midrule
\texttt{e1d9007} & PR-8 \#2 & FAILURE & Deliberate defect \\
\texttt{e00142a} & PR-8 \#3 & SUCCESS & Corrected test \\
\bottomrule
\end{tabular}
\end{center}
This controlled failure-and-recovery experiment
demonstrates that the Jenkins pipeline does not
simply execute automatically; it can identify
an incorrect test expectation and confirm that
the correction restores the passing status.
\section{Branch Protection and Required Status Checks}
\subsection{Protected Main Branch}
The Gitea repository was configured with branch
protection for \texttt{main}.
The purpose of this protection is to ensure that
changes are validated by the Jenkins continuous
integration pipeline before being merged into
the main development branch.
\subsection{Required Jenkins Status Check}
The required CI status check was configured as:
\begin{verbatim}
startup-product-gitea-ci/pipeline/pr-main
\end{verbatim}
This status check connects Jenkins build results
to the Gitea pull request merge workflow.
A failing Jenkins build prevents the required
status check from being satisfied.
\subsection{Verification Using Pull Request 8}
During pull request \#8, the deliberately failing
test caused Jenkins PR build \#2 to report
\texttt{FAILURE}.
Gitea displayed the unsuccessful status, and
the pull request could not satisfy the required
CI check.
After the corrective commit was pushed, Jenkins
PR build \#3 reported \texttt{SUCCESS}.
The required status check became successful,
allowing the pull request to proceed through
the review and merge workflow.
This verifies that the required CI status check
was enforced during the demonstrated workflow.
\section{Pull Request Review and Merge}
\subsection{Pull Request Creation}
The Jenkins CI implementation was developed on the
feature branch \texttt{feature/jenkins-ci}.
The changes were submitted to Gitea through
pull request \#8, titled:
\begin{quote}
Add Jenkins CI pipeline and automated Node.js tests
\end{quote}
The pull request proposed merging the feature branch
into the protected \texttt{main} branch.
The changes included the version-controlled
Jenkinsfile, Node.js project configuration,
application health-check implementation, and
automated tests.
\subsection{Continuous Integration Validation}
Jenkins automatically validated changes associated
with pull request \#8.
An intentionally incorrect test expectation caused
Jenkins pull-request build \#2 to fail.
After the corrective commit was pushed, Jenkins
pull-request build \#3 completed successfully.
Gitea displayed the successful required status check:
\begin{verbatim}
startup-product-gitea-ci/pipeline/pr-main
\end{verbatim}
\subsection{Reviewer Approval}
The pull request was reviewed by the team member
using the Gitea account \texttt{shiv}.
The reviewer inspected the five changed files
and submitted an approval through Gitea's
pull request review interface.
The approval was recorded before the pull
request was merged.
\subsection{Merge into Main}
After Jenkins reported a successful required
status check and the reviewer approved the
changes, pull request \#8 was merged into
the \texttt{main} branch.
The resulting merge commit was:
\begin{verbatim}
b2cdc5cad4d522a36160f738c0befbb6d86cbda0
\end{verbatim}
\subsection{Post-Merge Verification}
After the merge, the Jenkins multibranch
pipeline detected the updated \texttt{main}
branch and executed a new build.
Jenkins main-branch build \#1 completed
successfully in approximately 33 seconds.
The console output confirmed:
\begin{itemize}
\item Node.js and npm verification completed.
\item JavaScript syntax checking succeeded.
\item Both automated health tests passed.
\item Zero automated test failures were reported.
\item The final pipeline result was \texttt{SUCCESS}.
\end{itemize}
This confirms that the merged source code
passed the automated Jenkins validation
on the main branch.
\section{Security, Credentials, and Trust Boundaries}
\subsection{Credential Management}
Jenkins integrates with the self-hosted Gitea server
using an API credential stored in the Jenkins
credential store.
The credential identifier is:
\begin{verbatim}
ssw590-gitea-token
\end{verbatim}
The API token value is not included in the
Jenkinsfile, application source code, or this manual.
Credentials should be rotated if exposed, and
replacement values must be updated in Jenkins.
\subsection{Public and Private Network Boundaries}
The public Jenkins endpoint is:
\begin{verbatim}
https://ci.nageshwaran.dev
\end{verbatim}
Caddy routes HTTPS requests to the Jenkins container
using the internal Docker service address
\texttt{jenkins:8080}.
Jenkins publishes its application port only on
the Droplet's loopback interface:
\begin{verbatim}
127.0.0.1:8080:8080
\end{verbatim}
This avoids publishing the Jenkins application
port directly on the Droplet's public interface.
\subsection{Repository and Pipeline Trust}
The Jenkinsfile is stored in the Gitea repository
and executed by Jenkins during continuous
integration builds.
Changes to the Jenkinsfile can affect the commands
executed by the Jenkins build agent.
Therefore, repository write access, pull request
review, and branch protection are important
security controls.
The demonstrated workflow used a protected
main branch, a required Jenkins status check,
and a separate reviewer approval before merging
pull request \#8.
\subsection{Resource and Operational Boundaries}
The Jenkins container uses a 384 MiB memory limit
and a maximum Java heap of 192 MiB.
These resource limits help control consumption
on the small DigitalOcean Droplet.
The container restart policy is \texttt{no},
so Jenkins requires an explicit start after
a container stop or host restart.
The persistent Jenkins home directory is stored at:
\begin{verbatim}
/opt/jenkins/jenkins_home
\end{verbatim}
Administrators must protect this directory because
it contains Jenkins configuration and sensitive
application state.
\subsection{Security Limitations}
The verified configuration demonstrates localhost-only
port publishing, Docker network separation,
credential-store usage, and branch protection.
These controls do not by themselves prove complete
host hardening or eliminate risks from untrusted
pipeline code.
API token rotation, firewall verification, software
updates, and access-control reviews remain important
operational responsibilities.
\section{Screenshot Evidence}
The following figures record the observed Jenkins and Gitea CI workflow.
\begin{figure}[H]
\centering
\includegraphics[width=0.92\linewidth]{img/jenkins_dashboard.png}
\caption{Jenkins dashboard showing the configured CI jobs.}
\label{fig:jenkins-dashboard}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.92\linewidth]{img/jenkins_failed_build.png}
\caption{Jenkins PR 8 build 2: one automated test failed and Jenkins reported FAILURE to Gitea.}
\label{fig:jenkins-failed}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.92\linewidth]{img/jenkins_successful_build.png}
\caption{Jenkins PR 8 build 3: both automated tests passed and Jenkins reported SUCCESS.}
\label{fig:jenkins-recovery}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.92\linewidth]{img/gitea_pr8_merged.png}
\caption{Gitea pull request 8 merged from the Jenkins feature branch into main.}
\label{fig:gitea-pr8-merged}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.92\linewidth]{img/gitea_pr8_approval.png}
\caption{Gitea reviewer approval and merge activity for pull request 8.}
\label{fig:gitea-pr8-approval}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.92\linewidth]{img/jenkins_main_success.png}
\caption{Post-merge Jenkins main branch build 1: two tests passed with zero failures.}
\label{fig:jenkins-main-success}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.92\linewidth]{img/gitea_branch_protection.png}
\caption{Gitea repository branch protection rule for main.}
\label{fig:gitea-branch-protection}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.92\linewidth]{img/gitea_required_ci_check.png}
\caption{Gitea branch protection requiring the Jenkins pr-main status check.}
\label{fig:gitea-required-check}
\end{figure}
\section{Operations and Verification Evidence}
\subsection{Routine Jenkins Operations}
Jenkins is managed through Docker Compose on the
DigitalOcean Droplet. The Compose project is located
at \texttt{/opt/jenkins}.
The following commands provide routine operational
control and inspection:
\begin{verbatim}
cd /opt/jenkins
# Inspect container status
docker compose ps
# Start Jenkins
docker compose up -d
# Stop Jenkins
docker compose stop
# Inspect recent logs
docker compose logs --tail=100 jenkins
# Verify effective configuration
docker compose config
\end{verbatim}
The commands above are documented operational procedures;
they are not all claimed as separately executed tests.
\subsection{Persistence and Recovery}
The Jenkins home directory is stored on the host at
\texttt{/opt/jenkins/jenkins\_home}.
This bind mount preserves Jenkins application data
independently of the container writable layer.
Before container replacement or configuration changes,
administrators should back up the Jenkins home directory
and the Docker Compose configuration.
Because the restart policy is \texttt{no}, Jenkins
must be explicitly started after a host restart.
\subsection{Troubleshooting Procedure}
If Jenkins becomes unavailable, the administrator
should first inspect the container state and logs:
\begin{verbatim}
cd /opt/jenkins
docker compose ps
docker compose logs --tail=100 jenkins
\end{verbatim}
If the container is running but the public Jenkins
hostname is unavailable, the administrator should
inspect Caddy, DNS, HTTPS certificate status, and
Docker network connectivity.
If a pipeline fails, the Jenkins console output
should be inspected to identify the failing stage.
The controlled failure experiment in pull request
\#8 demonstrates this diagnostic workflow.
\subsection{Verified Continuous Integration Evidence}
The following results were observed during the
Jenkins and Gitea integration exercise:
\begin{enumerate}
\item Jenkins ran using the custom Docker image
\texttt{jenkins-node:2.580.1}.
\item Docker Compose confirmed persistent storage,
resource limits, and localhost-only port publishing.
\item Caddy routed the Jenkins hostname to
\texttt{jenkins:8080}.
\item Gitea webhook events triggered Jenkins
pull-request builds.
\item Pull request \#8 produced a deliberately
failed Jenkins build \#2.
\item A corrective commit produced successful
Jenkins pull-request build \#3.
\item Gitea displayed the required Jenkins
status check as successful.
\item Reviewer \texttt{shiv} approved the pull
request before it was merged.
\item The merged main branch passed Jenkins
build \#1 with two passing automated tests
and zero failures.
\end{enumerate}
\subsection{Evidence and Submission Controls}
Screenshots of the actual Docker deployment,
Jenkins pipeline stages, failed and successful
builds, Gitea required status check, reviewer
approval, and merged pull request should be
included in the final manual.
Each screenshot must correspond to an actual
observed result and include an explanatory caption.
Sensitive credentials, API tokens, private keys,
and passwords must not appear in the submitted PDF.
The final compiled manual should be checked for
correct chapter ordering, figure references,
document history, and successful LaTeX compilation.
Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

+462
View File
@@ -0,0 +1,462 @@
\documentclass[11pt,letterpaper]{report}
\usepackage[margin=1in]{geometry}
\usepackage[T1]{fontenc}
\usepackage{graphicx,float,booktabs,longtable,tabularx,array,xcolor,listings,makeidx,fancyhdr,caption,enumitem}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows.meta,fit,backgrounds}
\usepackage[colorlinks=true,linkcolor=blue!50!black,urlcolor=blue!60!black,citecolor=blue!50!black]{hyperref}
\makeindex
\setlength{\parskip}{4pt}\setlength{\parindent}{0pt}
\captionsetup{font=small,labelfont=bf}
\pagestyle{fancy}\fancyhf{}
\fancyhead[L]{SSW 590 DevOps IT Manual}\fancyhead[R]{Version 1.4}\fancyfoot[C]{\thepage}\fancyfoot[R]{\small Stevens Institute of Technology}
\lstset{basicstyle=\ttfamily\footnotesize,breaklines=true,frame=single,backgroundcolor=\color{black!4},columns=fullflexible,keepspaces=true,showstringspaces=false}
\newcommand{\vok}{\textcolor{green!45!black}{\textbf{VERIFIED}}}
\newcommand{\vpart}{\textcolor{orange!85!black}{\textbf{PARTIAL}}}
\newcommand{\vpend}{\textcolor{red!70!black}{\textbf{PENDING}}}
\newcommand{\shot}[3]{\begin{figure}[H]\centering\includegraphics[width=\linewidth]{img/#1.jpg}\caption{#2}\label{#3}\end{figure}}
\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcommand{\BuildIdentifier}{Local preview (not an Actions build)}
\newcommand{\BuildCommit}{Not available}
\newcommand{\BuildRun}{Not available}
\newcommand{\BuildAttempt}{Not available}
\IfFileExists{build_metadata.tex}{\input{build_metadata.tex}}{}
\begin{document}
\begin{titlepage}
\centering\vspace*{2cm}
{\Large SSW 590 --- DevOps\par}\vspace{1cm}
{\Huge\bfseries DevOps IT Manual\par}\vspace{.4cm}
{\LARGE Startup Foundation with Gitea\par}\vspace{1.2cm}
{\large Version 1.4\par}{\large Student Edition\par}\vspace{1.5cm}
{\large Nageshwaran Manikumar and Shiv Patel\par}\vspace{.6cm}
Instructor: Darian Muresan\par Stevens Institute of Technology\par\vspace{.6cm}
October 23, 2026\par\vspace{1.5cm}
\textbf{Gitea:} \url{https://git.nageshwaran.dev}\par
\textbf{Product repository:} \url{https://git.nageshwaran.dev/SSW590-Startup/startup-product}\par
\textbf{Build identifier:} \BuildIdentifier\par
\textbf{Triggering commit:} \texttt{\BuildCommit}\par
\textbf{Workflow run:} \BuildRun\ (attempt \BuildAttempt)
\vfill
\small Status legend used throughout: \vok{} = evidence in this PDF; \vpart{} = partly evidenced; \vpend{} = not yet evidenced (no claim made).
\end{titlepage}
\chapter*{Document History}
\addcontentsline{toc}{chapter}{Document History}
Newest entry first. Entries 1.0 and 1.1 are reconstructed from the timestamps on the captured evidence.
\begin{center}\small
\begin{tabularx}{\linewidth}{@{}p{1.9cm}p{1.1cm}p{1.5cm}Y p{2.4cm}@{}}
\toprule
Date / Ver. & Author & Change & Details & Changed at\\\midrule
Oct 23, 2026 / 1.4 & NM, SP & Jenkins CI integration & Documented Jenkins deployment, persistent storage, HTTPS reverse proxy, Gitea webhooks, version-controlled pipeline, automated tests, failed and recovered builds, required status checks, reviewer approval, and merge verification. Added eight screenshot figures. & Ch.~4 \\ \addlinespace
Oct 9, 2026 / 1.3 & NM, SP & Gitea Actions automation & Added external Mac runner, pinned TeX Live/Node image, build metadata, PDF artifact, two successful source changes and failure/repair evidence. \textbf{Hosts and Passwords tables updated} with runner and secret-handling information. & Ch.~1, Ch.~3 \\\addlinespace
Oct 2, 2026 / 1.2 & NM, SP & Gitea chapter completed & Added all eight Gitea subsections; SSH restricted to one approved source IP in the Cloud Firewall; organization, repository, five issues and two reviewed/merged pull requests documented. \textbf{Hosts table and Passwords table updated} (firewall rule, Gitea accounts, 2FA status). & Ch.~1, Ch.~2 \\\addlinespace
Sep 30, 2026 / 1.1 & NM & Gitea first deployment & Gitea 1.27.3-rootless and Caddy 2.10.2 deployed with Docker Compose; hostname \texttt{git.nageshwaran.dev}; Let's Encrypt certificate; persistence test. \textbf{Hosts table updated.} & Ch.~1, \S\ref{sec:deploy}--\ref{sec:https} \\\addlinespace
Sep 24, 2026 / 1.0 & NM & Initial setup & DigitalOcean Droplet provisioned (Ubuntu 24.04, Docker 29.1.3). \textbf{Hosts table and Passwords table created.} & Ch.~1 \\
\bottomrule\end{tabularx}\end{center}
\tableofcontents
%==========================================================
\chapter{Operational Registers}
\section{Hosts Table}\index{Hosts table}
\begin{center}\scriptsize
\begin{tabularx}{\linewidth}{@{}L{2.7cm}L{1.7cm}L{2.5cm}Y L{0.9cm}L{2.1cm}L{1.5cm}@{}}
\toprule
Hostname & Role / env. & Provider / address & Exposed ports & Owner & HTTPS URL & Backup / monitoring\\\midrule
\texttt{git.\allowbreak nageshwaran.dev} & Gitea work hub, production (class) & DigitalOcean NYC1; A record $\rightarrow$ 143.244.173.110 & 443/tcp public; 80/tcp public (redirect + ACME HTTP-01 only) & NM & \url{https://git.nageshwaran.dev} & None (no backup); no monitoring\\\addlinespace
\texttt{ubuntu-s-1vcpu-\allowbreak512mb-\allowbreak10gb-nyc1} (Droplet) & Docker host, admin & DigitalOcean; public 143.244.173.110, private 10.10.0.5; 1 vCPU / 512 MB / 10 GB; Ubuntu 24.04.4 & 22/tcp only from 174.167.120.67/32 (Cloud Firewall \texttt{ssw590-gitea-firewall}) & NM & n/a & DO Droplet backups not enabled (not evidenced)\\\addlinespace
\texttt{gitea}, \texttt{caddy} (containers) & Internal services & Docker network \texttt{gitea\_internal} & None published except Caddy 80/443; Gitea 3000 and 2222 internal only & NM & n/a & n/a\\
\addlinespace
\texttt{ci.nageshwaran.dev} & Jenkins CI service, production (class) & DigitalOcean NYC1; 143.244.173.110 & HTTPS through Caddy on 443/tcp; Jenkins 8080 bound to \texttt{127.0.0.1} on host & NM & \url{https://ci.nageshwaran.dev} & Persistent \texttt{/opt/jenkins/jenkins\_home}; no verified off-host backup or monitoring \\ \addlinespace
\texttt{macbook-latex-runner} & Repository-scoped Actions runner & Team Mac, Apple Silicon, Colima Docker engine & No inbound public runner port; outbound HTTPS to Gitea & NM & \url{https://git.nageshwaran.dev} & Local runner, availability depends on Mac \\
\bottomrule\end{tabularx}\end{center}
\section{Passwords Table (hints only)}\index{Passwords table}
No secret, recovery code, token or private key appears in this manual. Real credentials are kept outside the report and repository.
\begin{center}\scriptsize
\begin{tabularx}{\linewidth}{@{}L{3.0cm}L{1.0cm}Y L{2.0cm}L{2.6cm}@{}}
\toprule
Service / account & Owner & Non-revealing hint / location & Privilege & MFA / rotation\\\midrule
Droplet SSH (\texttt{root}) & NM & Key-based login using key pair \texttt{ssw590\_digitalocean}; private key only on NM's laptop. & root & No password login evidenced; key never rotated\\
Gitea \texttt{nageshwaran\_\allowbreak manikumar} & NM & Unique password, stored in owner's password manager; not reused from other services. & Org owner, site admin & 2FA \textbf{off} (Fig.~\ref{fig:members}); not yet rotated\\
Gitea \texttt{shiv} & SP & Unique password held by SP. & Org member & 2FA \textbf{off} (Fig.~\ref{fig:members})\\
DigitalOcean account & NM & Account password in owner's password manager. & Account owner & MFA status not evidenced\\
Domain registrar account & NM & Account password in owner's password manager. & Domain owner & MFA status not evidenced\\
Let's Encrypt / Caddy ACME account & NM & No human password; account key stored in \texttt{caddy\_data} volume on the Droplet. & n/a & Managed by Caddy\\
\addlinespace
Jenkins administrator & NM & Administrator credential managed outside the repository and report. & Jenkins administration & MFA and rotation not evidenced \\
Jenkins Gitea API integration & NM & Jenkins credential ID \texttt{ssw590-gitea-token}; token value excluded. & Gitea API integration & Rotate if exposed; rotation not verified \\ \addlinespace
Gitea runner registration & NM & Token and runner credential file stored outside repository; local \texttt{\string~/gitea-runner/.runner} has restricted permissions & Repository runner & Rotate token if exposed; never print credentials \\
\bottomrule\end{tabularx}\end{center}
%==========================================================
\chapter{Startup Foundation with Gitea}
\section*{Verification Summary}
\begin{center}\small
\begin{tabularx}{\linewidth}{@{}lYl@{}}
\toprule
\S & Rubric item & Status\\\midrule
\ref{sec:domain} & Student Pack domain and DNS & \vpart{} (DNS shown; offer, cost, expiry must be filled in)\\
\ref{sec:deploy} & Pinned Gitea deployment & \vpart{} (versions and mounts shown; repo link to deployment files pending)\\
\ref{sec:db} & Database and persistence & \vpart{} (repository survived replacement; issue/UI check not captured)\\
\ref{sec:https} & HTTPS and renewal & \vpart{} (cert, redirect, auto-renewal shown; no dry run exists for Caddy)\\
\ref{sec:fw} & Firewall and external exposure & \vpart{} (3000 blocked; SSH restriction not yet tested from a foreign IP)\\
\ref{sec:team} & Startup team workflow & \vpart{} (two PRs complete; titles of issues 3--5 to be added)\\
\ref{sec:arch} & Architecture and operation & \vok\\
\ref{sec:quality} & Manual quality and controls & \vok{} (open items listed)\\
\bottomrule\end{tabularx}\end{center}
%----------------------------------------------------------
\section{Student Pack Domain and DNS}\label{sec:domain}\index{DNS}\index{domain}
\subsection*{Domain offer}
\begin{tabularx}{\linewidth}{@{}lY@{}}
\toprule
Field & Value\\\midrule
Chosen hostname & \url{https://git.nageshwaran.dev} (registered domain \texttt{nageshwaran.dev}, subdomain \texttt{git})\\
Offer / registrar & \vpend{} \textit{Name the GitHub Student Developer Pack offer and registrar used~\cite{ghpack}.}\\
Eligibility proof & \vpend{} \textit{Student Pack approval date.}\\
First-year cost / renewal cost & \vpend{} \textit{Enter from the registrar order page; verify current terms, do not assume free renewal.}\\
Expiration date & \vpend{} \textit{Enter from registrar.}\\
\bottomrule\end{tabularx}
\textbf{Renewal tracking.} The expiry date goes into the team calendar with a reminder 60 days before; the registrar account owner is NM (Passwords table). If the domain lapses, the hostname, the Let's Encrypt certificate and every Gitea clone URL stop working. Note that \texttt{.dev} is HSTS-preloaded: browsers refuse plain HTTP to it, so a working certificate is mandatory, not optional.
\subsection*{DNS evidence}
The A record points \texttt{git.nageshwaran.dev} at the Droplet. The lookup in Figure~\ref{fig:dig} returned 143.244.173.110, which equals the Droplet's public IPv4 (Fig.~\ref{fig:split}). \vok{} The lookup was run on the Droplet itself; an additional lookup from a different network (\texttt{dig +short git.nageshwaran.dev @1.1.1.1} on the laptop) is listed as an open item in \S\ref{sec:quality}.
\shot{dig}{\texttt{docker compose ps} and \texttt{dig +short git.nageshwaran.dev} $\rightarrow$ 143.244.173.110 (Droplet, Sep 30, 2026).}{fig:dig}
%----------------------------------------------------------
\section{Pinned Gitea Deployment}\label{sec:deploy}\index{Gitea}\index{Docker Compose}
\begin{tabularx}{\linewidth}{@{}lY@{}}
\toprule
Item & Value (source)\\\midrule
Droplet & \texttt{ubuntu-s-1vcpu-512mb-10gb-nyc1}, NYC1, Ubuntu 24.04.4 LTS, kernel 6.8.0-142, 1 vCPU / 512 MB RAM / 10 GB disk (Fig.~\ref{fig:split}); 61\% memory and 19\% swap in use, 46.3\% of 8.65 GB disk used on Oct 2, 2026\\
Docker & Docker Engine 29.1.3 (Fig.~\ref{fig:docker})\\
Gitea image & \texttt{docker.gitea.com/gitea:1.27.3-rootless}, image ID \texttt{1c17ecaead42}, 68.2 MB (official Gitea registry)\\
Proxy image & \texttt{caddy:2.10.2-alpine}, image ID \texttt{4c6e91c6ed0e}, 22.5 MB\\
Deploy directory & \texttt{/opt/gitea}: \texttt{docker-compose.yml}, \texttt{Caddyfile}, \texttt{data/}, \texttt{config/}, \texttt{caddy\_data/}, \texttt{caddy\_config/}\\
Restart policy & \texttt{unless-stopped} on both services\\
Persistent mounts & \texttt{/opt/gitea/data}$\rightarrow$\texttt{/var/lib/gitea}; \texttt{/opt/gitea/config}$\rightarrow$\texttt{/etc/gitea}; \texttt{/opt/gitea/caddy\_data}$\rightarrow$\texttt{/data}; \texttt{/opt/gitea/caddy\_config}$\rightarrow$\texttt{/config}; \texttt{/opt/gitea/Caddyfile}$\rightarrow$\texttt{/etc/caddy/Caddyfile} (read-only) (Fig.~\ref{fig:compose})\\
Network & user-defined bridge \texttt{gitea\_internal}; Caddy reaches Gitea as \texttt{gitea:3000}\\
Public base URL & \texttt{GITEA\_\_server\_\_ROOT\_URL=https://git.nageshwaran.dev/}\\
\bottomrule\end{tabularx}
\textbf{Compose excerpt} (reconstructed from the terminal evidence in Fig.~\ref{fig:compose}; contains no secrets, other environment keys omitted):
\begin{lstlisting}
services:
gitea:
image: docker.gitea.com/gitea:1.27.3-rootless
container_name: gitea
restart: unless-stopped
environment:
- GITEA__server__ROOT_URL=https://git.nageshwaran.dev/
volumes:
- ./data:/var/lib/gitea
- ./config:/etc/gitea
networks: [gitea_internal] # no "ports:" -> not published
caddy:
image: caddy:2.10.2-alpine
container_name: caddy
restart: unless-stopped
ports: ["80:80", "443:443"]
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./caddy_data:/data
- ./caddy_config:/config
networks: [gitea_internal]
networks:
gitea_internal: {driver: bridge}
\end{lstlisting}
\textbf{Versioned deployment files:} \vpend{} commit \texttt{docker-compose.yml} and \texttt{Caddyfile} (no secrets) to the product repository and link them here: \url{https://git.nageshwaran.dev/SSW590-Startup/startup-product}.
\textbf{Repeating the installation.} (1) Create an Ubuntu 24.04 Droplet and install Docker (\texttt{apt install docker.io}; Fig.~\ref{fig:docker}). (2) Create the DNS A record. (3) Create \texttt{/opt/gitea} with the files above. (4) Run \texttt{docker compose up -d}; Caddy obtains the certificate on first request. (5) Open the site and complete Gitea's first-run page; create the admin account. (6) Apply the firewall of \S\ref{sec:fw}. Image tags are pinned, so the same versions are pulled on a rebuild~\cite{giteadocker}.
\shot{docker_install}{Docker installed on the Droplet; \texttt{docker --version} = 29.1.3; Docker service active (Sep 24, 2026).}{fig:docker}
\shot{compose_ss}{Compose tail, \texttt{ROOT\_URL} checks, \texttt{ss -lntp} listing only ports 80, 22, 443, \texttt{docker compose ps}, mounts and pinned image IDs (Oct 2, 2026).}{fig:compose}
%----------------------------------------------------------
\section{Database and Persistence}\label{sec:db}\index{database}\index{SQLite}
\textbf{Choice: SQLite} (Gitea's built-in database). \texttt{docker compose config --services} lists only \texttt{caddy} and \texttt{gitea} (Fig.~\ref{fig:compose}), so no database service exists and no database port is exposed or needed. The SQLite file lives under the Gitea data volume (\texttt{/opt/gitea/data} on the host, \texttt{/var/lib/gitea} in the container), outside the disposable container layer; the exact file path \vpend{} is to be confirmed with \texttt{docker compose exec gitea find /var/lib/gitea -name gitea.db}. No database credential exists, so there is no secret to handle. Trade-off: SQLite is adequate for a two-person team but its single-writer behaviour does not suit high concurrency~\cite{giteadb}.
\subsection*{Container-replacement test (Sep 30, 2026)}
Test repository: \texttt{nageshwaran\_manikumar/persistence-test.git}, 156.0K on disk. Commands (Fig.~\ref{fig:persist}), run in \texttt{/opt/gitea}:
\begin{lstlisting}
docker compose exec gitea sh -c 'du -sh /var/lib/gitea/git/repositories/nageshwaran_manikumar/persistence-test.git' # 156.0K
docker compose stop gitea
docker compose rm gitea # container removed, volumes untouched
docker compose ps -a # empty: container really gone
docker compose up -d # new container created
docker compose exec gitea sh -c 'ls -la /var/lib/gitea/git/repositories/nageshwaran_manikumar/'
\end{lstlisting}
\textbf{Before:} the directory listing shows \texttt{persistence-test.git}. \textbf{After:} the new container (created ``10 seconds ago'') shows the same directory with the same 23:30 timestamp. \textbf{Conclusion:} repository data lives in the bind-mounted volume and survives replacement. \vok{} for repository data.
\textbf{Gap (\vpend):} the screenshot proves the repository directory, not that a Gitea \emph{issue} (stored in the SQLite database) survived. Repeat once: create an issue in \texttt{persistence-test}, record its number, run the replace sequence above, reload the issue page, and add the before/after screenshot. This test is a persistence check, \textbf{not} a backup or restore test; no backup exists.
\shot{persist}{Container replacement test; repository directory present before and after \texttt{docker compose rm} / \texttt{up -d} (Sep 30, 2026).}{fig:persist}
%----------------------------------------------------------
\section{HTTPS and Certificate Renewal}\label{sec:https}\index{HTTPS}\index{Caddy}\index{Let's Encrypt}
\subsection*{Options compared}
\begin{tabularx}{\linewidth}{@{}lYY@{}}
\toprule
& Let's Encrypt (selected) & ZeroSSL\\\midrule
Cost & Free & Free tier, account required\\
Protocol & ACME, automated & ACME, automated\\
Lifetime & 90 days (this cert: Sep 30 $\rightarrow$ Dec 29, 2026) & 90 days\\
Caddy support & Default issuer (module \texttt{tls.issuance.acme}) & Built-in (\texttt{tls.issuance.zerossl}, Fig.~\ref{fig:caddy}), used as fallback\\
\bottomrule\end{tabularx}
\textbf{Justification.} Let's Encrypt needs no extra account, is Caddy's default, and is trusted by all browsers~\cite{le}. \textbf{Challenge:} HTTP-01 on port 80, which is why port 80 stays open; DNS-01 would allow closing 80 but needs a DNS API credential, extra secret and extra risk~\cite{lechallenge}.
\textbf{TLS termination.} TLS terminates at the Caddy container. Caddy forwards plain HTTP to \texttt{gitea:3000} over the private \texttt{gitea\_internal} network; that hop never leaves the Droplet.
\textbf{Proxy configuration} (\texttt{/opt/gitea/Caddyfile}, Fig.~\ref{fig:caddy}):
\begin{lstlisting}
git.nageshwaran.dev {
reverse_proxy gitea:3000
}
\end{lstlisting}
\texttt{caddy validate} reported ``Valid configuration'' and noted that automatic HTTP$\rightarrow$HTTPS redirects are enabled~\cite{caddyauto,caddyproxy}.
\subsection*{Evidence}
\begin{tabularx}{\linewidth}{@{}p{3.3cm}Yl@{}}
\toprule
Check & Result (UTC) & Status\\\midrule
Certificate & \texttt{subject=CN=git.nageshwaran.dev}, issuer Let's Encrypt \texttt{CN=YE2}, notBefore Sep 30 23:05:39 2026, notAfter Dec 29 23:05:38 2026 (Fig.~\ref{fig:tls1}) & \vok\\
HTTP$\rightarrow$HTTPS & \texttt{curl -i http://git.nageshwaran.dev} $\rightarrow$ \texttt{308 Permanent Redirect}, \texttt{Location: https://git.nageshwaran.dev/}, Server: Caddy, Oct 1 00:09:08 and 00:40:30 & \vok\\
HTTPS response & \texttt{curl -I https://git.nageshwaran.dev} $\rightarrow$ \texttt{HTTP/2 200}, Oct 1 00:39:11 & \vok\\
Issuance log & \texttt{certificate obtained successfully}, identifier \texttt{git.nageshwaran.dev}, issuer \texttt{acme-v02.api.letsencrypt.org} (Fig.~\ref{fig:split}) & \vok\\
Renewal automation & Caddy's built-in ACME manager renews unattended. Its log shows \texttt{got renewal info} with a CA-suggested renewal window of Nov 29 01:49 -- Nov 30 21:00 UTC 2026, selected time Nov 30 10:59 UTC, well before the Dec 29 expiry (Fig.~\ref{fig:split}) & \vok\\
Renewal dry run & \textbf{Not performed.} Caddy has no dry-run command; the renewal schedule above is the evidence. No successful renewal has happened yet (first one is due late Nov 2026). & \vpart\\
\bottomrule\end{tabularx}
\textbf{Dependencies of renewal:} port 80 or 443 reachable from the internet, DNS still pointing at the Droplet, and \texttt{caddy\_data} persisted (it holds the account and certificate). Deleting that directory forces re-issuance and risks Let's Encrypt rate limits.
\shot{tls1}{Redirect (308), certificate subject/issuer/dates, and HTTP/2 200 (Oct 1, 2026 UTC).}{fig:tls1}
\shot{tls2}{Repeat of redirect check, then \texttt{nc} to port 3000 (timed out) and port 22 (succeeded) from the team laptop.}{fig:tls2}
\shot{caddy}{Caddyfile, \texttt{caddy validate}, certificate dates, and issuer modules (\texttt{tls.issuance.acme}, \texttt{zerossl}).}{fig:caddy}
\shot{split}{Left: Gitea PR page. Right: Caddy issuance and renewal-info log lines, \texttt{ss -lntp}, public IP and image list (Oct 2, 2026).}{fig:split}
%----------------------------------------------------------
\section{Firewall and External Exposure}\label{sec:fw}\index{firewall}
\textbf{Cloud Firewall:} \texttt{ssw590-gitea-firewall}, attached to 1 Droplet (\texttt{ubuntu-s-1vcpu-512mb-10gb-nyc1}). DigitalOcean Cloud Firewalls are stateful and drop all inbound traffic not matched by a rule~\cite{dofw}. Host \texttt{ufw} is not relied on, because Docker-published ports can bypass it~\cite{dockerfw}.
\subsection*{Inbound rules}
\begin{tabularx}{\linewidth}{@{}llllY@{}}
\toprule
Type & Port & Source (IPv4) & Source (IPv6) & Purpose\\\midrule
HTTPS & 443/tcp & All & All & Gitea through Caddy\\
HTTP & 80/tcp & All & All & Redirect and ACME HTTP-01 only\\
SSH & 22/tcp & \textbf{174.167.120.67/32} & none & Admin; was ``All IPv4/All IPv6'' until Oct 2, 2026 (Fig.~\ref{fig:fwb}) and is now restricted (Fig.~\ref{fig:fwa})\\
\bottomrule\end{tabularx}
Gitea backend (3000/tcp) and Git-over-SSH (2222/tcp) have \textbf{no} rule and no host mapping. PostgreSQL does not exist (SQLite). The Droplet's capture shows only an IPv4 address on \texttt{eth0}, so IPv6 is presumed disabled; the 80/443 IPv6 rules are harmless either way and SSH has no IPv6 source. Outbound: the firewall has 3 outbound rules (6 total); only the ICMP row is visible in the capture, and outbound is not blocked wholesale (package, image, DNS and ACME access still work, proven by the successful issuance). \textbf{Lockout risk:} the /32 rule breaks if the home IP changes; recovery is the DigitalOcean web console, or editing the rule in the control panel. No overlapping Cloud Firewall is attached (``1 Droplets'', single firewall shown).
\subsection*{Host and Compose exposure}
\texttt{ss -lntp} on the Droplet (Fig.~\ref{fig:compose}) shows listeners only on 80 and 443 (\texttt{docker-proxy}) and 22 (\texttt{sshd}), plus \texttt{containerd} on 127.0.0.1 only. \texttt{docker compose ps} shows Caddy publishing \texttt{0.0.0.0:80}, \texttt{0.0.0.0:443} (and IPv6) and Gitea with unpublished \texttt{2222/tcp, 3000/tcp}. A scan on the Droplet itself does not prove public exposure, hence the external tests below.
\subsection*{External tests}
Source: team laptop (macOS) on an external network, not the Droplet.
\begin{center}\small
\begin{tabularx}{\linewidth}{@{}p{1.9cm}p{2.5cm}p{1.9cm}YYl@{}}
\toprule
Target & Command & Time (UTC) & Expected & Actual & Status\\\midrule
443 & \texttt{curl -I https://git...} & Oct 1 00:39 & Reachable & HTTP/2 200 & \vok\\
80 & \texttt{curl -I http://git...} & Oct 1 00:40 & Redirect only & 308 to HTTPS & \vok\\
3000 (backend) & \texttt{nc -vz -G 5 143.244.173.110 3000} & Oct 1, after 00:40 & Blocked & ``Operation timed out'' & \vok\\
22 (SSH), approved IP & \texttt{nc -vz -G 5 \ldots 22} & Oct 1, after 00:40 & Open to approved IP & Succeeded (rule was still ``All'' then) & \vpart\\
22 (SSH), non-approved IP & same, from phone hotspot & --- & Timeout & not run & \vpend\\
2222 (Git SSH) & \texttt{nc -vz -G 5 \ldots 2222} & --- & Timeout & not run & \vpend\\
5432 (database) & --- & --- & n/a & SQLite, no DB port & n/a\\
\bottomrule\end{tabularx}\end{center}
\textbf{Why HTTPS does not replace a firewall:} TLS only encrypts and authenticates the 443 connection. It does nothing about SSH on 22, a stray published port, or a database listener; those are only closed by network rules. The 3000 timeout in the table is the firewall working, not TLS.
\begin{figure}[H]\centering
\begin{tikzpicture}[font=\small,node distance=8mm,
box/.style={draw,rounded corners,minimum height=9mm,align=center,fill=white},
pub/.style={box,fill=green!12},priv/.style={box,fill=red!8}]
\node[box](br){Team browser};
\node[box,below=of br](adm){Admin\\174.167.120.67};
\node[box,right=22mm of br,minimum height=22mm,fill=orange!15](fw){DO Cloud Firewall\\443 any, 80 any\\22 only /32};
\node[pub,right=22mm of fw,yshift=9mm](cad){Caddy\\publishes 80, 443\\TLS ends here};
\node[priv,right=26mm of cad](git){Gitea :3000\\(not published)};
\node[priv,below=10mm of git](vol){./data volume\\SQLite + repos};
\node[box,below=of cad,fill=white](ssh){sshd :22 (host)};
\node[draw,dashed,fit=(cad)(git)(vol)(ssh),inner sep=4mm,label={[font=\scriptsize]above:Droplet 143.244.173.110}]{};
\draw[->](br)--node[above,font=\scriptsize]{443/80}(fw);
\draw[->](adm)--node[below,font=\scriptsize]{22}(fw);
\draw[->](fw)--(cad);\draw[->](fw)|-(ssh);
\draw[->](cad)--node[above,font=\scriptsize]{gitea\_internal}(git);
\draw[->](git)--(vol);
\node[red!70!black,font=\scriptsize,below=8mm of vol]{3000, 2222: no rule, no mapping};
\end{tikzpicture}
\caption{Network exposure. Only Caddy publishes web ports; Gitea and its SQLite data are private. Based on Figs.~\ref{fig:fwa} and~\ref{fig:compose}.}\label{fig:net}
\end{figure}
\shot{fw_before}{Cloud Firewall before restriction: SSH open to all IPv4/IPv6 (Oct 2, 2026, 10:03 PM local).}{fig:fwb}
\shot{fw_after}{Cloud Firewall after restriction: SSH only from 174.167.120.67/32 (Oct 2, 2026, 10:26 PM local).}{fig:fwa}
%----------------------------------------------------------
\section{Startup Team Workflow}\label{sec:team}\index{pull request}\index{issues}
\textbf{Organization:} \texttt{SSW590-Startup}. \textbf{Repository:} \url{https://git.nageshwaran.dev/SSW590-Startup/startup-product} (1 repository in the organization). \textbf{Members} (Fig.~\ref{fig:members}):
\begin{center}\begin{tabular}{@{}lll@{}}\toprule User & Role & 2FA\\\midrule \texttt{nageshwaran\_manikumar} & Owner & off\\ \texttt{shiv} & Member & off\\\bottomrule\end{tabular}\end{center}
README: \vpend{} confirm \texttt{README.md} exists on \texttt{main} and add a screenshot.
\subsection*{Issues}
Five issues existed when PR \#6 was open (Issues counter = 5, Fig.~\ref{fig:pr6o}); the counter fell to 4 and 3 as the issues were closed by merges.
\begin{center}\small\begin{tabularx}{\linewidth}{@{}lYll@{}}\toprule
\# & Title / type & State & Evidence\\\midrule
1 & Product landing-page documentation (product) & Closed by PR \#6 & Figs.~\ref{fig:pr6o},~\ref{fig:pr6m}\\
2 & Application health-check documentation (operations) & Closed by PR \#7 & Figs.~\ref{fig:pr7o},~\ref{fig:pr7m}\\
3 & \vpend{} \textit{title, type} & Open & Issues counter = 3\\
4 & \vpend{} \textit{title, type} & Open & ''\\
5 & \vpend{} \textit{title, type} & Open & ''\\
\bottomrule\end{tabularx}\end{center}
The three open issue titles must be added; the assignment requires five actionable issues including both product and operations work.
\subsection*{Issue $\rightarrow$ branch $\rightarrow$ PR $\rightarrow$ review $\rightarrow$ merge $\rightarrow$ close}
\begin{center}\small\begin{tabularx}{\linewidth}{@{}p{2.0cm}YY@{}}\toprule
& Workflow 1 & Workflow 2\\\midrule
Issue & \#1, product landing page & \#2, health check\\
Branch & \texttt{feature/1-product-landing-page} & \texttt{feature/2-health-check}\\
Commit & \texttt{f40173cc7a} & \texttt{7e08ef0924}\\
Change & adds \texttt{docs/product.md} (+24 lines) & adds \texttt{docs/health-check.md} (+21 lines)\\
Pull request & \#6, body ``Closes \#1'' & \#7, body ``Closes \#2''\\
Review & \texttt{shiv} (Member) comment: documentation reviewed & \texttt{shiv} comment: documentation reviewed\\
Merge & by \texttt{nageshwaran\_manikumar}, merge commit \texttt{74d1785704} into \texttt{main} & merge commit \texttt{75e3534717} into \texttt{main}\\
Closure & Issue \#1 closed (counter 5$\rightarrow$4) & Issue \#2 closed (4$\rightarrow$3)\\
\bottomrule\end{tabularx}\end{center}
\textbf{Honest limits.} The authorship is split correctly (author NM, reviewer SP), but SP's reviews are plain comments, not Gitea ``Approve'' reviews, and no branch protection was enforced on \texttt{main} at this point; PR \#7 also showed ``branch is out-of-date'' and was merged anyway with a merge commit (Fig.~\ref{fig:pr7f}). Branch protection with required approval and the Jenkins status check belongs to the CI chapter.
\shot{members}{Organization members: NM (Owner) and \texttt{shiv} (Member); 2FA off for both.}{fig:members}
\shot{pr6open}{PR \#6 open: issue \#1, commit \texttt{f40173cc7a}, review comment from \texttt{shiv}.}{fig:pr6o}
\shot{pr6merged}{PR \#6 merged into \texttt{main}, merge commit \texttt{74d1785704}.}{fig:pr6m}
\shot{pr7open}{PR \#7 open: issue \#2, commit \texttt{7e08ef0924}, review comment.}{fig:pr7o}
\shot{pr7form}{PR \#7 merge dialog with out-of-date warning (``Create merge commit'').}{fig:pr7f}
\shot{pr7merged}{PR \#7 merged into \texttt{main}, merge commit \texttt{75e3534717}; issue counter now 3.}{fig:pr7m}
%----------------------------------------------------------
\section{Architecture and Operation}\label{sec:arch}\index{architecture}
\begin{figure}[H]\centering
\begin{tikzpicture}[font=\small,node distance=9mm,box/.style={draw,rounded corners,align=center,minimum height=9mm,fill=white}]
\node[box](b){Browser / git client};
\node[box,right=20mm of b](c){Caddy\\TLS termination};
\node[box,right=20mm of c](g){Gitea\\rootless 1.27.3};
\node[box,below=of g](d){SQLite DB\\+ repositories\\\texttt{/opt/gitea/data}};
\node[box,below=of c](cd){\texttt{caddy\_data}\\certs + ACME account};
\node[box,above=of g,fill=black!5](cf){\texttt{/opt/gitea/config}\\app.ini};
\draw[->](b)--node[above,font=\scriptsize]{HTTPS 443}(c);
\draw[->](c)--node[above,font=\scriptsize]{HTTP :3000}(g);
\draw[->](g)--(d);\draw[->](c)--(cd);\draw[->](g)--(cf);
\end{tikzpicture}
\caption{Request and data paths. Public: Caddy 443/80. Private: Gitea, SQLite file, repositories, config, certificates.}\label{fig:arch}
\end{figure}
\textbf{Data placement.} Issues, users, PR metadata and settings: SQLite file in \texttt{data/}. Repositories: \texttt{data/git/repositories}. Gitea settings: \texttt{config/app.ini}. Certificates and ACME account: \texttt{caddy\_data/}. \textbf{Public:} 443, 80 (redirect/ACME), 22 (one IP). \textbf{Private:} 3000, 2222, SQLite.
\textbf{Operate and troubleshoot} (from \texttt{/opt/gitea}):
\begin{lstlisting}
docker compose ps # both services Up?
docker compose logs --tail 100 caddy gitea
docker compose restart gitea # app only
docker compose pull && docker compose up -d # only after changing pinned tags
docker exec caddy caddy validate --config /etc/caddy/Caddyfile
ss -lntp | grep -E ':22|:80|:443|:3000' # expect no :3000
\end{lstlisting}
Symptoms: browser certificate error $\rightarrow$ check DNS A record and Caddy log; 502 from Caddy $\rightarrow$ Gitea down or wrong service name; SSH timeout $\rightarrow$ your IP changed, use the DigitalOcean console and edit the firewall; wrong clone URLs $\rightarrow$ \texttt{ROOT\_URL} in \texttt{app.ini}.
\textbf{Persistence test $\neq$ backup.} Section~\ref{sec:db} proves data survives a container being replaced. It does not protect against disk loss, deletion of \texttt{/opt/gitea}, or corruption. No backup or restore test has been done; the optional extra credit is not claimed.
\textbf{Cost and cleanup.} DigitalOcean 512 MB Droplet is billed monthly (verify current price; the account shows a \$3.00 signup credit) and the domain renews yearly (see \S\ref{sec:domain}). Shutdown: export anything needed, destroy the Droplet, delete the Cloud Firewall, remove the DNS record, and let or cancel the domain renewal.
%----------------------------------------------------------
\section{Manual Quality and Controls}\label{sec:quality}\index{controls}
Version raised to 1.2 with dated history entries for the initial setup (1.0, 1.1) and this update (1.2), each naming the Hosts/Passwords changes (Document History, Chapter~1). Evidence is dated and captioned; secrets are absent.
\subsection*{Failed attempts and corrective actions}
\begin{center}\small\begin{tabularx}{\linewidth}{@{}p{3.6cm}YY@{}}\toprule
Problem & Evidence & Correction\\\midrule
First Gitea install used \texttt{ROOT\_URL=http://143.244.173.110:3000/} and published port 3000 & Gitea log, Sep 30 23:07 (Fig.~\ref{fig:persist} era logs) & Moved behind Caddy on \texttt{git.nageshwaran.dev}; port 3000 now unpublished and blocked (Fig.~\ref{fig:tls2})\\
\texttt{ROOT\_URL} had to be corrected to a plain HTTPS URL & Several \texttt{sed}/\texttt{grep} attempts in Fig.~\ref{fig:compose}: first against a host path that does not exist, one using \texttt{python3}, absent in the Gitea image & Final \texttt{sed} inside the container; both Compose and \texttt{app.ini} now read \texttt{https://git.nageshwaran.dev/}\\
SSH was open to the whole internet & Fig.~\ref{fig:fwb} & Restricted to one /32 (Fig.~\ref{fig:fwa}); lockout recovery documented\\
Two admin accounts without 2FA & Fig.~\ref{fig:members} & Open: enable TOTP for both accounts\\
Gitea sign-up page publicly reachable at install time & Gitea log \texttt{GET /user/sign\_up 200} & Open: set \texttt{DISABLE\_REGISTRATION=true} now that both users exist\\
\bottomrule\end{tabularx}\end{center}
\subsection*{Open items before final submission}
\begin{enumerate}[nosep]
\item Domain offer, eligibility, first-year and renewal cost, expiry (\S\ref{sec:domain}).
\item External \texttt{dig} lookup from another network (\S\ref{sec:domain}).
\item Commit \texttt{docker-compose.yml} and \texttt{Caddyfile} to the product repository and link (\S\ref{sec:deploy}).
\item Confirm SQLite file path; add the issue-survives-replacement test (\S\ref{sec:db}).
\item Run SSH (non-approved IP) and 2222 external tests (\S\ref{sec:fw}).
\item Titles/types of issues \#3--\#5; README screenshot (\S\ref{sec:team}).
\item Enable 2FA; disable open registration; update Passwords table and history.
\end{enumerate}
%==========================================================
\chapter{Automated LaTeX Manual Builds with Gitea Actions}
\section{Source and Trigger}
The source-of-truth repository is \url{https://git.nageshwaran.dev/SSW590-Startup/startup-product}. The manual source is maintained in \texttt{manual/}, and the workflow is \texttt{.gitea/workflows/manual-build.yml}. A push to \texttt{main} triggers the build; maintainers may also use manual dispatch. Git clients reach Gitea over HTTPS port 443 through Caddy. The runner connects outbound to Gitea, without exposing a public runner port.
\section{Runner Setup}
The repository-scoped runner \texttt{macbook-latex-runner} runs on a team Apple Silicon Mac using Gitea runner v5.0.0, Colima, and Docker. The job label is \texttt{latex-build}, mapped to the local \texttt{ssw590-texlive-node:1.0} container image. The Droplet is intentionally not used for TeX compilation because of its limited memory. The runner is started with \texttt{gitea-runner daemon --config ./config.yaml}; it must be online to accept queued jobs. The runner has capacity one.
\section{Reproducible Compilation}
The Dockerfile uses the TeX Live base image at digest \texttt{sha256:c06416ebbc69c8e90e07d1f1a6f7a3f9b334e773daa3543ce879ea533317c3a7}, with Node.js and npm installed for checkout and artifact actions. The observed versions were Node 24.18.1, npm 11.12.1 and latexmk 4.88. The TeX Live base is digest-pinned; Alpine package installation is not individually version-pinned, so complete rebuild bit-for-bit reproducibility is not claimed. The ARM64 Mac runs the AMD64 image through Docker emulation. Compilation uses:
\begin{lstlisting}
cd manual
latexmk -pdf -interaction=nonstopmode \
-halt-on-error -file-line-error main.tex
test -s main.pdf
\end{lstlisting}
A LaTeX error stops the job. The job copies the PDF to \texttt{manual/dist/SSW590-DevOps-IT-Manual.pdf} before artifact upload. TeX compilation takes place in a job container on the Mac, not inside the Gitea application container.
\section{PDF Version Traceability}
The document's human-maintained version is \textbf{1.3}. A generated, uncommitted \texttt{build\_metadata.tex} supplies the triggering Git commit, Gitea run number and attempt. The PDF title page displays the build identifier \texttt{v1.3+build.<run>.<short-SHA>}. This compilation identifies itself as \textbf{\BuildIdentifier}. Triggering commit: \texttt{\BuildCommit}. Run: \BuildRun, attempt: \BuildAttempt. Generated metadata is not pushed, avoiding an automatic commit/build loop.
\section{Downloadable Artifact}
The workflow uses \texttt{actions/upload-artifact@v4} with the artifact name \texttt{SSW590-DevOps-IT-Manual}, checks that the PDF exists, and configures a 14-day retention period. The PDF must be downloaded from the final successful Gitea Actions run, not submitted from a local preview. The artifact is temporary and does not replace a backup.
\section{Change, Failure, and Repair}
\begin{center}\small
\begin{tabularx}{\linewidth}{@{}p{2.65cm}p{1.65cm}p{2.65cm}Y@{}}\toprule
Test & Commit & Run / build & Observed result\\\midrule
Successful push 1 & \texttt{7be302d} & Run 3; build 3 & Passed, 21 s; PDF artifact\\
Successful push 2 & \texttt{74756c8} & Run 4; build 4 & Passed, 21 s; PDF artifact\\
Controlled TeX failure & \texttt{0b38b75} & Run 5 & Failed as intended; no PDF artifact\\
Repair push & \texttt{e3a9688} & Run 6; build 6 & Passed, 21 s; PDF artifact\\\bottomrule
\end{tabularx}\end{center}
\noindent\textbf{Gitea run links:}
\href{https://git.nageshwaran.dev/SSW590-Startup/startup-product/actions/runs/3}{Run 3},
\href{https://git.nageshwaran.dev/SSW590-Startup/startup-product/actions/runs/4}{Run 4},
\href{https://git.nageshwaran.dev/SSW590-Startup/startup-product/actions/runs/5}{Run 5}, and
\href{https://git.nageshwaran.dev/SSW590-Startup/startup-product/actions/runs/6}{Run 6}.
The successful build identifiers were \texttt{v1.3+build.3.7be302d}, \texttt{v1.3+build.4.74756c8}, and \texttt{v1.3+build.6.e3a9688}. Run 5 failed with an undefined LaTeX control sequence in \texttt{chapter3.tex} (line 382, exit code 12). Run 6 corrected the source and restored the passing build. These are recorded execution results, not a proposed test plan.
\section{Runner and Secret Boundary}
The runner credential file remains on the Mac outside Git and has restricted permissions. The runner is repository-scoped; only trusted maintainers should modify executable workflow definitions. Runner configuration uses \texttt{container.docker\_host: "-"} so the Docker socket is not mounted into the job container; privileged containers are not required. Do not commit tokens, \texttt{.runner}, credential files, or secrets. A malicious workflow still has potential access to its runner environment, so restrict repository write access and use a dedicated runner where possible.
\section{Manual Quality and Controls}
The earlier Gitea deployment and screenshot evidence remain in Chapters 1--2. Chapter 3 documents the runner, compilation, version traceability, artifact and controlled failure/repair. The latest document history entry explicitly records the Hosts and Passwords table changes. Evidence links are provided above; dated screenshots of the runner page, run logs, artifact listing and final PDF cover should be added before final submission. The final submission must be the artifact from the final successful Actions run, and the title-page run identity must match that run.
\input{chapters/chapter4}
\appendix
\chapter{Glossary}
\begin{description}[nosep]
\item[ACME] Protocol for automatic certificate issuance and renewal.
\item[Cloud Firewall] DigitalOcean network-level stateful firewall applied to Droplets.
\item[HTTP-01] ACME challenge proven over port 80.
\item[Reverse proxy] Service that receives public requests and forwards them to internal services; here Caddy.
\item[SQLite] Embedded single-file database used by Gitea in this deployment.
\item[TLS termination] Point where encrypted HTTPS is decrypted; here the Caddy container.
\end{description}
\begin{thebibliography}{99}\small
\bibitem{caddyauto} Caddy. Automatic HTTPS. \url{https://caddyserver.com/docs/automatic-https}
\bibitem{caddyproxy} Caddy. Reverse proxy quick-start. \url{https://caddyserver.com/docs/quick-starts/reverse-proxy}
\bibitem{dofw} DigitalOcean. How to configure firewall rules. \url{https://docs.digitalocean.com/products/networking/firewalls/how-to/configure-rules/}
\bibitem{dockerfw} Docker. Packet filtering and firewalls. \url{https://docs.docker.com/engine/network/packet-filtering-firewalls/}
\bibitem{giteadocker} Gitea. Installation with Docker. \url{https://docs.gitea.com/installation/install-with-docker/}
\bibitem{giteadb} Gitea. Database preparation. \url{https://docs.gitea.com/installation/database-prep/}
\bibitem{ghpack} GitHub Education. Student Developer Pack: Domain offers. \url{https://education.github.com/pack?sort=az&tag=Domains}
\bibitem{lechallenge} Let's Encrypt. Challenge types. \url{https://letsencrypt.org/docs/challenge-types/}
\bibitem{le} Let's Encrypt. Free TLS certificates. \url{https://letsencrypt.org/}
\end{thebibliography}
\chapter*{AI Assistance Record}
AI (Anthropic Claude) was used on Oct 2, 2026 to organize this manual and draft text from the team's own terminal and browser screenshots. The team must verify every statement against the live system before submitting. No credentials were supplied or included.
\printindex
\end{document}
+374
View File
@@ -0,0 +1,374 @@
\documentclass[11pt,oneside]{report}
% ============================================================
% SSW 590 — DevOps IT Manual
% Human-maintained version: 1.3
% Automated build metadata is supplied by Gitea Actions.
% ============================================================
% ------------------------------------------------------------
% 1. Document packages
% ------------------------------------------------------------
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{array}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{xurl}
\usepackage{fancyhdr}
\usepackage{enumitem}
\usepackage{listings}
\usepackage{makeidx}
% ------------------------------------------------------------
% 2. Page layout and colors
% ------------------------------------------------------------
\geometry{
letterpaper,
margin=0.88in,
headheight=16pt,
headsep=20pt
}
\definecolor{navy}{RGB}{30,65,100}
\definecolor{linkblue}{RGB}{20,85,150}
\hypersetup{
colorlinks=true,
linkcolor=linkblue,
urlcolor=linkblue,
citecolor=linkblue,
pdftitle={SSW 590 DevOps IT Manual},
pdfauthor={Nageshwaran Manikumar and Shiv Patel},
pdfsubject={Startup Foundation with Gitea and Automated LaTeX Builds}
}
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}
\setcounter{tocdepth}{2}
\setcounter{secnumdepth}{3}
\lstset{
basicstyle=\ttfamily\footnotesize,
breaklines=true,
frame=single,
columns=fullflexible,
keepspaces=true,
showstringspaces=false
}
\makeindex
% ------------------------------------------------------------
% 3. Manual version and automated build metadata
% ------------------------------------------------------------
% Updated manually when the team publishes a new revision.
\newcommand{\ManualVersion}{1.3}
% Defaults for local compilation.
% These are replaced by Gitea Actions during automated builds.
\newcommand{\BuildIdentifier}{Local preview -- not an Actions build}
\newcommand{\BuildCommit}{Not available}
\newcommand{\BuildRun}{Not available}
\newcommand{\BuildAttempt}{Not available}
% Generated by the workflow; never commit this file.
\IfFileExists{build_metadata.tex}{%
\input{build_metadata.tex}%
}{}
% ------------------------------------------------------------
% 4. Header and footer
% ------------------------------------------------------------
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\small SSW 590 DevOps IT Manual}
\fancyhead[R]{\small Version \ManualVersion}
\fancyfoot[L]{\small Stevens Institute of Technology}
\fancyfoot[C]{\small \thepage}
\fancyfoot[R]{\small SSW 590}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.2pt}
% ------------------------------------------------------------
% 5. Document begins
% ------------------------------------------------------------
\begin{document}
% ============================================================
% TITLE PAGE
% ============================================================
\begin{titlepage}
\centering
\vspace*{1.3cm}
{\Large\bfseries
Stevens Institute of Technology\par}
\vspace{0.4cm}
{\Large
SSW 590 --- DevOps\par}
\vspace{1.5cm}
{\Huge\bfseries\color{navy}
DevOps IT Manual\par}
\vspace{0.5cm}
{\LARGE
Startup Foundation with Gitea\par}
\vspace{0.3cm}
{\large
Automated LaTeX Manual Builds with Gitea Actions\par}
\vspace{1.4cm}
{\LARGE\bfseries
Version \ManualVersion\par}
\vspace{0.3cm}
{\normalsize
Build: \BuildIdentifier\par}
\vspace{0.3cm}
{\small
Triggering commit: \texttt{\BuildCommit}\par}
{\small
Gitea Actions run: \BuildRun\par}
\vspace{1.3cm}
{\large\bfseries
Prepared by\par}
\vspace{0.3cm}
{\large
Nageshwaran Manikumar\par}
{\large
Shiv Patel\par}
\vspace{0.9cm}
{\large
Instructor: Darian Muresan\par}
\vfill
{\large
October 9, 2026\par}
\vspace{0.5cm}
{\small
Gitea Server:\par}
\url{https://git.nageshwaran.dev}
\vspace{0.3cm}
{\small
Project Repository:\par}
\url{https://git.nageshwaran.dev/SSW590-Startup/startup-product}
\end{titlepage}
% ============================================================
% DOCUMENT HISTORY
% ============================================================
\pagenumbering{roman}
\setcounter{page}{1}
\chapter*{Document History}
\addcontentsline{toc}{chapter}{Document History}
This table records human-approved revisions to the DevOps IT
Manual. Automated Gitea Actions builds retain the manual's
human-maintained version and append a generated build
identifier containing the workflow run number and triggering
Git commit hash.
\small
\begin{longtable}{
p{0.19\textwidth}
p{0.10\textwidth}
p{0.47\textwidth}
p{0.13\textwidth}
}
\toprule
\textbf{Date / Version} &
\textbf{Author} &
\textbf{Description of Change} &
\textbf{Changed At} \\
\midrule
\endfirsthead
\toprule
\textbf{Date / Version} &
\textbf{Author} &
\textbf{Description of Change} &
\textbf{Changed At} \\
\midrule
\endhead
Oct 9, 2026 / 1.3 &
NM, SP &
Prepared the version-controlled LaTeX manual source and
drafted Chapter 3 documentation for automated builds,
runner configuration, PDF traceability, artifact handling,
and testing. Workflow execution and evidence remain
pending verification. &
Ch. 3; front matter \\
Oct 2, 2026 / 1.2 &
NM, SP &
Documented the Gitea startup environment, operational
registers, SSH restrictions, team collaboration workflow,
repository issues, and pull-request procedures. &
Ch. 1--2 \\
Sep 30, 2026 / 1.1 &
NM &
Documented Gitea and Caddy deployment, HTTPS access,
repository persistence, and related infrastructure
configuration. &
Ch. 1--2 \\
Sep 24, 2026 / 1.0 &
NM &
Established the initial DigitalOcean Droplet documentation
and operational registers. &
Ch. 1 \\
\bottomrule
\end{longtable}
\normalsize
\clearpage
% ============================================================
% TABLE OF CONTENTS
% ============================================================
\tableofcontents
\clearpage
% ============================================================
% MAIN MANUAL CHAPTERS
% ============================================================
\pagenumbering{arabic}
\setcounter{page}{1}
% Chapter 1 — Operational Registers
\input{chapters/chapter1}
% Chapter 2 — Startup Foundation with Gitea
\input{chapters/chapter2}
% Chapter 3 — Automated LaTeX Manual Builds
\input{chapters/chapter3}
% ============================================================
% APPENDICES
% ============================================================
\appendix
% ------------------------------------------------------------
% Appendix A — Glossary
% ------------------------------------------------------------
\chapter{Glossary}
\begin{description}[style=nextline]
\item[ACME]
Automated Certificate Management Environment,
used by Caddy to obtain and renew TLS certificates.
\item[Artifact]
A downloadable output file associated with a
particular workflow run.
\item[Continuous Integration (CI)]
Automated validation or building of source changes
after a repository event.
\item[Gitea Actions]
Gitea's workflow automation service for executing
repository-defined jobs.
\item[Git Commit]
A recorded source-code revision identified by a
unique commit hash.
\item[LaTeX]
A document preparation system used to produce
consistently formatted technical documents.
\item[latexmk]
A build automation utility that coordinates the
compilation passes required by LaTeX documents.
\item[Runner]
A registered agent that receives and executes
Gitea Actions jobs.
\item[SQLite]
An embedded relational database used by the
documented Gitea deployment.
\item[TLS]
Transport Layer Security, used to secure HTTPS
connections.
\item[Workflow]
A repository-defined sequence of automated jobs
triggered by events such as Git pushes.
\end{description}
% ------------------------------------------------------------
% Appendix B — AI Assistance Record
% ------------------------------------------------------------
\chapter{AI Assistance Record}
AI assistance was used to support document structure,
LaTeX formatting, technical drafting, and preparation
of the automated build specification.
All infrastructure observations, command results,
workflow execution outcomes, and screenshots must
be verified against the team's actual environment.
Pending work is identified as pending rather than
presented as completed testing.
No passwords, private keys, runner registration tokens,
or other secret values are included in this manual.
% ------------------------------------------------------------
% Index
% ------------------------------------------------------------
\clearpage
\printindex
\end{document}