90 changed files with 2273 additions and 10142 deletions
-11
View File
@@ -2,13 +2,11 @@
# The runner label must match the registered self-managed Gitea runner. # The runner label must match the registered self-managed Gitea runner.
name: manual-pdf name: manual-pdf
on: on:
push: push:
branches: branches:
- main - main
- chapter3-failure-test - chapter3-failure-test
- chapter5-sre-monitoring
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -18,7 +16,6 @@ jobs:
- name: Check out source - name: Check out source
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Generate build metadata - name: Generate build metadata
shell: cmd shell: cmd
run: | run: |
@@ -31,24 +28,16 @@ jobs:
echo \renewcommand{\WorkflowRunNumber}{%GITHUB_RUN_NUMBER%}>> devopsBuildMetadata.tex echo \renewcommand{\WorkflowRunNumber}{%GITHUB_RUN_NUMBER%}>> devopsBuildMetadata.tex
echo \renewcommand{\WorkflowRunAttempt}{%GITHUB_RUN_ATTEMPT%}>> devopsBuildMetadata.tex echo \renewcommand{\WorkflowRunAttempt}{%GITHUB_RUN_ATTEMPT%}>> devopsBuildMetadata.tex
- name: Compile manual - name: Compile manual
shell: cmd shell: cmd
run: | run: |
latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex
if errorlevel 1 exit /b 1
makeglossaries devopsAssignment
if errorlevel 1 exit /b 1
latexmk -norc -pdf -shell-escape -interaction=nonstopmode -halt-on-error devopsAssignment.tex
if errorlevel 1 exit /b 1
if not exist devopsAssignment.pdf exit /b 1 if not exist devopsAssignment.pdf exit /b 1
for %%A in (devopsAssignment.pdf) do if %%~zA LEQ 0 exit /b 1 for %%A in (devopsAssignment.pdf) do if %%~zA LEQ 0 exit /b 1
- name: Upload compiled PDF - name: Upload compiled PDF
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: devops-it-manual-${{ github.run_number }}-${{ github.sha }} name: devops-it-manual-${{ github.run_number }}-${{ github.sha }}
path: devopsAssignment.pdf path: devopsAssignment.pdf
retention-days: 14 retention-days: 14
-8
View File
@@ -29,11 +29,3 @@ _minted/
.DS_Store .DS_Store
Thumbs.db Thumbs.db
.vscode/ .vscode/
# Local deployment secrets
.env
.env.*
!.env.example
# Server-local notification secrets
*.local.yml
+5 -21
View File
@@ -30,25 +30,9 @@ record creation, and authorized replacing obsolete teammate-hosted assignment
details; Unresolved assumptions: the temporary reviewer account can be details; Unresolved assumptions: the temporary reviewer account can be
replaced by a real teammate account before future production use. replaced by a real teammate account before future production use.
\section{Chapter 5 Monitoring Record} \section{Chapter 4 Jenkins Record}
Date: October 30, 2026; tool: OpenAI Codex. Inputs: Turan's prepared feature Date: October 21, 2026; Tool: OpenAI Codex; Task: inspect the existing Jenkins/Gitea setup, complete missing Chapter 4 work and update the manual against Version 1.38. Inputs: instructor PDF, current group source, authorized server checks, Jenkins/Gitea APIs and live browser observations. Output used: repaired plugin dependencies, permitted minimal Python application/tests, scoped CI bot, native multibranch polling, protected-branch check, actual failed/repaired PR evidence, updated narrative, diagram, tables and runbook. Human authorization: Sergio explicitly approved use of the existing server-stored Jenkins administrator credential. Corrections: retained real plugin/indexing/test failures; selected the permitted polling route after a proposed webhook-network change was not approved. No teammate review or merge is invented. Outstanding access/firewall and human-review items remain identified. The full-document build and visual inspection are recorded in the handoff verification note.
branch, assignment manual 1.42, actual host/CI/metrics records and Sergio's
explicit deployment, snapshot, resize and Discord authorizations. Output used:
configuration repairs, deployment, controlled tests, measured report and
sanitized evidence. Sergio retained the 10 GB disk and confirmed the test
message plus both real firing/resolved notification pairs. Secrets stayed on
the server. Human peer review, exact receiver timestamps and the limitations
listed in \ChapterRef{SREMonitoring} remain outstanding. No main merge was
performed. Turan's initial configuration was adapted; no imported dashboard
was represented as an independently authored external template.
\section{Chapter 5 Final Audit and Automatic Trigger Check}
Date: October 30, 2026; tool: OpenAI Codex. Sergio requested an automatic \section{Chapter 4 Deadline Disposition}
application-trigger test, complete Chapter 5 audit and no main merge. A small Date: October 23, 2026; Tool: OpenAI Codex. Sergio reported that Turan could not review before the deadline and explicitly authorized removing the approval requirement to merge transparently. Codex verified the repaired head's passing required status, temporarily set required approvals to zero, merged PR~9 without impersonating a reviewer, restored one approval, verified issue~8 closed and collected the successful main/2 checkout/syntax/three-test result. The PR description and manual disclose the absent review. A first merge attempt returned a retry response; cleanup restored the rule before a later successful attempt. Sergio also authorized resuming Cloud Firewall inspection and completed sign-in. Codex read and captured the live Rules and Droplets tabs, confirmed attachment to ID 604497684, and disclosed globally allowed IPv4 SSH. No firewall rules were changed. Existing source restrictions were retained after a changed client address produced an expected 403. Remaining rubric gaps are recorded without claiming full completion.
application documentation commit was discovered by existing polling; exact
checkout, automatic cause, three passing tests and Gitea success status were
recorded. The audit found and fixed Grafana raw metrics exposure, supplied
missing metric inventory and backup instructions, and checked live cloud rules.
Sergio signed into DigitalOcean and explicitly chose to leave globally allowed
IPv4 SSH unchanged and flag it. Historical acknowledgement timing and genuine
human peer review were not invented. No new outage or restore is claimed.
+3 -3
View File
@@ -8,6 +8,8 @@
\usepackage{xspace} \usepackage{xspace}
\usepackage{xcolor} \usepackage{xcolor}
\usepackage{graphicx} \usepackage{graphicx}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,fit}
\usepackage{fancyhdr} \usepackage{fancyhdr}
\usepackage{amsmath,amssymb} \usepackage{amsmath,amssymb}
\usepackage{array} \usepackage{array}
@@ -21,7 +23,6 @@
\usepackage{minted} \usepackage{minted}
\usepackage{tcolorbox} \usepackage{tcolorbox}
\usepackage{makeidx} \usepackage{makeidx}
\usepackage{xurl}
\usepackage[colorlinks=true,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref} \usepackage[colorlinks=true,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref}
\usepackage[acronym,toc]{glossaries} \usepackage[acronym,toc]{glossaries}
@@ -44,7 +45,7 @@
\newcommand{\CourseName}{DevOps} \newcommand{\CourseName}{DevOps}
\newcommand{\Instructor}{Darian Muresan} \newcommand{\Instructor}{Darian Muresan}
\newcommand{\Organization}{Stevens Institute of Technology} \newcommand{\Organization}{Stevens Institute of Technology}
\newcommand{\DocumentDate}{October 30, 2026} \newcommand{\DocumentDate}{October 23, 2026}
\newcommand{\DueDate}{} \newcommand{\DueDate}{}
\newcommand{\VERSION}{Version \DocumentVersion} \newcommand{\VERSION}{Version \DocumentVersion}
\input{devopsBuildMetadata.tex} \input{devopsBuildMetadata.tex}
@@ -119,7 +120,6 @@
\include{devopsGitea} \include{devopsGitea}
\include{devopsGiteaActions} \include{devopsGiteaActions}
\include{devopsJenkins} \include{devopsJenkins}
\include{devopsSREMonitoring}
\include{devopsActivityBrief} \include{devopsActivityBrief}
\include{devopsWorkflow} \include{devopsWorkflow}
\include{devopsEvidence} \include{devopsEvidence}
+7 -15
View File
@@ -22,21 +22,12 @@ link each entry to the changed chapter, table, figure, or controlled artifact.
\bottomrule \bottomrule
\endlastfoot \endlastfoot
October 30, 2026 / 1.11 & SE, CDX & October 23, 2026 / 1.11 & SE, CDX &
Completed automatic application branch discovery/build/status verification; Recorded Sergio's authorized deadline merge of PR~9 without peer review, automatic issue closure, restored one-approval policy, and successful post-merge main/2 application tests. Added actual merged-PR screenshot, sanitized API/build evidence and fresh network checks. Peer review remains unmet. Captured current Cloud Firewall rules and correct Droplet attachment after account sign-in; disclosed globally allowed IPv4 SSH as a hardening gap. Updated the handoff and AI log. &
closed the public Grafana metrics route; audited all eight Chapter 5 sections, \ChapterRef{Jenkins}, \hyperref[Table:JenkinsSequence]{failure/repair/review}, \hyperref[Table:JenkinsRemainingWork]{rubric evidence}\\
added the metric inventory, backup procedure, external/cloud firewall checks October 21, 2026 / 1.10 & SE, CDX &
and timeline annotations. Retained deferred global SSH and human review gaps; Implemented Chapter 4 Jenkins PR-head checks: repaired dependency loading, added real pricing tests, verified failed and repaired commits on issue-linked PR~9, configured a required check and peer approval, retained actual run/status/screenshots, and updated the deployment diagram and runbook. Updated the Hosts table with Jenkins/executor/network details and the Passwords table with CI credential-handling hints. Applied and verified the explicitly approved Jenkins browser source restriction. Real peer review/merge and current Cloud Firewall rule evidence remain explicitly pending. &
no main merge. & \ChapterRef{SREMonitoring}, \ChapterRef{Jenkins}, \hyperref[Table:JenkinsRemainingWork]{rubric evidence}, \hyperref[Table:GiteaHosts]{Hosts}, \hyperref[Table:GiteaPasswordHints]{Passwords}\\
\hyperref[Table:SREFinalAudit]{rubric audit}\\
October 30, 2026 / 1.10 & SE, TI, CDX &
Deployed and verified Chapter 5 monitoring on the approved resized host;
recorded the slim-image capacity correction, dashboard, controlled Jenkins
incident, alert receipt, actual SLI, persistence, recovery CI and owned issues.
Fixed workflow indentation and master include; retained human-review gaps and
left main unmerged. & \ChapterRef{SREMonitoring},
\hyperref[Table:SRETimeline]{incident timeline},
\hyperref[Table:SREHosts]{hosts and hints}\\
October 13, 2026 / 1.9 & SE, CDX & October 13, 2026 / 1.9 & SE, CDX &
Completed the corrected Chapter 3 Gitea Actions evidence after SSH access was restored: registered the Windows LaTeX runner, pushed the manual workflow to Gitea, recorded successful main-branch builds, captured a controlled failed build, repaired it, and updated the artifact, runner, traceability, and rubric-status evidence while preserving the Jenkins chapter as Chapter 4 groundwork. & Completed the corrected Chapter 3 Gitea Actions evidence after SSH access was restored: registered the Windows LaTeX runner, pushed the manual workflow to Gitea, recorded successful main-branch builds, captured a controlled failed build, repaired it, and updated the artifact, runner, traceability, and rubric-status evidence while preserving the Jenkins chapter as Chapter 4 groundwork. &
\ChapterRef{GiteaActions}, \hyperref[Table:GiteaActionsRunner]{runner setup}, \ChapterRef{GiteaActions}, \hyperref[Table:GiteaActionsRunner]{runner setup},
@@ -124,3 +115,4 @@ submission chapters. &
\ChapterRef{AIAgentGuide}\\ \ChapterRef{AIAgentGuide}\\
\end{tabularx} \end{tabularx}
+7
View File
@@ -55,6 +55,9 @@ Plan & \texttt{s-1vcpu-512mb-10gb} & Lowest-cost plan available in the create Dr
Public IPv4 & \texttt{165.227.90.215} & External address used by DNS and browser testing.\\ Public IPv4 & \texttt{165.227.90.215} & External address used by DNS and browser testing.\\
Private IPv4 & \texttt{10.116.0.3} & Internal VPC address, not exposed directly to users.\\ Private IPv4 & \texttt{10.116.0.3} & Internal VPC address, not exposed directly to users.\\
SSH key & \texttt{espinKey1DigitalOceanDroplet} & Key-based access for administration.\\ SSH key & \texttt{espinKey1DigitalOceanDroplet} & Key-based access for administration.\\
Jenkins CI host & \url{https://ci.165.227.90.215.sslip.io/login} & Same controlled Droplet; private backend \texttt{jenkins:8080}; details and current access boundary in \ChapterRef{Jenkins}.\\
Jenkins executor/storage & One trusted controller executor; \texttt{/opt/jenkins/home} & Python 3.13.5, Git 2.47.3; no separate agent or Docker socket.\\
CI integration identity & \texttt{jenkins-ci} on Gitea & Restricted bot with access only to startup-product; Jenkins credential ID \texttt{gitea-startup-ci}.\\
\end{longtable} \end{longtable}
The service stack uses pinned container image versions so future rebuilds are predictable. The service stack uses pinned container image versions so future rebuilds are predictable.
@@ -394,6 +397,10 @@ The persistence test in Table~\ref{Table:GiteaPersistence} and the backup/restor
\endhead \endhead
\bottomrule \bottomrule
\endlastfoot \endlastfoot
Jenkins named admin & Use the approved server-only secret store; never copy a password, derivation key or recovery code into the manual. Named administrator: \texttt{sespinal-admin}.\\
Jenkins CI token handling & Token-only restricted Gitea bot; use Jenkins credential \texttt{gitea-startup-ci}; repository/status scope only, no value shown. Rotate/revoke through the operator's approved secret process.\\
Chapter 4 setup credential & Temporary repository setup token is operational only and must be revoked after publishing the final source/evidence; do not retain it in Git or the PDF.\\
DigitalOcean account & Payment details are entered manually by the account owner and are not recorded.\\ DigitalOcean account & Payment details are entered manually by the account owner and are not recorded.\\
Name.com account & Contact, address, phone, and payment details are excluded from screenshots or text.\\ Name.com account & Contact, address, phone, and payment details are excluded from screenshots or text.\\
Gitea administrator password & Password is known only to the account owner and is not placed in Git, Overleaf, screenshots, or prompts.\\ Gitea administrator password & Password is known only to the account owner and is not placed in Git, Overleaf, screenshots, or prompts.\\
+1 -3
View File
@@ -25,6 +25,4 @@
\newglossaryentry{runner}{name={runner},description={A self-managed service that polls Gitea for workflow jobs and executes them in a configured environment}} \newglossaryentry{runner}{name={runner},description={A self-managed service that polls Gitea for workflow jobs and executes them in a configured environment}}
\newacronym{sli}{SLI}{service-level indicator} \newglossaryentry{polling}{name={polling},description={Periodic requests that discover repository changes and trigger verification without an inbound webhook}}
\newacronym{sla}{SLA}{service-level agreement}
\newglossaryentry{errorbudget}{name={error budget},description={The allowed amount of unsuccessful service observations within a stated objective and window}}
+265 -148
View File
@@ -1,169 +1,286 @@
\chapter{Continuous Integration with Jenkins} \chapter{Continuous Integration with Jenkins}
\ChapterLabel{Jenkins} \ChapterLabel{Jenkins}
\index{Jenkins} \index{Jenkins}\index{continuous integration}\index{merge gate}\index{polling}\index{webhook}
\index{continuous integration}
\index{merge gate}
\index{webhook}
\section{Jenkins Deployment and Persistence} \section{Jenkins Deployment and Persistence}
This chapter records the Chapter 3 continuous-integration work performed on October 7, 2026. The goal was to add Jenkins to the same startup environment used for the Gitea foundation, connect it to the startup product repository, and use it as the required status check for pull requests. Jenkins was deployed from the official Jenkins LTS container image and placed on the same private Docker network as Gitea and Caddy \cite{JenkinsDocker,JenkinsSecurity,JenkinsReverseProxy,GiteaWebhooks,GiteaProtectedBranches}. This chapter implements Chapter 4 of the instructor's Version 1.38 manual using the existing Group 10 startup repository. The October 21, 2026 work repaired the earlier incomplete Jenkins installation, replaced the placeholder test with a permitted minimal Python application, and verified a failed and repaired pull-request head through Jenkins and Gitea. Earlier Gitea Actions runs compile this IT manual; they are separate from this application's Jenkins checks \cite{JenkinsDocker,JenkinsSecurity,GiteaProtectedBranches}.
\begin{devopsNote}[Evidence Boundary] \begin{devopsNote}[Completion boundary]
The infrastructure deployment, HTTPS proxy, raw-port blocking, Jenkins startup, plugin installation attempt, and versioned non-secret configuration were completed. The full Gitea webhook, status publication, branch-protection merge gate, and failed-then-repaired pull request were not completed because Jenkins plugin dependencies failed to load and the Jenkins API job-creation attempt was blocked by CSRF/plugin state during follow-up configuration. Those gaps are recorded in Table~\ref{Table:JenkinsRemainingWork} rather than being marked complete. The failed and passing Jenkins checks and protected-branch configuration are verified. On October 23, Sergio authorized merging PR~9 without peer approval because Turan could not complete the review before the deadline. The PR was merged and issue~8 closed; the missing peer review remains an unmet assignment requirement. The one-approval rule was restored immediately after the merge. Browser source restriction is applied and verified. Current Cloud Firewall rules and the correct Droplet attachment were inspected on October 23. SSH remains allowed from all IPv4 addresses, an explicit hardening gap. This revision records the deadline disposition honestly; it does not claim every rubric item is finished.
\end{devopsNote} \end{devopsNote}
\begin{longtable}{L{4.0cm}L{9.2cm}} \begin{longtable}{L{4.0cm}L{9.0cm}}
\caption{Jenkins Deployment and Persistence Evidence\label{Table:JenkinsDeployment}}\\ \caption{Jenkins deployment verified October 21, 2026\label{Table:JenkinsDeployment}}\\
\toprule \toprule Item & Configuration and observation\\\midrule\endfirsthead
\textbf{Item} & \textbf{Observed or Configured Value}\\ \toprule Item & Configuration and observation\\\midrule\endhead
\midrule \bottomrule\endlastfoot
\endfirsthead Official image & \nolinkurl{jenkins/jenkins:2.528.1-lts-jdk21}; Jenkins core 2.528.1, Java 21.0.8.\\
\toprule Controlled host & Droplet \texttt{sergio-ssw590-gitea}, ID 604497684, public IPv4 \texttt{165.227.90.215}; Ubuntu 24.04, 1 vCPU, 512 MB plan. The actual running host reports 458 MiB RAM.\\
\textbf{Item} & \textbf{Observed or Configured Value}\\ Available capacity & At 23:13 UTC: 137 MiB available RAM, 1,023 MiB swap total (544 MiB used), 8.7 GiB root filesystem (3.4 GiB available). No additional Droplet or paid plan upgrade was created for this chapter.\\
\midrule Persistent home & \nolinkurl{/opt/jenkins/home:/var/jenkins_home}; restart policy \texttt{unless-stopped}.\\
\endhead Compose source & \href{https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/codex/chapter4-jenkins-evidence/ops/jenkins/compose.yml}{Versioned Jenkins Compose file}; this revision's operational files and evidence are retained on the linked review branch.\\
\bottomrule Build location & One controller executor labeled \texttt{controller-small-trusted}; no separate build agent and no Docker socket.\\
\endlastfoot Executor dependencies & Python 3.13.5 and Git 2.47.3. Python was installed from the image's Debian package repositories; application tests use the standard library only.\\
Host & Existing DigitalOcean Droplet \texttt{sergio-ssw590-gitea}, public IPv4 \texttt{165.227.90.215}.\\ Repeatability & Run \nolinkurl{ops/jenkins/bootstrap-executor.sh} after creating or recreating the official container. Python installed in its writable layer survives a restart, but must be installed again after recreation.\\
Capacity before Jenkins & Approximately \texttt{458 MiB} memory, \texttt{8.7 GiB} root filesystem, and no swap.\\ Restart test & See the dated persistence result below. This verifies container restart persistence, not backup/restore or recreation.\\
Capacity change & A \texttt{1 GiB} swap file was added at \texttt{/swapfile} to keep Jenkins from exhausting the small Droplet.\\
Jenkins image & \texttt{jenkins/jenkins:2.528.1-lts-jdk21}.\\
Persistent home & Host path \texttt{/opt/jenkins/home} mounted to \texttt{/var/jenkins\_home}.\\
Restart policy & \texttt{unless-stopped} in \texttt{ops/jenkins/compose.yml}.\\
Controller executors & Configured as one controller executor with label \texttt{controller-small-trusted}. This is acceptable only for the small trusted class deployment and should be replaced by a separate agent for untrusted pull requests.\\
Administrator account & Named account \texttt{sespinal-admin}; password stored only on the Droplet under \texttt{/root/jenkins-secrets/admin-password}. The first-boot generated setup password was rotated out of operational use.\\
Restart evidence & Jenkins restarted through Docker Compose and returned \texttt{Jenkins is fully up and running}.\\
\end{longtable} \end{longtable}
\section{HTTPS, Access, and Firewall} \begin{lstlisting}[caption={Non-secret Compose configuration; only the proxy publishes web ports}]
Jenkins was not published directly on host port \texttt{8080}. The container exposes \texttt{8080/tcp} only inside Docker networking, and Caddy reverse proxies the public HTTPS hostname to \texttt{jenkins:8080}. Because no \texttt{ci.sespinal590.dev} DNS record existed at the time of implementation, the working Jenkins hostname used for this assignment evidence is \url{https://ci.165.227.90.215.sslip.io/}. services:
jenkins:
\begin{longtable}{L{4.0cm}L{9.2cm}} image: jenkins/jenkins:2.528.1-lts-jdk21
\caption{Jenkins HTTPS and Exposure Checks\label{Table:JenkinsHttps}}\\ container_name: jenkins
\toprule restart: unless-stopped
\textbf{Check} & \textbf{Observed Result}\\ environment:
\midrule - JENKINS_OPTS=--prefix=/
\endfirsthead - JAVA_OPTS=-Xms128m -Xmx384m -Djenkins.install.runSetupWizard=true
\toprule volumes:
\textbf{Check} & \textbf{Observed Result}\\ - /opt/jenkins/home:/var/jenkins_home
\midrule networks:
\endhead - gitea_default
\bottomrule networks:
\endlastfoot gitea_default:
Caddy configuration & Added a second Caddy site block for \texttt{ci.165.227.90.215.sslip.io} with \texttt{reverse\_proxy jenkins:8080}.\\ external: true
HTTP behavior & \texttt{http://ci.165.227.90.215.sslip.io/} returned \texttt{308 Permanent Redirect}.\\
HTTPS behavior & \texttt{https://ci.165.227.90.215.sslip.io/} returned \texttt{HTTP/2 403} from Jenkins before login, proving the browser reached Jenkins through Caddy and Jenkins required authentication.\\
Certificate & Caddy obtained a Let's Encrypt certificate for \texttt{ci.165.227.90.215.sslip.io} using the HTTP-01 challenge.\\
Raw Jenkins port & External test to \texttt{ci.165.227.90.215.sslip.io:8080} failed, which is the expected result because port \texttt{8080} is not publicly published.\\
Agent port & Jenkins showed container port \texttt{50000/tcp} internally only; it was not published on the host. No inbound agent port was opened for this assignment.\\
Access control & Jenkins requires login. Additional browser source restriction should be added at Caddy or firewall level before real team use.\\
\end{longtable}
\section{Gitea Trigger and Traceability}
Jenkins and Gitea share the Docker network, so the intended webhook route is private service-to-service traffic from Gitea to Jenkins, while browser traffic reaches Jenkins through Caddy.
\begin{figure}[htbp]
\centering
\fbox{\begin{minipage}{0.88\linewidth}
\centering
\textbf{Team Browser}\\
\texttt{https://ci.165.227.90.215.sslip.io}\\[4pt]
$\Downarrow$\\[4pt]
\textbf{DigitalOcean Cloud Firewall}\\
Public 80/443 only; no public 8080 or 50000\\[4pt]
$\Downarrow$\\[4pt]
\textbf{Caddy Container}\\
TLS termination and reverse proxy\\[4pt]
$\Downarrow$\\[4pt]
\textbf{Jenkins Container}\\
CI controller, trusted small-class executor\\[4pt]
$\Uparrow$\\[4pt]
\textbf{Gitea Container}\\
Future webhook path over the private Docker network
\end{minipage}}
\caption{Jenkins and Gitea integration boundary}
\label{Figure:JenkinsArchitecture}
\end{figure}
The startup repository is \href{https://git.sespinal590.dev/group10-startup/startup-product}{\texttt{group10-startup/startup-product}}. Jenkins was able to reach the repository URL from inside the Jenkins container, and \texttt{git ls-remote} returned commit \texttt{ff266cf} before the Jenkinsfile was added. The Jenkinsfile was then added to the repository as commit \texttt{b0eee02}. A local Gitea filesystem hook issue prevented a normal host-side push, so the operator moved the class repository's branch reference from inside the Gitea container. That action is adequate for a lab setup but is not a substitute for the required pull-request workflow evidence.
\section{Versioned Pipeline and Tests}
The versioned pipeline source is stored in \texttt{ops/jenkins/Jenkinsfile} in this manual repository and was copied into the startup product repository as \texttt{Jenkinsfile}. It contains three stages: checkout, lint, and automated test. The lint step checks for the expected \texttt{README.md} and verifies that it names the startup. The automated test step prints a CI smoke-test marker and lists repository files so the run proves it executed against a real checkout.
\begin{lstlisting}[caption={Jenkinsfile CI stages},label={Listing:JenkinsfileSummary}]
stage('Lint') {
sh 'test -f README.md && grep -qi "startup" README.md'
}
stage('Automated Test') {
sh 'find . -maxdepth 2 -type f | sort | head -20'
}
\end{lstlisting} \end{lstlisting}
The original installation failed to activate Git and Gitea integrations and several Pipeline components because dependency versions were inconsistent. The operator retained configuration/plugin rollback copies on the server and aligned \texttt{bouncycastle-api}, \texttt{caffeine-api}, \texttt{gson-api}, and subsequently \texttt{script-security} to the required compatible versions. After restart, Jenkins reported zero failed plugins. Table~\ref{Table:JenkinsPluginCheck} records every loaded version, also retained in \nolinkurl{ops/jenkins/plugins.txt}.
\begingroup\footnotesize
\begin{longtable}{L{5.2cm}L{6.3cm}L{1.5cm}}
\caption{Loaded Jenkins plugins after dependency repair\label{Table:JenkinsPluginCheck}}\\
\toprule Plugin ID & Version & State\\\midrule\endfirsthead
\toprule Plugin ID & Version & State\\\midrule\endhead
\bottomrule\endlastfoot
apache-httpcomponents-client-4-api & 4.5.14-269.vfa\_2321039a\_83 & Active\\
asm-api & 9.10.1-216.va\_9256d3b\_844b\_ & Active\\
authentication-tokens & 1.144.v5ff4a\_5ec5c33 & Active\\
bouncycastle-api & 2.30.1.82-277.v70ca\_0b\_877184 & Active\\
branch-api & 2.1303.v9f3b\_95dc329d & Active\\
caffeine-api & 3.2.3-194.v31a\_b\_f7a\_b\_5a\_81 & Active\\
checks-api & 422.vc7e8b\_51488c6 & Active\\
cloudbees-folder & 6.1106.v3a\_d9a\_6d2465e & Active\\
command-launcher & 123.v37cfdc92ef67 & Active\\
commons-lang3-api & 3.21.0-122.v6a\_ea\_4fd34049 & Active\\
commons-text-api & 1.15.0-218.va\_61573470393 & Active\\
credentials & 1487.va\_d001ede2c31 & Active\\
credentials-binding & 728.v902a\_273b\_8947 & Active\\
display-url-api & 2.217.va\_6b\_de84cc74b\_ & Active\\
durable-task & 686.v80ff80875b\_82 & Active\\
eddsa-api & 0.3.0.1-19.vc432d923e5ee & Active\\
git & 5.10.1 & Active\\
git-client & 6.6.1 & Active\\
gitea & 273.vb\_78d13f6d9a\_d & Active\\
gitea-checks & 604.638.ve9e5472551b\_3 & Active\\
gson-api & 2.13.2-173.va\_a\_092315913c & Active\\
handy-uri-templates-2-api & 2.1.8-38.vcea\_5d521d5f3 & Active\\
instance-identity & 203.v15e81a\_1b\_7a\_38 & Active\\
ionicons-api & 94.vcc3065403257 & Active\\
jackson-annotations2-api & 2.22-19.v10a\_a\_582ea\_26e & Active\\
jackson2-api & 2.21.2-436.v29efdb\_7418ff & Active\\
jakarta-activation-api & 2.1.4-1 & Active\\
jakarta-mail-api & 2.1.5-1 & Active\\
jakarta-xml-bind-api & 4.0.9-19.v2b\_a\_5b\_44d9a\_1c & Active\\
javax-activation-api & 1.2.0-8 & Active\\
javax-mail-api & 1.6.2-11 & Active\\
jaxb & 2.3.9-133.vb\_ec76a\_73f706 & Active\\
jdk-tool & 83.v417146707a\_3d & Active\\
joda-time-api & 2.15.0-208.v6b\_084e7a\_d9f0 & Active\\
json-api & 20260814-226.v20f9685d642c & Active\\
mailer & 534.v1b\_36f5864073 & Active\\
mina-sshd-api-common & 2.16.0-167.va\_269f38cc024 & Active\\
mina-sshd-api-core & 2.16.0-167.va\_269f38cc024 & Active\\
pipeline-build-step & 601.v6d4c6d1a\_9dc7 & Active\\
pipeline-graph-analysis & 254.v0f63a\_a\_447dca\_ & Active\\
pipeline-groovy-lib & 798.v5cc688825312 & Active\\
pipeline-input-step & 560.v56198a\_642157 & Active\\
pipeline-milestone-step & 152.v6e22b\_8cfc66c & Active\\
pipeline-model-api & 2.2293.v6e7193cec599 & Active\\
pipeline-model-definition & 2.2293.v6e7193cec599 & Active\\
pipeline-model-extensions & 2.2293.v6e7193cec599 & Active\\
pipeline-rest-api & 2.41 & Active\\
pipeline-stage-step & 345.va\_96187909426 & Active\\
pipeline-stage-tags-metadata & 2.2293.v6e7193cec599 & Active\\
pipeline-stage-view & 2.41 & Active\\
plain-credentials & 199.v9f8e1f741799 & Active\\
plugin-util-api & 6.1192.v30fe6e2837ff & Active\\
scm-api & 728.vc30dcf7a\_0df5 & Active\\
script-security & 1399.ve6a\_66547f6e1 & Active\\
snakeyaml-api & 2.7-152.vc672728cf536 & Active\\
ssh-credentials & 372.va\_250881b\_08cd & Active\\
sshd & 3.374.v19b\_d59ce6610 & Active\\
structs & 362.va\_b\_695ef4fdf9 & Active\\
trilead-api & 2.209.v0e69b\_c43c245 & Active\\
variant & 70.va\_d9f17f859e0 & Active\\
woodstox-core-api & 7.3.0-16.v017f30ed004c & Active\\
workflow-aggregator & 608.v67378e9d3db\_1 & Active\\
workflow-api & 1384.vdc05a\_48f535f & Active\\
workflow-basic-steps & 1098.v808b\_fd7f8cf4 & Active\\
workflow-cps & 4350.vcc65d4958821 & Active\\
workflow-durable-task-step & 1479.v56e587f413a\_7 & Active\\
workflow-job & 1571.1580.v18e46842c125 & Active\\
workflow-multibranch & 841.vec5b\_9e1806ec & Active\\
workflow-scm-step & 487.v41313a\_96b\_65d & Active\\
workflow-step-api & 724.v538c2362b\_dfb\_ & Active\\
workflow-support & 1015.v785e5a\_b\_b\_8b\_22 & Active\\
\end{longtable}\endgroup
\input{evidence/chapter4/persistence-note.tex}
\section{HTTPS, Access, and Firewall}
The complete Jenkins login URL is \url{https://ci.165.227.90.215.sslip.io/login}. This hostname resolves to the existing Droplet; a separate \texttt{ci.sespinal590.dev} DNS record was not required for the working deployment. The login screenshot proves web-service availability only. Pipeline evidence is linked separately \cite{JenkinsReverseProxy,JenkinsSecurity}.
\begin{figure}[htbp]\centering
\includegraphics[width=0.95\linewidth]{evidence/chapter4/jenkins-login.png}
\caption{Live Jenkins HTTPS login page, October 21, 2026. No account was used for this availability screenshot.}\label{Figure:JenkinsLogin}
\end{figure}
\begin{longtable}{L{4.0cm}L{9.0cm}}
\caption{HTTPS, access, and exposure evidence\label{Table:JenkinsHttps}}\\
\toprule Check & Expected and actual result\\\midrule\endfirsthead
\toprule Check & Expected and actual result\\\midrule\endhead
\bottomrule\endlastfoot
DNS and certificate & A record returns \texttt{165.227.90.215}; no AAAA address was returned. The CI certificate subject matches the hostname; issuer Let's Encrypt YE1; valid October 7, 2026 04:04:29 UTC through January 5, 2027 04:04:28 UTC.\\
Redirect and renewal & HTTP \nolinkurl{/login} returns 308 to the same HTTPS path. Caddy automatic HTTPS manages renewal; its \nolinkurl{/data} and \nolinkurl{/config} use persistent Docker volumes. Certificate inspection is not a renewal dry-run.\\
Jenkins URL and headers & Jenkins URL is the HTTPS base URL. Caddy terminates TLS and proxies to \texttt{jenkins:8080}; its reverse-proxy defaults supply forwarding headers. Login, public hostname and service links were checked through this proxy.\\
Authentication & Private Jenkins security realm; self-registration disabled; anonymous read disabled. Named account \texttt{sespinal-admin} administers the service. Existing \texttt{admin} and \texttt{sespinal} accounts also exist under the current logged-in-user full-control strategy; reducing legacy-account privileges is a remaining hardening task.\\
Public mappings & Only Caddy publishes TCP 80/443. Jenkins 8080/50000 and Gitea 3000 are container-internal. UFW reports inactive; it is not credited as an active protective layer.\\
External IPv4 tests & 80 and 443 open; 8080, 50000, 3000 and 5432 timed out from the Windows workstation. These results show non-reachability from this vantage; they do not alone identify which firewall layer dropped traffic.\\
IPv6 & DigitalOcean lists no public IPv6 address; the host has no global IPv6 address and CI DNS has no AAAA record. Docker's wildcard IPv6 publish notation is not evidence of a globally reachable IPv6 host. Deployment assessed as IPv4 only.\\
Current Cloud Firewall & Inspected October 23 after Sergio signed in: \texttt{ssw590-gitea-firewall}, ID \nolinkurl{dc253da0-adff-4549-b4d1-ce3cb509914b}, attached to Droplet 604497684 / \texttt{165.227.90.215}, status Up to date. Inbound TCP 22 allows All IPv4 plus \texttt{108.35.145.74/32}; TCP 80/443 allow All IPv4 and All IPv6. All other inbound traffic is blocked by this ruleset. Outbound permits ICMP, all TCP and all UDP to IPv4/IPv6 destinations for DNS, packages, time and certificates. SSH is therefore globally allowed over IPv4; the extra host address does not restrict it. No rules were changed.\\
Browser restriction and instructor path & \input{evidence/chapter4/access-note.tex}\\
Client verification caveat & Windows Schannel curl and the browser reached the valid HTTPS service. A separate Python/OpenSSL request reported an expired-chain validation error; validation was not disabled. An earlier login HEAD request timed out while the service was under load. The final external GET check at 23:31 UTC returned 200 for Jenkins and Gitea, with certificate validation enabled. The initial exceptions and final results are retained separately.\\
\end{longtable}
\textbf{October 23 network refresh.} External TCP 80/443 remained reachable; 8080, 50000, 3000 and 5432 timed out. HTTP login redirected with 308; Gitea HTTPS returned 200. Jenkins HTTPS returned 403 from the workstation\textquotesingle s current home address, which is outside the approved campus-source allowlist. This is an expected source restriction, not proof of a Jenkins outage. No broader source range was authorized or applied. Use the private viewing path below. Evidence: \nolinkurl{evidence/chapter4/oct23-network.json}.
\begin{figure}[htbp]\centering
\includegraphics[width=\linewidth]{evidence/chapter4/oct23-cloud-firewall-rules.png}
\caption{October 23, 2026: authenticated DigitalOcean rules for \texttt{ssw590-gitea-firewall}. SSH permits All IPv4; HTTP/HTTPS permit IPv4 and IPv6. The structured record lists all outbound rules, including UDP. No firewall change was made.}\label{Figure:JenkinsCloudRules}
\end{figure}
\begin{figure}[htbp]\centering
\includegraphics[width=\linewidth]{evidence/chapter4/oct23-cloud-firewall-attachment.png}
\caption{October 23, 2026: the same firewall is applied and Up to date on the actual Jenkins/Gitea Droplet, \texttt{165.227.90.215}. The observed Droplet link identifies ID 604497684.}\label{Figure:JenkinsCloudAttachment}
\end{figure}
\textbf{Approved private viewing path.} An authorized administrator can run \nolinkurl{ssh -N -L 127.0.0.1:8443:127.0.0.1:443 root@165.227.90.215}. On that workstation, resolve the CI hostname to \texttt{127.0.0.1} through an approved local hosts override, then open \url{https://ci.165.227.90.215.sslip.io:8443/login}. The original hostname preserves certificate validation; the connection reaches Caddy through the host gateway. This is an operator-assisted route, not a newly provisioned instructor account. The tunnel transport was tested with curl hostname-to-loopback mapping: HTTPS login returned 200 with certificate validation enabled; no workstation hosts file was changed during that test. Remove any browser hosts override and close the tunnel afterward. A fresh source authorization is needed if the operator leaves the approved network. The direct approved-source URL remains the primary login link above.
Before changing access ranges, keep an approved administrator SSH connection open, validate the proxy configuration, and verify login access through the intended route. The instructor needs to open the complete login URL through the documented approved path, without a Jenkins sign-in. Do not publish a Jenkins agent port to enable grading.
\section{Gitea Trigger and Traceability}
The product is \href{https://git.sespinal590.dev/group10-startup/startup-product}{\nolinkurl{group10-startup/startup-product}}. Jenkins uses a dedicated restricted, non-administrator \texttt{jenkins-ci} bot. Its sole collaborator grant is this product repository; token scopes are \texttt{write:repository} and \texttt{read:user}. Gitea requires repository write permission for status reporting. The token is stored as Jenkins credential ID \texttt{gitea-startup-ci}, never embedded in the pipeline \cite{GiteaWebhooks,JenkinsSecurity}.
\textbf{Implemented trigger: periodic discovery polling.} The assignment permits a demonstrated polling fallback. A one-minute Multibranch Pipeline scan checks origin PR heads and branches without open PRs. Fork PR discovery is disabled. Automatic webhook management is off and no successful webhook delivery is claimed. A proposed webhook host-allowlist edit was not applied; the operator used the allowed polling route instead of broadening Gitea networking. Each new head must receive its own status.
Initial indexing failed with \nolinkurl{Unknown server: http://gitea:3000}; registering the private Gitea server in Jenkins resolved the failure. The initial scan discovered PR~9. The corrective push at 23:11:38 UTC was subsequently discovered by the configured scan: run~2 began at 23:12:19 UTC with cause \texttt{Branch indexing}. No manual build or rescan was requested after that push. The log fetched \nolinkurl{refs/pull/9/head} and checked out \texttt{ed8684a2\allowbreak{}897c4079\allowbreak{}46320183\allowbreak{}e572f641\allowbreak{}2dbb7703}.
\begin{figure}[htbp]\centering
\input{ops/jenkins/deployment-diagram.tex}
\caption{Actual Group 10 UML deployment, October 21, 2026. Jenkins polls Gitea privately; no active Gitea-to-Jenkins webhook is claimed. Checkout and tests execute on the controller. The browser access restriction is governed by the access-status evidence in Section~\ref{Section:JenkinsControls}.}\label{Figure:JenkinsArchitecture}
\end{figure}
The browser follows HTTPS through the Cloud Firewall and Caddy. Jenkins API polling, repository checkout and status publication use the private \texttt{gitea\_default} network and \nolinkurl{http://gitea:3000}. Gitea's SQLite database and repository files live under its persistent \nolinkurl{/data}; Jenkins settings, job and build records live under its persistent home. There is no separate agent connection in this deployment.
For a missing run, inspect the last periodic scan, server registration, credential resolution and private Gitea reachability. If later switching to webhooks, inspect selected PR/push events, private destination allowlist, HTTP response and delivery timestamp before looking for a matching commit/run. A delivered webhook alone does not prove a required status was published.
\section{Versioned Pipeline and Tests}
The instructor expressly permits the minimal Python pricing application. It multiplies unit price by positive quantity and rejects zero or negative quantities. Tests check a three-item total, a single-item price, and invalid quantities. All dependencies are in Python's standard library; no package registry, Docker daemon or socket is needed during tests. The versioned \href{https://git.sespinal590.dev/group10-startup/startup-product/src/commit/ed8684a2897c407946320183e572f6412dbb7703/Jenkinsfile}{root Jenkinsfile} uses explicit checkout, syntax and unit-test stages.
\lstinputlisting[caption={Application Jenkinsfile from the repaired PR head}]{ops/jenkins/Jenkinsfile}
For a clean reproduction, clone the product repository, check out the repaired commit and run:
\begin{lstlisting}
python3 -m py_compile pricing.py tests/test_pricing.py
python3 -m unittest discover -s tests -v
\end{lstlisting}
Expected: syntax command exits 0 and all three tests pass. Actual: repaired run~2 checked out the exact latest head and passed all checks. The controller workspace was \nolinkurl{/var/jenkins_home/workspace/startup-product-ci_PR-9}. The bad commit instead returned 13 for \texttt{total\_price(10,3)}, so the test expecting 30 failed. Jenkins returned failure rather than printing an unconditional success message.
\begin{table}[htbp]\centering
\caption{Sanitized run view derived from Jenkins stage APIs, October 21, 2026}\label{Table:JenkinsStageResults}
\begin{tabular}{llll}\toprule Run / commit & Checkout & Syntax & Unit tests\\\midrule
\href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/1/}{PR-9/1} / \texttt{35605c3} & Success & Success & Failed (2 failures)\\
\href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/}{PR-9/2} / \texttt{ed8684a} & Success & Success & Success (3 tests)\\\bottomrule
\end{tabular}
\end{table}
The retained \texttt{failed-stages.json}, \texttt{passed-stages.json} and console excerpts identify each stage, result and checked-out SHA. Run~2 took about 16 seconds. A green run of the old README-only pipeline on \texttt{main} is not counted as the application-test demonstration.
\section{Required Merge Gate} \section{Required Merge Gate}
The required merge gate is not yet complete. Gitea branch protection still needs to require the Jenkins status context on pull-request head commits. The exact status context should be the Jenkins job or Gitea Checks context selected after the Jenkins Gitea integration plugin loads successfully. A successful webhook delivery is not enough; the Gitea pull request must show a required check that blocks merge while failing and permits the normal review process after passing. The protected branch is \texttt{main}. Its exact required context is \nolinkurl{startup-product-ci/pipeline/pr-main}. Direct pushes and force pushes are disabled; one approval is required; stale approvals are dismissed; rejected reviews block merging; administrator merge override is disabled. The required context was taken from an actual Jenkins-published Gitea status, not guessed from a webhook response \cite{GiteaProtectedBranches}.
The native Gitea plugin reports pending and final statuses using the scoped CI credential. Failed commit \texttt{35605c33\allowbreak{}b903742c\allowbreak{}d13d444a\allowbreak{}1a14d61b\allowbreak{}07fbaa86} received failure linked to PR-9/1. Repaired commit \texttt{ed8684a2\allowbreak{}897c4079\allowbreak{}46320183\allowbreak{}e572f641\allowbreak{}2dbb7703} received success linked to PR-9/2. The two images show the required-check state before and after repair. Passing CI removes that blocker; it does not supply the remaining peer approval.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{evidence/chapter4/failed-pr.png}
\caption{October 21, 2026: PR~9, failed head \texttt{35605c3}; required context \nolinkurl{startup-product-ci/pipeline/pr-main}. Gitea shows failed required checks and a blocked merge. Matching Jenkins run: \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/1/}{PR-9/1}; \href{https://git.sespinal590.dev/group10-startup/startup-product/pulls/9}{pull request}.}\label{Figure:JenkinsFailedGate}
\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.85\textheight,keepaspectratio]{evidence/chapter4/passed-pr.png}
\caption{October 21, 2026: PR~9, repaired head \texttt{ed8684a}; the same required context passes. Gitea still requires one real peer approval. Matching Jenkins run: \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/}{PR-9/2}; \href{https://git.sespinal590.dev/group10-startup/startup-product/pulls/9}{pull request}.}\label{Figure:JenkinsPassingGate}
\end{figure}
\clearpage
\section{Failure, Repair, and Review} \section{Failure, Repair, and Review}
The failed-then-repaired pull request sequence remains pending. The required evidence sequence should use one issue-linked pull request and show: failed commit, failed Jenkins run, blocked merge, repair commit, passing run, peer review, and merge. This manual currently does not claim that evidence because no Jenkins status check was successfully published back to Gitea. \begin{longtable}{L{3.1cm}L{9.9cm}}
\caption{Auditable issue-linked failure, repair and deadline disposition, October 21--23, 2026}\label{Table:JenkinsSequence}\\
\toprule Step & Actual evidence\\\midrule\endfirsthead
\toprule Step & Actual evidence\\\midrule\endhead\bottomrule\endlastfoot
Issue and PR & \href{https://git.sespinal590.dev/group10-startup/startup-product/issues/8}{Issue 8}; \href{https://git.sespinal590.dev/group10-startup/startup-product/pulls/9}{PR 9}, source \nolinkurl{codex/chapter4-issue-8}, target \texttt{main}. The description contains \texttt{Closes \#8}; a branch name alone would not link the issue.\\
Failed commit & \href{https://git.sespinal590.dev/group10-startup/startup-product/commit/35605c33b903742cd13d444a1a14d61b07fbaa86}{35605c3}: deliberately changed multiplication to addition in the isolated feature branch.\\
Failed run and block & PR-9/1 began 23:08:42 UTC; checkout/syntax passed, two pricing tests failed, final result FAILURE; Gitea marked the required check failed and displayed the merge block.\\
Corrective commit & \href{https://git.sespinal590.dev/group10-startup/startup-product/commit/ed8684a2897c407946320183e572f6412dbb7703}{ed8684a}: restored multiplication and documented clean execution; pushed 23:11:38 UTC on the same branch.\\
Passing run/status & Polling discovered the new head; PR-9/2 began 23:12:19 UTC and passed all three tests; the same Gitea context reported success for that new SHA.\\
Peer review & Not completed. Turan could not review before the deadline. Sergio explicitly authorized merging without approval on October 23; no substitute approval or reviewer identity was supplied. This rubric requirement remains unmet.\\
Deadline merge & PR~9 merged October 23, 2026 at 20:05:26 Eastern (October 24 at 00:05:26 UTC), commit \href{https://git.sespinal590.dev/group10-startup/startup-product/commit/6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}{6cfac4e}. Issue~8 closed automatically. Required approvals were temporarily changed from one to zero, then restored to one in a guaranteed cleanup step. The exact passing CI context, direct/force-push restrictions and administrator override restriction were retained. Gitea initially asked for a retry; the rule was restored after that attempt, then the merge succeeded on retry.\\
Post-merge verification & Periodic discovery started \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/2/}{main/2} for merge commit \texttt{6cfac4e}; checkout, syntax and all three unit tests passed with result SUCCESS. The previous placeholder main/1 run is not used as proof. Sanitized merge, restored protection, build, stage and console evidence are retained as \nolinkurl{oct23-merge.json} and \nolinkurl{oct23-main-*} under this chapter's evidence directory.\\
\end{longtable}
Normal authenticated Git pushes succeeded during this exercise. The earlier direct branch-reference workaround was not used. The deliberate defect affected only the pricing feature branch; no deployed service was intentionally broken. Times above are UTC (local Eastern time is UTC minus four hours on this date).
\begin{figure}[htbp]\centering
\includegraphics[width=\linewidth]{evidence/chapter4/oct23-merged-pr.png}
\caption{October 23, 2026: PR~9 merged under Sergio\textquotesingle s explicit deadline exception. The PR description discloses the absent peer review; Gitea shows no reviewers. Merge commit: \texttt{6cfac4e}; the one-approval policy was restored.}\label{Figure:JenkinsDeadlineMerge}
\end{figure}
\section{Credentials and Build Boundary} \section{Credentials and Build Boundary}
\begin{longtable}{L{4.0cm}L{9.2cm}} \begin{longtable}{L{4.0cm}L{9.0cm}}
\caption{Jenkins Credentials and Build Boundary\label{Table:JenkinsCredentials}}\\ \caption{Credential scope and pipeline trust controls\label{Table:JenkinsCredentials}}\\
\toprule \toprule Control & Actual implementation or explicit remaining limit\\\midrule\endfirsthead
\textbf{Control} & \textbf{Implementation or Required Follow-up}\\ \toprule Control & Actual implementation or explicit remaining limit\\\midrule\endhead\bottomrule\endlastfoot
\midrule Secret storage & Jenkins administrator secret remains in a protected server-only secret store. The bot token is stored in Jenkins credentials; no secret values are included in the repository, this manual or the evidence excerpts. Temporary setup-token cleanup must be verified at handoff.\\
\endfirsthead CI identity & Restricted bot \texttt{jenkins-ci}; non-admin; collaborator only on startup-product; scopes \texttt{write:repository,read:user}. Repository write is required by this integration for commit statuses; the token is therefore sensitive even though its purpose is CI reporting.\\
\toprule Pipeline authors & Only trusted team writers may change the same-repository Jenkinsfile. Origin-head discovery is enabled; untrusted fork PR discovery is absent. Do not broaden repository collaborators without reassessing this boundary.\\
\textbf{Control} & \textbf{Implementation or Required Follow-up}\\ Controller execution & Allowed by the assignment for this small trusted deployment. Pipeline code can execute commands on the controller, so a malicious trusted author could compromise it and its credentials. No untrusted code, production secrets, privileged containers or Docker socket are permitted here.\\
\midrule Separate agent alternative & Not deployed. Before accepting untrusted contributions, isolate builds in an agent and set controller executors to zero; update the diagram and evidence to match.\\
\endhead Plugin operations & Update-center refresh completed successfully on October 21. Four incompatible dependencies were repaired. Newer versions remain available (recorded in \texttt{plugin-update-check.txt}); the current set is a tested inventory, not a claim of full patch currency. Review security advisories and core compatibility before a separately tested upgrade.\\
\bottomrule Troubleshooting response & Earlier stale crumb errors were addressed by retaining the authenticated session cookie with the crumb. CSRF protection stayed enabled. The unknown-server scan failure was corrected by registering the private endpoint; the pricing failure was corrected in code.\\
\endlastfoot
Jenkins administrator credential & Stored only on the Droplet in \texttt{/root/jenkins-secrets/admin-password}; not committed to Git or printed in this manual.\\
Initial setup password & Jenkins printed a generated first-boot password in container logs. It was replaced operationally by the named admin account and should be rotated again before long-term use.\\
Gitea integration token & Pending. A narrow token should be created for repository read and status/check reporting only.\\
Build location & Builds currently run on the controller because this is a small trusted course deployment. This is a risk: untrusted Jenkinsfile authors could execute commands on the controller.\\
Compensating restriction & Only trusted team members should be able to edit the Jenkinsfile until a separate build agent is deployed and secrets are isolated from untrusted pull requests.\\
\end{longtable} \end{longtable}
\begin{longtable}{L{4.0cm}L{9.2cm}} \begin{enumerate}
\caption{Jenkins Plugin Check and Operator Response\label{Table:JenkinsPluginCheck}}\\ \item For a missing run, check scan schedule, latest scan log, registered endpoint, scoped credentials, network route and active plugins.
\toprule \item For a failed run, compare the exact PR head with the checkout log; locate the first failed stage and reproduce its command from a clean checkout.
\textbf{Plugin or Check} & \textbf{Result}\\ \item For a missing status or blocked merge, inspect the status API and exact required context on the latest SHA. A passing older commit does not satisfy a new head. Verify peer approvals independently.
\midrule \item For HTTPS failure, check DNS, certificate validity, Caddy validation/logs, permitted browser source and backend reachability. Inspect cloud rules and Docker mappings separately from UFW.
\endfirsthead \item For recovery, keep current persistent home and pre-change plugin/configuration copies; restart only the affected service and recheck login, jobs, status publication and plugin failures. Never reset Jenkins home merely to hide an error.
\toprule \end{enumerate}
\textbf{Plugin or Check} & \textbf{Result}\\
\midrule \section{Manual Quality and Controls}\label{Section:JenkinsControls}
\endhead This revision records actual commands, expected and observed outcomes, corrective actions, dated screenshots, exact commit/run links and explicit gaps. The written procedures are primary; screenshots support the narrative. \gls{mergegate}, \gls{pipeline}, \gls{leastprivilege}, \gls{reverseproxy}, and \gls{polling} describe the operational controls.
\bottomrule
\endlastfoot \begin{longtable}{L{4.9cm}L{1.6cm}L{6.5cm}}
Installed plugin attempt & \texttt{git}, \texttt{workflow-aggregator}, \texttt{pipeline-stage-view}, \texttt{gitea}, and \texttt{gitea-checks}.\\ \caption{Chapter 4 rubric evidence status\label{Table:JenkinsRemainingWork}}\\
Recorded plugin versions & Git \texttt{5.10.1}, Pipeline \texttt{608.v67378e9d3db\_1}, Pipeline Stage View \texttt{2.41}, Gitea \texttt{273.vb\_78d13f6d9a\_d}, and Gitea Checks \texttt{604.638.ve9e5472551b\_3}.\\ \toprule Criterion & Points & Evidence and outstanding work\\\midrule\endfirsthead
Plugin warning & Jenkins reported security advisories for some Pipeline-related plugins during installation.\\ \toprule Criterion & Points & Evidence and outstanding work\\\midrule\endhead\bottomrule\endlastfoot
Plugin failure & Jenkins logs reported dependency failures requiring newer \texttt{bouncycastle-api}, \texttt{caffeine-api}, and \texttt{gson-api} plugins. A repair attempt was made, but the failures persisted in the last observed logs.\\ Deployment/persistence & 10 & Official recorded image, Compose, full loaded plugin inventory, capacity and actual restart test.\\
Operator response & The issue was recorded as a blocker. The correct next action is to update the Jenkins base image or reset the plugin catalog/home state, then reinstall plugins and re-run the Gitea check integration.\\ HTTPS/access/firewall & 15 & Live login screenshot/URL, cert/redirect, private backend mappings and IPv4 probes; source restriction verified; current Cloud Firewall rules and attachment captured; globally allowed IPv4 SSH is disclosed as a hardening gap.\\
Gitea trigger/traceability & 15 & Working permitted polling fallback; automatic repaired-head detection, private API/checkout/status paths and adapted UML diagram.\\
Pipeline/tests & 15 & Versioned root Jenkinsfile, three real tests, clean-run instructions, distinct stage results and exact head SHAs.\\
Required merge gate & 15 & Exact reported context required by main; failed/passing screenshots, direct-push and override restrictions; October 23 merge exception disclosed; one-approval policy restored afterward.\\
Failure/repair/review & 10 & Failed and repaired heads/runs verified on issue-linked PR~9; merge and issue closure verified October 23; teammate approval was omitted and remains unmet.\\
Credentials/build boundary & 10 & Scoped bot and Jenkins credentials, documented trusted-controller risk, no Docker socket, plugin check and troubleshooting; legacy Jenkins privilege reduction remains advisable.\\
Manual quality/controls & 10 & Version/history, Hosts and Passwords hints, diagram, citations, glossary/index, restart procedures and sanitized evidence updated; peer review remains unmet; current Cloud Firewall evidence is retained, including the unrestricted IPv4 SSH limitation.\\
\end{longtable} \end{longtable}
\section{Manual Quality and Controls} This revision\textquotesingle s non-secret source and evidence are retained on the \href{https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/codex/chapter4-jenkins-evidence}{Chapter 4 review branch}. The Hosts and Passwords control tables in \ChapterRef{Gitea} are updated for Jenkins and the CI bot. Password entries contain handling hints only, never passwords, derivation keys, tokens or recovery codes. The dated update-history entry names those changes. Material AI assistance is recorded in \ChapterRef{AIPromptLog}.
\begin{longtable}{L{4.4cm}L{2.0cm}L{6.8cm}}
\caption{Chapter 3 Rubric Evidence Status\label{Table:JenkinsRemainingWork}}\\
\toprule
\textbf{Rubric Criterion} & \textbf{Status} & \textbf{Evidence or Gap}\\
\midrule
\endfirsthead
\toprule
\textbf{Rubric Criterion} & \textbf{Status} & \textbf{Evidence or Gap}\\
\midrule
\endhead
\bottomrule
\endlastfoot
Jenkins deployment and persistence & Partial & Jenkins container, persistent home, restart policy, swap, named admin account, and restart evidence are documented. A longer restart persistence screenshot/check should be captured after browser login.\\
HTTPS, access control, and firewall & Partial & HTTPS, redirect, certificate acquisition, login requirement, and blocked raw port \texttt{8080} are documented. Browser source restriction still needs tightening.\\
Gitea trigger and traceable Jenkins run & Pending & Jenkins can reach the repository, but webhook delivery and matching Jenkins run are not proven.\\
Versioned pipeline with meaningful build and tests & Partial & Jenkinsfile is versioned and committed as \texttt{b0eee02}; Jenkins plugin/API issues blocked the final run evidence.\\
Required Gitea status check and merge gate & Pending & Branch protection and required Jenkins context still need configuration after plugin repair.\\
Failed-then-repaired, reviewed pull request & Pending & No failed/repaired PR sequence has been completed.\\
Credentials, pipeline trust boundary, and plugin operations & Partial & Credentials are not committed; controller-build risk and plugin failures are documented.\\
Versioned IT manual, history, Hosts/Passwords hints, and evidence & Complete for current state & Version 1.7, this history entry, Jenkins host/password controls, deployment artifacts, citations, glossary/index terms, and honest blockers are included.\\
\end{longtable}
\textbf{Operator restart:} run \nolinkurl{cd /opt/jenkins && docker compose restart jenkins}; verify login, existing multibranch job, PR run history, URL/executor settings, polling and zero failed plugins. For a replacement container, additionally run the executor bootstrap script. Stopping Jenkins does not retire the shared Gitea service. No additional paid resource was provisioned; the existing Droplet remains billable until the owner shuts it down/deletes it under the team's retention plan.
\textbf{Submission:} compile and inspect the full existing team manual and submit only that PDF by the Canvas deadline, with the missing review and the SSH hardening gap disclosed. A later review must be dated honestly; it cannot be represented as a pre-merge approval. Keep non-secret configuration, source and evidence versioned in Gitea and publish the corresponding source revision before claiming its links are available. Canvas controls the due date and submission location. No video, separate screenshots, Jenkinsfile or backup archive is submitted.
-14
View File
@@ -132,17 +132,3 @@
year = {2026}, year = {2026},
note = {Accessed October 12, 2026} note = {Accessed October 12, 2026}
} }
@misc{PrometheusStorage,
author={{Prometheus Authors}}, title={Storage},
howpublished={\url{https://prometheus.io/docs/prometheus/latest/storage/}},
note={Accessed October 30, 2026}}
@misc{GrafanaNoData,
author={{Grafana Labs}}, title={No Data and Error states},
howpublished={\url{https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rule-evaluation/nodata-and-error-states/}},
note={Accessed October 30, 2026}}
@misc{GrafanaBackup,
author={{Grafana Labs}}, title={Back up Grafana},
howpublished={\url{https://grafana.com/docs/grafana/latest/administration/back-up-grafana/}},
note={Accessed October 30, 2026}}
-545
View File
@@ -1,545 +0,0 @@
\chapter{Introduction to SRE: Monitoring and Reliability}
\ChapterLabel{SREMonitoring}
\index{monitoring}\index{incident review}\index{error budget}
\section{Deployment and Reproducibility}
\subsection{Scope, baseline, and decisions}
Group 10 deployed four monitoring containers on October 30, 2026, using Turan
Islamli's prepared branch and Sergio Espinal's authorized operational changes.
This report records actual tests, rather than treating configuration as proof.
\href{https://git.sespinal590.dev/group10-startup/devops-it-manual/issues/1}{Implementation issue 1}
records the initial baseline, starting manual commit \path{1df4798a31}, and
preparation/deployment responsibilities. Sergio and Turan are both assigned;
Sergio operates the deployment and Turan is the second team member for final
verification. Formal assignment was corrected during this audit; independent
peer approval is still pending in draft PR 4.
The implementation remains on \path{chapter5-sre-monitoring}; main has not
been merged. Human peer review remains outstanding.
The Ubuntu 24.04 primary Droplet (165.227.90.215) originally had approximately
458 MiB RAM. An approved snapshot, ID 252241628, was retained before resizing
CPU/RAM to 1 vCPU and 2 GB. The disk remains 10 GB as requested. Its root
filesystem reports 8.7 GiB usable, approximately 7.0 GiB used and 1.8 GiB
available (81\% used). Snapshot existence does not demonstrate a restore.
The primary plan is \$12/month; the separate unchanged 512 MB Droplet costs
\$4/month; the 5.65 GB snapshot is approximately \$0.34/month. Known total:
approximately \$16.34/month before taxes or other usage. Sergio owns these
resources and should remove the snapshot only after deciding it is no longer
needed. No additional paid service was provisioned for monitoring.
The full Grafana image and optional plugin downloads temporarily exhausted disk
space during installation. Grafana was stopped, only the new full image and
optional downloaded plugin files were removed, and the slim image was used.
The Grafana database and all named volumes were preserved. The resulting image
is approximately 1.23 GB rather than 2 GB. Only the Prometheus plugin 13.2.4
was installed; automatic plugin preinstallation and updates are disabled.
The retained free-space margin is small and must be monitored.
\subsection{Versions, storage, and actual topology}
The deployed images are \path{prom/prometheus:v3.15.1},
\path{grafana/grafana:13.3.0-slim},
\path{quay.io/prometheus/node-exporter:v1.12.1}, and
\path{quay.io/prometheus/blackbox-exporter:v0.29.1}. Publisher digests
captured with \texttt{docker image inspect} are recorded below. Versions are
pinned in Compose; the digests identify the images actually inspected.
\begin{figure}[htbp]\centering\small
\fbox{\begin{minipage}{0.94\linewidth}\centering
\textbf{Primary Droplet: Ubuntu 24.04, 1 CPU, 2 GB RAM, 10 GB disk}\\[5pt]
Browser $\xrightarrow{\mathrm{HTTPS}\ 443}$ \fbox{Caddy}\\
\path{gitea_default} proxy network: Caddy routes by hostname\\[4pt]
\fbox{Gitea :3000}\quad \fbox{Jenkins :8080}\quad
\fbox{Grafana :3000}\\[5pt]
\textbf{Four separate monitoring containers}\\
\fbox{Grafana} $\xrightarrow{\mathrm{query}}$ \fbox{Prometheus :9090}\\[4pt]
Prometheus $\xrightarrow{\mathrm{scrape\ every\ }30s}$
\fbox{Node Exporter :9100}\quad host /proc, /sys, /\\[4pt]
Prometheus $\xrightarrow{\mathrm{probe\ request}}$
\fbox{Blackbox Exporter :9115}\\
Blackbox $\xrightarrow{\mathrm{TLS}\ 443}$ Caddy
$\rightarrow$ Gitea /user/login and Jenkins /login\\[4pt]
\path{monitoring_monitoring_private}: all four monitoring services\\
Grafana and Blackbox additionally join \path{gitea_default}.\\
Grafana $\xrightarrow{\mathrm{outbound\ HTTPS}}$ Discord team alerts\\[4pt]
\textbf{Persistent storage:} Prometheus named volume $\rightarrow$ /prometheus;\\
Grafana named volume $\rightarrow$ /var/lib/grafana;\\
existing Gitea /data and Jenkins /var/jenkins\_home retained.\\
Configuration bind mounts originate in /opt/ssw590-monitoring.\\
Existing applications remain in /opt/gitea and /opt/jenkins.\\[4pt]
\textbf{CI outside this diagram's metrics:} Windows LaTeX runner polls Gitea;\\
Jenkins application build executes on the primary controller.
\end{minipage}}
\caption{Actual deployment, October 30, 2026. Internal ports are not public
listeners. Grafana is shown twice to clarify its query role, not as two containers.}
\label{Figure:SRETopology}\end{figure}
Prometheus retains up to seven days or 512 MB of stored blocks, whichever
limit applies first. WAL/head storage is additional, so this is not a hard
filesystem quota \cite{PrometheusStorage}. Grafana stores its SQLite database
and installed plugin in its named volume. Removing volumes would destroy this
persistence. All four containers use \texttt{unless-stopped} restart policies.
\subsection{Repeatable operations}
Check out the feature branch and copy the non-secret \path{monitoring/}
directory to \path{/opt/ssw590-monitoring}. Privately supply the admin password,
Grafana root URL, and the current Caddy private IP in a mode-600 \texttt{.env}.
The proxy network must already exist. Confirm its subnet and that
172.18.0.250 is unused before assigning Blackbox's fixed address. Set readable
configuration directories to 755 and non-secret files to 644. Keep the local
Discord provisioning file owned by UID 472, group 0, mode 600.
\begin{lstlisting}[basicstyle=\ttfamily\scriptsize,breaklines=true]
cd /opt/ssw590-monitoring
docker compose config --quiet
docker compose up -d
docker compose exec grafana grafana cli plugins install prometheus 13.2.4
docker compose restart grafana
docker compose ps
docker exec monitoring-prometheus-1 promtool check config /etc/prometheus/prometheus.yml
\end{lstlisting}
The commands were executed successfully during deployment. For updates, review
image/plugin compatibility and available disk first, retain a backup, validate
configuration, and recreate only the affected service. Do not run
\texttt{down -v}. Recovery starts with \texttt{docker compose up -d}, target
health and logs; restore known-good configuration before escalating to a backup
restore. Reinstall the pinned plugin if rebuilding the Grafana volume.
\subsection{Inspected publisher digests}
\begin{lstlisting}[basicstyle=\ttfamily\tiny,breaklines=true]
prom/prometheus@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2
grafana/grafana@sha256:a66f098dd9b2e1b5a19287ff176db02d895122488c6e39b3dfcd3fb897039225
quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0
quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13
\end{lstlisting}
\subsection{Backup of state that Git cannot reconstruct}
The retained cloud snapshot predates monitoring. A current monitoring backup
and an isolated restore have not been performed. The operator procedure is
versioned in \path{monitoring/BACKUP-RECOVERY.md}. Arrange a maintenance window,
check capacity, stop Grafana before copying SQLite, and stop Prometheus before
copying its complete data directory. Preserve the two inspected named-volume
paths, ownership and permissions. Protect the local environment, Discord
provisioning and Caddy configuration separately; these contain secrets and
must stay outside Git. Transfer using a binary-safe SSH/archive tool to an
approved encrypted off-host destination, verify checksums, restart in a
finally/trap cleanup path and check historical data plus alert delivery.
The small root disk must not be used to stage an unbounded archive.
Restore into isolated replacement volumes with matching versions/plugin first;
never overwrite the live volumes to demonstrate recovery. This procedure
extends the published Grafana backup guidance \cite{GrafanaBackup}.
\section{Metrics and Probes}
Prometheus privately scrapes itself, Node Exporter and Blackbox Exporter, plus
two relabeled HTTPS probe targets every 30 seconds. Five \texttt{up} series
were 1 at the verification checkpoint; both \path{probe_success} values
were 1 after recovery. A successful scrape (\texttt{up}) means collection
worked; it does not establish that the application probe succeeded.
Node Exporter has read-only host-root and proc/sys access. Its
\path{node_memory_MemTotal_bytes} was 2,063,564,800 bytes, consistent
with host \texttt{free}. The root series labels were verified as
\path{device=/dev/vda1}, \path{mountpoint=/}, \texttt{fstype=ext4},
matching \texttt{df}. This excludes container overlay filesystems.
The HTTPS module requires HTTP 200, valid certificate verification and a
response before its timeout. Targets are the actual TLS login URLs below.
The exporter resolves both hostnames to Caddy's private 172.18.0.3 address,
retaining their hostname/SNI and TLS verification. This measures the private
proxy/application route; it cannot establish public DNS or external Internet
availability. A shared-host outage also stops its own monitoring.
\subsection{Metric inventory and host comparison}
\small
\begin{tabularx}{\linewidth}{L{4.0cm}L{2.0cm}Y}
\caption{Required metric inventory\label{Table:SREMetricInventory}}\\
\toprule Metric & Type / unit & Labels, meaning and limitation\\\midrule
\path{node_cpu_seconds_total} & Counter / seconds & cpu, mode, job, instance.
Cumulative CPU time; rate of idle time gives averaged non-idle percent.
Not per-container attribution.\\
\path{node_memory_MemAvailable_bytes} & Gauge / bytes & job, instance.
Kernel estimate of memory available to applications, not merely unused RAM.\\
\path{node_filesystem_avail_bytes}, \path{node_filesystem_size_bytes} & Gauges / bytes &
job, instance, device, mountpoint, fstype. Available/size percent for the verified
root filesystem; do not combine mounts or use overlay data.\\
\texttt{up} & Generated gauge / 0 or 1 & job, instance. Prometheus collection
health, not application health. A missing sample remains unknown.\\
\path{probe_success} & Gauge / 0 or 1 & job, instance (HTTPS URL).
Login-page TLS/HTTP probe success; does not prove authenticated operations.\\
\path{probe_duration_seconds} & Gauge / seconds & job, instance.
Probe duration includes failures/timeouts; not application transaction latency.\\
\bottomrule\end{tabularx}
\normalsize
At the final audit, \texttt{free -b} reported total memory 2,063,564,800 bytes,
matching Node Exporter exactly. Host available memory was 852,103,168 bytes;
the most recent 30-second scrape reported 890,720,256, reflecting different
sample times while processes ran. \texttt{df -B1 /} and the exporter agreed on root size:
9,283,444,736 bytes. Available space changed from 1,825,554,432 to
1,825,574,912 bytes between observations, a difference of 20,480 bytes.
The raw comparisons and timestamps are retained in
\path{evidence/chapter5/host-metric-comparison.json}.
Node Exporter uses the host PID namespace and read-only host root mounted at
\texttt{/host}, with proc/sys/rootfs flags selecting the host view. This exposes
host metadata for collection; no monitoring container receives the Docker socket.
\subsection{Sanitized collection and probe configuration}
These are the actual versioned files used in the running deployment:
\lstinputlisting[basicstyle=\ttfamily\scriptsize,breaklines=true]{monitoring/prometheus/prometheus.yml}
\lstinputlisting[basicstyle=\ttfamily\scriptsize,breaklines=true]{monitoring/blackbox/blackbox.yml}
Only the final login page is checked; there is no authenticated content test.
\section{HTTPS and Access Control}
\begin{itemize}
\item Gitea login: \url{https://git.sespinal590.dev/user/login}.
\item Jenkins login: \url{https://ci.165.227.90.215.sslip.io/login}.
\item Grafana: \url{https://metrics.165.227.90.215.sslip.io}.
\end{itemize}
Use the team account for Gitea, the existing administrator's approved Jenkins
access path, and the privately held Grafana admin password. Anonymous Grafana
access and self-registration are disabled; its cookie is secure. No grader
account is required to read the embedded evidence.
Caddy provides HTTPS and forwards the metrics hostname to
\texttt{grafana:3000}. The existing Jenkins IP restriction was retained with
only Blackbox's 172.18.0.250/32 added. A public 403 from an unapproved source
is expected access denial and is not treated as successful availability.
The exporter obtained 200 from Jenkins through the narrow permitted route.
Caddy's configuration was backed up before modification.
\begin{lstlisting}[basicstyle=\ttfamily\scriptsize,breaklines=true]
# Existing Jenkins allowlist plus the one monitoring address:
remote_ip 155.246.151.38/32 172.18.0.1/32 172.18.0.250/32
# Additional HTTPS virtual host:
metrics.165.227.90.215.sslip.io {
@rawMetrics path /metrics /metrics/*
respond @rawMetrics "Raw metrics are private." 403
reverse_proxy grafana:3000
}
\end{lstlisting}
The inspected users are Prometheus/Node Exporter \texttt{nobody}, Grafana UID
472, and the Blackbox image default user (empty image user setting, Linux
root by default). Its configuration is read-only and no Docker socket is
mounted. No monitoring service has Compose host-port mappings. External TCP checks from
Sergio's Windows workstation on October 30 could not connect to primary ports
3000, 8080, 9090, 9100 or 9115. HTTPS remained reachable. These are point-in-time
observations from that source, not a universal firewall guarantee.
\subsection{Final network audit and retained SSH gap}
The signed-in DigitalOcean console confirmed firewall
\texttt{ssw590-gitea-firewall} is attached to the primary Droplet. It permits
TCP 80 and 443 publicly, and TCP 22 from all IPv4 plus an existing operator
/32. Other inbound ports are not allowed; outbound ICMP/TCP/UDP are allowed.
Host UFW is inactive, so protection relies on the cloud firewall, Docker port
mappings and Caddy. IPv6 is not enabled on the Droplet and the host has no
global IPv6 address; external IPv6 checks are therefore not applicable.
\textbf{Open gap: SSH is still globally reachable over IPv4. Sergio explicitly
requested that SSH be left unchanged and flagged.} This inherited policy is
not represented as a restricted SSH configuration.
The audit found Grafana's unauthenticated raw \texttt{/metrics} route returning
200 through HTTPS. Caddy was backed up, the route was blocked with the matcher
above, and configuration validation/reload passed. The versioned final proxy
configuration is \path{monitoring/Caddyfile}.
From the external Windows workstation at 21:16:31 UTC, TLS-verified
\texttt{curl.exe} checks returned: Gitea login 200, Gitea metrics 404,
Grafana login 200, Grafana raw metrics 403, and restricted Jenkins login 403.
HTTP Gitea login redirected to HTTPS with 308. Socket checks with three-second
timeouts could not connect to ports 3000, 8080, 9090, 9100 or 9115.
These commands and results are retained in
\path{evidence/chapter5/external-access-audit.json}; sanitized cloud rules and
container identities/mounts are retained alongside them. Both private HTTPS
probes and authenticated Grafana queries remained healthy after the proxy fix.
\begin{tabularx}{\linewidth}{L{3cm}Y}
\caption{Chapter 5 hosts, storage and credential hints\label{Table:SREHosts}}\\
\toprule Service / owner & Address, exposure, storage or secret handling\\\midrule
Primary / Sergio & 165.227.90.215; Caddy HTTPS 443; SSH for approved operators.
Snapshot retained; monitoring runs here.\\
Grafana / Sergio & metrics hostname above; private 3000; named Grafana volume.
Admin secret stays in root-owned server .env; never in Git or PDF.\\
Prometheus / Sergio & Private prometheus:9090; named metrics volume; no user-facing login.\\
Exporters / Sergio & Private node-exporter:9100 and blackbox-exporter:9115;
read-only configuration/host mounts.\\
Discord / team & Dedicated Discord integration; secret destination in
\texttt{discord.local.yml} on server only. Rotate via Discord if exposed.\\
\bottomrule\end{tabularx}
These entries supplement the existing Hosts and Password Hints tables in
\ChapterRef{Gitea}; no credentials are reproduced.
\section{Dashboard and CI Correlation}
The provisioned dashboard is \textit{Chapter 5 -- SRE Monitoring Overview}, UID
\texttt{sre-overview}, UTC, default one hour, refresh 30 seconds. Its versioned
source is \path{monitoring/grafana/dashboards/sre-overview.json}. The six
panels use the following expressions (each line is one panel's query).
\begin{lstlisting}[basicstyle=\ttfamily\scriptsize,breaklines=true]
100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{mode="idle",job="node-exporter"}[5m])))
node_memory_MemAvailable_bytes{job="node-exporter"}
100 * node_filesystem_avail_bytes{job="node-exporter",mountpoint="/",fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes{job="node-exporter",mountpoint="/",fstype!~"tmpfs|overlay"}
probe_success{job="https",instance="https://git.sespinal590.dev/user/login"}
probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}
probe_duration_seconds{job="https"}
\end{lstlisting}
CPU is the non-idle fraction averaged over CPUs, percent; available RAM is
bytes rendered in GiB/MiB; root availability is percent for the one verified
root mount; service lines are binary 0/1; durations are seconds with separate
Gitea/Jenkins legends. Availability is not an HTTP request error rate for
all users. Whole-host CPU cannot be attributed solely to Jenkins.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.82\textheight,keepaspectratio]{evidence/chapter5/dashboard-live.png}
\caption{Actual Grafana six-panel dashboard, October 30, 2026, UTC.
The Jenkins-only outage is visible while Gitea stays at 1.}
\label{Figure:SREDashboard}\end{figure}
After recovery, Jenkins \path{startup-product-ci/main} build 3 passed for
commit \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}.
It ran from 20:43:32.534 to 20:43:52.340 UTC (19.806 seconds), on the Jenkins
controller. See \url{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/3/}.
The host measurements immediately before, during and after this build were:
\begin{center}\begin{tabular}{lrr}\toprule
UTC evaluation & CPU (one-minute rate) & Available RAM (MiB)\\\midrule
20:43:00 (before) & 41.57\% & 878.0\\
20:43:45 (during) & 17.40\% & 863.8\\
20:44:30 (after) & 17.67\% & 914.5\\\bottomrule
\end{tabular}\end{center}
The short build's CPU peak is not established by these snapshots. They include
Jenkins initialization, monitoring and other work; the 30-second scrape cadence
and one-minute rate smooth the 19.8-second build. The dashboard uses five-minute
CPU smoothing. Available RAM fell slightly during the build and rose afterward,
which is correlation rather than proof of per-container allocation.
The Windows LaTeX workflow executes off-droplet, so its build load is not
measured by these host metrics.
\section{SLI, SLO, and Error Budget}
An \gls{sli} is a measured indicator; here it is successful HTTPS observations
divided by received observations for a named service and window. The
\gls{slo} is an internal target of at least 99\% success over 24 hours. An
\gls{sla} is a customer agreement that may attach consequences; this lab
establishes no customer SLA.
\subsection{Required hypothetical example}
These figures are illustrative, not measured lab results. At 30 seconds,
24 hours schedules $24\times60\times2=2880$ probes per service.
Gitea's $2880/2880=100\%$ meets the target. Jenkins's
$2850/2880\times100=98.9583\%$ misses it, with 30 failures.
The theoretical budget is $0.01\times2880=28.8$ failures or
$28.8\times30/60=14.4$ minutes. At most 28 whole failed samples meet 99\%.
Thirty failures exceed the budget by 1.2 samples, approximately 0.6 minutes.
\subsection{Measured short exercise window}
The actual interval is (20:35:00,20:45:00] UTC on October 30, evaluated at
20:45:00 with a 30-second scrape interval. Queries were
\path{avg_over_time}, \path{count_over_time} and
\path{sum_over_time} of \texttt{probe\_success\{job="https"\}[10m]}.
Multiply the average by 100 for percent.
\begin{center}\begin{tabular}{lrrrr}\toprule
Service & Received / expected & Successes & Failures & Percent\\\midrule
Gitea & 20 / 20 & 20 & 0 & 100\%\\
Jenkins & 20 / 20 & 13 & 7 & 65\%\\\bottomrule
\end{tabular}\end{center}
Both have 100\% sample coverage in this short window. The services have
different scrape phases, so timestamps differ; no samples were missing in
this interval. Seven failed Jenkins samples correspond to approximately
3.5 minutes under uniform sampling. Actual endpoints transitioned between
scrapes, so sample counts do not provide continuous-time precision. Missing
observations in another window would be unknown, not successes. This exercise
does not establish whether the full 24-hour SLO was met.
\section{Alerts and Runbooks}
Both Grafana-managed rules have owner \texttt{sespinal}, a 30-second evaluation
interval, summaries and links to \path{monitoring/ALERTING-RUNBOOK.md}.
Service unavailability uses \texttt{probe\_success\{job="https"\}<1}, pending
one minute, severity critical, retaining instance labels. Disk uses the same
verified root percentage as the dashboard, below 15\% for five minutes,
severity warning. Fifteen percent provides a response margin on this small disk.
No-data state is \texttt{NoData}; evaluation errors are \texttt{Error}, rather
than healthy. Grafana creates separate data-source alerts for these conditions
\cite{GrafanaNoData}. The service expression additionally uses a zero-valued fallback from the
matching target \texttt{up} series when its probe series disappears:
\texttt{or on(instance,job) (0 * up\{job="https"\})}. Thus a failed
collection does not silently become a successful probe. Removing a target
from configuration still requires source review; it is not an availability fix.
\begin{figure}[htbp]\centering
\includegraphics[width=\linewidth]{evidence/chapter5/alerts-recovered.png}
\caption{Actual Grafana group showing both provisioned rules normal after the
tests, October 30, 2026. The rule-state JSON records retain firing transitions.}
\label{Figure:SREAlerts}\end{figure}
Both route through the dedicated Discord integration in contact point
\texttt{team-alerts}. Policy groups by folder and alert name, waits 10 seconds,
uses a 30-second group interval and four-hour repeat interval. Resolved messages
are enabled. The webhook is stored only in server-local provisioning. The
contact test succeeded, and Sergio confirmed its receipt, then confirmed
receipt of both real firing and both resolved notifications.
Sergio reported these Discord display times in New York (EDT, UTC--4):
Jenkins firing 16:40, Jenkins resolved 16:42, disk firing 16:43, disk resolved
16:43. Converted to UTC: 20:40, 20:42, 20:43 and 20:43. These are user-reported
minute-precision receipt records; exact seconds and a separate channel
acknowledgement timestamp were not retained. They cannot establish precise
notification latency and must not replace the higher-resolution server records.
For HTTPS failures, inspect the instance, \texttt{up}, Blackbox diagnostics,
TLS, Caddy and application state. Keep TLS verification and the Jenkins
allowlist intact; restart only the affected service and verify probe recovery
and CI. For disk, inspect \texttt{df}, Docker images and volume/log growth;
remove only verified disposable material after review. Preserve application
and monitoring volumes. Recheck the filesystem and resolved state.
The disk test changed only its threshold from 15 to 30\% at 20:37:26.770 UTC.
It reached firing by observation 20:42:57.308, after five minutes pending.
The script's \texttt{finally} block restored 15\% at 20:43:27.486; it was
inactive by 20:43:57.520. No disk-filling workload was used.
\section{Incident and Recovery}
\subsection{Controlled Jenkins incident and measurements}
The exercise stopped only Jenkins, retaining all volumes and the recovery
command. A 210-second systemd safety timer was installed before stopping it;
the primary script restarted it after approximately three minutes. Gitea,
Caddy and the four monitoring containers remained available during the outage.
All times below are October 30, 2026 UTC.
\begin{tabularx}{\linewidth}{L{3.6cm}Y}
\caption{Observed incident timeline\label{Table:SRETimeline}}\\
\toprule Time & Event and evidence\\\midrule
20:38:45.484 & Jenkins stop requested; stopped at 20:38:46.995.\\
20:39:09.110 & First recorded failed Jenkins probe; previous success 20:38:39.110.\\
20:40:30 evaluation & HTTPS alert firing, observed by polling at 20:40:57.\\
20:41:47.511 & Restart requested; container started 20:41:47.945.\\
20:42:09.110 & Probe still failed while Jenkins initialized.\\
20:42:39.110 & First successful post-outage probe.\\
20:43:27.344 or earlier & Rule observed inactive; subsequent evaluations stayed normal.\\
20:43:32.534--52.340 & Recovery pipeline build 3 SUCCESS.\\
\bottomrule\end{tabularx}
Stop request to first failed sample was 23.626 seconds. First failure to the
20:40:30 firing evaluation was 80.890 seconds, consistent with scrape phase,
30-second evaluation and one-minute pending. Stop request to first recovered
sample was 233.626 seconds; restart request to that sample was 51.599 seconds.
Seven failed probes bound the observed failure period. Discord firing/resolved receipt was confirmed by Sergio at the minute-level
times above. Sub-minute delivery and acknowledgement latencies cannot be
calculated from these records.
\subsection{Persistence and integration checks}
Prometheus and Grafana were restarted separately without volume deletion.
A historical instant query at 20:40:00 returned Jenkins 0 and Gitea 1 both
before and after the Prometheus restart. Grafana's health returned database OK;
dashboard UID \texttt{sre-overview}, both rules (1m/5m) and the Discord contact
point remained. The retained 30-minute Prometheus self-scrape range contained no adjacent
sample gap greater than 45 seconds around the restart (30-second nominal
cadence). A short restart can fall between scheduled scrapes. The complete
10-minute SLI window above predates the restart. This test demonstrates persistence, not backup
restoration. Raw sanitized records are under \path{evidence/chapter5/}.
Gitea Actions manual-pdf run 16 (displayed build 12), source
\path{2fc6e8909034bd615fd5f3caffd71f0ef386d18f}, passed in 44 seconds
before final documentation changes:
\url{https://git.sespinal590.dev/group10-startup/devops-it-manual/actions/runs/16}.
The final automated artifact carries build \WorkflowRunNumber{} and source
\href{https://git.sespinal590.dev/group10-startup/devops-it-manual/commit/\SourceRevision}{\SourceRevision{}} in its generated metadata.
Its workflow record is available from
\href{https://git.sespinal590.dev/group10-startup/devops-it-manual/actions}{the repository Actions page}.
Human approval of this source revision is still required. Chapter 4's test/build failure
is different: code can fail a pipeline while Jenkins remains available.
Here the CI server itself was unavailable, so jobs could not execute during
that interval. Retained Chapter 4 records link
\href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/1/}{failed PR-9 build 1}
(commit \path{35605c33b903742cd13d444a1a14d61b07fbaa86}) and
\href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/}{repaired build 2}
(commit \path{ed8684a2897c407946320183e572f6412dbb7703}, SUCCESS).
Those historical records do not establish current peer-review status.
The recovery build published a fresh success status to Gitea at 20:43:52 UTC,
context \path{startup-product-ci/pipeline/head}, target build 3, matching
commit \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}.
The repository has no configured webhook; its configured periodic repository
scan uses \texttt{* * * * *} (once per minute). The following separate check
verifies automatic discovery rather than claiming webhook delivery.
\subsection{Automatic application-trigger verification}
A documentation-only commit was published on isolated application branch
\path{codex/chapter5-trigger-check}; application code and the existing
Jenkinsfile were unchanged. The exact commit is
\href{https://git.sespinal590.dev/group10-startup/startup-product/commit/b39613b2d2869065cf363bff36a7b54225cb7438}{b39613b2d2869065cf363bff36a7b54225cb7438},
created at 21:12:56 UTC (17:12:56 EDT). No Jenkins build or repository scan
was requested manually. Its scheduled scan discovered the branch and started
build 1 at 21:13:17.934; it ended SUCCESS at 21:13:22.127 UTC, 4.193 seconds
later. The retained cause is \path{jenkins.branch.BranchIndexingCause}, with
no manual user cause. Checkout matched the exact commit and all three unit
tests passed on the controller. Gitea received
\path{startup-product-ci/pipeline/head}=success for that commit at 21:13:22.
The observed commit-to-build delay was approximately 22 seconds, consistent
with one-minute polling. This is polling evidence, not a webhook receipt.
The application main remains \path{6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065}.
See the \href{https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex\%252Fchapter5-trigger-check/1/}{automatic application build}
and \path{evidence/chapter5/automatic-trigger.json}. Historical incident,
recovery build and automatic build regions were added to the Grafana dashboard
using measured timestamps; \path{dashboard-annotations.json} records them.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.8\textheight,keepaspectratio]{evidence/chapter5/dashboard-annotated.png}
\caption{Actual incident dashboard with measured outage and recovery-build
annotation regions added during the final Chapter 5 audit.}
\label{Figure:SREAnnotations}\end{figure}
\subsection{Blameless review and owned improvements}
The intended maintenance injection caused the incident. Jenkins initialization
extended user-visible unavailability beyond the stopped-container interval.
Detection worked; Gitea remained successful throughout the measured window;
Jenkins recovered and a normal build passed. No person is blamed for the
capacity issue: the original disk budget was too small for the default image
and optional plugins, and the slim deployment restored a workable margin.
The current setup shares the failure domain it monitors. It also relies on
Caddy's dynamic private IP, and receiver timestamps were retained only to the minute; a separate
acknowledgement time was not captured. The following owned issues track improvements:
\begin{itemize}
\item \href{https://git.sespinal590.dev/group10-startup/devops-it-manual/issues/2}{Issue 2},
P1, Sergio (\texttt{sespinal}): add an independent external TLS availability
check; verify notification and recovery without exposing private ports.
\item \href{https://git.sespinal590.dev/group10-startup/devops-it-manual/issues/3}{Issue 3},
P2, Turan (\texttt{turanisl}): remove fragile proxy-address dependence and
verify coordinated rebuilds, private access, TLS and rollback.
\end{itemize}
\section{Manual Integration and Traceability}
Source and prepared configuration are retained on the feature branch.
The workflow indentation and master include typo were repaired first.
The final PDF includes the source revision from workflow build metadata.
Use that revision to inspect the exact source, rather than relying only on a
moving branch link. The updated history, service/secret-hints table, glossary,
references and AI log accompany this chapter.
\paragraph{Review boundary.}
Deployment, rule evaluation, notification receipt, controlled recovery and
persistence have measured evidence. Human peer review and main merge remain
outstanding; main merge is explicitly deferred by Sergio. Receiver timing is limited to user-reported minutes; a separate channel
acknowledgement timestamp was not captured during the incident. The automatic
application trigger is now verified. Public IPv4 SSH is explicitly deferred by
Sergio, and human peer review plus the requested unmerged status remain open. A successful PDF build does not close those gaps.
\subsection{Final Chapter 5 rubric audit}
This is an evidence audit, not a prediction of the instructor's grade.
\small
\begin{tabularx}{\linewidth}{L{3.5cm}Y}
\caption{Eight-section final audit\label{Table:SREFinalAudit}}\\
\toprule Requirement & Result and retained boundary\\\midrule
Deployment (15 points) & Four pinned containers, digests, topology, retention,
startup/recovery and persistent volumes verified. Backup procedure supplied;
current-state backup restore not claimed.\\
Metrics/probes (15) & Five scrapes healthy, host comparison and metric inventory
recorded; both real HTTPS login probes pass. Private-route limitation explicit.\\
Access control (10) & Authenticated HTTPS, private ports and external tests pass;
public Grafana metrics route fixed. Inherited global IPv4 SSH remains an
explicit user-deferred gap.\\
Dashboard/CI (15) & Six panels, queries/units, versioned definition and normal
build correlation present; measured timeline annotation regions added.\\
SLI/SLO (10) & Definitions, hypothetical budget and actual 20-sample-per-service
exercise window present. No full-day SLO claim; full-day collection is optional.\\
Alerts (15) & Both evaluated/fired/resolved and received in Discord; disk restored
to 15\%. Receiver times are user-reported to the minute, not exact seconds.\\
Incident (10) & Jenkins-only outage, measured detection/recovery, persistence,
passing recovery build, automatic exact-commit build/status and two owned
improvement issues verified. Separate channel acknowledgement time absent.\\
Manual/review (10) & Updated version/history, service/secret hints, inventory,
citations, attribution and automated build metadata present. Draft PR 4 is
unmerged; genuine second-member approval is still required.\\
\bottomrule\end{tabularx}
\normalsize
The user explicitly requested no main merge. Do not close the implementation
issue or present the source as peer-approved until that review occurs. The
remaining human review and deferred SSH policy are recorded openly rather
than being marked complete by automation.
+30
View File
@@ -0,0 +1,30 @@
# Chapter 4 handoff — 2026-10-23
## Verified
- Jenkins 2.528.1 official LTS container; zero failed plugins after four dependency repairs.
- Python 3.13.5 / Git 2.47.3; real syntax check and three pricing unit tests.
- Issue 8: https://git.sespinal590.dev/group10-startup/startup-product/issues/8
- PR 9: https://git.sespinal590.dev/group10-startup/startup-product/pulls/9
- Failed head 35605c33b903742cd13d444a1a14d61b07fbaa86, PR-9/1: two failing tests, required-check merge block.
- Repaired head ed8684a2897c407946320183e572f6412dbb7703, PR-9/2: all three tests pass; periodic scan detected the corrective push without a manual build/rescan.
- Required context startup-product-ci/pipeline/pr-main; main requires one real approval, dismisses stale approvals, disallows direct/force pushes and admin merge override.
- Container restart retained the job XML hash, successful run, URL, executor, polling and active-plugin state.
- HTTPS login URL, hostname certificate/expiry, 308 redirect and live login screenshot retained.
- User explicitly approved CI browser allowlist 155.246.151.38/32 and host gateway 172.18.0.1/32; approved-source GET 200, excluded-container HTTPS 403, administrator SSH tunnel GET 200.
- External IPv4 backend/agent/database probes timed out; no public host IPv6/AAAA. UFW is inactive and is not credited as an active firewall.
- Full group PDF builds with bibliography, glossary and index; affected chapter pages visually reviewed. No unresolved reference/citation warnings. Older chapters retain existing layout warnings.
## Pending, not claimed complete
1. Peer approval was NOT completed before the deadline and remains an unmet rubric requirement. Sergio authorized merging without approval; PR #9 merged as 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065 at October 23 20:05:26 Eastern. Issue #8 closed. Required approvals were temporarily zero and restored to one; CI and push protections were retained. No review identity was fabricated. main/2 automatically built the merge SHA and passed syntax and all three tests.
2. Current DigitalOcean Cloud Firewall rules and correct Droplet attachment were inspected October 23 after Sergio signed in; see oct23-cloud-firewall.json and dated screenshots. SSH permits All IPv4 plus the redundant home /32; this remains a hardening gap. No rule change was made. Direct CI returns expected 403 from the current home network outside the approved campus allowlist; use the authorized SSH tunnel.
3. Legacy Jenkins account privilege reduction and a separately tested core/plugin security-update plan remain operational hardening limits; the active full-control-after-login strategy and available plugin updates are documented.
## Source/evidence
Review branch: codex/chapter4-jenkins-evidence in the Gitea devops-it-manual repository. All retained evidence comes from actual service/API/browser observations. Screenshot captions identify dates, heads, context and runs. The manual is version 1.11 and explicitly discloses the unmet peer review and SSH hardening gap. Do not submit the source directory, screenshot files, or archives separately: submit only the final compiled PDF.
The Jenkinsfile/application live in the product PR. Deployment/configuration/runbook/inventory and sanitized evidence live with this manual. No new paid resources were provisioned. Keep real credentials outside this source. Temporary setup credential cleanup is recorded separately in cleanup.json when completed.
Final deadline revision: full PDF compiled with glossary/index and no unresolved references/citations; new merge and firewall pages visually inspected. Existing older chapter layout warnings remain.
+1
View File
@@ -0,0 +1 @@
Applied with Sergio's explicit approval on October 21, 2026: Caddy admits the current team source \nolinkurl{155.246.151.38/32} and host tunnel gateway \nolinkurl{172.18.0.1/32} for this Jenkins hostname. Approved external access returned 200; an excluded container source received 403 with certificate validation enabled. Gitea's separate hostname is unchanged. For instructor access, arrange an operator-supervised browser on the approved team network, or have an approved administrator establish the SSH tunnel described below. Add any different instructor/team source only after authorization; no instructor Jenkins sign-in is required.
+10
View File
@@ -0,0 +1,10 @@
{
"checked_at": "2026-10-21T23:22:39.342537+00:00",
"negative_source": "Jenkins container (not in Caddy browser allowlist), using private Caddy address with real HTTPS hostname and certificate validation",
"negative_result": "HTTP/1.1 403 Forbidden\nAlt-Svc: h3=\":443\"; ma=2592000\nContent-Type: text/plain; charset=utf-8\nServer: Caddy\nDate: Wed, 21 Oct 2026 23:22:39 GMT\nContent-Length: 72\nConnection: close\n",
"negative_error": "",
"exit_code": 0,
"approved_ranges": "Explicit user approval: current team IPv4 /32 and Docker host tunnel gateway /32",
"no_gitea_change": true,
"caddy_validation": "{\"level\":\"info\",\"ts\":1792624959.8015752,\"msg\":\"using config from file\",\"file\":\"/etc/caddy/Caddyfile\"}\n{\"level\":\"info\",\"ts\":1792624959.809916,\"msg\":\"adapted config to JSON\",\"adapter\":\"caddyfile\"}\n{\"level\":\"warn\",\"ts\":1792624959.8102844,\"msg\":\"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies\",\"adapter\":\"caddyfile\",\"file\":\"/etc/caddy/Caddyfile\",\"line\":2}\n{\"level\":\"info\",\"ts\":1792624959.8118005,\"logger\":\"http.auto_https\",\"msg\":\"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS\",\"server_name\":\"srv0\",\"https_port\":443}\n{\"level\":\"info\",\"ts\":1792624959.8122551,\"logger\":\"http.auto_https\",\"msg\":\"enabling automatic HTTP->HTTPS redirects\",\"server_name\":\"srv0\"}\n{\"level\":\"info\",\"ts\":1792624959.8142786,\"logger\":\"http\",\"msg\":\"servers shutting down with eternal grace period\"}\n{\"level\":\"info\",\"ts\":1792624959.8152323,\"logger\":\"tls.cache.maintenance\",\"msg\":\"started background certificate maintenance\",\"cache\":\"0xc000458a80\"}\n{\"level\":\"info\",\"ts\":1792624959.8164768,\"logger\":\"tls.cache.maintenance\",\"msg\":\"stopped background certificate maintenance\",\"cache\":\"0xc000458a80\"}\nValid configuration\n"
}
+42
View File
@@ -0,0 +1,42 @@
[
{
"branch_name": "main",
"rule_name": "main",
"priority": 1,
"enable_push": false,
"enable_push_whitelist": false,
"push_whitelist_usernames": [],
"push_whitelist_teams": [],
"push_whitelist_deploy_keys": false,
"enable_force_push": false,
"enable_force_push_allowlist": false,
"force_push_allowlist_usernames": [],
"force_push_allowlist_teams": [],
"force_push_allowlist_deploy_keys": false,
"enable_merge_whitelist": false,
"merge_whitelist_usernames": [],
"merge_whitelist_teams": [],
"enable_bypass_allowlist": false,
"bypass_allowlist_usernames": [],
"bypass_allowlist_teams": [],
"enable_status_check": true,
"status_check_contexts": [
"startup-product-ci/pipeline/pr-main"
],
"required_approvals": 1,
"enable_approvals_whitelist": false,
"approvals_whitelist_username": [],
"approvals_whitelist_teams": [],
"block_on_rejected_reviews": true,
"block_on_official_review_requests": false,
"block_on_outdated_branch": false,
"dismiss_stale_approvals": true,
"ignore_stale_approvals": false,
"require_signed_commits": false,
"protected_file_patterns": "",
"unprotected_file_patterns": "",
"block_admin_merge_override": true,
"created_at": "2026-10-21T23:09:26Z",
"updated_at": "2026-10-21T23:09:26Z"
}
]
+17
View File
@@ -0,0 +1,17 @@
{
"checked_at": "2026-10-21T23:35:27.306651+00:00",
"pr": {
"number": 9,
"head": "ed8684a2897c407946320183e572f6412dbb7703",
"merged": false,
"reviews": []
},
"temporary_token_revocation": {
"deleted_token_id": 22,
"deleted_name": "chapter4-setup-20261021",
"persistent_ci_token_untouched": true
},
"revoked_token_http_status": 401,
"raw_setup_and_bot_token_copies_removed": true,
"ci_credential_retained": "Encrypted Jenkins credentials; normal administrator secret store unchanged."
}
+95
View File
@@ -0,0 +1,95 @@
Branch indexing
Looking up repository group10-startup/startup-product
Querying the current revision of pull request #9...
Current revision of pull request #9 is 35605c33b903742cd13d444a1a14d61b07fbaa86
Obtained Jenkinsfile from 35605c33b903742cd13d444a1a14d61b07fbaa86
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/startup-product-ci_PR-9
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 5 min 0 sec
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitea-startup-ci
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository http://gitea:3000/group10-startup/startup-product.git
> git init /var/jenkins_home/workspace/startup-product-ci_PR-9 # timeout=10
Fetching upstream changes from http://gitea:3000/group10-startup/startup-product.git
> git --version # timeout=10
> git --version # 'git version 2.47.3'
using GIT_ASKPASS to set credentials Restricted bot; startup-product repository only
> git fetch --no-tags --force --progress -- http://gitea:3000/group10-startup/startup-product.git +refs/pull/9/head:refs/remotes/origin/PR-9 # timeout=10
> git config remote.origin.url http://gitea:3000/group10-startup/startup-product.git # timeout=10
> git config --add remote.origin.fetch +refs/pull/9/head:refs/remotes/origin/PR-9 # timeout=10
> git config remote.origin.url http://gitea:3000/group10-startup/startup-product.git # timeout=10
Fetching without tags
Fetching upstream changes from http://gitea:3000/group10-startup/startup-product.git
using GIT_ASKPASS to set credentials Restricted bot; startup-product repository only
> git fetch --no-tags --force --progress -- http://gitea:3000/group10-startup/startup-product.git +refs/pull/9/head:refs/remotes/origin/PR-9 # timeout=10
Checking out Revision 35605c33b903742cd13d444a1a14d61b07fbaa86 (codex/chapter4-issue-8)
> git config core.sparsecheckout # timeout=10
> git checkout -f 35605c33b903742cd13d444a1a14d61b07fbaa86 # timeout=10
Commit message: "Add pricing checks and controlled defect for issue #8"
First time build. Skipping changelog.
[Gitea] Notifying pull request build status: PENDING Build started...
[Gitea] Notified
[Pipeline] sh
+ git rev-parse HEAD
35605c33b903742cd13d444a1a14d61b07fbaa86
+ python3 --version
Python 3.13.5
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Syntax check)
[Pipeline] sh
+ python3 -m py_compile pricing.py tests/test_pricing.py
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Unit tests)
[Pipeline] sh
+ python3 -m unittest discover -s tests -v
test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
test_single_item (test_pricing.PricingTests.test_single_item) ... FAIL
test_total (test_pricing.PricingTests.test_total) ... FAIL
======================================================================
FAIL: test_single_item (test_pricing.PricingTests.test_single_item)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/jenkins_home/workspace/startup-product-ci_PR-9/tests/test_pricing.py", line 11, in test_single_item
self.assertEqual(total_price(12.5, 1), 12.5)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 13.5 != 12.5
======================================================================
FAIL: test_total (test_pricing.PricingTests.test_total)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/jenkins_home/workspace/startup-product-ci_PR-9/tests/test_pricing.py", line 8, in test_total
self.assertEqual(total_price(10, 3), 30)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 13 != 30
----------------------------------------------------------------------
Ran 3 tests in 0.005s
FAILED (failures=2)
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
[Gitea] Notifying pull request build status: FAILURE There was a failure building this commit
[Gitea] Notified
[Gitea] do not publish assets due to build being non-Successfully
Finished: FAILURE
Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

+1
View File
@@ -0,0 +1 @@
{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/1/wfapi/describe"}},"id":"1","name":"#1","status":"FAILED","startTimeMillis":1792624122694,"endTimeMillis":1792624177242,"durationMillis":54548,"queueDurationMillis":95,"pauseDurationMillis":0,"stages":[{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/1/execution/node/8/wfapi/describe"}},"id":"8","name":"Checkout","execNode":"","status":"SUCCESS","startTimeMillis":1792624147039,"durationMillis":17686,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/1/execution/node/14/wfapi/describe"}},"id":"14","name":"Syntax check","execNode":"","status":"SUCCESS","startTimeMillis":1792624164984,"durationMillis":1438,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/1/execution/node/19/wfapi/describe"}},"id":"19","name":"Unit tests","execNode":"","status":"FAILED","error":{"message":"script returned exit code 1","type":"hudson.AbortException"},"startTimeMillis":1792624166589,"durationMillis":8677,"pauseDurationMillis":0}]}
+143
View File
@@ -0,0 +1,143 @@
{
"state": "failure",
"sha": "35605c33b903742cd13d444a1a14d61b07fbaa86",
"total_count": 1,
"statuses": [
{
"id": 3,
"status": "failure",
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/1/display/redirect",
"description": "There was a failure building this commit",
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/statuses/35605c33b903742cd13d444a1a14d61b07fbaa86",
"context": "startup-product-ci/pipeline/pr-main",
"creator": {
"id": 13,
"login": "jenkins-ci",
"login_name": "",
"source_id": 0,
"full_name": "",
"email": "13+jenkins-ci@noreply.git.sespinal590.dev",
"avatar_url": "https://git.sespinal590.dev/avatars/c6625ee715debdbdf5ddfde2ed4f987c",
"html_url": "https://git.sespinal590.dev/jenkins-ci",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2026-10-21T23:05:31Z",
"restricted": true,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "",
"visibility": "public",
"followers_count": 0,
"following_count": 0,
"starred_repos_count": 0,
"username": "jenkins-ci"
},
"created_at": "2026-10-21T23:09:38Z",
"updated_at": "2026-10-21T23:09:38Z"
}
],
"repository": {
"id": 1,
"owner": {
"id": 2,
"login": "group10-startup",
"login_name": "",
"source_id": 0,
"full_name": "Group 10 Startup",
"email": "",
"avatar_url": "https://git.sespinal590.dev/avatars/f1149afff214b4ad4a008d22b56ca09a",
"html_url": "https://git.sespinal590.dev/group10-startup",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2026-09-28T23:59:09Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "SSW 590 startup organization for the Gitea foundation assignment.",
"visibility": "public",
"followers_count": 0,
"following_count": 0,
"starred_repos_count": 0,
"username": "group10-startup"
},
"name": "startup-product",
"full_name": "group10-startup/startup-product",
"description": "Product repository for the SSW 590 startup workflow demonstration.",
"empty": false,
"private": false,
"fork": false,
"template": false,
"mirror": false,
"size": 33,
"language": "",
"languages_url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/languages",
"html_url": "https://git.sespinal590.dev/group10-startup/startup-product",
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product",
"link": "",
"ssh_url": "git@git.sespinal590.dev:group10-startup/startup-product.git",
"clone_url": "https://git.sespinal590.dev/group10-startup/startup-product.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 0,
"watchers_count": 1,
"branch_count": 4,
"open_issues_count": 4,
"open_pr_counter": 1,
"release_counter": 0,
"default_branch": "main",
"archived": false,
"created_at": "2026-09-28T23:59:09Z",
"updated_at": "2026-10-21T23:07:44Z",
"archived_at": "1970-01-01T00:00:00Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_code": true,
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": true,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"projects_mode": "all",
"has_releases": true,
"has_packages": true,
"has_actions": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"allow_fast_forward_only_merge": true,
"allow_merge_update": true,
"allow_rebase_update": true,
"allow_manual_merge": false,
"autodetect_manual_merge": false,
"default_delete_branch_after_merge": false,
"default_merge_style": "merge",
"default_update_style": "merge",
"default_allow_maintainer_edit": true,
"avatar_url": "",
"internal": false,
"mirror_interval": "",
"object_format_name": "sha1",
"mirror_updated": "0001-01-01T00:00:00Z",
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
"topics": [],
"licenses": []
},
"commit_url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/commits/35605c33b903742cd13d444a1a14d61b07fbaa86",
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/commits/35605c33b903742cd13d444a1a14d61b07fbaa86/status"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

+58
View File
@@ -0,0 +1,58 @@
{
"checked_at": "2026-10-21T23:15:51.960464+00:00",
"vantage": "External Windows team workstation; IPv4",
"host": "ci.165.227.90.215.sslip.io",
"ipv4": "165.227.90.215",
"ports": [
{
"port": 80,
"result": "OPEN"
},
{
"port": 443,
"result": "OPEN"
},
{
"port": 8080,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 50000,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 3000,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 5432,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
}
],
"http": [
{
"url": "http://ci.165.227.90.215.sslip.io/login",
"curl_exit": 0,
"headers": "HTTP/1.1 308 Permanent Redirect\nConnection: close\nLocation: https://ci.165.227.90.215.sslip.io/login\nServer: Caddy\nDate: Wed, 21 Oct 2026 23:15:54 GMT\n",
"error": ""
},
{
"url": "https://ci.165.227.90.215.sslip.io/login",
"curl_exit": 28,
"headers": "",
"error": "curl: (28) Operation timed out after 25002 milliseconds with 0 bytes received\n"
},
{
"url": "https://git.sespinal590.dev/",
"curl_exit": 0,
"headers": "HTTP/1.1 200 OK\nAlt-Svc: h3=\":443\"; ma=2592000\nDate: Wed, 21 Oct 2026 23:16:20 GMT\nVia: 1.1 Caddy\nX-Content-Type-Options: nosniff\nX-Frame-Options: SAMEORIGIN\n",
"error": ""
}
],
"ipv6_records": [],
"tls_validation": "curl uses the Windows Schannel trust store with verification enabled. The separate Python/OpenSSL attempt reported an expired-chain error; retained as a client trust-store discrepancy, not bypassed."
}
+58
View File
@@ -0,0 +1,58 @@
{
"checked_at": "2026-10-21T23:31:35.061144+00:00",
"vantage": "External Windows team workstation; IPv4",
"host": "ci.165.227.90.215.sslip.io",
"ipv4": "165.227.90.215",
"ports": [
{
"port": 80,
"result": "OPEN"
},
{
"port": 443,
"result": "OPEN"
},
{
"port": 8080,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 50000,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 3000,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 5432,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
}
],
"http": [
{
"url": "http://ci.165.227.90.215.sslip.io/login",
"curl_exit": 0,
"headers": "HTTP/1.1 308 Permanent Redirect\nConnection: close\nLocation: https://ci.165.227.90.215.sslip.io/login\nServer: Caddy\nDate: Wed, 21 Oct 2026 23:31:37 GMT\nContent-Length: 0",
"error": ""
},
{
"url": "https://ci.165.227.90.215.sslip.io/login",
"curl_exit": 0,
"headers": "HTTP/1.1 200 OK\nAlt-Svc: h3=\":443\"; ma=2592000\nCache-Control: no-cache,no-store,must-revalidate\nContent-Type: text/html;charset=utf-8\nDate: Wed, 21 Oct 2026 23:31:38 GMT\nExpires: Thu, 01 Jan 1970 00:00:00 GMT\nServer: Jetty(12.0.25)\nVary: Accept-Encoding\nVia: 1.1 Caddy\nX-Content-Type-Options: nosniff\nX-Frame-Options: sameorigin\nX-Hudson: 1.395\nX-Jenkins: 2.528.1\nX-Jenkins-Session: 17d6caca\nTransfer-Encoding: chunked",
"error": ""
},
{
"url": "https://git.sespinal590.dev/",
"curl_exit": 0,
"headers": "HTTP/1.1 200 OK\nAlt-Svc: h3=\":443\"; ma=2592000\nCache-Control: max-age=0, private, must-revalidate\nContent-Type: text/html; charset=utf-8\nDate: Wed, 21 Oct 2026 23:31:39 GMT\nVia: 1.1 Caddy\nX-Content-Type-Options: nosniff\nX-Frame-Options: SAMEORIGIN\nTransfer-Encoding: chunked",
"error": ""
}
],
"ipv6_records": [],
"tls_validation": "curl uses the Windows Schannel trust store with verification enabled. The separate Python/OpenSSL attempt reported an expired-chain error; retained as a client trust-store discrepancy, not bypassed."
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

@@ -0,0 +1,116 @@
Browser tab: 3, Title: "ssw590-gitea-firewall - DigitalOcean", URL: "https://cloud.digitalocean.com/networking/firewalls/dc253da0-adff-4549-b4d1-ce3cb509914b/droplets?i=d7271a".
0 AXWebArea ssw590-gitea-firewall - DigitalOcean, URL: cloud.digitalocean.com/networking/firewalls/dc253da0-adff-4549-b4d1-ce3cb509914b/droplets?i=d7271a
1 container
2 container root
3 container digitalocean-shell-container
4 container
5 link Description: Skip to main content, Value: cloud.digitalocean.com/networking/firewalls/dc253da0-adff-4549-b4d1-ce3cb509914b/droplets?i=d7271a#content
6 container navigation
7 link cloud.digitalocean.com/
8 content list
9 link Description: Home, Value: cloud.digitalocean.com/dashboard?i=d7271a
10 content list
11 link Description: Launchpad, Value: cloud.digitalocean.com/launchpad?i=d7271a
12 button (collapsed) PROJECTS, Secondary Actions: Expand
13 button (expanded) FAVORITES, Secondary Actions: Collapse
14 content list
15 button Star your favorite
16 button (collapsed) MANAGED AGENTS, Secondary Actions: Expand
17 button (collapsed) INFERENCE ENGINE, Secondary Actions: Expand
18 button (collapsed) DATA & LEARNING, Secondary Actions: Expand
19 button (expanded) CORE CLOUD, Secondary Actions: Collapse
20 content list
21 container
22 link Description: Droplets, Value: cloud.digitalocean.com/droplets?i=d7271a
23 checkbox Description: Add Droplets to favorites, Value: 0
24 container
25 link Description: GPU Droplets, Value: cloud.digitalocean.com/gpus?i=d7271a
26 checkbox Description: Add GPU Droplets to favorites, Value: 0
27 container
28 link Description: MicroVMs NEW, Value: cloud.digitalocean.com/microvms?i=d7271a
29 checkbox Description: Add MicroVMs to favorites, Value: 0
30 container
31 link Description: Kubernetes, Value: cloud.digitalocean.com/kubernetes/clusters?i=d7271a
32 checkbox Description: Add Kubernetes to favorites, Value: 0
33 container
34 link Description: App Platform, Value: cloud.digitalocean.com/apps?i=d7271a
35 checkbox Description: Add App Platform to favorites, Value: 0
36 container
37 link Description: Functions, Value: cloud.digitalocean.com/functions?i=d7271a
38 checkbox Description: Add Functions to favorites, Value: 0
39 container
40 link Description: Networking, Value: cloud.digitalocean.com/networking/domains?i=d7271a
41 checkbox Description: Add Networking to favorites, Value: 0
42 container
43 link Description: Volumes Block Storage, Value: cloud.digitalocean.com/volumes?i=d7271a
44 checkbox Description: Add Volumes Block Storage to favorites, Value: 0
45 container
46 link Description: Backups & Snapshots, Value: cloud.digitalocean.com/images?i=d7271a
47 checkbox Description: Add Backups & Snapshots to favorites, Value: 0
48 container
49 link Description: Container Registry, Value: cloud.digitalocean.com/registry?i=d7271a
50 checkbox Description: Add Container Registry to favorites, Value: 0
51 container
52 link Description: Spaces Object Storage, Value: cloud.digitalocean.com/spaces?i=d7271a
53 checkbox Description: Add Spaces Object Storage to favorites, Value: 0
54 container
55 link Description: Network File Storage, Value: cloud.digitalocean.com/nfs?i=d7271a
56 checkbox Description: Add Network File Storage to favorites, Value: 0
57 button (collapsed) MARKETPLACE, Secondary Actions: Expand
58 content list
59 container
60 link Description: Security NEW, Value: cloud.digitalocean.com/security?i=d7271a
61 checkbox Description: Add Security to favorites, Value: 0
62 button (collapsed) ACCOUNT, Secondary Actions: Expand
63 container
64 combo box (collapsed) Search by resource name or public IP (Ctrl+B), Secondary Actions: Expand
65 text field (settable) Search by resource name or public IP (Ctrl+B), ID: autocomplete-input
66 button create
67 pop up button (collapsed) Description: Support, Secondary Actions: Expand
68 button Change Log
69 pop up button (collapsed) Description: Theme, Secondary Actions: Expand
70 text My Team
71 pop up button (collapsed) Description: User Menu, Secondary Actions: Expand
72 text MT
73 checkbox Description: Toggle GradientAI chatbot, Value: 0
119 container
120 link Description: Back to Firewalls, Value: cloud.digitalocean.com/networking/firewalls?i=d7271a
121 container
122 heading ssw590-gitea-firewall, Value: 1
123 text ssw590-gitea-firewall
124 text 6 Rules / 1 Droplets
125 button dropdown-trigger
126 tab group
127 button Rules
128 tab (selectable, settable, boolean) Rules, Value: 0
129 button Droplets
130 tab (selected, settable, boolean) Droplets, Value: 1
131 heading Droplets, Value: 3
132 text Droplets
133 button Add droplets to firewall
134 text NAME
135 text IP ADDRESS
136 text STATE
137 text ADDED
138 link Description: sergio-ssw590-gitea 512 MB / 10 GB / NYC1, Value: cloud.digitalocean.com/droplets/604497684
139 container
140 text 165.227.90.215
141 button Copy to clipboard
142 text Up to date 25 days ago
143 button dropdown-trigger
105 content list
106 link Description: Support, Value: docs.digitalocean.com/support/
107 link Description: Status, Value: status.digitalocean.com/
108 link Description: Docs, Value: docs.digitalocean.com/
109 link Description: Tutorials, Value: digitalocean.com/community/tutorials
110 link Description: Blog, Value: blog.digitalocean.com/
111 link Description: Pricing, Value: digitalocean.com/pricing
112 link Description: Careers, Value: digitalocean.com/company/careers
113 link Description: Privacy, Value: digitalocean.com/legal/privacy
114 link Description: Terms, Value: digitalocean.com/legal/terms
115 container
116 button Description: Share feedback, ID: share-feedback-button
117 text Share Feedback
118 button Dismiss feedback button
The focused UI element is 0 AXWebArea ssw590-gitea-firewall - DigitalOcean, URL: cloud.digitalocean.com/networking/firewalls/dc253da0-adff-4549-b4d1-ce3cb509914b/droplets?i=d7271a
Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

@@ -0,0 +1,145 @@
Browser tab: 3, Title: "ssw590-gitea-firewall - DigitalOcean", URL: "https://cloud.digitalocean.com/networking/firewalls/dc253da0-adff-4549-b4d1-ce3cb509914b".
0 AXWebArea ssw590-gitea-firewall - DigitalOcean, URL: cloud.digitalocean.com/networking/firewalls/dc253da0-adff-4549-b4d1-ce3cb509914b
1 container
2 container root
3 container digitalocean-shell-container
4 container
5 link Description: Skip to main content, Value: cloud.digitalocean.com/networking/firewalls/dc253da0-adff-4549-b4d1-ce3cb509914b#content
6 container navigation
7 link cloud.digitalocean.com/
8 content list
9 link Description: Home, Value: cloud.digitalocean.com/dashboard?i=d7271a
10 content list
11 link Description: Launchpad, Value: cloud.digitalocean.com/launchpad?i=d7271a
12 button (collapsed) PROJECTS, Secondary Actions: Expand
13 button (expanded) FAVORITES, Secondary Actions: Collapse
14 content list
15 button Star your favorite
16 button (collapsed) MANAGED AGENTS, Secondary Actions: Expand
17 button (collapsed) INFERENCE ENGINE, Secondary Actions: Expand
18 button (collapsed) DATA & LEARNING, Secondary Actions: Expand
19 button (expanded) CORE CLOUD, Secondary Actions: Collapse
20 content list
21 container
22 link Description: Droplets, Value: cloud.digitalocean.com/droplets?i=d7271a
23 checkbox Description: Add Droplets to favorites, Value: 0
24 container
25 link Description: GPU Droplets, Value: cloud.digitalocean.com/gpus?i=d7271a
26 checkbox Description: Add GPU Droplets to favorites, Value: 0
27 container
28 link Description: MicroVMs NEW, Value: cloud.digitalocean.com/microvms?i=d7271a
29 checkbox Description: Add MicroVMs to favorites, Value: 0
30 container
31 link Description: Kubernetes, Value: cloud.digitalocean.com/kubernetes/clusters?i=d7271a
32 checkbox Description: Add Kubernetes to favorites, Value: 0
33 container
34 link Description: App Platform, Value: cloud.digitalocean.com/apps?i=d7271a
35 checkbox Description: Add App Platform to favorites, Value: 0
36 container
37 link Description: Functions, Value: cloud.digitalocean.com/functions?i=d7271a
38 checkbox Description: Add Functions to favorites, Value: 0
39 container
40 link Description: Networking, Value: cloud.digitalocean.com/networking/domains?i=d7271a
41 checkbox Description: Add Networking to favorites, Value: 0
42 container
43 link Description: Volumes Block Storage, Value: cloud.digitalocean.com/volumes?i=d7271a
44 checkbox Description: Add Volumes Block Storage to favorites, Value: 0
45 container
46 link Description: Backups & Snapshots, Value: cloud.digitalocean.com/images?i=d7271a
47 checkbox Description: Add Backups & Snapshots to favorites, Value: 0
48 container
49 link Description: Container Registry, Value: cloud.digitalocean.com/registry?i=d7271a
50 checkbox Description: Add Container Registry to favorites, Value: 0
51 container
52 link Description: Spaces Object Storage, Value: cloud.digitalocean.com/spaces?i=d7271a
53 checkbox Description: Add Spaces Object Storage to favorites, Value: 0
54 container
55 link Description: Network File Storage, Value: cloud.digitalocean.com/nfs?i=d7271a
56 checkbox Description: Add Network File Storage to favorites, Value: 0
57 button (collapsed) MARKETPLACE, Secondary Actions: Expand
58 content list
59 container
60 link Description: Security NEW, Value: cloud.digitalocean.com/security?i=d7271a
61 checkbox Description: Add Security to favorites, Value: 0
62 button (collapsed) ACCOUNT, Secondary Actions: Expand
63 container
64 combo box (collapsed) Search by resource name or public IP (Ctrl+B), Secondary Actions: Expand
65 text field (settable) Search by resource name or public IP (Ctrl+B), ID: autocomplete-input
66 button create
67 pop up button (collapsed) Description: Support, Secondary Actions: Expand
68 button Change Log
69 pop up button (collapsed) Description: Theme, Secondary Actions: Expand
70 text My Team
71 pop up button (collapsed) Description: User Menu, Secondary Actions: Expand
72 text MT
73 checkbox Description: Toggle GradientAI chatbot, Value: 0
119 container
120 link Description: Back to Firewalls, Value: cloud.digitalocean.com/networking/firewalls?i=d7271a
121 container
122 heading ssw590-gitea-firewall, Value: 1
123 text ssw590-gitea-firewall
124 text 6 Rules / 1 Droplets
125 button dropdown-trigger
126 tab group
127 button Rules
128 tab (selected, settable, boolean) Rules, Value: 1
129 button Droplets
130 tab (selectable, settable, boolean) Droplets, Value: 0
131 text Search rules
132 search text field (settable) Search rules, ID: firewall-rules-search
133 button Filter
134 text Filters inbound and outbound rule tables.
135 heading Inbound rules, Value: 3
136 text Inbound rules
137 button Add inbound rule
138 text Inbound firewall rules define which inbound traffic is permitted or denied for your Droplets based on ports and sources. All other incoming traffic is blocked.
139 container
140 text ACTION
141 text TYPE
142 text PROTOCOL
143 text PORT RANGE
144 text SOURCES
145 container
146 text Allow SSH TCP 22 All IPv4 108.35.145.74/32
147 button dropdown-trigger
148 container
149 text Allow HTTP TCP 80 All IPv4 All IPv6
150 button dropdown-trigger
151 container
152 text Allow HTTPS TCP 443 All IPv4 All IPv6
153 button dropdown-trigger
154 heading Outbound rules, Value: 3
155 text Outbound rules
156 button Add outbound rule
157 text Outbound firewall rules define which outbound traffic is permitted or denied from your Droplets based on ports and destinations. All other outgoing traffic is blocked.
158 container
159 text ACTION
160 text TYPE
161 text PROTOCOL
162 text PORT RANGE
163 text DESTINATIONS
164 container
165 text Allow ICMP ICMP All IPv4 All IPv6
166 button dropdown-trigger
167 container
168 text Allow All TCP TCP All Ports All IPv4 All IPv6
169 button dropdown-trigger
170 container
171 text Allow All UDP UDP All Ports All IPv4 All IPv6
172 button dropdown-trigger
105 content list
106 link Description: Support, Value: docs.digitalocean.com/support/
107 link Description: Status, Value: status.digitalocean.com/
108 link Description: Docs, Value: docs.digitalocean.com/
109 link Description: Tutorials, Value: digitalocean.com/community/tutorials
110 link Description: Blog, Value: blog.digitalocean.com/
111 link Description: Pricing, Value: digitalocean.com/pricing
112 link Description: Careers, Value: digitalocean.com/company/careers
113 link Description: Privacy, Value: digitalocean.com/legal/privacy
114 link Description: Terms, Value: digitalocean.com/legal/terms
115 container
116 button Description: Share feedback, ID: share-feedback-button
117 text Share Feedback
118 button Dismiss feedback button
The focused UI element is 0 AXWebArea ssw590-gitea-firewall - DigitalOcean, URL: cloud.digitalocean.com/networking/firewalls/dc253da0-adff-4549-b4d1-ce3cb509914b
@@ -0,0 +1,63 @@
{
"observed_local_date": "2026-10-23",
"captured_at": "2026-10-24T02:13:26.842444+00:00",
"source": "Authenticated DigitalOcean console via user sign-in; visible Rules and Droplets tabs",
"firewall_name": "ssw590-gitea-firewall",
"firewall_id": "dc253da0-adff-4549-b4d1-ce3cb509914b",
"droplet_id": 604497684,
"droplet_ip": "165.227.90.215",
"attachment_status": "Up to date",
"inbound": [
{
"protocol": "tcp",
"port": 22,
"sources": [
"All IPv4",
"108.35.145.74/32"
]
},
{
"protocol": "tcp",
"port": 80,
"sources": [
"All IPv4",
"All IPv6"
]
},
{
"protocol": "tcp",
"port": 443,
"sources": [
"All IPv4",
"All IPv6"
]
}
],
"outbound": [
{
"protocol": "icmp",
"destinations": [
"All IPv4",
"All IPv6"
]
},
{
"protocol": "tcp",
"ports": "all",
"destinations": [
"All IPv4",
"All IPv6"
]
},
{
"protocol": "udp",
"ports": "all",
"destinations": [
"All IPv4",
"All IPv6"
]
}
],
"changes_made": false,
"limitation": "SSH is globally allowed over IPv4; the additional /32 does not narrow All IPv4. No public IPv6 assigned to the host."
}
+70
View File
@@ -0,0 +1,70 @@
Branch indexing
Looking up repository group10-startup/startup-product
Querying the current revision of branch main...
Current revision of branch main is 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065
Obtained Jenkinsfile from 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor
Running on Jenkins in /var/jenkins_home/workspace/startup-product-ci_main
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 5 min 0 sec
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitea-startup-ci
> git rev-parse --resolve-git-dir /var/jenkins_home/workspace/startup-product-ci_main/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://gitea:3000/group10-startup/startup-product.git # timeout=10
Fetching without tags
Fetching upstream changes from http://gitea:3000/group10-startup/startup-product.git
> git --version # timeout=10
> git --version # 'git version 2.47.3'
using GIT_ASKPASS to set credentials Restricted bot; startup-product repository only
> git fetch --no-tags --force --progress -- http://gitea:3000/group10-startup/startup-product.git +refs/heads/main:refs/remotes/origin/main # timeout=10
Checking out Revision 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065 (main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065 # timeout=10
Commit message: "Merge PR #9: Chapter 4 Jenkins failure and repair"
> git rev-list --no-walk b0eee02470f4d3bace433ce484ba2119bc7df595 # timeout=10
[Gitea] Notifying branch build status: PENDING Build started...
[Gitea] Notified
[Pipeline] sh
+ git rev-parse HEAD
6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065
+ python3 --version
Python 3.13.5
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Syntax check)
[Pipeline] sh
+ python3 -m py_compile pricing.py tests/test_pricing.py
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Unit tests)
[Pipeline] sh
+ python3 -m unittest discover -s tests -v
test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
test_single_item (test_pricing.PricingTests.test_single_item) ... ok
test_total (test_pricing.PricingTests.test_total) ... ok
----------------------------------------------------------------------
Ran 3 tests in 0.001s
OK
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
[Gitea] Notifying branch build status: SUCCESS This commit looks good
[Gitea] Notified
Finished: SUCCESS
+47
View File
@@ -0,0 +1,47 @@
{
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"actions": [
{
"_class": "hudson.model.CauseAction",
"causes": [
{
"_class": "jenkins.branch.BranchIndexingCause",
"shortDescription": "Branch indexing"
}
]
},
{
"_class": "jenkins.scm.api.SCMRevisionAction"
},
{
"_class": "org.jenkinsci.plugins.workflow.libs.LibrariesAction"
},
{},
{},
{
"_class": "hudson.plugins.git.util.BuildData",
"lastBuiltRevision": {
"SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065"
}
},
{},
{},
{
"_class": "org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction"
},
{
"_class": "org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartDeclarativePipelineAction"
},
{},
{
"_class": "org.jenkinsci.plugins.workflow.job.views.FlowGraphAction"
},
{},
{}
],
"building": false,
"number": 2,
"result": "SUCCESS",
"timestamp": 1792800375385,
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/2/"
}
+1
View File
@@ -0,0 +1 @@
{"_links":{"self":{"href":"/job/startup-product-ci/job/main/lastBuild/wfapi/describe"},"changesets":{"href":"/job/startup-product-ci/job/main/lastBuild/wfapi/changesets"}},"id":"2","name":"#2","status":"SUCCESS","startTimeMillis":1792800375456,"endTimeMillis":1792800439204,"durationMillis":63748,"queueDurationMillis":71,"pauseDurationMillis":0,"stages":[{"_links":{"self":{"href":"/job/startup-product-ci/job/main/lastBuild/execution/node/8/wfapi/describe"}},"id":"8","name":"Checkout","execNode":"","status":"SUCCESS","startTimeMillis":1792800432466,"durationMillis":3938,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/main/lastBuild/execution/node/14/wfapi/describe"}},"id":"14","name":"Syntax check","execNode":"","status":"SUCCESS","startTimeMillis":1792800436546,"durationMillis":936,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/main/lastBuild/execution/node/19/wfapi/describe"}},"id":"19","name":"Unit tests","execNode":"","status":"SUCCESS","startTimeMillis":1792800437594,"durationMillis":995,"pauseDurationMillis":0}]}
+140
View File
@@ -0,0 +1,140 @@
{
"checked_at": "2026-10-24T00:05:21.689184+00:00",
"authorization": "Sergio explicitly authorized a transparent merge without peer approval on October 23, 2026. No Turan review claimed.",
"protection_before": {
"branch_name": "main",
"rule_name": "main",
"priority": 1,
"enable_push": false,
"enable_push_whitelist": false,
"push_whitelist_usernames": [],
"push_whitelist_teams": [],
"push_whitelist_deploy_keys": false,
"enable_force_push": false,
"enable_force_push_allowlist": false,
"force_push_allowlist_usernames": [],
"force_push_allowlist_teams": [],
"force_push_allowlist_deploy_keys": false,
"enable_merge_whitelist": false,
"merge_whitelist_usernames": [],
"merge_whitelist_teams": [],
"enable_bypass_allowlist": false,
"bypass_allowlist_usernames": [],
"bypass_allowlist_teams": [],
"enable_status_check": true,
"status_check_contexts": [
"startup-product-ci/pipeline/pr-main"
],
"required_approvals": 1,
"enable_approvals_whitelist": false,
"approvals_whitelist_username": [],
"approvals_whitelist_teams": [],
"block_on_rejected_reviews": true,
"block_on_official_review_requests": false,
"block_on_outdated_branch": false,
"dismiss_stale_approvals": true,
"ignore_stale_approvals": false,
"require_signed_commits": false,
"protected_file_patterns": "",
"unprotected_file_patterns": "",
"block_admin_merge_override": true,
"created_at": "2026-10-21T23:09:26Z",
"updated_at": "2026-10-24T00:04:40Z"
},
"temporary_protection": {
"branch_name": "main",
"rule_name": "main",
"priority": 1,
"enable_push": false,
"enable_push_whitelist": false,
"push_whitelist_usernames": [],
"push_whitelist_teams": [],
"push_whitelist_deploy_keys": false,
"enable_force_push": false,
"enable_force_push_allowlist": false,
"force_push_allowlist_usernames": [],
"force_push_allowlist_teams": [],
"force_push_allowlist_deploy_keys": false,
"enable_merge_whitelist": false,
"merge_whitelist_usernames": [],
"merge_whitelist_teams": [],
"enable_bypass_allowlist": false,
"bypass_allowlist_usernames": [],
"bypass_allowlist_teams": [],
"enable_status_check": true,
"status_check_contexts": [
"startup-product-ci/pipeline/pr-main"
],
"required_approvals": 0,
"enable_approvals_whitelist": false,
"approvals_whitelist_username": [],
"approvals_whitelist_teams": [],
"block_on_rejected_reviews": true,
"block_on_official_review_requests": false,
"block_on_outdated_branch": false,
"dismiss_stale_approvals": true,
"ignore_stale_approvals": false,
"require_signed_commits": false,
"protected_file_patterns": "",
"unprotected_file_patterns": "",
"block_admin_merge_override": true,
"created_at": "2026-10-21T23:09:26Z",
"updated_at": "2026-10-24T00:05:22Z"
},
"merge_response": null,
"protection_after": {
"branch_name": "main",
"rule_name": "main",
"priority": 1,
"enable_push": false,
"enable_push_whitelist": false,
"push_whitelist_usernames": [],
"push_whitelist_teams": [],
"push_whitelist_deploy_keys": false,
"enable_force_push": false,
"enable_force_push_allowlist": false,
"force_push_allowlist_usernames": [],
"force_push_allowlist_teams": [],
"force_push_allowlist_deploy_keys": false,
"enable_merge_whitelist": false,
"merge_whitelist_usernames": [],
"merge_whitelist_teams": [],
"enable_bypass_allowlist": false,
"bypass_allowlist_usernames": [],
"bypass_allowlist_teams": [],
"enable_status_check": true,
"status_check_contexts": [
"startup-product-ci/pipeline/pr-main"
],
"required_approvals": 1,
"enable_approvals_whitelist": false,
"approvals_whitelist_username": [],
"approvals_whitelist_teams": [],
"block_on_rejected_reviews": true,
"block_on_official_review_requests": false,
"block_on_outdated_branch": false,
"dismiss_stale_approvals": true,
"ignore_stale_approvals": false,
"require_signed_commits": false,
"protected_file_patterns": "",
"unprotected_file_patterns": "",
"block_admin_merge_override": true,
"created_at": "2026-10-21T23:09:26Z",
"updated_at": "2026-10-24T00:05:27Z"
},
"pr_after": {
"number": 9,
"state": "closed",
"merged": true,
"merged_at": "2026-10-24T00:05:26Z",
"merge_commit_sha": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065",
"html_url": "https://git.sespinal590.dev/group10-startup/startup-product/pulls/9"
},
"reviews_after": [],
"issue_after": {
"html_url": "https://git.sespinal590.dev/group10-startup/startup-product/issues/8",
"number": 8,
"state": "closed",
"closed_at": "2026-10-24T00:05:26Z"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

+58
View File
@@ -0,0 +1,58 @@
{
"checked_at": "2026-10-24T00:01:12.271736+00:00",
"vantage": "External Windows team workstation; IPv4",
"host": "ci.165.227.90.215.sslip.io",
"ipv4": "165.227.90.215",
"ports": [
{
"port": 80,
"result": "OPEN"
},
{
"port": 443,
"result": "OPEN"
},
{
"port": 8080,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 50000,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 3000,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
},
{
"port": 5432,
"result": "BLOCKED/UNREACHABLE",
"detail": "TimeoutError"
}
],
"http": [
{
"url": "http://ci.165.227.90.215.sslip.io/login",
"curl_exit": 0,
"headers": "HTTP/1.1 308 Permanent Redirect\nConnection: close\nLocation: https://ci.165.227.90.215.sslip.io/login\nServer: Caddy\nDate: Sat, 24 Oct 2026 00:01:17 GMT\nContent-Length: 0\n",
"error": ""
},
{
"url": "https://ci.165.227.90.215.sslip.io/login",
"curl_exit": 0,
"headers": "HTTP/1.1 403 Forbidden\nAlt-Svc: h3=\":443\"; ma=2592000\nContent-Type: text/plain; charset=utf-8\nServer: Caddy\nDate: Sat, 24 Oct 2026 00:01:18 GMT\nContent-Length: 72\n",
"error": ""
},
{
"url": "https://git.sespinal590.dev/",
"curl_exit": 0,
"headers": "HTTP/1.1 200 OK\nAlt-Svc: h3=\":443\"; ma=2592000\nCache-Control: max-age=0, private, must-revalidate\nContent-Type: text/html; charset=utf-8\nDate: Sat, 24 Oct 2026 00:01:18 GMT\nVia: 1.1 Caddy\nX-Content-Type-Options: nosniff\nX-Frame-Options: SAMEORIGIN\nTransfer-Encoding: chunked\n",
"error": ""
}
],
"ipv6_records": [],
"tls_validation": "curl uses the Windows Schannel trust store with verification enabled. No TLS verification bypass is used in this dated check."
}
+16
View File
@@ -0,0 +1,16 @@
{
"pr": 9,
"status": "success",
"checked_at": "2026-10-23T20:00:24.2593762-04:00",
"head": "ed8684a2897c407946320183e572f6412dbb7703",
"checks": [
{
"context": "startup-product-ci/pipeline/pr-main",
"status": "success",
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/display/redirect"
}
],
"reviews": [],
"state": "open",
"merged": false
}
+68
View File
@@ -0,0 +1,68 @@
Branch indexing
Looking up repository group10-startup/startup-product
Querying the current revision of pull request #9...
Current revision of pull request #9 is ed8684a2897c407946320183e572f6412dbb7703
Obtained Jenkinsfile from ed8684a2897c407946320183e572f6412dbb7703
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/startup-product-ci_PR-9
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 5 min 0 sec
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] checkout
The recommended git tool is: NONE
using credential gitea-startup-ci
> git rev-parse --resolve-git-dir /var/jenkins_home/workspace/startup-product-ci_PR-9/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url http://gitea:3000/group10-startup/startup-product.git # timeout=10
Fetching without tags
Fetching upstream changes from http://gitea:3000/group10-startup/startup-product.git
> git --version # timeout=10
> git --version # 'git version 2.47.3'
using GIT_ASKPASS to set credentials Restricted bot; startup-product repository only
> git fetch --no-tags --force --progress -- http://gitea:3000/group10-startup/startup-product.git +refs/pull/9/head:refs/remotes/origin/PR-9 # timeout=10
Checking out Revision ed8684a2897c407946320183e572f6412dbb7703 (codex/chapter4-issue-8)
> git config core.sparsecheckout # timeout=10
> git checkout -f ed8684a2897c407946320183e572f6412dbb7703 # timeout=10
Commit message: "Fix pricing multiplication and document clean CI run for issue #8"
> git rev-list --no-walk 35605c33b903742cd13d444a1a14d61b07fbaa86 # timeout=10
[Gitea] Notifying pull request build status: PENDING Build started...
[Gitea] Notified
[Pipeline] sh
+ git rev-parse HEAD
ed8684a2897c407946320183e572f6412dbb7703
+ python3 --version
Python 3.13.5
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Syntax check)
[Pipeline] sh
+ python3 -m py_compile pricing.py tests/test_pricing.py
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Unit tests)
[Pipeline] sh
+ python3 -m unittest discover -s tests -v
test_invalid_quantity (test_pricing.PricingTests.test_invalid_quantity) ... ok
test_single_item (test_pricing.PricingTests.test_single_item) ... ok
test_total (test_pricing.PricingTests.test_total) ... ok
----------------------------------------------------------------------
Ran 3 tests in 0.000s
OK
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
[Gitea] Notifying pull request build status: SUCCESS This commit looks good
[Gitea] Notified
Finished: SUCCESS
Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

+1
View File
@@ -0,0 +1 @@
{"_class":"org.jenkinsci.plugins.workflow.job.WorkflowRun","actions":[{"_class":"hudson.model.CauseAction","causes":[{"_class":"jenkins.branch.BranchIndexingCause","shortDescription":"Branch indexing"}]},{"_class":"jenkins.scm.api.SCMRevisionAction"},{"_class":"org.jenkinsci.plugins.workflow.libs.LibrariesAction"},{},{},{"_class":"hudson.plugins.git.util.BuildData","lastBuiltRevision":{"SHA1":"ed8684a2897c407946320183e572f6412dbb7703"}},{},{},{"_class":"org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction"},{"_class":"org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartDeclarativePipelineAction"},{},{"_class":"org.jenkinsci.plugins.workflow.job.views.FlowGraphAction"},{},{}],"building":false,"duration":16028,"number":2,"result":"SUCCESS","timestamp":1792624339880,"url":"https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/"}
+1
View File
@@ -0,0 +1 @@
{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/2/wfapi/describe"},"changesets":{"href":"/job/startup-product-ci/job/PR-9/2/wfapi/changesets"}},"id":"2","name":"#2","status":"SUCCESS","startTimeMillis":1792624339917,"endTimeMillis":1792624355945,"durationMillis":16028,"queueDurationMillis":37,"pauseDurationMillis":0,"stages":[{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/2/execution/node/8/wfapi/describe"}},"id":"8","name":"Checkout","execNode":"","status":"SUCCESS","startTimeMillis":1792624349444,"durationMillis":3673,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/2/execution/node/14/wfapi/describe"}},"id":"14","name":"Syntax check","execNode":"","status":"SUCCESS","startTimeMillis":1792624353234,"durationMillis":636,"pauseDurationMillis":0},{"_links":{"self":{"href":"/job/startup-product-ci/job/PR-9/2/execution/node/19/wfapi/describe"}},"id":"19","name":"Unit tests","execNode":"","status":"SUCCESS","startTimeMillis":1792624353998,"durationMillis":948,"pauseDurationMillis":0}]}
+143
View File
@@ -0,0 +1,143 @@
{
"state": "success",
"sha": "ed8684a2897c407946320183e572f6412dbb7703",
"total_count": 1,
"statuses": [
{
"id": 3,
"status": "success",
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/display/redirect",
"description": "This commit looks good",
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/statuses/ed8684a2897c407946320183e572f6412dbb7703",
"context": "startup-product-ci/pipeline/pr-main",
"creator": {
"id": 13,
"login": "jenkins-ci",
"login_name": "",
"source_id": 0,
"full_name": "",
"email": "13+jenkins-ci@noreply.git.sespinal590.dev",
"avatar_url": "https://git.sespinal590.dev/avatars/c6625ee715debdbdf5ddfde2ed4f987c",
"html_url": "https://git.sespinal590.dev/jenkins-ci",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2026-10-21T23:05:31Z",
"restricted": true,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "",
"visibility": "public",
"followers_count": 0,
"following_count": 0,
"starred_repos_count": 0,
"username": "jenkins-ci"
},
"created_at": "2026-10-21T23:12:36Z",
"updated_at": "2026-10-21T23:12:36Z"
}
],
"repository": {
"id": 1,
"owner": {
"id": 2,
"login": "group10-startup",
"login_name": "",
"source_id": 0,
"full_name": "Group 10 Startup",
"email": "",
"avatar_url": "https://git.sespinal590.dev/avatars/f1149afff214b4ad4a008d22b56ca09a",
"html_url": "https://git.sespinal590.dev/group10-startup",
"language": "",
"is_admin": false,
"last_login": "0001-01-01T00:00:00Z",
"created": "2026-09-28T23:59:09Z",
"restricted": false,
"active": false,
"prohibit_login": false,
"location": "",
"website": "",
"description": "SSW 590 startup organization for the Gitea foundation assignment.",
"visibility": "public",
"followers_count": 0,
"following_count": 0,
"starred_repos_count": 0,
"username": "group10-startup"
},
"name": "startup-product",
"full_name": "group10-startup/startup-product",
"description": "Product repository for the SSW 590 startup workflow demonstration.",
"empty": false,
"private": false,
"fork": false,
"template": false,
"mirror": false,
"size": 35,
"language": "",
"languages_url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/languages",
"html_url": "https://git.sespinal590.dev/group10-startup/startup-product",
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product",
"link": "",
"ssh_url": "git@git.sespinal590.dev:group10-startup/startup-product.git",
"clone_url": "https://git.sespinal590.dev/group10-startup/startup-product.git",
"original_url": "",
"website": "",
"stars_count": 0,
"forks_count": 0,
"watchers_count": 1,
"branch_count": 4,
"open_issues_count": 4,
"open_pr_counter": 1,
"release_counter": 0,
"default_branch": "main",
"archived": false,
"created_at": "2026-09-28T23:59:09Z",
"updated_at": "2026-10-21T23:11:41Z",
"archived_at": "1970-01-01T00:00:00Z",
"permissions": {
"admin": true,
"push": true,
"pull": true
},
"has_code": true,
"has_issues": true,
"internal_tracker": {
"enable_time_tracker": true,
"allow_only_contributors_to_track_time": true,
"enable_issue_dependencies": true
},
"has_wiki": true,
"has_pull_requests": true,
"has_projects": true,
"projects_mode": "all",
"has_releases": true,
"has_packages": true,
"has_actions": true,
"ignore_whitespace_conflicts": false,
"allow_merge_commits": true,
"allow_rebase": true,
"allow_rebase_explicit": true,
"allow_squash_merge": true,
"allow_fast_forward_only_merge": true,
"allow_merge_update": true,
"allow_rebase_update": true,
"allow_manual_merge": false,
"autodetect_manual_merge": false,
"default_delete_branch_after_merge": false,
"default_merge_style": "merge",
"default_update_style": "merge",
"default_allow_maintainer_edit": true,
"avatar_url": "",
"internal": false,
"mirror_interval": "",
"object_format_name": "sha1",
"mirror_updated": "0001-01-01T00:00:00Z",
"mirror_last_sync_at": "0001-01-01T00:00:00Z",
"topics": [],
"licenses": []
},
"commit_url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/commits/ed8684a2897c407946320183e572f6412dbb7703",
"url": "https://git.sespinal590.dev/api/v1/repos/group10-startup/startup-product/commits/ed8684a2897c407946320183e572f6412dbb7703/status"
}
+1
View File
@@ -0,0 +1 @@
\textbf{Restart persistence passed.} On October 21, 2026, 23:17:18--23:18:07 UTC, the idle Jenkins container was restarted. The multibranch configuration SHA-256 stayed identical (\texttt{c34e6ff6} prefix); the configured job and PR-9 run~2 remained present with result SUCCESS. The HTTPS base URL, single controller executor, periodic scan and zero failed plugins were rechecked afterward. The full before/after record is retained in \nolinkurl{evidence/chapter4/persistence.json}. This was a restart test, not a backup/restore or container-recreation test.
+21
View File
@@ -0,0 +1,21 @@
{
"started_at": "2026-10-21T23:17:18.699535+00:00",
"before": {
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number": 2,
"result": "SUCCESS",
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/"
},
"job_config_sha256_before": "c34e6ff6ca692bd3d5aae08029ed817d302747c9f78d2a9f685b3f98311d1a75",
"after": {
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"number": 2,
"result": "SUCCESS",
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/PR-9/2/"
},
"job_config_sha256_after": "c34e6ff6ca692bd3d5aae08029ed817d302747c9f78d2a9f685b3f98311d1a75",
"completed_at": "2026-10-21T23:18:07.239671+00:00",
"passed": true,
"scope": "Container restart persistence; not a backup/restore test or container-recreation test.",
"settings": "executors=1\nurl=https://ci.165.227.90.215.sslip.io/\nfailedPlugins=[]\npolling=[com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger$DescriptorImpl@7064187:com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger@59146576[* * * * *]]\n"
}
@@ -0,0 +1,4 @@
Update-center refresh: [[default, OK: <div/>]]
Installed plugins with available updates: [{"name":"asm-api","installed":"9.10.1-216.va_9256d3b_844b_","available":"9.11.1-226.vff833a_e4c58e"},{"name":"bouncycastle-api","installed":"2.30.1.82-277.v70ca_0b_877184","available":"2.30.1.86.2-310.v4655f6742752"},{"name":"caffeine-api","installed":"3.2.3-194.v31a_b_f7a_b_5a_81","available":"3.3.1-214.v18eb_56b_34920"},{"name":"command-launcher","installed":"123.v37cfdc92ef67","available":"141.v9578cf36b_311"},{"name":"eddsa-api","installed":"0.3.0.1-19.vc432d923e5ee","available":"0.3.0.1-29.v67e9a_1c969b_b_"},{"name":"git","installed":"5.10.1","available":"5.11.0"},{"name":"gson-api","installed":"2.13.2-173.va_a_092315913c","available":"2.14.0-201.v8eefe5515533"},{"name":"jaxb","installed":"2.3.9-133.vb_ec76a_73f706","available":"2.3.9-143.v5979df3304e6"},{"name":"mina-sshd-api-common","installed":"2.16.0-167.va_269f38cc024","available":"2.19.0-192.v2b_a_7b_2c1dc71"},{"name":"mina-sshd-api-core","installed":"2.16.0-167.va_269f38cc024","available":"2.19.0-192.v2b_a_7b_2c1dc71"},{"name":"script-security","installed":"1399.ve6a_66547f6e1","available":"1436.v1082791135e4"},{"name":"sshd","installed":"3.374.v19b_d59ce6610","available":"3.384.vc89b_5e138cf9"},{"name":"trilead-api","installed":"2.209.v0e69b_c43c245","available":"2.284.v1974ea_324382"},{"name":"workflow-job","installed":"1571.1580.v18e46842c125","available":"1571.1585.v21fce07cd04d"}]
Core: 2.528.1
@@ -0,0 +1,7 @@
{
"manual_branch": "codex/chapter4-jenkins-evidence",
"commit": "da0577e435e61f87a36f041f703131412979f801",
"verified_remote": "da0577e435e61f87a36f041f703131412979f801",
"url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/codex/chapter4-jenkins-evidence",
"main_changed": false
}
+468
View File
@@ -0,0 +1,468 @@
{
"repository": "group10-startup/startup-product",
"bot": "jenkins-ci",
"issue": 8,
"branch": "codex/chapter4-issue-8",
"failed_commit": "35605c33b903742cd13d444a1a14d61b07fbaa86",
"pr": 9,
"pr_url": "https://git.sespinal590.dev/group10-startup/startup-product/pulls/9",
"context": "startup-product-ci/pipeline/pr-main",
"repair_commit": "ed8684a2897c407946320183e572f6412dbb7703",
"repair_pushed_at": "2026-10-21T23:11:38.223025+00:00",
"collected_at": "2026-10-21T23:13:47.679498+00:00",
"merged": false,
"head": "ed8684a2897c407946320183e572f6412dbb7703",
"reviews": [],
"plugins": [
{
"shortName": "apache-httpcomponents-client-4-api",
"version": "4.5.14-269.vfa_2321039a_83",
"active": true,
"enabled": true
},
{
"shortName": "asm-api",
"version": "9.10.1-216.va_9256d3b_844b_",
"active": true,
"enabled": true
},
{
"shortName": "authentication-tokens",
"version": "1.144.v5ff4a_5ec5c33",
"active": true,
"enabled": true
},
{
"shortName": "bouncycastle-api",
"version": "2.30.1.82-277.v70ca_0b_877184",
"active": true,
"enabled": true
},
{
"shortName": "branch-api",
"version": "2.1303.v9f3b_95dc329d",
"active": true,
"enabled": true
},
{
"shortName": "caffeine-api",
"version": "3.2.3-194.v31a_b_f7a_b_5a_81",
"active": true,
"enabled": true
},
{
"shortName": "checks-api",
"version": "422.vc7e8b_51488c6",
"active": true,
"enabled": true
},
{
"shortName": "cloudbees-folder",
"version": "6.1106.v3a_d9a_6d2465e",
"active": true,
"enabled": true
},
{
"shortName": "command-launcher",
"version": "123.v37cfdc92ef67",
"active": true,
"enabled": true
},
{
"shortName": "commons-lang3-api",
"version": "3.21.0-122.v6a_ea_4fd34049",
"active": true,
"enabled": true
},
{
"shortName": "commons-text-api",
"version": "1.15.0-218.va_61573470393",
"active": true,
"enabled": true
},
{
"shortName": "credentials-binding",
"version": "728.v902a_273b_8947",
"active": true,
"enabled": true
},
{
"shortName": "credentials",
"version": "1487.va_d001ede2c31",
"active": true,
"enabled": true
},
{
"shortName": "display-url-api",
"version": "2.217.va_6b_de84cc74b_",
"active": true,
"enabled": true
},
{
"shortName": "durable-task",
"version": "686.v80ff80875b_82",
"active": true,
"enabled": true
},
{
"shortName": "eddsa-api",
"version": "0.3.0.1-19.vc432d923e5ee",
"active": true,
"enabled": true
},
{
"shortName": "git-client",
"version": "6.6.1",
"active": true,
"enabled": true
},
{
"shortName": "git",
"version": "5.10.1",
"active": true,
"enabled": true
},
{
"shortName": "gitea-checks",
"version": "604.638.ve9e5472551b_3",
"active": true,
"enabled": true
},
{
"shortName": "gitea",
"version": "273.vb_78d13f6d9a_d",
"active": true,
"enabled": true
},
{
"shortName": "gson-api",
"version": "2.13.2-173.va_a_092315913c",
"active": true,
"enabled": true
},
{
"shortName": "handy-uri-templates-2-api",
"version": "2.1.8-38.vcea_5d521d5f3",
"active": true,
"enabled": true
},
{
"shortName": "instance-identity",
"version": "203.v15e81a_1b_7a_38",
"active": true,
"enabled": true
},
{
"shortName": "ionicons-api",
"version": "94.vcc3065403257",
"active": true,
"enabled": true
},
{
"shortName": "jackson-annotations2-api",
"version": "2.22-19.v10a_a_582ea_26e",
"active": true,
"enabled": true
},
{
"shortName": "jackson2-api",
"version": "2.21.2-436.v29efdb_7418ff",
"active": true,
"enabled": true
},
{
"shortName": "jakarta-activation-api",
"version": "2.1.4-1",
"active": true,
"enabled": true
},
{
"shortName": "jakarta-mail-api",
"version": "2.1.5-1",
"active": true,
"enabled": true
},
{
"shortName": "jakarta-xml-bind-api",
"version": "4.0.9-19.v2b_a_5b_44d9a_1c",
"active": true,
"enabled": true
},
{
"shortName": "javax-activation-api",
"version": "1.2.0-8",
"active": true,
"enabled": true
},
{
"shortName": "javax-mail-api",
"version": "1.6.2-11",
"active": true,
"enabled": true
},
{
"shortName": "jaxb",
"version": "2.3.9-133.vb_ec76a_73f706",
"active": true,
"enabled": true
},
{
"shortName": "jdk-tool",
"version": "83.v417146707a_3d",
"active": true,
"enabled": true
},
{
"shortName": "joda-time-api",
"version": "2.15.0-208.v6b_084e7a_d9f0",
"active": true,
"enabled": true
},
{
"shortName": "json-api",
"version": "20260814-226.v20f9685d642c",
"active": true,
"enabled": true
},
{
"shortName": "mailer",
"version": "534.v1b_36f5864073",
"active": true,
"enabled": true
},
{
"shortName": "mina-sshd-api-common",
"version": "2.16.0-167.va_269f38cc024",
"active": true,
"enabled": true
},
{
"shortName": "mina-sshd-api-core",
"version": "2.16.0-167.va_269f38cc024",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-build-step",
"version": "601.v6d4c6d1a_9dc7",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-graph-analysis",
"version": "254.v0f63a_a_447dca_",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-groovy-lib",
"version": "798.v5cc688825312",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-input-step",
"version": "560.v56198a_642157",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-milestone-step",
"version": "152.v6e22b_8cfc66c",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-model-api",
"version": "2.2293.v6e7193cec599",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-model-definition",
"version": "2.2293.v6e7193cec599",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-model-extensions",
"version": "2.2293.v6e7193cec599",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-rest-api",
"version": "2.41",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-stage-step",
"version": "345.va_96187909426",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-stage-tags-metadata",
"version": "2.2293.v6e7193cec599",
"active": true,
"enabled": true
},
{
"shortName": "pipeline-stage-view",
"version": "2.41",
"active": true,
"enabled": true
},
{
"shortName": "plain-credentials",
"version": "199.v9f8e1f741799",
"active": true,
"enabled": true
},
{
"shortName": "plugin-util-api",
"version": "6.1192.v30fe6e2837ff",
"active": true,
"enabled": true
},
{
"shortName": "scm-api",
"version": "728.vc30dcf7a_0df5",
"active": true,
"enabled": true
},
{
"shortName": "script-security",
"version": "1399.ve6a_66547f6e1",
"active": true,
"enabled": true
},
{
"shortName": "snakeyaml-api",
"version": "2.7-152.vc672728cf536",
"active": true,
"enabled": true
},
{
"shortName": "ssh-credentials",
"version": "372.va_250881b_08cd",
"active": true,
"enabled": true
},
{
"shortName": "sshd",
"version": "3.374.v19b_d59ce6610",
"active": true,
"enabled": true
},
{
"shortName": "structs",
"version": "362.va_b_695ef4fdf9",
"active": true,
"enabled": true
},
{
"shortName": "trilead-api",
"version": "2.209.v0e69b_c43c245",
"active": true,
"enabled": true
},
{
"shortName": "variant",
"version": "70.va_d9f17f859e0",
"active": true,
"enabled": true
},
{
"shortName": "woodstox-core-api",
"version": "7.3.0-16.v017f30ed004c",
"active": true,
"enabled": true
},
{
"shortName": "workflow-aggregator",
"version": "608.v67378e9d3db_1",
"active": true,
"enabled": true
},
{
"shortName": "workflow-api",
"version": "1384.vdc05a_48f535f",
"active": true,
"enabled": true
},
{
"shortName": "workflow-basic-steps",
"version": "1098.v808b_fd7f8cf4",
"active": true,
"enabled": true
},
{
"shortName": "workflow-cps",
"version": "4350.vcc65d4958821",
"active": true,
"enabled": true
},
{
"shortName": "workflow-durable-task-step",
"version": "1479.v56e587f413a_7",
"active": true,
"enabled": true
},
{
"shortName": "workflow-job",
"version": "1571.1580.v18e46842c125",
"active": true,
"enabled": true
},
{
"shortName": "workflow-multibranch",
"version": "841.vec5b_9e1806ec",
"active": true,
"enabled": true
},
{
"shortName": "workflow-scm-step",
"version": "487.v41313a_96b_65d",
"active": true,
"enabled": true
},
{
"shortName": "workflow-step-api",
"version": "724.v538c2362b_dfb_",
"active": true,
"enabled": true
},
{
"shortName": "workflow-support",
"version": "1015.v785e5a_b_b_8b_22",
"active": true,
"enabled": true
}
],
"runtime": "Python 3.13.5\ngit version 2.47.3",
"containers": "jenkins | jenkins/jenkins:2.528.1-lts-jdk21 | Up 11 minutes | 8080/tcp, 50000/tcp\ncaddy | caddy:2.10.2 | Up 3 weeks | 0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp, 443/udp, 2019/tcp\ngitea | gitea/gitea:1.27.3 | Up 2 weeks | 22/tcp, 3000/tcp",
"capacity": "total used free shared buff/cache available\nMem: 458 321 11 3 149 137\nSwap: 1023 544 479\nFilesystem Size Used Avail Use% Mounted on\n/dev/vda1 8.7G 5.4G 3.4G 62% /",
"ufw": "Status: inactive",
"ipv6": "No global IPv6 addresses.",
"certificates": {
"git.sespinal590.dev.crt": "issuer=C = US, O = Let's Encrypt, CN = YE1\nsubject=CN = git.sespinal590.dev\nnotBefore=Sep 28 23:44:00 2026 GMT\nnotAfter=Dec 27 23:43:59 2026 GMT",
"ci.165.227.90.215.sslip.io.crt": "issuer=C = US, O = Let's Encrypt, CN = YE1\nsubject=CN = ci.165.227.90.215.sslip.io\nnotBefore=Oct 7 04:04:29 2026 GMT\nnotAfter=Jan 5 04:04:28 2027 GMT"
},
"jenkins_security": "Security realm: hudson.security.HudsonPrivateSecurityRealm\nSelf signup disabled: true\nAuthorization: hudson.security.FullControlOnceLoggedInAuthorizationStrategy\nAnonymous read allowed: false\nExecutors: 1; labels: controller-small-trusted\nFailed plugins: []\nDocker socket mounted: false\nPolling: [com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger$DescriptorImpl@747c7415:com.cloudbees.hudson.plugins.folder.computed.PeriodicFolderTrigger@4603f629[* * * * *]]\n",
"jenkins_users": [
{
"id": "admin",
"fullName": "admin"
},
{
"id": "sespinal",
"fullName": "sespinal"
},
{
"id": "sespinal-admin",
"fullName": "sespinal-admin"
}
]
}
+1
View File
@@ -0,0 +1 @@
Tunnel HTTPS login: 200; certificate verification enabled
-25
View File
@@ -1,25 +0,0 @@
# Chapter 5 final audit — 2026-10-30
This is an evidence audit against dosManual-V1.42.pdf Chapter 5, not a promised grade. The final updated PDF is the submission artifact; configuration/evidence stays in Gitea.
| Rubric section | Finding | Evidence |
|---|---|---|
| Deployment / 15 | Implemented: four images/digests, topology, private networks, volumes, retention, startup/recovery and restart persistence; backup procedure documented separately from an unperformed current-state restore. | compose.yaml, image-digests.json, sli-persistence.json, monitoring/BACKUP-RECOVERY.md |
| Metrics and probes / 15 | Implemented: five scrapes healthy; memory/root comparison, metric types/units/labels/limits, actual TLS login probes and explicit internal-route limitations. | host-metric-comparison.json, live-metrics.json, versioned scrape/module files |
| Access / 10 | Grafana public raw metrics route fixed and externally verified. Raw backend/exporter ports unreachable, TLS login behavior checked, no global IPv6. OPEN: inherited All IPv4 SSH retained at explicit user request. | monitoring/Caddyfile, external-access-audit.json, final-access-audit.json, cloud-firewall-audit.json |
| Dashboard / 15 | Six panels with queries/units/legends, normal build metrics, definitions in Git, measured incident/build annotations. | dashboard exports/screenshots, final-validation.json, dashboard-annotations.json |
| SLI/SLO / 10 | Definitions, correct hypothetical 2880-probe arithmetic and measured 10-minute 20/20-coverage window supplied. Full-day collection is optional. | sli-persistence.json, incident-samples.json, monitoring/SLI-SLO.md |
| Alerts / 15 | Both rules fired and resolved, owner/severity/runbooks/no-data/error routing documented, four real Discord messages confirmed with minute-level times; safe threshold test restored 15%. | controlled-tests.json, alert-rules-export.json, discord-receipt.json |
| Incident / 10 | Jenkins-only outage/recovery, persistence, passing recovery build 3, exact-commit automatic polling build 1 and matching Gitea success verified; issues 2/3 owned. Separate channel acknowledgement time was not recorded. | jenkins-incident.json, jenkins-recovery-build.json, automatic-trigger.json, restart-gaps.json |
| Manual / 10 | Version/history/hosts and secret hints/glossary/citations/AI attribution updated; final CI build must match new source metadata. OPEN: genuine peer approval; main merge expressly deferred. | devopsSREMonitoring.tex, draft PR 4 |
## Automatic application trigger
Existing one-minute repository scan discovered documentation commit b39613b2d2869065cf363bff36a7b54225cb7438 on codex/chapter5-trigger-check. Build 1 ran 21:13:17.934–21:13:22.127 UTC (17:13 EDT), cause BranchIndexingCause, unchanged pipeline, all three tests passed. Gitea published startup-product-ci/pipeline/head=success for the same SHA. No manual build or scan endpoint was called. The test branch remains isolated; application main is unchanged at 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065.
## Remaining boundaries
- User explicitly chose to retain global IPv4 SSH and flag it. No firewall rule was changed.
- Turan's genuine peer review of the final manual source remains required; draft PR 4 and implementation issue 1 remain open, and main must not be merged yet.
- Incident Discord times are user-reported to the minute; a separate channel acknowledgement time was not captured and cannot be reconstructed honestly.
- A monitoring backup/restore procedure is supplied; a new current-state off-host backup/restore was not performed. The previous cloud snapshot predates deployment.
-1
View File
@@ -1 +0,0 @@
Sanitized actual runtime records from 2026-10-30. UTC throughout. No webhook URLs or credentials are included. dashboard-live.png and alerts-recovered.png are browser captures. JSON files record direct Prometheus/Grafana/Jenkins observations. Receiver delivery was confirmed by Sergio; exact Discord receipt timestamps were not captured.
-192
View File
@@ -1,192 +0,0 @@
[
{
"id": 1,
"uid": "sre-https-unavailable",
"orgID": 1,
"folderUID": "bg2th6ik05vr4e",
"ruleGroup": "Chapter 5 SRE Alerts",
"title": "HTTPS Service Unavailable",
"condition": "C",
"data": [
{
"refId": "A",
"queryType": "",
"relativeTimeRange": {
"from": 300,
"to": 0
},
"datasourceUid": "prometheus",
"model": {
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "probe_success{job=\"https\"} or on(instance,job) (0 * up{job=\"https\"})",
"instant": true,
"intervalMs": 30000,
"maxDataPoints": 43200,
"refId": "A"
}
},
{
"refId": "B",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"conditions": [],
"expression": "A",
"intervalMs": 1000,
"maxDataPoints": 43200,
"reducer": "last",
"refId": "B",
"type": "reduce"
}
},
{
"refId": "C",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"conditions": [
{
"evaluator": {
"params": [
1
],
"type": "lt"
}
}
],
"expression": "B",
"intervalMs": 1000,
"maxDataPoints": 43200,
"refId": "C",
"type": "threshold"
}
}
],
"updated": "2026-10-30T20:51:37Z",
"noDataState": "NoData",
"execErrState": "Error",
"annotations": {
"description": "The HTTPS probe has failed continuously for at least one minute.",
"runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md",
"summary": "HTTPS probe failure for {{ $labels.instance }}"
},
"labels": {
"chapter": "5",
"owner": "sespinal",
"severity": "critical"
},
"provenance": "file",
"isPaused": false,
"notification_settings": null,
"record": null,
"for": "1m",
"keep_firing_for": "0s"
},
{
"id": 2,
"uid": "sre-root-disk-low",
"orgID": 1,
"folderUID": "bg2th6ik05vr4e",
"ruleGroup": "Chapter 5 SRE Alerts",
"title": "Host Root Disk Space Low",
"condition": "C",
"data": [
{
"refId": "A",
"queryType": "",
"relativeTimeRange": {
"from": 300,
"to": 0
},
"datasourceUid": "prometheus",
"model": {
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}",
"instant": true,
"intervalMs": 30000,
"maxDataPoints": 43200,
"refId": "A"
}
},
{
"refId": "B",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"conditions": [],
"expression": "A",
"intervalMs": 1000,
"maxDataPoints": 43200,
"reducer": "last",
"refId": "B",
"type": "reduce"
}
},
{
"refId": "C",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"conditions": [
{
"evaluator": {
"params": [
15
],
"type": "lt"
}
}
],
"expression": "B",
"intervalMs": 1000,
"maxDataPoints": 43200,
"refId": "C",
"type": "threshold"
}
}
],
"updated": "2026-10-30T20:51:37Z",
"noDataState": "NoData",
"execErrState": "Error",
"annotations": {
"description": "Available root filesystem space has remained below 15% for five minutes.",
"runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md",
"summary": "Host root disk availability below 15%"
},
"labels": {
"chapter": "5",
"owner": "sespinal",
"severity": "warning"
},
"provenance": "file",
"isPaused": false,
"notification_settings": null,
"record": null,
"for": "5m",
"keep_firing_for": "0s"
}
]
Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

-48
View File
@@ -1,48 +0,0 @@
{
"expected_commit": "b39613b2d2869065cf363bff36a7b54225cb7438",
"observations": [
{
"observed_at": "2026-10-30T21:13:34.396722+00:00",
"number": 1,
"building": false,
"result": "SUCCESS"
}
],
"build": {
"number": 1,
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex%252Fchapter5-trigger-check/1/",
"result": "SUCCESS",
"timestamp": 1793394797934,
"duration": 4193
},
"revisions": [
"b39613b2d2869065cf363bff36a7b54225cb7438"
],
"causes": [
{
"_class": "jenkins.branch.BranchIndexingCause",
"shortDescription": "Branch indexing"
}
],
"console_excerpt": [
"Branch indexing",
"Running on Jenkins in /var/jenkins_home/workspace/_ci_codex_chapter5-trigger-check",
"Checking out Revision b39613b2d2869065cf363bff36a7b54225cb7438 (codex/chapter5-trigger-check)",
"Commit message: \"Document Chapter 5 monitoring handoff and automatic trigger check\"",
"Ran 3 tests in 0.000s",
"OK",
"Finished: SUCCESS"
],
"gitea_status": {
"state": "success",
"sha": "b39613b2d2869065cf363bff36a7b54225cb7438",
"statuses": [
{
"status": "success",
"context": "startup-product-ci/pipeline/head",
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/codex%252Fchapter5-trigger-check/1/display/redirect",
"created_at": "2026-10-30T21:13:22Z"
}
]
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

@@ -1,43 +0,0 @@
{
"observed_on": "2026-10-30",
"source": "Signed-in DigitalOcean firewall Rules and Droplets UI",
"firewall_id": "dc253da0-adff-4549-b4d1-ce3cb509914b",
"firewall_name": "ssw590-gitea-firewall",
"attached_droplet": {
"id": 604497684,
"name": "sergio-ssw590-gitea",
"public_ipv4": "165.227.90.215",
"size_display": "2 GB / 10 GB / NYC1"
},
"inbound": [
{
"tcp": 22,
"sources": [
"All IPv4",
"existing operator /32 (redacted)"
]
},
{
"tcp": 80,
"sources": [
"All IPv4",
"All IPv6"
]
},
{
"tcp": 443,
"sources": [
"All IPv4",
"All IPv6"
]
}
],
"outbound": [
"ICMP all IPv4/IPv6",
"TCP all ports IPv4/IPv6",
"UDP all ports IPv4/IPv6"
],
"host_ufw": "inactive",
"public_ipv6": "not enabled on droplet; no global host IPv6 address",
"ssh_decision": "User explicitly requested leave SSH unchanged and flag it; no firewall rule modified."
}
File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

@@ -1,53 +0,0 @@
[
{
"request": {
"time": 1793392725484,
"timeEnd": 1793392959110,
"tags": [
"chapter5",
"controlled-exercise"
],
"text": "Jenkins-only controlled outage: stop request to first recovered HTTPS probe. UTC. See Chapter 5 incident timeline.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 10,
"message": "Annotation added"
}
},
{
"request": {
"time": 1793393012534,
"timeEnd": 1793393032340,
"tags": [
"chapter5",
"normal-build"
],
"text": "Jenkins main recovery build 3 SUCCESS, commit 6cfac4ec1e. Controller execution.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 11,
"message": "Annotation added"
}
},
{
"request": {
"time": 1793394797934,
"timeEnd": 1793394802127,
"tags": [
"chapter5",
"automatic-trigger"
],
"text": "Automatic branch-indexing build 1 SUCCESS; codex/chapter5-trigger-check; commit b39613b2d2869065cf363bff36a7b54225cb7438; three tests passed.",
"dashboardUID": "sre-overview",
"dashboardId": 4065061988397056
},
"result": {
"id": 12,
"message": "Annotation added"
}
}
]
-296
View File
@@ -1,296 +0,0 @@
{
"meta": {
"type": "db",
"canSave": true,
"canEdit": true,
"canAdmin": true,
"canStar": true,
"canDelete": true,
"slug": "chapter-5-sre-monitoring-overview",
"url": "/d/sre-overview/chapter-5-sre-monitoring-overview",
"expires": "0001-01-01T00:00:00Z",
"created": "2026-10-30T19:37:56Z",
"updated": "2026-10-30T19:37:56Z",
"updatedBy": "Anonymous",
"createdBy": "Anonymous",
"version": 1,
"hasAcl": false,
"isFolder": false,
"apiVersion": "v0alpha1",
"folderId": 4065061318705152,
"folderUid": "bg2th6ik05vr4e",
"folderTitle": "SRE Monitoring",
"folderUrl": "/dashboards/f/bg2th6ik05vr4e/sre-monitoring",
"provisioned": true,
"provisionedExternalId": "sre-overview.json",
"annotationsPermissions": {
"dashboard": {
"canAdd": true,
"canEdit": true,
"canDelete": true
}
}
},
"dashboard": {
"annotations": {
"list": []
},
"id": 4065061988397056,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"max": 100,
"min": 0,
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"expr": "100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[5m])))",
"legendFormat": "CPU used",
"refId": "A"
}
],
"title": "Host CPU Utilization (%)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"unit": "bytes"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"id": 2,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"expr": "node_memory_MemAvailable_bytes{job=\"node-exporter\"}",
"legendFormat": "Available RAM",
"refId": "A"
}
],
"title": "Host Available RAM",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"max": 100,
"min": 0,
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 3,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"expr": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}",
"legendFormat": "Root disk available",
"refId": "A"
}
],
"title": "Root Disk Available (%)",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"decimals": 0,
"max": 1,
"min": 0
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
"id": 4,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"expr": "probe_success{job=\"https\",instance=\"https://git.sespinal590.dev/user/login\"}",
"legendFormat": "Gitea HTTPS success",
"refId": "A"
}
],
"title": "Gitea HTTPS Availability",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"decimals": 0,
"max": 1,
"min": 0
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
"id": 5,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"expr": "probe_success{job=\"https\",instance=\"https://ci.165.227.90.215.sslip.io/login\"}",
"legendFormat": "Jenkins HTTPS success",
"refId": "A"
}
],
"title": "Jenkins HTTPS Availability",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"min": 0,
"unit": "s"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 16
},
"id": 6,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
},
"targets": [
{
"expr": "probe_duration_seconds{job=\"https\",instance=\"https://git.sespinal590.dev/user/login\"}",
"legendFormat": "Gitea",
"refId": "A"
},
{
"expr": "probe_duration_seconds{job=\"https\",instance=\"https://ci.165.227.90.215.sslip.io/login\"}",
"legendFormat": "Jenkins",
"refId": "B"
}
],
"title": "HTTPS Response Time (seconds)",
"type": "timeseries"
}
],
"refresh": "30s",
"schemaVersion": 39,
"tags": [
"sre",
"chapter5",
"monitoring"
],
"templating": {
"list": []
},
"time": {
"from": "now-1h",
"to": "now"
},
"timezone": "utc",
"title": "Chapter 5 - SRE Monitoring Overview",
"uid": "sre-overview",
"version": 1
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

-14
View File
@@ -1,14 +0,0 @@
{
"source": "Sergio confirmation in chat; timestamps read from Discord",
"date": "2026-10-30",
"timezone": "America/New_York (EDT, UTC-4)",
"precision": "minute; no exact seconds or separate channel acknowledgement recorded",
"jenkins_firing_local": "16:40",
"jenkins_resolved_local": "16:42",
"disk_firing_local": "16:43",
"disk_resolved_local": "16:43",
"jenkins_firing_utc": "20:40",
"jenkins_resolved_utc": "20:42",
"disk_firing_utc": "20:43",
"disk_resolved_utc": "20:43"
}
@@ -1,64 +0,0 @@
{
"captured_at": "2026-10-30T21:16:31.703076+00:00",
"source": "Sergio Windows workstation, outside primary droplet",
"http": [
{
"url": "https://git.sespinal590.dev/user/login",
"exit": 0,
"result": "200 ",
"error": ""
},
{
"url": "https://git.sespinal590.dev/metrics",
"exit": 0,
"result": "404 ",
"error": ""
},
{
"url": "https://ci.165.227.90.215.sslip.io/login",
"exit": 0,
"result": "403 ",
"error": ""
},
{
"url": "https://metrics.165.227.90.215.sslip.io/login",
"exit": 0,
"result": "200 ",
"error": ""
},
{
"url": "https://metrics.165.227.90.215.sslip.io/metrics",
"exit": 0,
"result": "403 ",
"error": ""
},
{
"url": "http://git.sespinal590.dev/user/login",
"exit": 0,
"result": "308 https://git.sespinal590.dev/user/login",
"error": ""
}
],
"tcp": [
{
"port": 3000,
"reachable": false
},
{
"port": 8080,
"reachable": false
},
{
"port": 9090,
"reachable": false
},
{
"port": 9100,
"reachable": false
},
{
"port": 9115,
"reachable": false
}
]
}
-122
View File
@@ -1,122 +0,0 @@
{
"captured_at": "2026-10-30T21:14:45.733137+00:00",
"https://git.sespinal590.dev/user/login": {
"status": 200,
"content_type": "text/html; charset=utf-8"
},
"https://git.sespinal590.dev/metrics": {
"status": 404
},
"https://ci.165.227.90.215.sslip.io/login": {
"status": 403
},
"https://ci.165.227.90.215.sslip.io/prometheus/": {
"status": 403
},
"https://metrics.165.227.90.215.sslip.io/login": {
"status": 200,
"content_type": "text/html; charset=UTF-8"
},
"https://metrics.165.227.90.215.sslip.io/metrics": {
"status": 403
},
"global_ipv6": "",
"ufw_status": "Status: inactive\n",
"monitoring-prometheus-1": {
"user": "nobody",
"mounts": [
{
"source": "/var/lib/docker/volumes/monitoring_prometheus_data/_data",
"destination": "/prometheus",
"rw": true
},
{
"source": "/opt/ssw590-monitoring/prometheus/prometheus.yml",
"destination": "/etc/prometheus/prometheus.yml",
"rw": false
}
],
"ports": {
"9090/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"monitoring_monitoring_private"
]
},
"monitoring-grafana-1": {
"user": "472",
"mounts": [
{
"source": "/opt/ssw590-monitoring/grafana/provisioning",
"destination": "/etc/grafana/provisioning",
"rw": false
},
{
"source": "/var/lib/docker/volumes/monitoring_grafana_data/_data",
"destination": "/var/lib/grafana",
"rw": true
},
{
"source": "/opt/ssw590-monitoring/grafana/dashboards",
"destination": "/var/lib/grafana/dashboards",
"rw": false
}
],
"ports": {
"3000/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"gitea_default",
"monitoring_monitoring_private"
]
},
"monitoring-node-exporter-1": {
"user": "nobody",
"mounts": [
{
"source": "/",
"destination": "/host",
"rw": false
}
],
"ports": {
"9100/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"monitoring_monitoring_private"
]
},
"monitoring-blackbox-exporter-1": {
"user": "",
"mounts": [
{
"source": "/opt/ssw590-monitoring/blackbox/blackbox.yml",
"destination": "/etc/blackbox/blackbox.yml",
"rw": false
}
],
"ports": {
"9115/tcp": null
},
"restart_policy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"networks": [
"gitea_default",
"monitoring_monitoring_private"
]
}
}
-49
View File
@@ -1,49 +0,0 @@
{
"health": {
"database": "ok",
"version": "13.3.0",
"commit": "6f8ce3c693b493043ebcd4787566d2b6b118b0f0"
},
"datasources": [
{
"uid": "prometheus",
"url": "http://prometheus:9090"
}
],
"dashboard_panels": 6,
"rules": [
{
"uid": "sre-https-unavailable",
"title": "HTTPS Service Unavailable",
"for": "1m",
"noDataState": "NoData",
"execErrState": "Error",
"threshold": [
1
]
},
{
"uid": "sre-root-disk-low",
"title": "Host Root Disk Space Low",
"for": "5m",
"noDataState": "NoData",
"execErrState": "Error",
"threshold": [
15
]
}
],
"rule_states": [
[
"HTTPS Service Unavailable",
"inactive",
"ok"
],
[
"Host Root Disk Space Low",
"inactive",
"ok"
]
],
"annotations": 3
}
-170
View File
@@ -1,170 +0,0 @@
{
"2026-10-30T20:43:00Z": {
"100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m])))": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {},
"value": [
1793392980,
"41.56666666666449"
]
}
]
}
},
"node_memory_MemAvailable_bytes{job=\"node-exporter\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793392980,
"920629248"
]
}
]
}
}
},
"2026-10-30T20:43:45Z": {
"100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m])))": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {},
"value": [
1793393025,
"17.400000000000848"
]
}
]
}
},
"node_memory_MemAvailable_bytes{job=\"node-exporter\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793393025,
"905736192"
]
}
]
}
}
},
"2026-10-30T20:44:30Z": {
"100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m])))": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {},
"value": [
1793393070,
"17.666666666664245"
]
}
]
}
},
"node_memory_MemAvailable_bytes{job=\"node-exporter\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793393070,
"849772544"
]
}
]
}
}
},
"fallback_normal": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393516.365,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393516.365,
"1"
]
}
]
}
},
"fallback_absent_simulated": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393516.533,
"0"
]
},
{
"metric": {
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393516.533,
"0"
]
}
]
}
},
"compose_check": 0,
"promtool": "Checking /etc/prometheus/prometheus.yml\n SUCCESS: /etc/prometheus/prometheus.yml is valid prometheus config file syntax\n\n"
}
@@ -1,13 +0,0 @@
{
"state": "success",
"sha": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065",
"statuses": [
{
"status": "success",
"target_url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/3/display/redirect",
"context": "startup-product-ci/pipeline/head",
"created_at": "2026-10-30T20:43:52Z",
"updated_at": "2026-10-30T20:43:52Z"
}
]
}
@@ -1,213 +0,0 @@
{
"captured_at": "2026-10-30T21:18:38.979555+00:00",
"host_free_b": " total used free shared buff/cache available\nMem: 2063564800 1211461632 147107840 3719168 886272000 852103168\nSwap: 1073737728 100024320 973713408\n",
"host_df_B1_root": "Filesystem 1B-blocks Used Available Use% Mounted on\n/dev/vda1 9283444736 7441113088 1825554432 81% /\n",
"node_memory_MemTotal_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemTotal_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.134,
"2063564800"
]
}
]
}
},
"node_memory_MemAvailable_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.283,
"890720256"
]
}
]
}
},
"node_filesystem_size_bytes{mountpoint=\"/\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_filesystem_size_bytes",
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node-exporter",
"mountpoint": "/"
},
"value": [
1793395119.412,
"9283444736"
]
}
]
}
},
"node_filesystem_avail_bytes{mountpoint=\"/\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_filesystem_avail_bytes",
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node-exporter",
"mountpoint": "/"
},
"value": [
1793395119.532,
"1825574912"
]
}
]
}
},
"up": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "up",
"instance": "prometheus:9090",
"job": "prometheus"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.647,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "blackbox-exporter:9115",
"job": "blackbox-exporter"
},
"value": [
1793395119.647,
"1"
]
}
]
}
},
"probe_success": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.759,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.759,
"1"
]
}
]
}
},
"probe_duration_seconds": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_duration_seconds",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793395119.879,
"0.069309989"
]
},
{
"metric": {
"__name__": "probe_duration_seconds",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793395119.879,
"0.025185514"
]
}
]
}
},
"docker_stats": "monitoring-grafana-1 CPU=1.12% MEM=172.5MiB / 1.922GiB\nmonitoring-prometheus-1 CPU=0.39% MEM=101.7MiB / 1.922GiB\nmonitoring-node-exporter-1 CPU=0.00% MEM=10.57MiB / 1.922GiB\nmonitoring-blackbox-exporter-1 CPU=0.00% MEM=14.8MiB / 1.922GiB\njenkins CPU=0.17% MEM=414.8MiB / 1.922GiB\ncaddy CPU=0.00% MEM=50.93MiB / 1.922GiB\ngitea CPU=2.74% MEM=145.3MiB / 1.922GiB\n",
"docker_version": "29.8.1",
"compose_version": "5.5.1"
}
-38
View File
@@ -1,38 +0,0 @@
[
{
"tags": [
"prom/prometheus:v3.15.1"
],
"digests": [
"prom/prometheus@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2"
],
"architecture": "amd64"
},
{
"tags": [
"grafana/grafana:13.3.0-slim"
],
"digests": [
"grafana/grafana@sha256:a66f098dd9b2e1b5a19287ff176db02d895122488c6e39b3dfcd3fb897039225"
],
"architecture": "amd64"
},
{
"tags": [
"quay.io/prometheus/node-exporter:v1.12.1"
],
"digests": [
"quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0"
],
"architecture": "amd64"
},
{
"tags": [
"quay.io/prometheus/blackbox-exporter:v0.29.1"
],
"digests": [
"quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13"
],
"architecture": "amd64"
}
]
-597
View File
@@ -1,597 +0,0 @@
{
"probe_success{job=\"https\"}[10m] @ 2026-10-30T20:38:00Z": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"values": [
[
1793392089.11,
"1"
],
[
1793392119.11,
"1"
],
[
1793392149.11,
"1"
],
[
1793392179.11,
"1"
],
[
1793392209.11,
"1"
],
[
1793392239.11,
"1"
],
[
1793392269.11,
"1"
],
[
1793392299.11,
"1"
],
[
1793392329.11,
"1"
],
[
1793392359.11,
"1"
],
[
1793392389.11,
"1"
],
[
1793392419.11,
"1"
],
[
1793392449.11,
"1"
],
[
1793392479.11,
"1"
],
[
1793392509.11,
"1"
],
[
1793392539.11,
"1"
],
[
1793392569.11,
"1"
],
[
1793392599.11,
"1"
],
[
1793392629.11,
"1"
],
[
1793392659.11,
"1"
]
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"values": [
[
1793392106.948,
"1"
],
[
1793392136.948,
"1"
],
[
1793392166.948,
"1"
],
[
1793392196.948,
"1"
],
[
1793392226.948,
"1"
],
[
1793392256.948,
"1"
],
[
1793392286.948,
"1"
],
[
1793392316.948,
"1"
],
[
1793392346.948,
"1"
],
[
1793392376.948,
"1"
],
[
1793392406.948,
"1"
],
[
1793392436.948,
"1"
],
[
1793392466.948,
"1"
],
[
1793392496.948,
"1"
],
[
1793392526.948,
"1"
],
[
1793392556.948,
"1"
],
[
1793392586.948,
"1"
],
[
1793392616.948,
"1"
],
[
1793392646.948,
"1"
],
[
1793392676.948,
"1"
]
]
}
]
}
},
"probe_success{job=\"https\"}[10m] @ 2026-10-30T20:44:00Z": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"values": [
[
1793392449.11,
"1"
],
[
1793392479.11,
"1"
],
[
1793392509.11,
"1"
],
[
1793392539.11,
"1"
],
[
1793392569.11,
"1"
],
[
1793392599.11,
"1"
],
[
1793392629.11,
"1"
],
[
1793392659.11,
"1"
],
[
1793392689.11,
"1"
],
[
1793392719.11,
"1"
],
[
1793392749.11,
"0"
],
[
1793392779.11,
"0"
],
[
1793392809.11,
"0"
],
[
1793392839.11,
"0"
],
[
1793392869.11,
"0"
],
[
1793392899.11,
"0"
],
[
1793392929.11,
"0"
],
[
1793392959.11,
"1"
],
[
1793392989.11,
"1"
],
[
1793393019.11,
"1"
]
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"values": [
[
1793392466.948,
"1"
],
[
1793392496.948,
"1"
],
[
1793392526.948,
"1"
],
[
1793392556.948,
"1"
],
[
1793392586.948,
"1"
],
[
1793392616.948,
"1"
],
[
1793392646.948,
"1"
],
[
1793392676.948,
"1"
],
[
1793392706.948,
"1"
],
[
1793392736.948,
"1"
],
[
1793392766.948,
"1"
],
[
1793392796.948,
"1"
],
[
1793392826.948,
"1"
],
[
1793392856.948,
"1"
],
[
1793392886.948,
"1"
],
[
1793392916.948,
"1"
],
[
1793392946.948,
"1"
],
[
1793392976.948,
"1"
],
[
1793393006.948,
"1"
],
[
1793393036.948,
"1"
]
]
}
]
}
},
"probe_success{job=\"https\"}[10m] @ 2026-10-30T20:46:00Z": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"values": [
[
1793392569.11,
"1"
],
[
1793392599.11,
"1"
],
[
1793392629.11,
"1"
],
[
1793392659.11,
"1"
],
[
1793392689.11,
"1"
],
[
1793392719.11,
"1"
],
[
1793392749.11,
"0"
],
[
1793392779.11,
"0"
],
[
1793392809.11,
"0"
],
[
1793392839.11,
"0"
],
[
1793392869.11,
"0"
],
[
1793392899.11,
"0"
],
[
1793392929.11,
"0"
],
[
1793392959.11,
"1"
],
[
1793392989.11,
"1"
],
[
1793393019.11,
"1"
],
[
1793393049.11,
"1"
],
[
1793393079.11,
"1"
],
[
1793393109.11,
"1"
],
[
1793393139.109,
"1"
]
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"values": [
[
1793392586.948,
"1"
],
[
1793392616.948,
"1"
],
[
1793392646.948,
"1"
],
[
1793392676.948,
"1"
],
[
1793392706.948,
"1"
],
[
1793392736.948,
"1"
],
[
1793392766.948,
"1"
],
[
1793392796.948,
"1"
],
[
1793392826.948,
"1"
],
[
1793392856.948,
"1"
],
[
1793392886.948,
"1"
],
[
1793392916.948,
"1"
],
[
1793392946.948,
"1"
],
[
1793392976.948,
"1"
],
[
1793393006.948,
"1"
],
[
1793393036.948,
"1"
],
[
1793393066.948,
"1"
],
[
1793393096.948,
"1"
]
]
}
]
}
},
"100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m]))) @ 2026-10-30T20:38:00Z": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {},
"value": [
1793392680,
"11.866666666668003"
]
}
]
}
},
"100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m]))) @ 2026-10-30T20:44:00Z": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {},
"value": [
1793393040,
"70.63333333333503"
]
}
]
}
},
"100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m]))) @ 2026-10-30T20:46:00Z": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {},
"value": [
1793393160,
"46.43333333333127"
]
}
]
}
}
}
File diff suppressed because it is too large Load Diff
@@ -1,105 +0,0 @@
{
"requested_at": "2026-10-30T20:43:26.150656+00:00",
"build": {
"_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
"actions": [
{
"_class": "hudson.model.CauseAction",
"causes": [
{
"_class": "hudson.model.Cause$UserIdCause",
"shortDescription": "Started by user sespinal-admin",
"userId": "sespinal-admin",
"userName": "sespinal-admin"
}
]
},
{
"_class": "jenkins.scm.api.SCMRevisionAction"
},
{
"_class": "org.jenkinsci.plugins.workflow.libs.LibrariesAction"
},
{},
{},
{
"_class": "hudson.plugins.git.util.BuildData",
"buildsByBranchName": {
"main": {
"_class": "hudson.plugins.git.util.Build",
"buildNumber": 3,
"buildResult": null,
"marked": {
"SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065",
"branch": [
{
"SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065",
"name": "main"
}
]
},
"revision": {
"SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065",
"branch": [
{
"SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065",
"name": "main"
}
]
}
}
},
"lastBuiltRevision": {
"SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065",
"branch": [
{
"SHA1": "6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065",
"name": "main"
}
]
},
"remoteUrls": [
"http://gitea:3000/group10-startup/startup-product.git"
],
"scmName": ""
},
{},
{},
{
"_class": "org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction"
},
{
"_class": "org.jenkinsci.plugins.pipeline.modeldefinition.actions.RestartDeclarativePipelineAction"
},
{},
{
"_class": "org.jenkinsci.plugins.workflow.job.views.FlowGraphAction"
},
{},
{}
],
"artifacts": [],
"building": false,
"description": null,
"displayName": "#3",
"duration": 19806,
"estimatedDuration": 50140,
"executor": null,
"fullDisplayName": "startup-product \u00bb main #3",
"id": "3",
"keepLog": false,
"number": 3,
"queueId": 12816,
"result": "SUCCESS",
"timestamp": 1793393012534,
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/3/",
"changeSets": [],
"culprits": [],
"inProgress": false,
"nextBuild": null,
"previousBuild": {
"number": 2,
"url": "https://ci.165.227.90.215.sslip.io/job/startup-product-ci/job/main/2/"
}
}
}
-204
View File
@@ -1,204 +0,0 @@
{
"captured_at": "2026-10-30T20:51:37.878019+00:00",
"queries": {
"up": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "up",
"instance": "prometheus:9090",
"job": "prometheus"
},
"value": [
1793393498.002,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393498.002,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793393498.002,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393498.002,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "blackbox-exporter:9115",
"job": "blackbox-exporter"
},
"value": [
1793393498.002,
"1"
]
}
]
}
},
"probe_success": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393498.139,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393498.139,
"1"
]
}
]
}
},
"probe_duration_seconds": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_duration_seconds",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393498.271,
"0.043615857"
]
},
{
"metric": {
"__name__": "probe_duration_seconds",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393498.271,
"0.050175626"
]
}
]
}
},
"node_memory_MemTotal_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemTotal_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793393498.403,
"2063564800"
]
}
]
}
},
"node_memory_MemAvailable_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node-exporter"
},
"value": [
1793393498.541,
"948740096"
]
}
]
}
},
"100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[5m])))": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"instance": "node-exporter:9100"
},
"value": [
1793393498.678,
"9.459259259259245"
]
}
]
}
},
"100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node-exporter",
"mountpoint": "/"
},
"value": [
1793393498.81,
"19.76967666843447"
]
}
]
}
}
}
}
-6
View File
@@ -1,6 +0,0 @@
{
"captured_at": "2026-10-30T21:01:48.380690+00:00",
"query": "up{job=\"prometheus\"}[30m]",
"received": 60,
"gaps_over_45_seconds": []
}
-322
View File
@@ -1,322 +0,0 @@
{
"window_end": "2026-10-30T20:45:00Z",
"window_minutes": 10,
"queries": {
"avg_over_time(probe_success{job=\"https\"}[10m])": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393100,
"0.65"
]
},
{
"metric": {
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393100,
"1"
]
}
]
}
},
"count_over_time(probe_success{job=\"https\"}[10m])": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393100,
"20"
]
},
{
"metric": {
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393100,
"20"
]
}
]
}
},
"sum_over_time(probe_success{job=\"https\"}[10m])": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393100,
"13"
]
},
{
"metric": {
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393100,
"20"
]
}
]
}
},
"probe_success{job=\"https\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793393100,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793393100,
"1"
]
}
]
}
},
"100 * (1 - avg(rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[1m])))": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {},
"value": [
1793393100,
"16.000000000000604"
]
}
]
}
},
"probe_success{job=\"https\",instance=~\".*jenkins.*\"}[10m]": {
"status": "success",
"data": {
"resultType": "matrix",
"result": []
}
},
"probe_success{job=\"https\",instance=~\".*git.*\"}[10m]": {
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"values": [
[
1793392526.948,
"1"
],
[
1793392556.948,
"1"
],
[
1793392586.948,
"1"
],
[
1793392616.948,
"1"
],
[
1793392646.948,
"1"
],
[
1793392676.948,
"1"
],
[
1793392706.948,
"1"
],
[
1793392736.948,
"1"
],
[
1793392766.948,
"1"
],
[
1793392796.948,
"1"
],
[
1793392826.948,
"1"
],
[
1793392856.948,
"1"
],
[
1793392886.948,
"1"
],
[
1793392916.948,
"1"
],
[
1793392946.948,
"1"
],
[
1793392976.948,
"1"
],
[
1793393006.948,
"1"
],
[
1793393036.948,
"1"
],
[
1793393066.948,
"1"
],
[
1793393096.948,
"1"
]
]
}
]
}
}
},
"before_restart": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793392800,
"0"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793392800,
"1"
]
}
]
}
},
"after_restart": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.165.227.90.215.sslip.io/login",
"job": "https"
},
"value": [
1793392800,
"0"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://git.sespinal590.dev/user/login",
"job": "https"
},
"value": [
1793392800,
"1"
]
}
]
}
},
"grafana_health": {
"database": "ok",
"version": "13.3.0",
"commit": "6f8ce3c693b493043ebcd4787566d2b6b118b0f0"
},
"dashboard_uid": "sre-overview",
"rules": [
{
"title": "HTTPS Service Unavailable",
"for": "1m"
},
{
"title": "Host Root Disk Space Low",
"for": "5m"
}
],
"contact_points": [
{
"uid": "team-discord",
"name": "team-alerts",
"type": "discord"
}
]
}
-327
View File
@@ -1,327 +0,0 @@
# Chapter 5 — Alerting and Incident Response Runbook
## 1. Purpose
This runbook defines the monitoring alerts, response procedures,
controlled outage experiment, recovery verification, and evidence
required for Chapter 5.
The monitoring stack consists of Prometheus, Grafana, Node Exporter,
and Blackbox Exporter.
All monitoring services must be deployed without exposing their
internal ports publicly.
The existing Gitea, Jenkins, and Caddy services must be preserved.
## 2. Alert A — HTTPS Availability Failure
Alert name: HTTPS Service Unavailable
Monitoring system: Grafana-managed alerting
Data source: Prometheus
PromQL:
probe_success{job="https"} or on(instance,job) (0 * up{job="https"})
Condition:
- Evaluate each HTTPS target independently.
- Trigger when probe_success is below 1.
- Pending period: 1 minute.
- Evaluate every 30 seconds where supported.
- Alert separately for Gitea and Jenkins using the instance label.
Expected behavior:
- A successful probe returns 1.
- A failed probe returns 0.
- Sustained failure transitions the alert to Firing.
- Recovery transitions the alert to Normal or Resolved.
Important:
Missing probe data must not automatically be interpreted as
successful service availability.
Final policies: noDataState=NoData, execErrState=Error. The zero-valued up fallback surfaces a missing probe series while its scrape target remains configured. Removing a target must undergo source review.
Jenkins monitoring requests must be permitted through the
existing Caddy IP allowlist without weakening Jenkins security.
HTTP 403 must not count as a successful Jenkins probe.
## 3. Alert B — Low Root Disk Space
Alert name: Host Root Disk Space Low
Monitoring system: Grafana-managed alerting
Data source: Prometheus
PromQL:
100 *
node_filesystem_avail_bytes{
job="node-exporter",
mountpoint="/",
fstype!~"tmpfs|overlay"
}
/
node_filesystem_size_bytes{
job="node-exporter",
mountpoint="/",
fstype!~"tmpfs|overlay"
}
Condition:
- Trigger when available root disk space is below 15%.
- Pending period: 5 minutes.
- Evaluate every 30 seconds where supported.
Expected behavior:
- Normal when available disk space is at least 15%.
- Pending when the threshold is crossed.
- Firing after five continuous minutes below the threshold.
- Resolved after the condition clears.
## 4. Notification Contact Point
The approved contact point is team-alerts, UID team-discord, using Grafana's dedicated Discord integration. Its local provisioning file is excluded by *.local.yml. Owner: sespinal. Resolved notifications are enabled. Group by grafana_folder and alertname; group_wait 10s, group_interval 30s, repeat_interval 4h.
Do not commit passwords, API tokens, or notification secrets
to the repository.
Required evidence:
- Contact point configuration.
- Successful test notification.
- Actual alert notification received.
- Alert resolution notification where supported.
Record the notification destination in the final manual without
exposing private credentials.
## 5. HTTPS Failure Response Procedure
When the HTTPS alert fires:
1. Record the UTC timestamp.
2. Identify the affected instance label.
3. Check the corresponding Grafana dashboard panel.
4. Inspect Prometheus probe_success and probe_duration_seconds.
5. Check whether the HTTPS endpoint returns HTTP 200.
6. Check TLS certificate validity.
7. Check the relevant Docker container status.
8. Inspect relevant container logs.
9. Confirm whether the issue is application failure, proxy access,
DNS, TLS, or monitoring configuration.
10. Restore service using the approved recovery procedure.
11. Verify probe_success returns to 1.
12. Record the recovery timestamp and alert resolution.
Do not disable security controls merely to silence an alert.
## 6. Low Disk Space Response Procedure
When the disk alert fires:
1. Record the UTC timestamp.
2. Confirm root disk availability using Node Exporter metrics.
3. Check disk usage on the host.
4. Identify unusually large files, logs, images, or volumes.
5. Do not delete Docker volumes without identifying their owners.
6. Preserve Gitea, Jenkins, and monitoring persistent data.
7. Apply an approved cleanup or capacity increase.
8. Verify disk availability returns above the threshold.
9. Record the alert resolution.
Do not use destructive cleanup commands without approval.
## 7. Safe Disk Alert Demonstration
The team must not fill the Droplet disk to trigger the alert.
Instead:
1. Record the actual root disk available percentage.
2. Temporarily raise the alert threshold above that value.
3. Wait for the configured five-minute pending period.
4. Capture Pending and Firing evidence.
5. Verify notification delivery.
6. Restore the required 15% threshold.
7. Confirm the alert returns to Normal or Resolved.
8. Record the temporary threshold and restoration time.
This is a controlled alert test, not a genuine disk exhaustion event.
## 8. Controlled Jenkins-Only Outage
The controlled outage must affect Jenkins only.
Do not stop Gitea, Caddy, or the monitoring stack.
Before starting:
1. Confirm Gitea and Jenkins probes are healthy.
2. Confirm both Grafana panels show valid data.
3. Confirm the HTTPS alert is operational.
4. Confirm the notification contact point works.
5. Record the UTC start time.
During the experiment:
1. Stop only the Jenkins application container using an
approved maintenance procedure.
2. Keep the outage approximately three minutes.
3. Record the first failed Jenkins HTTPS probe.
4. Record the alert Pending and Firing transitions.
5. Record notification receipt time.
6. Confirm Gitea continues to report successful probes.
Recovery:
1. Restart Jenkins using the approved procedure.
2. Confirm the Jenkins login endpoint responds successfully.
3. Confirm probe_success returns to 1.
4. Confirm the Grafana alert resolves.
5. Record the UTC recovery time.
6. Verify Jenkins pipeline functionality.
7. Verify the Gitea Actions PDF workflow independently.
The team must coordinate this outage and obtain approval
before disrupting Jenkins.
## 9. Incident Timeline
Record actual UTC timestamps for:
- Planned maintenance approval.
- Jenkins stop command.
- First failed probe.
- Alert Pending state.
- Alert Firing state.
- Notification receipt.
- Jenkins restart command.
- First successful probe.
- Alert resolution.
- Jenkins pipeline verification.
- Gitea Actions PDF verification.
Do not invent timestamps.
## 10. Detection and Recovery Measurements
Detection delay:
First failed probe time - Jenkins outage start time
Alert firing delay:
Alert Firing time - First failed probe time
Notification delay:
Notification receipt time - Alert Firing time
Service recovery time:
First successful probe time - Jenkins outage start time
These measurements must use actual recorded timestamps.
Distinguish application recovery from alert resolution.
## 11. Prometheus and Grafana Restart Tests
Perform these tests separately after the monitoring stack
has been deployed and verified.
Prometheus restart:
1. Record current targets and metrics.
2. Restart only Prometheus.
3. Confirm the service returns.
4. Confirm historical time-series data persists.
5. Confirm scrape targets recover.
Grafana restart:
1. Record the dashboard and data source.
2. Restart only Grafana.
3. Confirm HTTPS login works.
4. Confirm the provisioned dashboard remains available.
5. Confirm the alert rules and contact points persist.
Do not delete persistent volumes during these tests.
## 12. Blameless Incident Review
The incident review must include:
- Incident summary.
- Intended experiment.
- Actual impact.
- Timeline.
- Detection behavior.
- Notification behavior.
- Recovery behavior.
- What worked.
- What did not work.
- Contributing technical factors.
- Preventive improvements.
- Evidence references.
Focus on system behavior and improvement rather than
assigning personal blame.
## 13. Follow-Up Gitea Issues
Create at least two follow-up issues after the experiment.
Each issue must include:
- Specific improvement.
- Assigned owner.
- Priority.
- Acceptance criteria.
- Link to the incident review.
Possible improvements include:
- Strengthening Jenkins HTTPS monitoring access.
- Improving alert notification delivery.
- Adding monitoring deployment automation.
- Improving restart and recovery documentation.
Do not claim issues exist until they have been created.
## 14. Required Evidence
Capture:
- Grafana HTTPS login.
- Six-panel dashboard.
- Alert rules and evaluation settings.
- Notification contact point.
- Test notification.
- HTTPS alert Pending and Firing.
- Disk alert Pending and Firing.
- Jenkins outage and recovery.
- Gitea remaining healthy during Jenkins outage.
- Actual notification receipt.
- Prometheus persistence after restart.
- Grafana persistence after restart.
- Jenkins pipeline verification.
- Gitea Actions PDF workflow verification.
- Two follow-up Gitea issues.
Evidence must reflect actual execution, not planned behavior.
## Verified exercise: 2026-10-30 UTC
Both rules reached firing and returned to normal. Sergio confirmed the test message plus both firing/resolved pairs in Discord. Capacity threshold was temporarily 30%, then restored to 15% in a finally block. Jenkins was stopped for approximately three minutes and recovered; build 3 passed and Gitea received its success status. Exact retained evaluation times and receiver-timestamp limitations are in devopsSREMonitoring.tex and evidence/chapter5/. Never substitute evaluation time for destination receipt time.
-372
View File
@@ -1,372 +0,0 @@
Chapter 5 — Monitoring Architecture and Recovery Plan
Project: SSW 590 DevOps — Group 10
Repository: group10-startup/devops-it-manual
Tracking issue: #1
Preparation branch: chapter5-sre-monitoring
Prepared: October 28, 2026
Status: Proposed architecture — not deployed or verified
1. Objective
Extend the existing Group 10 DevOps infrastructure with a reproducible monitoring system using Prometheus, Grafana OSS, Node Exporter, and Blackbox Exporter.
The system must monitor the Linux host’s CPU, available memory, and root filesystem capacity, as well as the HTTPS availability and response duration of Gitea and Jenkins.
The implementation must preserve the existing Gitea, Jenkins, Caddy, repositories, Jenkins pipelines, Gitea Actions workflows, and persistent application data.
2. Verified Infrastructure Baseline
Baseline recorded on October 28, 2026, at 22:18:12 UTC.
Component Verified value
Hostname sergio-ssw590-gitea
Primary Droplet IPv4 165.227.90.215
Operating system Ubuntu 24.04.4 LTS
CPU 1 vCPU
Total RAM 458 MiB
Available RAM 209 MiB
Swap 1 GiB; 633 MiB used
Root filesystem /dev/vda1
Root filesystem capacity 8.7 GB
Available root disk 3.3 GB
Root disk utilization 63%
Docker 29.8.1
Docker Compose v5.5.1
Existing containers at baseline:
Container Image Status Observed memory
Gitea gitea/gitea:1.27.3 Running 88.78 MiB
Jenkins jenkins/jenkins:2.528.1-lts-jdk21 Running 51.77 MiB
Caddy caddy:2.10.2 Running 12.29 MiB
These resource measurements represent one observation, not peak consumption during Jenkins builds.
Docker storage at baseline:
* Images: 1.17 GB
* Containers: 245.7 MB
* Local volumes: 12.78 kB
* Build cache: 0 B
3. Capacity Constraint and Deployment Decision
The existing Droplet has insufficient memory headroom for a typical deployment of four additional monitoring containers alongside Jenkins, Gitea, and Caddy.
Deployment is blocked until capacity is assessed and an architecture is approved.
The team must:
1. Measure resource consumption during a representative Jenkins build.
2. Inspect the second existing DigitalOcean Droplet (159.223.171.15) without changing its configuration.
3. Compare the cost and operational consequences of resizing the existing Droplet versus using another monitoring host.
4. Confirm adequate memory, disk capacity, and monitoring retention.
5. Record the selected deployment architecture and its justification.
The preferred design is a single appropriately sized Linux host. If monitoring runs on another host, Node Exporter must still report the intended Gitea/Jenkins Droplet’s resources, and the network architecture must be documented accurately.
No Droplet resizing, new paid resources, or additional services should be provisioned without team approval.
4. Proposed Logical Architecture
The following diagram represents the preferred single-host design. It is not an as-built diagram.
Internet / Team Browser
|
HTTPS :443
|
Caddy Reverse Proxy
/ | \
/ | \
Gitea Jenkins Grafana
| | |
Git repositories CI Dashboards
| | and alerts
+-----------+----------+
|
Private Docker Networks
|
Prometheus
/ | \
/ | \
Prometheus Node Blackbox
self-scrape Exporter Exporter
| |
Host CPU, HTTPS probes
RAM, disk of Gitea and
Jenkins
Prometheus collects metrics and probe results at a proposed 30-second interval.
Grafana queries Prometheus for dashboard visualization and evaluates Grafana-managed alert rules.
Node Exporter collects Linux host metrics.
Blackbox Exporter probes the externally accessible HTTPS endpoints of Gitea and Jenkins.
Caddy provides authenticated HTTPS access to Grafana through a dedicated hostname.
The final diagram must be updated to match the actual deployment, including Docker networks, service ports, storage, and any cross-host communication.
5. Required Monitoring Components
Component Image repository Function
Prometheus prom/prometheus Time-series metric collection
Grafana OSS grafana/grafana Dashboards and managed alerts
Node Exporter quay.io/prometheus/node-exporter Linux host metrics
Blackbox Exporter quay.io/prometheus/blackbox-exporter HTTPS availability and latency
Before deployment, Sergio must select supported, fixed image tags and record the pulled image digests.
Do not use floating latest tags.
6. Networking and Access Control
Public access
* Caddy: HTTPS port 443 and HTTP port 80 where needed for redirection and certificate management.
* Gitea: HTTPS through Caddy.
* Jenkins: HTTPS through Caddy.
* Grafana: HTTPS through Caddy using a dedicated hostname and authenticated login.
Private services
The following monitoring ports must not be publicly accessible:
* Prometheus: 9090
* Node Exporter: 9100
* Blackbox Exporter: 9115
Grafana’s internal port 3000 must also remain private.
Jenkins backend port 8080 and Gitea backend port 3000 must not be exposed directly to the public internet.
Docker networks and host firewall rules must restrict access appropriately. Validate public exposure from an external machine, including IPv6 where applicable.
Credentials
Store Grafana administrator credentials, notification secrets, and other sensitive values outside version-controlled files.
Do not include passwords, tokens, private webhook URLs, or SSH keys in the repository, screenshots, or final manual.
7. Persistent Storage and Retention
Prometheus must use persistent storage for its time-series database.
Grafana must use persistent storage for its application database and state.
A seven-day Prometheus retention period is proposed, subject to actual available disk capacity.
Version-control sanitized configuration, dashboard definitions, data-source provisioning, and alert-rule definitions.
Persistent Docker volumes must not be deleted during ordinary container restarts or troubleshooting.
Do not use docker compose down -v as a normal recovery command.
8. Required Dashboard
The dashboard must contain exactly six core panels:
1. Whole-host CPU utilization percentage, averaged across CPUs.
2. Available host memory.
3. Available root filesystem percentage.
4. Gitea HTTPS probe success, displayed as 0 or 1.
5. Jenkins HTTPS probe success, displayed as 0 or 1.
6. HTTPS probe duration for both services in seconds.
Use appropriate units, legends, thresholds, time zone, and default time range.
Verify the dashboard against live metrics after deployment.
9. Required Reliability Objectives
Define HTTPS probe success as the service availability SLI.
Use a 99% success objective over a 24-hour window as the exercise SLO.
Clearly distinguish:
* SLI: measured reliability indicator.
* SLO: internal reliability target.
* SLA: contractual reliability commitment; none is established by this exercise.
Complete both the supplied hypothetical calculations and a short actual observation window that includes the controlled Jenkins outage.
Missing probe samples must not automatically be counted as successful requests.
10. Required Alerting
Service availability
A Grafana-managed alert must detect sustained HTTPS probe failure for Gitea or Jenkins, with a pending duration of at least one minute.
Host disk capacity
A Grafana-managed alert must detect root filesystem free space below 15% for five minutes.
Both alerts require:
* Rule owner and severity.
* Query and threshold.
* Evaluation interval and pending duration.
* No-data and error handling.
* Notification destination.
* Runbook.
* Evidence of firing, notification delivery, and resolution.
Test the disk alert by temporarily increasing the threshold above actual free space, then restore the final 15% threshold.
Never fill the disk intentionally to trigger the alert.
11. Controlled Incident Plan
The team must schedule a controlled Jenkins outage of approximately three minutes.
Before the test:
1. Confirm no Jenkins build is running.
2. Record the current service status.
3. Confirm the exact Jenkins stop and restart commands.
4. Confirm monitoring and notifications are operational.
5. Agree on a maintenance window.
During the test:
1. Record the UTC time when Jenkins is stopped.
2. Record the first unsuccessful HTTPS probe.
3. Record alert firing and notification receipt.
4. Record acknowledgment.
5. Restart Jenkins after approximately three minutes.
6. Record the first successful probe.
7. Record alert resolution.
After the test:
1. Verify Jenkins HTTPS access.
2. Run a successful Jenkins pipeline.
3. Verify Gitea remains available.
4. Verify the Gitea Actions manual PDF workflow.
5. Restart Prometheus and Grafana individually without deleting persistent storage.
6. Confirm earlier time-series data, dashboard configuration, and alert rules persist.
7. Complete a blameless incident review.
8. Create two improvement issues with assigned owners.
The incident must not interrupt Gitea intentionally.
12. Rollback and Recovery Plan
Before deployment
* Record the existing running containers and versions.
* Identify current Compose projects, networks, mounts, and configuration locations.
* Confirm the recovery procedure for Gitea, Jenkins, and Caddy.
* Preserve existing application data and backups.
* Record the monitoring configuration commit.
* Confirm adequate capacity.
If monitoring deployment fails
1. Stop or remove only the newly introduced monitoring containers as appropriate.
2. Preserve Prometheus and Grafana persistent volumes.
3. Restore the previously verified monitoring configuration.
4. Confirm Gitea, Jenkins, and Caddy remain operational.
5. Verify external HTTPS access to Gitea and Jenkins.
6. Record the failure, corrective action, and result in the Gitea issue.
If an existing service is affected
1. Stop the monitoring rollout.
2. Identify the affected service and its current status.
3. Follow the service-specific recovery procedure.
4. Avoid deleting or recreating existing application data.
5. Verify HTTPS availability and application functionality.
6. Record the recovery timeline.
Rollback commands must be finalized against the actual Docker deployment before use.
13. Monitoring Failure Domain
If monitoring and monitored services run on the same Droplet, a complete Droplet outage may also disable Prometheus, Grafana, and alert delivery.
This is a shared failure domain.
The final incident review should recommend an independent external uptime check as a prioritized improvement.
14. Evidence and Traceability
The final manual must include:
* Approved deployment architecture and capacity decision.
* Pinned image versions and digests.
* Configuration validation results.
* Deployment commands and container status.
* Prometheus target and host-metric verification.
* HTTPS/TLS and external exposure checks.
* Six-panel Grafana dashboard.
* Jenkins build correlation.
* SLI/SLO calculations and actual observation results.
* Alert firing, notification, and resolution evidence.
* Controlled incident timeline and recovery verification.
* Persistence test results.
* Two improvement issues with owners.
* Reviewed Gitea commits and successful PDF workflow run.
Do not describe planned or untested behavior as verified.
15. Handoff Responsibilities
Turan — preparation: Architecture, proposed configuration, dashboard definitions, hypothetical calculations, alert and incident procedures, and initial manual documentation.
Sergio — implementation: Capacity approval, deployment, networking, security, persistence, live verification, alert testing, controlled incident, evidence collection, final manual updates, reviewed merge, and PDF submission.
Historical preparation checkpoint: Preparation only. Monitoring deployment and operational verification remain pending.
## Verified deployment checkpoint: October 30, 2026
The primary droplet (165.227.90.215) was resized with approval to 2 GiB RAM,
1 vCPU, retaining its 10 GB disk. A pre-resize snapshot is available as 252241628.
Current monthly resource prices: primary $12, second existing droplet $4,
5.65 GB retained snapshot approximately $0.34. No disk expansion was approved.
Monitoring is deployed separately at /opt/ssw590-monitoring. Grafana uses
https://metrics.165.227.90.215.sslip.io and authenticated login; no monitoring
container publishes a host port. Caddy configuration was backed up before reload.
Blackbox Exporter has private address 172.18.0.250 on gitea_default; only this
/32 was added to the existing Jenkins allowlist. It resolves both HTTPS names
to Caddy's inspected private address 172.18.0.3 using CADDY_PRIVATE_IP.
Verify that address after any Caddy recreation and recreate Blackbox if it changes.
This measures a private proxy route with real hostname/TLS verification, not
reachability from every external network. Whole-droplet failure also stops monitoring.
Pinned images: Prometheus v3.15.1, Grafana 13.3.0-slim, Node Exporter v1.12.1,
Blackbox Exporter v0.29.1. The full Grafana image and its unsolicited optional
plugin downloads consumed too much storage; only those new disposable artifacts
were removed. No application data or named volume was deleted. The slim image
needs only the Prometheus plugin, installed at 13.2.4 with:
docker compose exec grafana grafana cli plugins install prometheus 13.2.4
docker compose restart grafana
Optional plugin preinstallation and updates are disabled. Provisioning directories
must be mode 755 and non-secret provisioning files mode 644 so UID 472 can read them.
Keep .env mode 600 and outside Git. Preserve its generated Grafana admin credential.
Required local settings: GRAFANA_ADMIN_PASSWORD, GRAFANA_ROOT_URL,
CADDY_PRIVATE_IP. Run docker compose config --quiet; never publish expanded config.
Prometheus retention is seven days or 512 MB of retained blocks, whichever is reached
first; WAL/head storage is additional. Monitor remaining disk and avoid large upgrades
without checking transient extraction space.
Runtime checks: all five scrape targets up=1, both HTTPS probe_success=1;
Grafana data source, six panels and two provisioned rules loaded. Root labels are
mountpoint=/, device=/dev/vda1, fstype=ext4. Node memory total 2063564800 bytes
matches the host. Dashboard screenshots, notification delivery, incident, pipeline,
persistence and final PDF evidence remain pending. A local preliminary PDF compiled,
but the automated workflow and glossary generation are not yet verified.
## Completed exercise evidence, 2026-10-30
The measured deployment and incident report is in `devopsSREMonitoring.tex`. Both real alert pairs were received in Discord. Jenkins recovery build 3 passed and published its matching success status to Gitea. The 10-minute exercise recorded 20/20 successful Gitea observations and 13/20 Jenkins observations. Separate Prometheus/Grafana restarts retained history and configuration. Human peer review and main merge remain deferred. Earlier preparation/checkpoint sections describe the rollout sequence, not final evidence status. See `evidence/chapter5/` for sanitized records.
## Final audit checkpoint, 2026-10-30
Automatic application polling discovered commit b39613b2d2869065cf363bff36a7b54225cb7438 and built/tested it successfully without a manual trigger. Grafana public /metrics was blocked with the validated versioned Caddyfile. The complete eight-section audit is in devopsSREMonitoring.tex; backup procedure in BACKUP-RECOVERY.md; updated runtime evidence under evidence/chapter5/. The user explicitly deferred global IPv4 SSH restriction. Human peer review remains pending and main stays unmerged. Earlier preparation sections are historical, not the final runtime status.
-11
View File
@@ -1,11 +0,0 @@
# Monitoring backup and recovery procedure
Owner: Sergio (sespinal). This is an operator procedure, not a claim that a new monitoring backup or restore was performed. The retained DigitalOcean snapshot predates monitoring deployment.
1. Arrange a maintenance window and an approved encrypted backup destination outside this droplet. Check free bytes and estimated archive size first; retain the 15% free-space margin. Do not stage a full volume archive on the retained 10 GB root disk unless space is proven sufficient. A second directory on this droplet is not an off-host backup.
2. Record the source commit, image digests, Grafana plugin 13.2.4, Docker volume names and current UTC time. Stop Grafana before copying its SQLite state, and stop Prometheus before copying its entire data directory. Use a shell trap/finally block to restart both services even if copying fails. Leave Gitea, Caddy and Jenkins running.
3. Preserve `/var/lib/docker/volumes/monitoring_grafana_data/_data` and `/var/lib/docker/volumes/monitoring_prometheus_data/_data`, ownership, permissions and timestamps. Grafana's database is `grafana.db`; Prometheus history includes blocks, WAL and head data. Transfer with an approved binary-safe archive/SSH tool to the off-host destination. Also preserve `/opt/ssw590-monitoring/.env`, `grafana/provisioning/alerting/discord.local.yml`, and `/opt/gitea/Caddyfile` privately. Credentials, the Discord URL, sessions, and state archives must never enter Git, the PDF, screenshots or chat. Use root-only local permissions and encrypted storage/transport. Pin/reinstall the Prometheus plugin if omitting its reconstructible plugin files from the archive.
4. Restart using `docker compose start prometheus grafana` in `/opt/ssw590-monitoring`; check health, old samples, dashboard, datasource, rules, contact point and both probes. Record the collection gap. Generate and verify archive checksums at source and destination. Retain a dated inventory and agreed retention period. Remove temporary local archives only after destination verification and owner approval.
5. Prove recovery in isolated replacement volumes, not by overwriting the live volumes. Use the same source/images/plugin first; restore files with UID 472 for Grafana and the original Prometheus ownership. Restore the protected environment/contact provisioning privately, validate configuration and verify historical query results, HTTPS, alert routing and a test notification. An isolated recovery success is separate evidence from the already completed container restart test. Do not delete the live volumes or revert the droplet without explicit authorization.
Example checks (read-only): `docker volume inspect monitoring_grafana_data monitoring_prometheus_data`; `df -B1 /`; `du -sb <verified-volume-path>`. Any archive/restore commands must use the inspected paths and the approved backup destination. Review the official Grafana backup guide and Prometheus storage guidance cited in the manual.
-22
View File
@@ -1,22 +0,0 @@
git.sespinal590.dev {
encode zstd gzip
reverse_proxy gitea:3000
}
ci.165.227.90.215.sslip.io {
encode zstd gzip
@approved remote_ip 155.246.151.38/32 172.18.0.1/32 172.18.0.250/32
handle @approved {
reverse_proxy jenkins:8080
}
handle {
respond "Jenkins access requires an approved team source or administrator tunnel." 403
}
}
metrics.165.227.90.215.sslip.io {
encode zstd gzip
@rawMetrics path /metrics /metrics/*
respond @rawMetrics "Raw metrics are private." 403
reverse_proxy grafana:3000
}
-179
View File
@@ -1,179 +0,0 @@
# Chapter 5 — SLI, SLO, and Error Budget
## 1. Service Level Indicator (SLI)
The availability SLI measures the fraction of successful HTTPS probes.
SLI = Successful HTTPS probes / Total observed HTTPS probes
A successful probe requires:
- HTTP 200 response.
- Valid TLS certificate.
- Completion within the configured probe timeout.
Prometheus collects probe results every 30 seconds.
The Gitea and Jenkins services are measured independently.
## 2. Service Level Objective (SLO)
The laboratory availability objective is:
SLO >= 99% over a 24-hour observation window.
At a 30-second sampling interval:
24 hours * 60 minutes * 2 samples per minute = 2880 scheduled samples.
The permitted failure fraction is:
100% - 99% = 1%.
Error budget:
2880 * 0.01 = 28.8 failed samples.
Because samples are discrete, the maximum number of failed samples
that still satisfies the SLO is 28.
Equivalent scheduled failure time:
28.8 * 30 seconds = 864 seconds = 14.4 minutes.
The discrete sample limit is 28 * 30 = 840 seconds = 14 minutes.
## 3. Mandatory Hypothetical Example
The following values are hypothetical assignment examples,
not actual measurements from the deployed system.
Gitea:
- Successful probes: 2880
- Scheduled probes: 2880
- Availability: 100%
- Result: PASS
Jenkins:
- Successful probes: 2850
- Scheduled probes: 2880
- Failed probes: 30
- Availability: 98.9583%
- Result: FAIL
Jenkins exceeds the permitted error budget by:
30 - 28.8 = 1.2 failed-sample equivalents.
The Jenkins example therefore does not meet the 99% SLO.
## 4. PromQL — Current Probe Status
Gitea:
probe_success{job="https",instance="https://git.sespinal590.dev/"}
Jenkins:
probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}
Interpretation:
- 1 = successful HTTPS probe.
- 0 = unsuccessful HTTPS probe.
- Missing series = no observation; do not automatically classify as success.
## 5. PromQL — Observed Availability
Gitea:
avg_over_time(probe_success{job="https",instance="https://git.sespinal590.dev/"}[24h]) * 100
Jenkins:
avg_over_time(probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}[24h]) * 100
These queries calculate the percentage of successful observed samples.
They do not prove that all 2880 scheduled samples were collected.
## 6. PromQL — Observed Sample Counts
Gitea:
count_over_time(probe_success{job="https",instance="https://git.sespinal590.dev/"}[24h])
Jenkins:
count_over_time(probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}[24h])
Compare observed sample counts with the expected sampling schedule.
A short observation window must be labeled as a short observation window.
## 7. PromQL — Observed Failed Probes
Gitea:
count_over_time(probe_success{job="https",instance="https://git.sespinal590.dev/"}[24h])
-
sum_over_time(probe_success{job="https",instance="https://git.sespinal590.dev/"}[24h])
Jenkins:
count_over_time(probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}[24h])
-
sum_over_time(probe_success{job="https",instance="https://ci.165.227.90.215.sslip.io/login"}[24h])
These queries count observed failed probes.
Missing samples require separate investigation.
## 8. Controlled Outage Measurement
During the planned Jenkins-only outage, record:
- Exact UTC outage start time.
- Exact UTC outage end time.
- First failed HTTPS probe.
- Alert firing time.
- Notification receipt time.
- First successful recovery probe.
- Alert resolution time.
Calculate the observed availability over the selected test window.
Record the actual number of observed samples and failed samples.
Do not substitute the hypothetical 24-hour example for real measurements.
## 9. Jenkins Monitoring Access Requirement
Jenkins currently uses a Caddy IP allowlist.
An unapproved HTTPS request returns HTTP 403.
The Jenkins backend /login endpoint was independently observed
returning HTTP 200 from inside the Caddy container.
Before deployment, the team must arrange narrowly scoped monitoring
access that preserves the existing security restriction.
HTTP 403 must not be counted as a successful Jenkins probe.
## 10. Evidence Required Before Submission
Capture evidence of:
- Prometheus HTTPS probe targets.
- Actual probe_success results.
- Observed sample counts.
- Observed availability calculations.
- Jenkins controlled outage.
- Detection and recovery timestamps.
- SLO and error-budget interpretation.
The hypothetical example must be clearly distinguished from
the actual deployment measurements.
## Measured exercise, 2026-10-30
Evaluation 20:45:00 UTC, range (20:35:00,20:45:00], interval 30s. avg_over_time(probe_success{job="https"}[10m]), count_over_time and sum_over_time returned: Gitea 20 received/20 expected, 20 successes, 100%; Jenkins 20/20, 13 successes, 7 failures, 65%. Coverage was 100% for this interval. Missing samples in other windows remain unknown, never success. This short window cannot establish the full-day SLO. Raw results: evidence/chapter5/sli-persistence.json.
-13
View File
@@ -1,13 +0,0 @@
modules:
http_2xx:
prober: http
timeout: 10s
http:
method: GET
follow_redirects: true
preferred_ip_protocol: ip4
ip_protocol_fallback: true
valid_status_codes:
- 200
tls_config:
insecure_skip_verify: false
-86
View File
@@ -1,86 +0,0 @@
name: monitoring
services:
prometheus:
image: prom/prometheus:${PROMETHEUS_VERSION:-v3.15.1}
restart: unless-stopped
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=7d
- --storage.tsdb.retention.size=512MB
- --web.listen-address=0.0.0.0:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
networks:
- monitoring_private
security_opt:
- no-new-privileges:true
grafana:
image: grafana/grafana:${GRAFANA_VERSION:-13.3.0-slim}
restart: unless-stopped
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: ${GRAFANA_ADMIN_PASSWORD:?Set GRAFANA_ADMIN_PASSWORD}
GF_PLUGINS_PREINSTALL_DISABLED: "true"
GF_PLUGINS_PREINSTALL_AUTO_UPDATE: "false"
GF_AUTH_ANONYMOUS_ENABLED: "false"
GF_USERS_ALLOW_SIGN_UP: "false"
GF_SECURITY_COOKIE_SECURE: "true"
GF_ANALYTICS_REPORTING_ENABLED: "false"
GF_SERVER_ROOT_URL: ${GRAFANA_ROOT_URL:?Set GRAFANA_ROOT_URL}
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
networks:
- monitoring_private
- gitea_proxy
security_opt:
- no-new-privileges:true
node-exporter:
image: quay.io/prometheus/node-exporter:${NODE_EXPORTER_VERSION:-v1.12.1}
restart: unless-stopped
command:
- --path.rootfs=/host
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
pid: host
volumes:
- /:/host:ro,rslave
networks:
- monitoring_private
security_opt:
- no-new-privileges:true
blackbox-exporter:
image: quay.io/prometheus/blackbox-exporter:${BLACKBOX_EXPORTER_VERSION:-v0.29.1}
restart: unless-stopped
command:
- --config.file=/etc/blackbox/blackbox.yml
volumes:
- ./blackbox/blackbox.yml:/etc/blackbox/blackbox.yml:ro
extra_hosts:
- "ci.165.227.90.215.sslip.io:${CADDY_PRIVATE_IP:?Set CADDY_PRIVATE_IP}"
- "git.sespinal590.dev:${CADDY_PRIVATE_IP:?Set CADDY_PRIVATE_IP}"
networks:
monitoring_private:
gitea_proxy:
ipv4_address: 172.18.0.250
security_opt:
- no-new-privileges:true
networks:
monitoring_private:
driver: bridge
gitea_proxy:
external: true
name: gitea_default
volumes:
prometheus_data:
grafana_data:
@@ -1,257 +0,0 @@
{
"uid": "sre-overview",
"title": "Chapter 5 - SRE Monitoring Overview",
"tags": ["sre", "chapter5", "monitoring"],
"timezone": "utc",
"schemaVersion": 39,
"version": 1,
"refresh": "30s",
"time": {
"from": "now-1h",
"to": "now"
},
"templating": {
"list": []
},
"annotations": {
"list": []
},
"panels": [
{
"id": 1,
"title": "Host CPU Utilization (%)",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"targets": [
{
"refId": "A",
"expr": "100 * (1 - avg by (instance) (rate(node_cpu_seconds_total{mode=\"idle\",job=\"node-exporter\"}[5m])))",
"legendFormat": "CPU used"
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
}
},
{
"id": 2,
"title": "Host Available RAM",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"targets": [
{
"refId": "A",
"expr": "node_memory_MemAvailable_bytes{job=\"node-exporter\"}",
"legendFormat": "Available RAM"
}
],
"fieldConfig": {
"defaults": {
"unit": "bytes"
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
}
},
{
"id": 3,
"title": "Root Disk Available (%)",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"targets": [
{
"refId": "A",
"expr": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}",
"legendFormat": "Root disk available"
}
],
"fieldConfig": {
"defaults": {
"unit": "percent",
"min": 0,
"max": 100
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
}
},
{
"id": 4,
"title": "Gitea HTTPS Availability",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 8
},
"targets": [
{
"refId": "A",
"expr": "probe_success{job=\"https\",instance=\"https://git.sespinal590.dev/user/login\"}",
"legendFormat": "Gitea HTTPS success"
}
],
"fieldConfig": {
"defaults": {
"min": 0,
"max": 1,
"decimals": 0
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
}
},
{
"id": 5,
"title": "Jenkins HTTPS Availability",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 16
},
"targets": [
{
"refId": "A",
"expr": "probe_success{job=\"https\",instance=\"https://ci.165.227.90.215.sslip.io/login\"}",
"legendFormat": "Jenkins HTTPS success"
}
],
"fieldConfig": {
"defaults": {
"min": 0,
"max": 1,
"decimals": 0
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
}
},
{
"id": 6,
"title": "HTTPS Response Time (seconds)",
"type": "timeseries",
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 16
},
"targets": [
{
"refId": "A",
"expr": "probe_duration_seconds{job=\"https\",instance=\"https://git.sespinal590.dev/user/login\"}",
"legendFormat": "Gitea"
},
{
"refId": "B",
"expr": "probe_duration_seconds{job=\"https\",instance=\"https://ci.165.227.90.215.sslip.io/login\"}",
"legendFormat": "Jenkins"
}
],
"fieldConfig": {
"defaults": {
"unit": "s",
"min": 0
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single"
}
}
}
]
}
@@ -1,119 +0,0 @@
apiVersion: 1
groups:
- orgId: 1
name: Chapter 5 SRE Alerts
folder: SRE Monitoring
interval: 30s
rules:
- uid: sre-https-unavailable
title: HTTPS Service Unavailable
condition: C
for: 1m
noDataState: NoData
execErrState: Error
annotations:
runbook_url: https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md
summary: "HTTPS probe failure for {{ $labels.instance }}"
description: "The HTTPS probe has failed continuously for at least one minute."
labels:
owner: sespinal
severity: critical
chapter: "5"
data:
- refId: A
relativeTimeRange:
from: 300
to: 0
datasourceUid: prometheus
model:
datasource:
type: prometheus
uid: prometheus
editorMode: code
expr: 'probe_success{job="https"} or on(instance,job) (0 * up{job="https"})'
instant: true
intervalMs: 30000
maxDataPoints: 43200
refId: A
- refId: B
relativeTimeRange:
from: 0
to: 0
datasourceUid: __expr__
model:
type: reduce
expression: A
reducer: last
refId: B
conditions: []
- refId: C
relativeTimeRange:
from: 0
to: 0
datasourceUid: __expr__
model:
type: threshold
expression: B
refId: C
conditions:
- evaluator:
type: lt
params:
- 1
- uid: sre-root-disk-low
title: Host Root Disk Space Low
condition: C
for: 5m
noDataState: NoData
execErrState: Error
annotations:
runbook_url: https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md
summary: "Host root disk availability below 15%"
description: "Available root filesystem space has remained below 15% for five minutes."
labels:
owner: sespinal
severity: warning
chapter: "5"
data:
- refId: A
relativeTimeRange:
from: 300
to: 0
datasourceUid: prometheus
model:
datasource:
type: prometheus
uid: prometheus
editorMode: code
expr: '100 * node_filesystem_avail_bytes{job="node-exporter",mountpoint="/",fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes{job="node-exporter",mountpoint="/",fstype!~"tmpfs|overlay"}'
instant: true
intervalMs: 30000
maxDataPoints: 43200
refId: A
- refId: B
relativeTimeRange:
from: 0
to: 0
datasourceUid: __expr__
model:
type: reduce
expression: A
reducer: last
refId: B
conditions: []
- refId: C
relativeTimeRange:
from: 0
to: 0
datasourceUid: __expr__
model:
type: threshold
expression: B
refId: C
conditions:
- evaluator:
type: lt
params:
- 15
@@ -1,12 +0,0 @@
apiVersion: 1
providers:
- name: SRE Monitoring
orgId: 1
folder: SRE Monitoring
type: file
disableDeletion: true
editable: false
updateIntervalSeconds: 30
options:
path: /var/lib/grafana/dashboards
@@ -1,12 +0,0 @@
apiVersion: 1
datasources:
- name: Prometheus
uid: prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true
editable: false
jsonData:
timeInterval: 30s
-40
View File
@@ -1,40 +0,0 @@
global:
scrape_interval: 30s
evaluation_interval: 30s
scrape_configs:
- job_name: prometheus
static_configs:
- targets:
- prometheus:9090
- job_name: node-exporter
static_configs:
- targets:
- node-exporter:9100
- job_name: blackbox-exporter
static_configs:
- targets:
- blackbox-exporter:9115
- job_name: https
metrics_path: /probe
params:
module:
- http_2xx
static_configs:
- targets:
- https://git.sespinal590.dev/user/login
- https://ci.165.227.90.215.sslip.io/login
relabel_configs:
- source_labels:
- __address__
target_label: __param_target
- source_labels:
- __param_target
target_label: instance
- target_label: __address__
replacement: blackbox-exporter:9115
+7
View File
@@ -3,7 +3,14 @@ git.sespinal590.dev {
reverse_proxy gitea:3000 reverse_proxy gitea:3000
} }
# Current team source explicitly approved on 2026-10-21; review when networks change.
ci.165.227.90.215.sslip.io { ci.165.227.90.215.sslip.io {
encode zstd gzip encode zstd gzip
@approved remote_ip 155.246.151.38/32 172.18.0.1/32
handle @approved {
reverse_proxy jenkins:8080 reverse_proxy jenkins:8080
}
handle {
respond "Jenkins access requires an approved team source or administrator tunnel." 403
}
} }
+7
View File
@@ -1,4 +1,11 @@
# Current team source explicitly approved on 2026-10-21; review when networks change.
ci.165.227.90.215.sslip.io { ci.165.227.90.215.sslip.io {
encode zstd gzip encode zstd gzip
@approved remote_ip 155.246.151.38/32 172.18.0.1/32
handle @approved {
reverse_proxy jenkins:8080 reverse_proxy jenkins:8080
}
handle {
respond "Jenkins access requires an approved team source or administrator tunnel." 403
}
} }
+12 -16
View File
@@ -1,30 +1,26 @@
pipeline { pipeline {
agent any agent { label 'controller-small-trusted' }
options {
skipDefaultCheckout()
disableConcurrentBuilds()
timeout(time: 5, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr: '20'))
}
stages { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
checkout scm checkout scm
sh 'git rev-parse HEAD && python3 --version'
} }
} }
stage('Syntax check') {
stage('Lint') {
steps { steps {
sh ''' sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
set -eu
test -f README.md
grep -qi "startup" README.md
'''
} }
} }
stage('Unit tests') {
stage('Automated Test') {
steps { steps {
sh ''' sh 'python3 -m unittest discover -s tests -v'
set -eu
printf "CI smoke test for startup-product\\n"
find . -maxdepth 2 -type f | sort | head -20
'''
} }
} }
} }
+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
set -eu
# Run on the Droplet after creating/recreating the official Jenkins container.
docker exec --user root jenkins sh -c 'apt-get update -qq && apt-get install -y --no-install-recommends python3 && rm -rf /var/lib/apt/lists/*'
docker exec jenkins python3 --version
docker exec jenkins git --version
+20
View File
@@ -0,0 +1,20 @@
\resizebox{\linewidth}{!}{%
\begin{tikzpicture}[font=\small,box/.style={draw,rounded corners,align=center,text width=2.8cm,minimum height=1.3cm},arr/.style={-{Latex[length=2mm]},thick}]
\node[box,text width=2.3cm] (browser) at (0,0) {\guillemotleft device\guillemotright\\Team browser};
\node[box,text width=2.6cm] (fw) at (3.8,0) {Cloud Firewall\\TCP 443\\HTTP 80 for redirect};
\node[box] (proxy) at (10.8,0) {\guillemotleft container\guillemotright\\Caddy TLS proxy};
\node[box,text width=3.0cm] (jenkins) at (8.0,-3.8) {\guillemotleft container\guillemotright\\Jenkins controller\\checkout and tests};
\node[box] (gitea) at (13.5,-3.8) {\guillemotleft container\guillemotright\\Gitea :3000};
\node[box] (jh) at (8.0,-6.5) {Jenkins home\\host bind mount};
\node[box] (gd) at (13.5,-6.5) {Gitea data\\SQLite + repositories};
\draw[dashed] (6.0,1.2) rectangle (15.5,-7.5);
\node[align=center] at (10.75,1.6) {\guillemotleft device\guillemotright\ DigitalOcean Droplet 165.227.90.215};
\draw[arr] (browser)--(fw);
\draw[arr] (fw)--node[above]{HTTPS}(proxy);
\draw[arr] (proxy)--node[left=2mm,align=right]{private\\:8080}(jenkins);
\draw[arr] (proxy)--node[right=2mm,align=left]{private\\:3000}(gitea);
\draw[arr] ([yshift=3mm]jenkins.east)--node[above,align=center,font=\footnotesize]{poll / checkout\\commit status}([yshift=3mm]gitea.west);
\draw[arr] ([yshift=-3mm]gitea.west)--node[below,align=center,font=\footnotesize]{API / Git\\responses}([yshift=-3mm]jenkins.east);
\draw[arr] (jenkins)--(jh);
\draw[arr] (gitea)--(gd);
\end{tikzpicture}}
+71
View File
@@ -0,0 +1,71 @@
apache-httpcomponents-client-4-api:4.5.14-269.vfa_2321039a_83
asm-api:9.10.1-216.va_9256d3b_844b_
authentication-tokens:1.144.v5ff4a_5ec5c33
bouncycastle-api:2.30.1.82-277.v70ca_0b_877184
branch-api:2.1303.v9f3b_95dc329d
caffeine-api:3.2.3-194.v31a_b_f7a_b_5a_81
checks-api:422.vc7e8b_51488c6
cloudbees-folder:6.1106.v3a_d9a_6d2465e
command-launcher:123.v37cfdc92ef67
commons-lang3-api:3.21.0-122.v6a_ea_4fd34049
commons-text-api:1.15.0-218.va_61573470393
credentials:1487.va_d001ede2c31
credentials-binding:728.v902a_273b_8947
display-url-api:2.217.va_6b_de84cc74b_
durable-task:686.v80ff80875b_82
eddsa-api:0.3.0.1-19.vc432d923e5ee
git:5.10.1
git-client:6.6.1
gitea:273.vb_78d13f6d9a_d
gitea-checks:604.638.ve9e5472551b_3
gson-api:2.13.2-173.va_a_092315913c
handy-uri-templates-2-api:2.1.8-38.vcea_5d521d5f3
instance-identity:203.v15e81a_1b_7a_38
ionicons-api:94.vcc3065403257
jackson-annotations2-api:2.22-19.v10a_a_582ea_26e
jackson2-api:2.21.2-436.v29efdb_7418ff
jakarta-activation-api:2.1.4-1
jakarta-mail-api:2.1.5-1
jakarta-xml-bind-api:4.0.9-19.v2b_a_5b_44d9a_1c
javax-activation-api:1.2.0-8
javax-mail-api:1.6.2-11
jaxb:2.3.9-133.vb_ec76a_73f706
jdk-tool:83.v417146707a_3d
joda-time-api:2.15.0-208.v6b_084e7a_d9f0
json-api:20260814-226.v20f9685d642c
mailer:534.v1b_36f5864073
mina-sshd-api-common:2.16.0-167.va_269f38cc024
mina-sshd-api-core:2.16.0-167.va_269f38cc024
pipeline-build-step:601.v6d4c6d1a_9dc7
pipeline-graph-analysis:254.v0f63a_a_447dca_
pipeline-groovy-lib:798.v5cc688825312
pipeline-input-step:560.v56198a_642157
pipeline-milestone-step:152.v6e22b_8cfc66c
pipeline-model-api:2.2293.v6e7193cec599
pipeline-model-definition:2.2293.v6e7193cec599
pipeline-model-extensions:2.2293.v6e7193cec599
pipeline-rest-api:2.41
pipeline-stage-step:345.va_96187909426
pipeline-stage-tags-metadata:2.2293.v6e7193cec599
pipeline-stage-view:2.41
plain-credentials:199.v9f8e1f741799
plugin-util-api:6.1192.v30fe6e2837ff
scm-api:728.vc30dcf7a_0df5
script-security:1399.ve6a_66547f6e1
snakeyaml-api:2.7-152.vc672728cf536
ssh-credentials:372.va_250881b_08cd
sshd:3.374.v19b_d59ce6610
structs:362.va_b_695ef4fdf9
trilead-api:2.209.v0e69b_c43c245
variant:70.va_d9f17f859e0
woodstox-core-api:7.3.0-16.v017f30ed004c
workflow-aggregator:608.v67378e9d3db_1
workflow-api:1384.vdc05a_48f535f
workflow-basic-steps:1098.v808b_fd7f8cf4
workflow-cps:4350.vcc65d4958821
workflow-durable-task-step:1479.v56e587f413a_7
workflow-job:1571.1580.v18e46842c125
workflow-multibranch:841.vec5b_9e1806ec
workflow-scm-step:487.v41313a_96b_65d
workflow-step-api:724.v538c2362b_dfb_
workflow-support:1015.v785e5a_b_b_8b_22
+25
View File
@@ -0,0 +1,25 @@
# Chapter 4 Jenkins configuration
Use official `jenkins/jenkins:2.528.1-lts-jdk21`, the existing private `gitea_default` Docker network, persistent `/opt/jenkins/home`, and no published Jenkins/agent ports. Apply compose.yml from `/opt/jenkins`. Run bootstrap-executor.sh after container creation/recreation; installing Python inside a container survives restart but does not survive recreation. Python observed: 3.13.5; Git: 2.47.3. No pip dependencies or Docker socket are needed.
Retain the home directory and a rollback copy before plugin changes. plugins.txt records every loaded plugin/version after repair; it is a version inventory, not a claim that all are the newest available. Four previously incompatible dependencies were aligned: bouncycastle-api 2.30.1.82-277.v70ca_0b_877184, caffeine-api 3.2.3-194.v31a_b_f7a_b_5a_81, gson-api 2.13.2-173.va_a_092315913c, script-security 1399.ve6a_66547f6e1. Verify zero failed plugins after restart. Refresh the update center, review advisories/core compatibility, and schedule newer versions as a separate tested upgrade; never blindly replace the working plugin set.
In Manage Jenkins > System > Gitea Servers, register `http://gitea:3000`, with automatic webhook management off. Create a Multibranch Pipeline named `startup-product-ci`, Gitea source owner `group10-startup`, repository `startup-product`, and credential ID `gitea-startup-ci` (Gitea personal access token). The restricted, non-admin `jenkins-ci` bot has collaborator access only to startup-product and token scopes write:repository/read:user. Gitea requires repository write access for status publication. Keep the token in Jenkins credentials; do not put its value in a pipeline or this repository.
Discover branches excluding those with open PRs (strategy 1). Discover origin PR heads (strategy 2); do not discover fork PRs. Jenkinsfile path: Jenkinsfile. Configure Scan Multibranch Pipeline Triggers > Periodically if not otherwise run for 1 minute. This is the rubric-permitted polling fallback. No webhook delivery is claimed. An initial indexing failure `Unknown server: http://gitea:3000` was fixed by registering the endpoint globally. A subsequent corrective push was discovered automatically: PR-9 run 2, commit ed8684a2897c407946320183e572f6412dbb7703.
Set Jenkins URL to `https://ci.165.227.90.215.sslip.io/`, one controller executor, label `controller-small-trusted`; the small course-only trusted build runs here. Disable self-registration and anonymous read. Restrict pipeline changes to trusted team writers; do not add untrusted forks, privileged mounts, or build-secret bindings. Settings/jobs/build history persist under Jenkins home. A controller build remains a security tradeoff; use an isolated agent and zero controller executors before accepting untrusted contributions.
Protect `main`: required context `startup-product-ci/pipeline/pr-main`, one approval, dismiss stale approvals, block rejected reviews, direct pushes disabled, force pushes disabled, admin merge override disabled. The check must match the latest PR head. Issue 8 and PR 9 contain the controlled failure and repair. Peer approval and eventual merge must be performed and recorded honestly.
For a failed check, open the exact linked run, compare its checked-out SHA with the PR head, then inspect the first failed stage. For missing checks, verify periodic scan timestamp/result, registered Gitea URL, token permission, network connectivity, plugin activation, and context spelling. If switching to webhooks later, scope events/destination, inspect delivery status, and keep the Jenkins interface private. Never disable CSRF to repair scripted requests; retain the session cookie with its crumb or use an approved Jenkins API token.
Restart: `cd /opt/jenkins && docker compose restart jenkins`. Verify the login, job, run history, configured polling, and absence of failed plugins. For cleanup stop the Jenkins container and disable its scan; revoke the CI bot token when integration is retired. Do not delete persistent home or shared Gitea/Caddy data. No new paid cloud resource was provisioned for Chapter 4.
## Browser access, 2026-10-21
Sergio explicitly approved CI access only from 155.246.151.38/32 and Docker host gateway 172.18.0.1/32. The updated Caddyfile-snippet reflects the deployed matcher. Approved source GET returned 200; an excluded container using a validated TLS connection to private Caddy returned 403. Gitea is unaffected. Verify administrator access before every source restriction change. Instructor viewing can occur on an approved network with the operator, or through the documented administrator-assisted SSH tunnel; no instructor Jenkins sign-in is required. Current account-side Cloud Firewall rule inspection remains pending.
## October 23 deadline exception
PR #9 merged as 6cfac4ec1e6d56dbb0b1a66bd59775b9db6ed065 at Sergio's explicit request without peer approval. Required approvals were temporarily lowered to zero, then restored to one; the required CI context and other protections stayed enabled. main/2 passed the merged application tests. No Turan review is claimed. See evidence/chapter4/oct23-merge.json and the manual for the unmet rubric requirement.