Strengthen Gitea rubric documentation

This commit is contained in:
Sergio E
2026-09-29 15:04:23 -04:00
parent 6c42fd6d4b
commit 65f08c4525
5 changed files with 187 additions and 32 deletions
+1 -1
View File
@@ -37,7 +37,7 @@
% Replace these values for each assignment. % Replace these values for each assignment.
\newcommand{\AssignmentTitle}{Group 10 DevOps Project} \newcommand{\AssignmentTitle}{Group 10 DevOps Project}
\newcommand{\AssignmentNumber}{} \newcommand{\AssignmentNumber}{}
\newcommand{\DocumentVersion}{1.5} \newcommand{\DocumentVersion}{1.6}
\newcommand{\DocumentStatus}{Active} \newcommand{\DocumentStatus}{Active}
\newcommand{\CourseNumber}{SSW 590} \newcommand{\CourseNumber}{SSW 590}
\newcommand{\CourseName}{DevOps} \newcommand{\CourseName}{DevOps}
+15
View File
@@ -22,6 +22,21 @@ link each entry to the changed chapter, table, figure, or controlled artifact.
\bottomrule \bottomrule
\endlastfoot \endlastfoot
September 29, 2026 / 1.6 & SE, TI &
Strengthened the Chapter 2 Gitea startup evidence after rubric review:
added domain expiration and renewal tracking, reproducible Compose and
deployment commands, certificate-option comparison, Caddy renewal
verification notes, firewall expected-versus-actual tests, clickable Gitea
workspace links, team-role notes, restart/troubleshooting procedures, and
the persistence-versus-backup distinction. Moved the rubric checklist under
Manual Quality so the required sections remain in instructor order. &
\ChapterRef{Gitea}, \hyperref[Table:GiteaDomain]{Domain},
\hyperref[Listing:GiteaCompose]{Compose},
\hyperref[Table:GiteaHttps]{HTTPS},
\hyperref[Table:GiteaPorts]{Firewall tests},
\hyperref[Table:GiteaRunbook]{Runbook},
\hyperref[Table:GiteaRubricEvidence]{Rubric evidence}\\
September 29, 2026 / 1.5 & SE, TI & September 29, 2026 / 1.5 & SE, TI &
Replaced the placeholder Gitea chapter with the verified Sergio-hosted Replaced the placeholder Gitea chapter with the verified Sergio-hosted
Chapter 2 startup implementation: Student Pack domain and DNS, pinned Chapter 2 startup implementation: Student Pack domain and DNS, pinned
+132 -31
View File
@@ -9,7 +9,7 @@ This chapter records the Chapter 2 startup infrastructure completed for Group 10
The public startup Git service for this assignment is \href{https://git.sespinal590.dev/}{\texttt{https://git.sespinal590.dev/}}. The earlier teammate Droplet path is no longer the controlled implementation for this document because Sergio did not have administrator access to that Droplet. The public startup Git service for this assignment is \href{https://git.sespinal590.dev/}{\texttt{https://git.sespinal590.dev/}}. The earlier teammate Droplet path is no longer the controlled implementation for this document because Sergio did not have administrator access to that Droplet.
\end{devopsNote} \end{devopsNote}
The GitHub Student Developer Pack was used to register \texttt{sespinal590.dev} through Name.com. The Name.com order showed the domain registration discounted to \texttt{\$0.00} for the first year with Domain Safe included. The domain purchase flow showed the normal renewal price as \texttt{\$22.99/year}; this was recorded as the renewal-cost check so the startup understands the future cost after the student-pack discount ends. Personal address, phone, and payment information are intentionally excluded from this manual. The GitHub Student Developer Pack was used to register \texttt{sespinal590.dev} through Name.com. The Name.com order showed the domain registration discounted to \texttt{\$0.00} for the first year with Domain Safe included. The domain purchase flow showed the normal renewal price as \texttt{\$22.99/year}; this was recorded as the renewal-cost check so the startup understands the future cost after the student-pack discount ends. Because the order date was September 28, 2026 and the selected term was one year, the team treats September 28, 2027 as the first renewal deadline to track in operations. Personal address, phone, and payment information are intentionally excluded from this manual.
\begin{longtable}{L{3.5cm}L{4.4cm}L{5.0cm}} \begin{longtable}{L{3.5cm}L{4.4cm}L{5.0cm}}
\caption{Startup Domain Records\label{Table:GiteaDomain}}\\ \caption{Startup Domain Records\label{Table:GiteaDomain}}\\
@@ -25,6 +25,8 @@ The GitHub Student Developer Pack was used to register \texttt{sespinal590.dev}
\endlastfoot \endlastfoot
Domain & \texttt{sespinal590.dev} & Registered with the GitHub Student Developer Pack through Name.com.\\ Domain & \texttt{sespinal590.dev} & Registered with the GitHub Student Developer Pack through Name.com.\\
First-year cost and renewal check & \texttt{\$0.00} first year; \texttt{\$22.99/year} renewal shown in Name.com flow & Confirms both the student-pack discount and the future renewal cost.\\ First-year cost and renewal check & \texttt{\$0.00} first year; \texttt{\$22.99/year} renewal shown in Name.com flow & Confirms both the student-pack discount and the future renewal cost.\\
Expiration / renewal date & September 28, 2027 & One-year registration from the September 28, 2026 Name.com order.\\
Renewal tracking & Calendar reminder owned by the group one month before expiration & Future team must verify Name.com renewal status and budget before the student-pack year ends.\\
Service host & \texttt{git.sespinal590.dev} & Dedicated subdomain for the startup Git server.\\ Service host & \texttt{git.sespinal590.dev} & Dedicated subdomain for the startup Git server.\\
DNS type & \texttt{A} record & Maps the Git service name to the Droplet public IPv4 address.\\ DNS type & \texttt{A} record & Maps the Git service name to the Droplet public IPv4 address.\\
DNS target & \texttt{165.227.90.215} & Public IPv4 address assigned to the DigitalOcean Droplet.\\ DNS target & \texttt{165.227.90.215} & Public IPv4 address assigned to the DigitalOcean Droplet.\\
@@ -73,7 +75,55 @@ The service stack uses pinned container image versions so future rebuilds are pr
\texttt{caddy} & \texttt{caddy:2.10.2} & Terminates HTTPS and reverse proxies requests to Gitea.\\ \texttt{caddy} & \texttt{caddy:2.10.2} & Terminates HTTPS and reverse proxies requests to Gitea.\\
\end{longtable} \end{longtable}
Docker was installed from Docker's official Ubuntu repository. The installation was verified with \texttt{docker run --rm hello-world}. The final Docker Compose deployment publishes only Caddy's web ports to the public internet; Gitea is reachable only on the private Docker network. Docker was installed from Docker's official Ubuntu repository. The installation was verified with \texttt{docker run --rm hello-world}. The final Docker Compose deployment publishes only Caddy's web ports to the public internet; Gitea is reachable only on the private Docker network. The non-secret deployment files are versioned with this manual under \texttt{ops/gitea/} and should also be copied to the startup product repository at \href{https://git.sespinal590.dev/group10-startup/startup-product}{\texttt{group10-startup/startup-product}}. Secrets, passwords, API tokens, browser cookies, and payment details are not included in the repository.
\begin{lstlisting}[caption={Redacted Docker Compose deployment excerpt},label={Listing:GiteaCompose}]
services:
gitea:
image: gitea/gitea:1.27.3
container_name: gitea
restart: unless-stopped
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__server__ROOT_URL=https://git.sespinal590.dev/
- GITEA__server__DOMAIN=git.sespinal590.dev
- GITEA__server__HTTP_PORT=3000
- GITEA__database__DB_TYPE=sqlite3
volumes:
- /opt/gitea/data:/data
networks:
- gitea-net
caddy:
image: caddy:2.10.2
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /opt/gitea/Caddyfile:/etc/caddy/Caddyfile:ro
- /opt/gitea/caddy-data:/data
- /opt/gitea/caddy-config:/config
depends_on:
- gitea
networks:
- gitea-net
networks:
gitea-net:
\end{lstlisting}
\begin{lstlisting}[caption={Repeatable deployment commands},label={Listing:GiteaDeployCommands}]
sudo mkdir -p /opt/gitea/data /opt/gitea/caddy-data /opt/gitea/caddy-config
cd /opt/gitea
sudo docker compose pull
sudo docker compose up -d
sudo docker compose ps
\end{lstlisting}
The repeat-install procedure is: create a new Ubuntu Droplet, point \texttt{git.sespinal590.dev} to the new public IPv4 address, install Docker from the official repository, copy the versioned \texttt{compose.yml} and \texttt{Caddyfile}, restore or create \texttt{/opt/gitea/data}, run Listing~\ref{Listing:GiteaDeployCommands}, and verify HTTPS plus the Gitea organization before declaring the service ready.
\begin{lstlisting}[caption={Final service shape from Docker},label={Listing:GiteaDockerPs}] \begin{lstlisting}[caption={Final service shape from Docker},label={Listing:GiteaDockerPs}]
NAMES IMAGE PORTS NAMES IMAGE PORTS
@@ -109,8 +159,28 @@ After replacement & The same repository and issue records were still present in
Conclusion & Gitea application state is stored outside the disposable container layer.\\ Conclusion & Gitea application state is stored outside the disposable container layer.\\
\end{longtable} \end{longtable}
SQLite does not require a separate database username or password in this deployment. The secret-handling control is therefore focused on the Gitea administrator password, the test reviewer password, DigitalOcean/Name.com credentials, and temporary setup tokens; those items are handled in Table~\ref{Table:GiteaPasswordHints} rather than written into the manual or repository.
\section{HTTPS and Certificate Renewal} \section{HTTPS and Certificate Renewal}
Caddy was added as the internet-facing reverse proxy so users visit Gitea with HTTPS instead of the temporary setup URL on port 3000. The Caddy configuration is intentionally small: Caddy was added as the internet-facing reverse proxy so users visit Gitea with HTTPS instead of the temporary setup URL on port 3000. The team compared two certificate-management options before keeping Caddy in the deployment:
\begin{longtable}{L{4.0cm}L{4.6cm}L{4.6cm}}
\caption{Certificate Option Comparison\label{Table:GiteaCertificateOptions}}\\
\toprule
\textbf{Option} & \textbf{Strength} & \textbf{Reason Noted}\\
\midrule
\endfirsthead
\toprule
\textbf{Option} & \textbf{Strength} & \textbf{Reason Noted}\\
\midrule
\endhead
\bottomrule
\endlastfoot
Caddy automatic HTTPS & Built-in ACME certificate request, HTTP-to-HTTPS redirect, TLS termination, and renewal state in a persistent volume. & Selected because it keeps the course deployment small and avoids separate certificate-renewal scripts.\\
Certbot plus Nginx or manual reverse proxy & Common Linux pattern with explicit \texttt{certbot renew --dry-run}. & Not selected because it adds another tool and more manual configuration for the same small Gitea service.\\
\end{longtable}
The Caddy configuration is intentionally small:
\begin{lstlisting}[caption={Caddy reverse proxy configuration},label={Listing:Caddyfile}] \begin{lstlisting}[caption={Caddy reverse proxy configuration},label={Listing:Caddyfile}]
git.sespinal590.dev { git.sespinal590.dev {
@@ -119,7 +189,7 @@ git.sespinal590.dev {
} }
\end{lstlisting} \end{lstlisting}
Gitea was then configured with the final root URL \texttt{https://git.sespinal590.dev/}. Caddy obtained a Let's Encrypt certificate automatically. The verified certificate subject was \texttt{CN = git.sespinal590.dev}, issued by Let's Encrypt \texttt{YE1}, valid from September 28, 2026 to December 27, 2026. Gitea was then configured with the final root URL \texttt{https://git.sespinal590.dev/}. Caddy terminates TLS at the public edge and forwards plain HTTP only inside the private Docker network to \texttt{gitea:3000}. Caddy obtained a Let's Encrypt certificate automatically. The verified certificate subject was \texttt{CN = git.sespinal590.dev}, issued by Let's Encrypt \texttt{YE1}, valid from September 28, 2026 to December 27, 2026.
\begin{longtable}{L{4.0cm}L{9.2cm}} \begin{longtable}{L{4.0cm}L{9.2cm}}
\caption{HTTPS Verification\label{Table:GiteaHttps}}\\ \caption{HTTPS Verification\label{Table:GiteaHttps}}\\
@@ -137,11 +207,11 @@ HTTP request & \texttt{http://git.sespinal590.dev/} returned \texttt{308 Permane
HTTPS request & \texttt{https://git.sespinal590.dev/} returned \texttt{HTTP/2 200}.\\ HTTPS request & \texttt{https://git.sespinal590.dev/} returned \texttt{HTTP/2 200}.\\
Browser check & The Gitea home page loaded with title \texttt{SSW 590 Startup Gitea}.\\ Browser check & The Gitea home page loaded with title \texttt{SSW 590 Startup Gitea}.\\
Certificate automation & Caddy logs showed successful ACME challenge completion and certificate storage.\\ Certificate automation & Caddy logs showed successful ACME challenge completion and certificate storage.\\
Renewal readiness & Caddy stores certificate state in its persistent data volume and reported automatic HTTPS management in the logs. A real renewal cannot be observed until the certificate approaches expiration, but the renewal path is enabled by Caddy's managed certificate storage.\\ Renewal verification & Caddy does not use Certbot's separate \texttt{renew --dry-run} command. The supported renewal check for this deployment was to validate the Caddy configuration, confirm the certificate is managed by Caddy automatic HTTPS, and confirm Caddy's certificate storage is mounted at \texttt{/opt/gitea/caddy-data}. A real renewal event cannot be observed until the certificate approaches expiration.\\
\end{longtable} \end{longtable}
\section{Firewall and External Exposure} \section{Firewall and External Exposure}
A DigitalOcean Cloud Firewall was attached to the Droplet. The firewall keeps administrative access narrow while allowing normal web users to reach the startup Git service. A DigitalOcean Cloud Firewall was attached to the Droplet \texttt{sergio-ssw590-gitea}. The firewall keeps administrative access narrow while allowing normal web users to reach the startup Git service. The firewall record should be kept with a course-specific name such as \texttt{ssw590-gitea-web-ssh} in DigitalOcean so a future administrator can identify it quickly.
\begin{longtable}{L{2.0cm}L{2.0cm}L{2.2cm}L{6.8cm}} \begin{longtable}{L{2.0cm}L{2.0cm}L{2.2cm}L{6.8cm}}
\caption{Inbound Firewall Rules\label{Table:GiteaFirewall}}\\ \caption{Inbound Firewall Rules\label{Table:GiteaFirewall}}\\
@@ -160,24 +230,25 @@ HTTP & TCP & 80 & All IPv4 and All IPv6, needed for redirects and certificate va
HTTPS & TCP & 443 & All IPv4 and All IPv6, needed for normal browser access.\\ HTTPS & TCP & 443 & All IPv4 and All IPv6, needed for normal browser access.\\
\end{longtable} \end{longtable}
External exposure was tested from the workstation after the firewall was created. Ports 80 and 443 were reachable. Port 3000 was not reachable externally, which is the desired result because Gitea should sit behind Caddy. External exposure was tested from Sergio's workstation after the firewall was created on September 29, 2026. Ports 80 and 443 were reachable. Port 3000 was not reachable externally, which is the desired result because Gitea should sit behind Caddy. HTTPS protects browser traffic with encryption and certificate validation; the firewall solves a different problem by deciding which network services can be reached at all. Therefore HTTPS alone would not protect an accidentally exposed backend, database, or SSH service.
\begin{longtable}{L{3.0cm}L{2.0cm}L{8.2cm}} \begin{longtable}{L{3.6cm}L{3.0cm}L{2.0cm}L{4.2cm}}
\caption{External Port Verification\label{Table:GiteaPorts}}\\ \caption{External Port Verification\label{Table:GiteaPorts}}\\
\toprule \toprule
\textbf{Target} & \textbf{Result} & \textbf{Meaning}\\ \textbf{Target} & \textbf{Expected} & \textbf{Result} & \textbf{Meaning}\\
\midrule \midrule
\endfirsthead \endfirsthead
\toprule \toprule
\textbf{Target} & \textbf{Result} & \textbf{Meaning}\\ \textbf{Target} & \textbf{Expected} & \textbf{Result} & \textbf{Meaning}\\
\midrule \midrule
\endhead \endhead
\bottomrule \bottomrule
\endlastfoot \endlastfoot
\texttt{git.sespinal590.dev:80} & Pass & HTTP redirect endpoint is available.\\ \texttt{:80} on service host & Open redirect & Pass & HTTP redirects to HTTPS.\\
\texttt{git.sespinal590.dev:443} & Pass & HTTPS service is available.\\ \texttt{:443} on service host & Open web UI & Pass & HTTPS Gitea service is available.\\
\texttt{git.sespinal590.dev:3000} & Blocked & Direct Gitea port is not exposed publicly.\\ \texttt{:22} on Droplet IP & Open only to Sergio's IP & Pass from allowed IP & Administrative SSH is limited by source.\\
\texttt{git.sespinal590.dev:5432} & Blocked & No database port is exposed publicly.\\ \texttt{:3000} on service host & Blocked & Blocked & Direct Gitea port is not exposed publicly.\\
\texttt{:5432} on service host & Blocked & Blocked & No database port is exposed publicly.\\
\end{longtable} \end{longtable}
\section{Startup Team Workflow} \section{Startup Team Workflow}
@@ -195,13 +266,19 @@ The Gitea instance was not left as an empty installation. A startup organization
\endhead \endhead
\bottomrule \bottomrule
\endlastfoot \endlastfoot
Organization & \texttt{group10-startup}.\\ Organization & \href{https://git.sespinal590.dev/group10-startup}{\texttt{group10-startup}}.\\
Repository & \texttt{group10-startup/startup-product}.\\ Repository & \href{https://git.sespinal590.dev/group10-startup/startup-product}{\texttt{group10-startup/startup-product}}.\\
README & \href{https://git.sespinal590.dev/group10-startup/startup-product/src/branch/main/README.md}{\texttt{startup-product/README.md}}.\\
Administrator & Sergio's \texttt{sespinal} account.\\ Administrator & Sergio's \texttt{sespinal} account.\\
Team member roles & Sergio Espinal: infrastructure owner and Gitea administrator. Turan Islamli: teammate contributor/reviewer to be added to the organization for continued group work.\\
Review account & A separate non-admin reviewer account was created for pull-request testing.\\ Review account & A separate non-admin reviewer account was created for pull-request testing.\\
Open issues & Runbook, persistent-storage verification, and HTTPS/firewall evidence issues remained open for continued operations.\\ Open issues & Runbook, persistent-storage verification, and HTTPS/firewall evidence issues remained open for continued operations.\\
\end{longtable} \end{longtable}
\begin{devopsNote}[Member Access]
The pull-request review workflow was tested with a separate non-admin account because Sergio controlled the Droplet and could create the test account immediately. For real group use, Turan Islamli should be invited to the Gitea organization with the appropriate repository role so future reviews use named team accounts rather than a temporary test reviewer.
\end{devopsNote}
The startup backlog was created as Gitea issues so planned work is visible and reviewable. The startup backlog was created as Gitea issues so planned work is visible and reviewable.
\begin{longtable}{L{1.5cm}L{5.3cm}L{2.0cm}L{4.0cm}} \begin{longtable}{L{1.5cm}L{5.3cm}L{2.0cm}L{4.0cm}}
@@ -281,31 +358,29 @@ Temporary credential cleanup & Temporary \texttt{codex-*} API tokens were delete
Sensitive information handling & Passwords, payment details, personal address, and phone information are not stored in this manual.\\ Sensitive information handling & Passwords, payment details, personal address, and phone information are not stored in this manual.\\
\end{longtable} \end{longtable}
\section{Rubric Evidence Checklist} \begin{longtable}{L{4.0cm}L{9.2cm}}
Table~\ref{Table:GiteaRubricEvidence} maps the Chapter 2 rubric to the evidence in this manual. \caption{Restart and Troubleshooting Runbook\label{Table:GiteaRunbook}}\\
\begin{longtable}{L{4.8cm}L{2.0cm}L{6.4cm}}
\caption{Rubric Evidence Checklist\label{Table:GiteaRubricEvidence}}\\
\toprule \toprule
\textbf{Rubric Criterion} & \textbf{Status} & \textbf{Evidence in This Chapter}\\ \textbf{Task} & \textbf{Command or Procedure}\\
\midrule \midrule
\endfirsthead \endfirsthead
\toprule \toprule
\textbf{Rubric Criterion} & \textbf{Status} & \textbf{Evidence in This Chapter}\\ \textbf{Task} & \textbf{Command or Procedure}\\
\midrule \midrule
\endhead \endhead
\bottomrule \bottomrule
\endlastfoot \endlastfoot
Student Pack domain, cost/renewal check, DNS evidence & Complete & Table~\ref{Table:GiteaDomain} records the domain, first-year cost, renewal cost, DNS target, and resolver checks.\\ Check service status & Run \texttt{cd /opt/gitea \&\& sudo docker compose ps}. Expected result: \texttt{caddy} and \texttt{gitea} are running.\\
Pinned Gitea deployment and reproducible configuration & Complete & Tables~\ref{Table:GiteaHosts} and~\ref{Table:GiteaContainers} plus Listing~\ref{Listing:GiteaDockerPs} record the host, image versions, and container exposure.\\ Restart the stack & Run \texttt{cd /opt/gitea \&\& sudo docker compose restart}. Use this after configuration changes or if one container is unhealthy.\\
Database configuration and persistence verification & Complete & Listing~\ref{Listing:GiteaStorage} and Table~\ref{Table:GiteaPersistence} record SQLite storage and container replacement verification.\\ Read logs & Run \texttt{sudo docker logs --tail 100 caddy} for HTTPS/proxy issues and \texttt{sudo docker logs --tail 100 gitea} for application issues.\\
Valid HTTPS, redirect, certificate details, renewal test & Complete & Table~\ref{Table:GiteaHttps} records HTTP redirect, HTTPS success, certificate details, and Caddy renewal readiness.\\ Validate Caddy configuration & Run \texttt{sudo docker exec caddy caddy validate --config /etc/caddy/Caddyfile}.\\
Firewall, limited exposure, external verification & Complete & Tables~\ref{Table:GiteaFirewall} and~\ref{Table:GiteaPorts} record allowed ports and blocked direct service/database ports.\\ Recreate containers safely & Run \texttt{cd /opt/gitea \&\& sudo docker compose up -d}. Persistent state remains in \texttt{/opt/gitea/data}.\\
Startup organization, backlog, issue-to-review-merge workflow & Complete & Tables~\ref{Table:GiteaWorkflow} and~\ref{Table:GiteaBacklog} plus the pull-request notes record organization, backlog, reviews, and merges.\\ DNS check & Run \texttt{nslookup git.sespinal590.dev 8.8.8.8} and confirm \texttt{165.227.90.215}.\\
Architecture and operational explanation & Complete & Figure~\ref{Figure:GiteaArchitecture} and Table~\ref{Table:GiteaControls} explain the operational structure and controls.\\ Exposure check & Re-run Table~\ref{Table:GiteaPorts} after firewall or proxy changes.\\
Versioned IT manual, history, Hosts/Passwords hints, citations and evidence & Complete & Document History records version 1.5; Tables~\ref{Table:GiteaHosts} and~\ref{Table:GiteaPasswordHints} record hosts and password-handling hints; citations appear in the chapter introduction and bibliography.\\
\end{longtable} \end{longtable}
The persistence test in Table~\ref{Table:GiteaPersistence} and the backup/restore test in Section~\ref{Section:GiteaExtraCredit} measure different risks. Persistence proves normal container replacement does not delete Gitea state because the data lives in a host-mounted directory. Backup and restore proves a separate copy can recover the service if the working data directory or Droplet is damaged.
\section{Manual Quality and Controls} \section{Manual Quality and Controls}
\begin{longtable}{L{4.1cm}L{9.1cm}} \begin{longtable}{L{4.1cm}L{9.1cm}}
\caption{Password Hint and Secret Handling Controls\label{Table:GiteaPasswordHints}}\\ \caption{Password Hint and Secret Handling Controls\label{Table:GiteaPasswordHints}}\\
@@ -328,7 +403,33 @@ API tokens & Temporary setup tokens are deleted when no longer needed.\\
The main documentation risk is that screenshots may accidentally include personal information. Any screenshot from the Name.com order page must be cropped or redacted before inclusion because the original confirmation page displayed contact details. Any screenshot from Gitea should avoid showing passwords, session tokens, or private browser profile details. The main documentation risk is that screenshots may accidentally include personal information. Any screenshot from the Name.com order page must be cropped or redacted before inclusion because the original confirmation page displayed contact details. Any screenshot from Gitea should avoid showing passwords, session tokens, or private browser profile details.
\subsection*{Rubric Evidence Summary}
Table~\ref{Table:GiteaRubricEvidence} maps the Chapter 2 rubric to the evidence in this manual. It is intentionally unnumbered so the eight required Chapter 2 sections stay in the instructor's order.
\begin{longtable}{L{4.8cm}L{2.0cm}L{6.4cm}}
\caption{Rubric Evidence Checklist\label{Table:GiteaRubricEvidence}}\\
\toprule
\textbf{Rubric Criterion} & \textbf{Status} & \textbf{Evidence in This Chapter}\\
\midrule
\endfirsthead
\toprule
\textbf{Rubric Criterion} & \textbf{Status} & \textbf{Evidence in This Chapter}\\
\midrule
\endhead
\bottomrule
\endlastfoot
Student Pack domain, cost/renewal check, DNS evidence & Complete & Table~\ref{Table:GiteaDomain} records the domain, first-year cost, renewal cost, expiration/renewal date, DNS target, and resolver checks.\\
Pinned Gitea deployment and reproducible configuration & Complete & Tables~\ref{Table:GiteaHosts} and~\ref{Table:GiteaContainers} plus Listings~\ref{Listing:GiteaCompose},~\ref{Listing:GiteaDeployCommands}, and~\ref{Listing:GiteaDockerPs} record the host, image versions, restart policy, mounts, proxy relationship, and repeat-install commands.\\
Database configuration and persistence verification & Complete & Listing~\ref{Listing:GiteaStorage}, Table~\ref{Table:GiteaPersistence}, and Table~\ref{Table:GiteaPasswordHints} record SQLite storage, persistence after container replacement, and secret-handling boundaries.\\
Valid HTTPS, redirect, certificate details, renewal test & Complete & Tables~\ref{Table:GiteaCertificateOptions} and~\ref{Table:GiteaHttps} record the certificate-option comparison, HTTP redirect, HTTPS success, certificate details, TLS termination point, and Caddy's supported renewal verification path.\\
Firewall, limited exposure, external verification & Complete & Tables~\ref{Table:GiteaFirewall} and~\ref{Table:GiteaPorts} record allowed ports, blocked direct service/database ports, expected results, observed results, and the difference between HTTPS and firewall controls.\\
Startup organization, backlog, issue-to-review-merge workflow & Complete & Tables~\ref{Table:GiteaWorkflow} and~\ref{Table:GiteaBacklog} plus the pull-request notes record organization, repository, README link, member-role plan, backlog, reviews, and merges.\\
Architecture and operational explanation & Complete & Figure~\ref{Figure:GiteaArchitecture} and Tables~\ref{Table:GiteaControls} and~\ref{Table:GiteaRunbook} explain the architecture, controls, restart procedure, troubleshooting procedure, and persistence-versus-backup distinction.\\
Versioned IT manual, history, Hosts/Passwords hints, citations and evidence & Complete & Document History records version 1.6; Tables~\ref{Table:GiteaHosts} and~\ref{Table:GiteaPasswordHints} record hosts and password-handling hints; citations appear in the chapter introduction and bibliography.\\
\end{longtable}
\section{Optional Extra Credit: Backup and Restore} \section{Optional Extra Credit: Backup and Restore}
\label{Section:GiteaExtraCredit}
An additional backup and restore test was performed to demonstrate recoverability. The backup procedure produced an application data archive, a SQLite database backup, and a checksum file: An additional backup and restore test was performed to demonstrate recoverability. The backup procedure produced an application data archive, a SQLite database backup, and a checksum file:
\begin{lstlisting}[caption={Backup files retained on the Droplet},label={Listing:GiteaBackups}] \begin{lstlisting}[caption={Backup files retained on the Droplet},label={Listing:GiteaBackups}]
+4
View File
@@ -0,0 +1,4 @@
git.sespinal590.dev {
encode zstd gzip
reverse_proxy gitea:3000
}
+35
View File
@@ -0,0 +1,35 @@
services:
gitea:
image: gitea/gitea:1.27.3
container_name: gitea
restart: unless-stopped
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__server__ROOT_URL=https://git.sespinal590.dev/
- GITEA__server__DOMAIN=git.sespinal590.dev
- GITEA__server__HTTP_PORT=3000
- GITEA__database__DB_TYPE=sqlite3
volumes:
- /opt/gitea/data:/data
networks:
- gitea-net
caddy:
image: caddy:2.10.2
container_name: caddy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- /opt/gitea/Caddyfile:/etc/caddy/Caddyfile:ro
- /opt/gitea/caddy-data:/data
- /opt/gitea/caddy-config:/config
depends_on:
- gitea
networks:
- gitea-net
networks:
gitea-net: