Compare commits

..
Author SHA1 Message Date
jenkins-ci 3c50432eb8 Document release evidence with screenshots and correct version
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 3m21s
2026-11-08 13:55:59 -05:00
jenkins-ci 436454548a Clarify architecture diagram connections
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m54s
2026-11-08 11:43:55 -05:00
jenkins-ci e5865202ab Complete assignment 8 evidence and architecture documentation 2026-11-08 11:42:19 -05:00
glovely 48704e0eff Merge pull request 'Document secure delivery evidence and production monitoring' (#21) from assignment8/documentation into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m47s
Reviewed-on: #21
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-08 16:24:42 +00:00
nkogut 4fa2bed7ba Update handoff with review and Grafana status
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 16:20:36 +00:00
nkogut b31a247244 Record verified production health dashboard
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 16:20:01 +00:00
jenkins-ci 3cf24224f5 Document secure delivery evidence and production monitoring
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-08 11:13:54 -05:00
glovely ee128d18bd Merge pull request 'Release v2 pricing at $12 per unit' (#20) from assignment8/v2-release into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 3m5s
Reviewed-on: #20
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-07 22:53:47 +00:00
nkogut 4d7e4f932f Set release intent to v2
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 22:49:35 +00:00
nkogut 699d509024 Update tests for v2 pricing
myfileagent-python-ci/pipeline/head Build queued...
2026-11-07 22:49:16 +00:00
nkogut 126dbb00b3 Prepare v2 pricing source
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 22:48:53 +00:00
glovely 0cb5a34cc4 Merge pull request 'Allow staging health checks more time under load' (#19) from assignment8/healthcheck-review into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m52s
Reviewed-on: #19
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-07 22:30:51 +00:00
nkogut 746b42b72b Allow staging health checks more time under load
myfileagent-python-ci/pipeline/pr-main This commit looks good
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 22:28:21 +00:00
nkogut 935eaa8624 Merge pull request 'Assignment 8: audit coverage and release evidence' (#18) from assignment8/secure-delivery into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 2m11s
Reviewed-on: #18
Reviewed-by: glovely <glovely@stevens.edu>
2026-11-07 22:15:34 +00:00
nkogut 9e96c83197 Merge branch 'main' into assignment8/secure-delivery
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 22:11:07 +00:00
Codex 35523ccd3c Add Assignment 8 continuation handoff and v2 preview
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 21:49:23 +00:00
Codex 88f3bb0d0a Audit all pinned dependencies and preserve release evidence
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-07 21:44:33 +00:00
nkogut 6ba31a3b44 Merge pull request 'Assignment 8 secure delivery foundation' (#17) from assignment8/secure-delivery into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 3m36s
Reviewed-on: #17
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-11-07 21:38:39 +00:00
Codex c1cd3ad9af Document reproducible agent and current validation
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 21:32:11 +00:00
Codex 65e401172b Harden delivery checks and record test-gate evidence
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-11-07 21:23:35 +00:00
Codex b8a2529ce9 Record registry verification and protect release evidence
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:48:46 +00:00
Codex b0e8cead18 Prepare target registry authentication
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:42:16 +00:00
Codex 2bdb431ef2 Draft reviewed release pipeline and document proxy setup 2026-11-04 20:41:36 +00:00
Codex 4cc9a2c6ac Prepare Jenkins SSH credential verification
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:23:14 +00:00
Codex 80c7fe2bdc Prepare pricing routes and release records
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:16:13 +00:00
Codex 55abfbc951 Prepare dedicated deployment account and record security checks 2026-11-04 20:12:24 +00:00
Codex dd7c12c519 Record security validation and expand repository scan
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 20:08:01 +00:00
Codex 28d13ef5b8 Add security validation stages and record blocked gate
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 19:58:51 +00:00
Codex 83da3087c9 Use scanned lean pricing image and record baseline evidence 2026-11-04 19:49:32 +00:00
Codex c35558c20b Record validation and define release scan policy 2026-11-04 19:41:49 +00:00
Codex 242372e381 Prepare application and Ansible validation pipeline
myfileagent-python-ci/pipeline/head This commit looks good
2026-11-04 19:30:57 +00:00
Codex f44cebd00e Record passing Jenkins agent verification 2026-11-04 19:27:26 +00:00
Codex f55a36468c Prepare restricted Jenkins delivery agent 2026-11-04 19:24:55 +00:00
Codex bda4ac8240 Pin pricing base image and record baseline evidence 2026-11-04 19:06:22 +00:00
Codex 344dbcbcd4 Add pricing service and Ansible starter with pinned dependencies 2026-11-04 19:01:59 +00:00
nkogut 10c85ea655 Merge pull request 'Finalize Assignment 7 manual v1.9.2' (#16) from assignment7/manual-1.9.2 into main
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 1m57s
Reviewed-on: #16
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-11-04 18:41:57 +00:00
jenkins-ci c3ed52e1da Keep chapter identifiers and alert header inside final PDF margins
myfileagent-python-ci/pipeline/pr-main This commit looks good
Team manual PDF / manual (push) Successful in 2m3s
2026-10-28 23:57:20 +00:00
Codex (authorized Assignment 5 implementation) 0f56106723 Finalize manual v1.9.2 wording, history, and table wrapping
myfileagent-python-ci/pipeline/head This commit looks good
Team manual PDF / manual (push) Successful in 1m59s
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-28 23:50:54 +00:00
nkogut acdd4c0a4c Merge pull request 'Assignment 7 SRE manual v1.9.0 — source review only' (#15) from assignment7/sre-documentation into main
Team manual PDF / manual (push) Successful in 3m0s
myfileagent-python-ci/pipeline/head This commit looks good
Reviewed-on: #15
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-10-28 18:44:13 +00:00
Codex (authorized Assignment 5 implementation) ced96c8a2b Document Assignment 7 SRE deployment, reliability evidence, and Grafana registry
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-28 18:38:41 +00:00
nkogut b42689f02f Merge pull request 'Assignment 7: add tested monitoring, alerts, and incident evidence' (#14) from assignment7/monitoring into main
myfileagent-python-ci/pipeline/head This commit looks good
Assignment 5 manual PDF / manual (push) Successful in 1m36s
Reviewed-on: #14
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-10-28 18:03:59 +00:00
Codex (authorized Assignment 5 implementation) 6605394d7a Add Assignment 7 monitoring, tested alerts, and incident evidence
myfileagent-python-ci/pipeline/head This commit looks good
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-28 17:51:31 +00:00
glovely 131d605c5e Merge pull request 'Assignment 6: enforce Python CI before merging' (#11) from assignment6/python-ci into main
Assignment 5 manual PDF / manual (push) Successful in 1m11s
myfileagent-python-ci/pipeline/head This commit looks good
Reviewed-on: #11
Reviewed-by: nkogut <nkogut@stevens.edu>
2026-10-09 19:14:44 +00:00
Codex (authorized Assignment 5 implementation) b7ef4850b7 Record private webhook configuration and enforced PR merge gate
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-09 19:08:59 +00:00
Codex (authorized Assignment 5 implementation) 02d31699aa Repair pricing multiplication and restore passing CI for #10
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-09 19:05:51 +00:00
Codex (authorized Assignment 5 implementation) d6477b3df6 Demonstrate failing pricing calculation for issue #10
myfileagent-python-ci/pipeline/pr-main There was a failure building this commit
2026-10-09 19:04:32 +00:00
nkogut ad056a363c Update project name to MyFileAgent
myfileagent-python-ci/pipeline/pr-main This commit looks good
2026-10-09 19:02:06 +00:00
Codex (authorized Assignment 5 implementation) 041adfcda4 Add Assignment 6 Python application and Jenkins pipeline
myfileagent-python-ci/pipeline/head This commit looks good
2026-10-09 18:33:17 +00:00
Codex (authorized Assignment 5 implementation) 4a67a09780 Include NK in latest AI assistance record
Assignment 5 manual PDF / manual (push) Successful in 1m2s
2026-10-07 21:41:15 +00:00
Codex (authorized Assignment 5 implementation) 8a9f4b3b5b Apply final manual editorial revisions
Assignment 5 manual PDF / manual (push) Successful in 49s
2026-10-07 21:36:36 +00:00
Codex (authorized Assignment 5 implementation) 2b82307761 Consolidate 1.7.1 records and clarify Chapter 3 rubric coverage
Assignment 5 manual PDF / manual (push) Successful in 1m0s
2026-10-07 19:09:56 +00:00
Codex (authorized Assignment 5 implementation) d812910ba8 Keep runner and credential labels within their table columns
Assignment 5 manual PDF / manual (push) Successful in 1m3s
2026-10-07 18:30:15 +00:00
Codex (authorized Assignment 5 implementation) b6511602f7 Finish manual navigation and align the tested build guide
Assignment 5 manual PDF / manual (push) Successful in 55s
2026-10-07 18:25:58 +00:00
Codex (authorized Assignment 5 implementation) db2a8be2ec Document verified manual builds, controlled failure and repair
Assignment 5 manual PDF / manual (push) Successful in 48s
2026-10-07 01:33:23 +00:00
Codex (authorized Assignment 5 implementation) 2b8be117c7 Improve manual traceability layout and record first source build
Assignment 5 manual PDF / manual (push) Successful in 54s
2026-10-07 01:28:49 +00:00
Codex (authorized Assignment 5 implementation) c74087a93b Build the complete Assignment 5 manual on trusted branch pushes
Assignment 5 manual PDF / manual (push) Successful in 47s
2026-10-07 01:27:17 +00:00
257 changed files with 23054 additions and 31 deletions
+34
View File
@@ -0,0 +1,34 @@
name: Team manual PDF
on:
push:
branches: [main, manual-build-validation, assignment7/manual-1.9.2, assignment8/evidence-documentation]
jobs:
manual:
runs-on: manual-latex
timeout-minutes: 30
permissions:
contents: read
steps:
- uses: https://github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: ${{ github.sha }}
persist-credentials: false
- name: Compile the complete manual with visible build identity
env:
GITEA_SHA: ${{ github.sha }}
GITEA_RUN_NUMBER: ${{ github.run_number }}
GITEA_RUN_ID: ${{ github.run_id }}
GITEA_RUN_ATTEMPT: ${{ github.run_attempt }}
run: |
python3 documentation/ci/build_manual.py
test -s documentation/build/main.pdf
test -s documentation/build/build-manifest.json
- name: Publish verified PDF and traceability manifest
uses: https://github.com/actions/upload-artifact@c6a366c94c3e0affe28c06c8df20a878f24da3cf
with:
name: team-manual-run-${{ github.run_number }}-${{ github.sha }}
path: |
documentation/build/main.pdf
documentation/build/build-manifest.json
if-no-files-found: error
retention-days: 14
Vendored
+29
View File
@@ -0,0 +1,29 @@
pipeline {
agent any
options {
skipDefaultCheckout()
disableConcurrentBuilds()
timeout(time: 5, unit: 'MINUTES')
buildDiscarder(logRotator(numToKeepStr: '10'))
timestamps()
}
stages {
stage('Checkout') {
steps {
checkout scm
sh 'git rev-parse HEAD'
}
}
stage('Syntax check') {
steps {
sh 'python3 --version'
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
}
}
stage('Test') {
steps {
sh 'python3 -m unittest discover -s tests -v'
}
}
}
}
+3 -3
View File
@@ -1,17 +1,17 @@
## Product Scope
FilePilot demonstrates a controlled file-update workflow. It accepts a target
MyFileAgent demonstrates a controlled file-update workflow. It accepts a target
file description, expected text, and replacement text. The application locates
the file only within an approved demonstration directory, verifies the expected
text, creates a backup, presents a diff, performs the replacement, verifies the
result, and records the outcome.
FilePilot does not provide unrestricted filesystem access, general desktop
MyFileAgent does not provide unrestricted filesystem access, general desktop
control, arbitrary shell execution, or open-ended autonomous planning.
## Demonstration Acceptance Criteria
The demonstration succeeds when FilePilot:
The demonstration succeeds when MyFileAgent:
1. finds the approved project-status file;
2. confirms that it contains `Status: Draft`;
+32
View File
@@ -0,0 +1,32 @@
# Generated build files and local credentials are never source artifacts.
build/
build-metadata.tex
_minted*/
__pycache__/
*.aux
*.log
*.out
*.toc
*.lof
*.lot
*.bbl
*.blg
*.idx
*.ilg
*.ind
*.acn
*.acr
*.alg
*.glo
*.gls
*.glg
*.ist
*.fls
*.fdb_latexmk
*.synctex.gz
main.pdf
devopsAssignment.pdf
.env
.runner
*.key
*.pem
File diff suppressed because it is too large Load Diff
+11
View File
@@ -0,0 +1,11 @@
OVERLEAF IMPORT INSTRUCTIONS
1. Upload the complete ZIP as a new Overleaf project.
2. Open Menu -> Settings -> Main document.
3. Select the top-level file main.tex.
4. Select the pdfLaTeX compiler and click Recompile.
Do not select devopsLatexDocker.tex as the Main document. It is Chapter 7 and
is included automatically by the complete report. The Docker demonstration
source is latex-docker/sample-source.txt, so main.tex is the only .tex file
that declares a document class and is the authoritative report entry point.
+29
View File
@@ -0,0 +1,29 @@
This group report documents the team's SSW 590 DevOps work in an Ubuntu
environment hosted on DigitalOcean. It records the Linux command-line exercises
and the creation of a DigitalOcean Droplet, installation of Docker Engine, and
deployment workflow for two containerized Node.js websites. Commands, evidence,
and deployment links are included. The report also presents a class-based
JavaScript redesign with a UML class diagram and a separate TeX Live container
that compiles a simple LaTeX document. It concludes with the MyFileAgent Pipeline
proposal, which emphasizes a one-click DevSecOps workflow for installation,
configuration, building, testing, deployment, security checks, and Grafana
monitoring. A limited LLM file-replacement task serves only as the sample
workload. Credentials, private keys, and other secrets are intentionally
excluded. The report also records the completed MyFileAgent Gitea startup
foundation: SQLite persistence, team workflow, the \texttt{myfileagent.tech}
domain, Caddy-managed HTTPS, and verified firewall boundaries.
Assignment 6 adds Jenkins 2.580.1 behind Caddy HTTPS, a dedicated Gitea
integration identity and a versioned Python pipeline. The first build verified
checkout, syntax and two unit tests and reported success to Gitea. This work-in-progress
edition also records the private webhook, enforced merge gate, controlled
failure/repair, human review, merge and passing post-merge main build. The restart test, team port checks and plugin review are also recorded;
remaining access-policy and credential checks are explicitly pending.
Assignment 7 adds persistent private Prometheus/Grafana monitoring, whole-host metrics,
TLS-validating HTTPS probes, a six-panel dashboard, measured availability and two
Discord-tested alerts. An approved Jenkins-only outage demonstrated firing, recovery
and resolved delivery while Gitea remained healthy. The chapter records response
timing, restart persistence, an approved/merged operational change and owned follow-up
issues. External IPv4 port evidence is included; IPv6 and skipped external HTTPS
capture remain explicit limits. The documentation was approved and published through Gitea Actions; version 1.9.2 incorporates the final editorial and layout corrections.
+123
View File
@@ -0,0 +1,123 @@
#!/usr/bin/env python3
"""Build the manual in a fresh workspace; publish a PDF only after success.
Requires the recorded CI image to supply latexmk, TeX Live, minted support,
BibTeX, makeindex, and pypdf. Run from a checked-out repository.
"""
import argparse
import hashlib
import json
import os
from pathlib import Path
import re
import shutil
import subprocess
import tempfile
def build_metadata(sha, run_number, run_id, attempt):
if not re.fullmatch(r"[0-9a-f]{40}|[0-9a-f]{64}", sha):
raise ValueError("A full lowercase Git commit hash is required")
for name, value in (("run number", run_number), ("run ID", run_id), ("attempt", attempt)):
if not re.fullmatch(r"[1-9][0-9]*", value):
raise ValueError(f"Invalid {name}: a positive integer is required")
short = sha[:7]
suffix = f"+build.{run_number}.{short}.attempt.{attempt}"
url = f"https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/{run_id}"
return {
"commit": sha, "run_number": run_number, "run_id": run_id,
"attempt": attempt, "suffix": suffix, "run_url": url,
}
def latex_metadata(metadata):
# All interpolated fields were validated above or use a fixed trusted URL.
fields = {
"BuildSuffix": metadata["suffix"],
"BuildCommit": metadata["commit"],
"BuildRun": metadata["run_number"],
"BuildRunURL": metadata["run_url"],
}
return "% Generated in the build workspace. Do not commit.\n" + "".join(
f"\\renewcommand{{\\{key}}}{{{value}}}\n" for key, value in fields.items()
)
def copy_sources(source, destination):
extensions = {".tex", ".cls", ".sty", ".bst", ".bib", ".png", ".jpg", ".jpeg", ".svg", ".txt"}
excluded = {".git", "_minted", "build", "output", "outputs", "__pycache__", "node_modules"}
for path in source.rglob("*"):
relative = path.relative_to(source)
if any(part in excluded or part.startswith("_minted-") for part in relative.parts):
continue
if path.is_symlink():
raise ValueError(f"Unexpected source symlink: {relative}")
if path.is_file() and path.suffix.lower() in extensions and path.name != "build-metadata.tex":
target = destination / relative
target.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(path, target)
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--sha", default=os.environ.get("GITEA_SHA", ""))
parser.add_argument("--run-number", default=os.environ.get("GITEA_RUN_NUMBER", ""))
parser.add_argument("--run-id", default=os.environ.get("GITEA_RUN_ID", ""))
parser.add_argument("--attempt", default=os.environ.get("GITEA_RUN_ATTEMPT", "1"))
args = parser.parse_args()
metadata = build_metadata(args.sha, args.run_number, args.run_id, args.attempt)
source = Path(__file__).resolve().parents[1]
revision = subprocess.check_output(["git", "-C", str(source), "rev-parse", "HEAD"], text=True).strip()
if revision != metadata["commit"]:
raise ValueError("Checked-out HEAD differs from the triggering commit")
version_match = re.search(r"\\newcommand\{\\DocumentVersion\}\{([^}]+)\}", (source / "main.tex").read_text())
if not version_match:
raise ValueError("Human-maintained document version is missing")
metadata["document_version"] = version_match.group(1)
output = source / "build"
output.mkdir(exist_ok=True)
# Remove only this build's known publish targets, so a failed rebuild cannot
# leave an older PDF available for upload.
for name in ("main.pdf", "build-manifest.json"):
(output / name).unlink(missing_ok=True)
with tempfile.TemporaryDirectory(prefix="manual-ci-") as temp:
workspace = Path(temp)
copy_sources(source, workspace)
(workspace / "build-metadata.tex").write_text(latex_metadata(metadata), encoding="utf-8")
# Shell escape is needed by the current minted source. Run only trusted
# team source in the isolated job, with no host/Docker socket mounts.
command = ["latexmk", "-pdf", "-shell-escape", "-interaction=nonstopmode", "-halt-on-error", "-file-line-error", "main.tex"]
try:
result = subprocess.run(command, cwd=workspace, check=False)
log_path = workspace / "main.log"
if log_path.exists():
shutil.copy2(log_path, output / "main.log")
if result.returncode:
raise RuntimeError(f"LaTeX compilation failed (exit {result.returncode})")
pdf = workspace / "main.pdf"
if not pdf.is_file() or pdf.stat().st_size == 0:
raise RuntimeError("Compilation did not create a nonempty main.pdf")
from pypdf import PdfReader
reader = PdfReader(pdf)
if not reader.pages:
raise RuntimeError("Generated PDF has no pages")
text = "\n".join(page.extract_text() or "" for page in reader.pages[:5])
for expected in (metadata["suffix"], metadata["commit"]):
if expected not in text:
raise RuntimeError(f"Visible PDF build identity is missing: {expected}")
if log_path.exists():
log = log_path.read_text(errors="replace")
if re.search(r"There were undefined (references|citations)|There were multiply-defined labels", log):
raise RuntimeError("Unresolved references/citations or duplicate labels in PDF")
metadata["pdf_sha256"] = hashlib.sha256(pdf.read_bytes()).hexdigest()
metadata["pages"] = len(reader.pages)
shutil.copy2(pdf, output / "main.pdf")
(output / "build-manifest.json").write_text(json.dumps(metadata, indent=2) + "\n", encoding="utf-8")
finally:
# A compiler failure must never be hidden by artifact publication.
pass
print(json.dumps(metadata, indent=2))
if __name__ == "__main__":
main()
@@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
EXPOSE 3000
CMD ["npm", "start"]
@@ -0,0 +1,12 @@
{
"name": "color-buttons-app",
"version": "1.0.0",
"type": "module",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"express": "^4.18.2"
}
}
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color Buttons App</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin-top: 50px;
transition: background-color 0.3s ease;
}
button {
padding: 12px 24px;
font-size: 18px;
margin: 10px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>Click a Button to Change Background</h1>
<button id="blueBtn">Blue</button>
<button id="redBtn">Red</button>
<script src="script.js"></script>
</body>
</html>
@@ -0,0 +1,20 @@
class ColorButtonController {
constructor(buttonId, color) {
this.button = document.getElementById(buttonId);
this.color = color;
}
changeBackground() {
document.body.style.backgroundColor = this.color;
}
bind() {
this.button.addEventListener("click", () => this.changeBackground());
}
}
const blueButton = new ColorButtonController("blueBtn", "blue");
const redButton = new ColorButtonController("redBtn", "red");
blueButton.bind();
redButton.bind();
+14
View File
@@ -0,0 +1,14 @@
import express from "express";
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const app = express();
const PORT = process.env.PORT || 3000;
app.use(express.static(path.join(__dirname, "public")));
app.listen(PORT, "0.0.0.0", () => {
console.log(`Server running at http://0.0.0.0:${PORT}`);
});
+367
View File
@@ -0,0 +1,367 @@
%%
%% This is file `cornell.cls',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% cornell.dtx (with options: `class')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from cornell.cls.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file cornell.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% Document class `cornell' to use with LaTeX 2e.
%% Based on `crnlphd' class. The following is from the file `crnlphd.dtx':
%% Based loosely on old cuphdthesis style file.
%% Found to give good results, according to the thesis secretary.
%% File: crnlphd.dtx Copyright (C) 1994 Sergio Gelato
%% Made available without any warranty, express or implied.
%% Modifications
%% 03/26/98 Mike Heisler
%% Conform to Eric's final version. Margins are subject to
%% The whim of the printer.
%% 10/10/97 Mike Heisler and Eric Dahl
%% Altered footnotesize and changed the Acknowledgement and
%% Biographical titles per thesis secretary guideline that
%% they must match the rest of the document, i.e. flush left
%% and capitalized rather than all caps
%% 05/21/97 Mike Heisler
%% Added a 'papers' option to handle bibliographis as sections
%% at the end of each chapter. Reduced top margin.
%%
%% $Id$
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{cornell}
[1998/03/26 v2.0
Cornell University thesis class]
\newif\ifphd
\DeclareOption{phd}{\phdtrue}
\DeclareOption{master}{\phdfalse}
\ExecuteOptions{phd}
\newif\ifpapers
\DeclareOption{papers}{\paperstrue}
\DeclareOption{10pt}{%
\OptionNotUsed%
\ClassWarningNoLine{cornell}{Font size 10pt not allowed; using 12pt}%
}
\DeclareOption{11pt}{%
\OptionNotUsed%
\ClassWarningNoLine{cornell}{Font size 11pt not allowed; using 12pt}%
}
\newcommand{\prelim@contents}[1]{}
\DeclareOption{tocprelim}{%
\renewcommand{\prelim@contents}[1]{\addcontentsline{toc}{section}{#1}}
}
\DeclareOption*{%
\PassOptionsToClass{\CurrentOption}{report}%
}
\ProcessOptions
\LoadClass[12pt]{report}[1994/06/01]
\renewcommand{\defaultscriptratio}{.75}
\renewcommand{\defaultscriptscriptratio}{.6}
\setlength\headsep{25\p@}
\if@twocolumn
\else
\setlength\oddsidemargin{0in}
\setlength\evensidemargin{0in}
\setlength\textwidth{6.5in}
\setlength\topmargin{-0.5in}
\setlength\headheight{0.2in}
\setlength\headsep{0.35in}
\setlength\textheight{8.85in}
\setlength\footskip{0.5in}
\setlength\marginparwidth{0.85in}
\setlength\marginparsep{0.125in}
\fi
\if@compatibility
\setlength\topmargin{0\p@}
\else
\fi
\newcommand{\ps@cornell}{%
\def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
\def\@oddfoot{}%
\def\@evenhead{\thepage\hfil{\slshape\leftmark}}%
\def\@evenfoot{}%
\def\chaptermark##1{}%
\def\sectionmark##1{}%
}
\newcommand{\ps@cornellc}{%
\def\@oddhead{\hfil\thepage\hfil}%
\def\@oddfoot{}%
\def\@evenhead{\@oddhead}%
\def\@evenfoot{}%
\def\chaptermark##1{}%
\def\sectionmark##1{}%
}
\raggedbottom
\newcommand{\@prolformat}[1]{{\begin{flushleft} \Huge #1 \end{flushleft}} }
\newcommand{\ackname}{\@prolformat{Acknowledgements}}
\newcommand{\bioname}{\@prolformat{Biographical Sketch}}
\renewcommand{\contentsname}{\@prolformat{Table of Contents}}
\renewcommand{\listtablename}{\@prolformat{List of Tables}}
\renewcommand{\listfigurename}{\@prolformat{List of Figures}}
\renewcommand{\l@figure}{\@dottedtocline{1}{1.5em}{2.6em}}
\let\l@table\l@figure
\renewenvironment{thebibliography}[1]
{\ifpapers \clearpage \section*{\bibname%
\@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}%
\else%
\chapter*{\bibname%
\@mkboth{\uppercase{\bibname}}{\uppercase{\bibname}}}%
\fi%
\list{\@biblabel{\arabic{enumiv}}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\arabic{enumiv}}}%
\sloppy\clubpenalty4000\widowpenalty4000%
\sfcode`\.\@m\relax
\ifpapers%
\addcontentsline{toc}{section}{\bibname}%
\else%
\addcontentsline{toc}{chapter}{\bibname}%
\fi
\singlespacing}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\normalspacing
\endlist}
\newcommand{\@titlesize}{\Large}
\newcommand{\@subtitlesize}{\large}
\newcommand{\@authorsize}{\normalsize} % No Pharaoh he.
\newcommand{\@conferralmonth}{January}
\newcommand{\@conferralyear}{}
\newcommand{\titlesize}[1]{\renewcommand{\@titlesize}{#1}}
\newcommand{\subtitlesize}[1]{\renewcommand{\@subtitlesize}{#1}}
\newcommand{\authorsize}[1]{\renewcommand{\@authorsize}{#1}}
\newcommand{\conferraldate}[2]{%
\renewcommand{\@conferralmonth}{#1}
\renewcommand{\@conferralyear}{#2}
}
\newcommand{\@degreefield}{Master of Science} %CHANGED
\newcommand{\degreefield}[1]{\renewcommand{\@degreefield}{#1}} %CHANGED
\renewcommand{\maketitle}{%
\begin{titlepage}%
\vspace*{-0.24in}
\begin{center}%
\@titlesize \@title
\end{center}
\vfill
%\begin{center}
%\@subtitlesize
%A \ifphd Dissertation \else Thesis \fi \\ %CHANGED
%Presented to the Faculty of the Graduate School \\
%of Cornell University \\
%in Partial Fulfillment of the Requirements for the Degree of \\
%\ifphd Doctor of Philosophy \else \@degreefield \fi %CHANGED
%\end{center}
\vfill
\begin{center}
\@authorsize
by \\
\@author \\
\@conferralmonth\ \@conferralyear
\end{center}
\vspace*{0.26in}
\end{titlepage}
}
\renewenvironment{titlepage}{%
\typeout{Title page}
\pagestyle{empty}
\doublespacing
}{%
\normalspacing\clearpage
}
\newenvironment{copyrightpage}{%
\typeout{Copyleft page}
\pagestyle{empty}
\null\vfil
\begin{center}
}{%
\end{center}
\vfil\null
\clearpage
}
\newcommand{\makecopyright}{%
\begin{copyrightpage}
\copyright\ \@copyrightholder\ \@copyrightyear \\
ALL RIGHTS RESERVED \\[.5in]
\end{copyrightpage}
}
\newcommand{\@copyrightholder}{\@author}
\newcommand{\@copyrightyear}{\@conferralyear}
\newcommand{\copyrightholder}[1]{\renewcommand{\@copyrightholder}{#1}}
\newcommand{\copyrightyear}[1]{\renewcommand{\@copyrightyear}{#1}}
\newlength{\@abhdskip}
\renewenvironment{abstract}{%
\typeout{Abstract}
\singlespacing
\ifphd %CHANGED
\setlength{\@abhdskip}{.25in}
\addtolength{\@abhdskip}{-\topmargin}
\vspace*{\@abhdskip}
\begin{center}
\@abstracttitle \\
\ \\
\@author \\
\@conferralyear
\end{center}
\vspace{.25in}
\else %CHANGED
\chapter*{%
\begin{center}
\normalsize
ABSTRACT
\end{center}
}
\par
\fi %CHANGED
\pagestyle{empty}
\thispagestyle{empty}
}{%
\clearpage
}
\newcommand{\@abstracttitle}{\@title}
\newcommand{\abstracttitle}[1]{\renewcommand{\@abstracttitle}{#1}}
\newenvironment{biosketch}{%
\typeout{Vita}
\pagestyle{plain}
\pagenumbering{roman}
\setcounter{page}{3}
\prelim@contents{Biographical Sketch}
\chapter*{%
\bioname
}
\par
}{%
\clearpage
}
\newenvironment{dedication}{%
\prelim@contents{Dedication}
\null\vfil
\begin{center}
}{
\end{center}
\vfil\null
\clearpage
}
\newenvironment{acknowledgements}{%
\prelim@contents{Acknowledgments}
\chapter*{%
\ackname
}
\par
}{%
\cleardoublepage
}
\newcommand{\contentspage}{%
\singlespacing
\label{toc}
\prelim@contents{\contentsname}
\tableofcontents
\normalspacing
\clearpage
}
\newcommand{\tablelistpage}{%
\singlespacing
\label{lot}
\prelim@contents{\listtablename}
\listoftables
\normalspacing
\clearpage
}
\newcommand{\figurelistpage}{%
\singlespacing
\label{lof}
\prelim@contents{\listfigurename}
\listoffigures
\normalspacing
\clearpage
}
\newcommand{\abbrlist}{%
\singlespacing
\prelim@contents{List of Abbreviations}
\chapter*{List of Abbreviations}
}
\newcommand{\symlist}{%
\singlespacing
\prelim@contents{List of Symbols}
\chapter*{List of Symbols}
}
\newcommand{\preface}{%
\singlespacing
\prelim@contents{Preface}
\chapter*{Preface}
}
\newcommand{\singlespacing}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.0}\tiny\CS}
\newcommand{\singlespacingplus}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.25}\tiny\CS}
\newcommand{\doublespacing}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{1.75}\tiny\CS}
\newcommand{\realdoublespacing}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{2}\tiny\CS}
\newcommand{\normalspacing}{\doublespacing}
\newcommand{\footnotespacing}{\singlespacing}
\newcommand{\changespacing}[2]{%
\renewcommand{#1}{%
\let\CS=\@currsize\renewcommand{\baselinestretch}{#2}\tiny\CS}%
}
\newcommand{\changenormalspacing}[1]{\renewcommand{\normalspacing}{#1}}
\normalspacing
\endinput
%%
%% End of file `cornell.cls'.
+107
View File
@@ -0,0 +1,107 @@
\chapter{AI Agent Usage Guide}
\ChapterLabel{AIAgentGuide}
\index{AI agent}
\index{AI agent!DevOps workflow}
\index{Appendix!AI Agent Usage Guide}
\section{How to Use This Appendix}
An AI agent that creates, reviews, or maintains an assignment shall read this
file first. It shall identify the task in the routing table, read the minimum
authoritative sources, and expand context only for a discovered dependency or
inconsistency. This guide is maintained in LaTeX so it is visible, versioned,
and reviewable with the assignment.
\section{Governing Principles}
The authored LaTeX files, versioned automation, and approved assignment
materials are authoritative. The PDF is a review artifact and shall not be
edited directly. AI may draft, explain, analyze, check consistency, and assist
with builds. It shall not invent completion, evidence, access, costs, grades,
approvals, command output, security posture, or operational results.
\section{Chapter File Convention}
\index{AI agent!chapter file convention}
Every assignment chapter shall be stored in exactly one file named with the
\texttt{devops} prefix, a PascalCase chapter name, and the \texttt{.tex}
suffix. For example, Chapter~2 is fully contained in
\path{devopsExampleAssignment.tex}. A chapter file shall begin with its
\texttt{\string\chapter\{...\}} command and contain all of that chapter's
sections and subsections. Do not split one chapter across files, create
section-only \texttt{.tex} files, or use \texttt{\string\input} or
\texttt{\string\include} to assemble a chapter from smaller fragments.
Supporting non-chapter files may use a different name only when they are not
chapter content: \texttt{prologue.tex}, \texttt{abstract.tex},
\texttt{devopsGlossary.tex}, and \texttt{devopsReferences.bib} are examples.
Appendix chapters follow the same chapter-file convention.
\section{AI Quick Start}
\begin{enumerate}
\item Read this guide and identify the requested outcome.
\item Select the closest task below and load only its listed sources.
\item Inspect supplied facts and report consequential gaps or assumptions.
\item Make narrowly scoped changes; preserve stable IDs, glossary terms, and history.
\item Never request, print, store, or commit credentials, tokens, personal data, or production data.
\item Build the complete PDF, inspect the log, visually inspect affected pages, and record material AI use in \ChapterRef{AIPromptLog}.
\end{enumerate}
\section{Task Routing}
\small
\begin{tabularx}{\linewidth}{L{4.0cm}Y}
\caption{AI Task-Routing Table\label{Table:AITaskRouting}}\\
\toprule \textbf{Task} & \textbf{Minimum authoritative sources}\\ \midrule
Initialize an assignment & \texttt{devopsAssignment.tex}, \texttt{prologue.tex}, \texttt{devopsIntroduction.tex}, \texttt{devopsExampleAssignment.tex}, and the instructor's assignment facts.\\
Develop a workflow & \texttt{devopsExampleAssignment.tex}, source repository materials, and authorized environment constraints.\\
Define evidence & \texttt{devopsExampleAssignment.tex} and controlled execution outputs.\\
Review a retrospective & \texttt{devopsExampleAssignment.tex} and the submitted workflow or runbook.\\
Edit AI guidance & \texttt{devopsAIAgentGuide.tex}, \texttt{devopsAIPromptLog.tex}, \texttt{devopsDocumentGuide.tex}, and \texttt{devopsAssignment.tex}.\\
Compile or troubleshoot & \texttt{devopsAssignment.tex}, \texttt{devopsDocumentGuide.tex}, the affected chapter, and the build log.\\ \bottomrule
\end{tabularx}
\normalsize
\section{DevOps-Specific Rules}
\begin{enumerate}
\item Prefer versioned, repeatable automation over undocumented manual steps.
\item Treat deployment output, monitoring data, and screenshots as evidence only when they reflect an actual execution.
\item Design failure exercises to be isolated, reversible, and authorized.
\item Apply least privilege and never place secrets in LaTeX, source control, prompts, screenshots, or logs.
\item State expected cloud cost, cleanup action, and resource ownership for each remote-environment activity.
\item Identify whether a recommendation is a proposal, an instructor directive, or demonstrated evidence.
\end{enumerate}
\section{Example AI Requests}
\subsection{Create an Assignment Brief}
\begin{verbatim}
Read devopsAIAgentGuide.tex and use the Initialize an Assignment context.
From the supplied SSW 590 objective and constraints, fill only supported
placeholders in the introduction and activity brief. Propose clear, observable
completion criteria, a safe cleanup action, and a rubric. Do not invent cloud
access, due dates, policy, costs, or approved tools. Update history, compile,
and report instructor decisions still needed.
\end{verbatim}
\subsection{Review a Student Workflow}
\begin{verbatim}
Read devopsAIAgentGuide.tex and the workflow, evidence, and retrospective
chapters. Review the supplied repository and sanitized evidence for
reproducibility, least privilege, observability, rollback, and cleanup.
Separate verified facts from gaps and recommendations. Do not claim that an
unexecuted command passed, and do not request credentials or operate resources.
\end{verbatim}
\section{Human Decisions and Information Boundaries}
The instructor retains authority over assignment scope, grading, due dates,
approved tooling, access, budgets, security posture, exceptions, and policy.
An AI agent shall surface alternatives and evidence, not represent a decision
as approved. Record material prompts, assumptions, corrections, and unresolved
issues in \ChapterRef{AIPromptLog}.
\section{Completion Checklist}
\begin{itemize}
\item Scope, deliverables, environment, constraints, and cleanup are clear.
\item Activity identifiers and evidence references are valid and unique.
\item Examples contain no secrets, personal data, or unsafe production actions.
\item New controlled terms are added to the glossary and indexed.
\item The newest approved change is recorded in document history.
\item The complete build succeeds with no unresolved references or missing files.
\item A human reviews all decisions requiring instructional or operational authority.
\end{itemize}
+53
View File
@@ -0,0 +1,53 @@
\chapter{AI Prompt Log}
\ChapterLabel{AIPromptLog}
\markboth{AI Prompt Log}{AI Prompt Log}
\fancyhead[C]{\small AI Prompt Log}
\index{AI prompt log}
\section{Recorded Assistance}
\footnotesize
\begin{longtable}{L{2.8cm}L{5.0cm}L{7.0cm}}
\caption{AI assistance record}\label{Table:AIPromptLog}\\
\toprule
\textbf{Date / Version / Initials} & \textbf{Task} & \textbf{Human Review and Use} \\
\midrule
\endfirsthead
\toprule
\textbf{Date / Version / Initials} & \textbf{Task} & \textbf{Human Review and Use} \\
\midrule
\endhead
\bottomrule
\endlastfoot
\parbox[t]{2.7cm}{\raggedright November 8, 2026\\ 1.10.1\\ GDL, NK, CDX} & Continue the handoff; verify and document the release and recovery evidence. & Codex checked the merged and later branch work separately, assisted with approved v1 and v2 releases, and recorded immutable digests, scan results, staging idempotence and human production approvals. It orchestrated the approved rollback and staging-only port mismatch, documented the overnight recovery delay, added the HTTPS probe, checked Grafana, and audited archived evidence. The team reviews the manual and evidence. \\
\parbox[t]{2.7cm}{\raggedright November 7, 2026\\ 1.10.0\\ GDL, NK, CDX} & Prepare the service, trusted agent, Ansible automation and delivery pipeline. & The previous Codex inspected the existing Droplet, adapted the starter, locked dependencies, built the trusted agent and installed Ansible and the Docker collection. It assisted with pinned SSH, scoped Jenkins credentials, registry authentication, proxy routes, security scans, a synthetic secret gate and reviewed delivery code. The team provided access and reviewed changes; Codex preserved the limitations and unfinished work in the handoff. \\
\parbox[t]{2.7cm}{\raggedright October 28, 2026\\ 1.9.2\\ GDL, NK, CDX} & Write the full SRE chapter through the Gitea-backed Droplet checkout; retain the team's screenshot choices, add Grafana host/vault hints, apply final editorial/layout corrections and compile through Gitea Actions. & Codex authored from recorded deployment, probes, alert tests, incident samples and persistence evidence; created source diagrams without changing original screenshots; recorded PR 14's human approval/merge and post-merge CI. The team supplied outside-Droplet port results and incognito/dashboard images, skipped the extra external HTTPS capture, and specified \texttt{bitwarden-grafana}. The team approved documentation PR 15 and Actions run 16 compiled the manual; version 1.9.2 applies the requested final wording and wrapping corrections. Next-day recovery-build timing remains accurately identified. \\
\parbox[t]{2.7cm}{\raggedright October 24, 2026\\ 1.9.1\\ GDL, NK, CDX} & Write only the SLI/SLO material into the manual source. & The user authorized this narrow source update. Codex used the recorded live baseline (20/20 successful probes for each service) and kept it separate from the instructor's hypothetical example. The draft explicitly leaves controlled-outage and full-day conclusions unclaimed. \\
\parbox[t]{2.7cm}{\raggedright October 24, 2026\\ 1.9.0\\ GDL, NK, CDX} & Clarify retired public ports and historical branch-protection wording on the Droplet. & AI reviewed the operational checkout and newer Assignment 6 publication source, marked earlier 5050/8080 public endpoints closed while preserving historical commands/evidence, and distinguished private Jenkins 8080. The earlier no-protection observation now points to the later enforced gate. \\
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.2\\ GDL, NK, CDX} & Configure Jenkins through its web interface: accounts, repository discovery, credentials, multibranch builds, required checks, peer review and plugin operations. & The team entered administrator and integration passwords/tokens privately. Codex assisted with Gitea discovery scope, the dedicated repository identity, job discovery and the Python checkout/syntax/test pipeline. It correlated issue 10 and PR 11 with automatic runs, made the isolated arithmetic defect and repair, and verified commit-specific failure and success. It corrected the required PR check context and configured branch protection. NK independently approved the final change; GDL performed the normal merge. The merged main commit passed Jenkins. The team selected Matrix-based security, supplied its permissions view and confirmed administrative access after saving. Codex explained the permission settings, checked plugin-update information and retained the controller-build warning. The CI token inventory showed one current entry; token values were neither read nor recorded. Post-save anonymous access and self-registration were not independently confirmed. \\
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.1\\ GDL, NK, CDX} & Configure DNS, HTTPS, reverse-proxy routing, private webhook delivery and network exposure; verify firewall attachment and IPv4-only operation. & Codex assisted with the CI A record, Caddy site and loopback-only Jenkins mapping. It diagnosed the failed tunnel's Docker-name resolution and used the host loopback endpoint instead. HTTPS verification recorded the certificate, login response, redirect and anonymous API denial. The private Gitea webhook used an exact-host destination allowance; Caddy blocked its public receiver. The installed handler did not validate HMAC, so no shared-secret authentication was claimed. A successful delivery was matched to its Jenkins run. The team chose public browser access and later removed retired 5050/8080 firewall allowances. It supplied the named firewall rules, attached Droplet view, external TCP results, disabled-IPv6 view, DNS AAAA result and UFW-inactive output. These human-performed checks retain that attribution; earlier TCP tests are not relabeled as post-cleanup tests. Instructor approval for the public-browser exception was not supplied. \\
\parbox[t]{2.7cm}{\raggedright October 9, 2026\\ 1.8.0\\ GDL, NK, CDX} & Deploy official Jenkins LTS, preserve its home directory, record the toolchain and verify jobs survive restart on the existing Droplet. & The team selected the existing 1 GB host and the permitted Python application. Codex recorded capacity, deployed the official Jenkins image with a pinned digest and non-secret Compose configuration, and bounded its resource use. When the initial start stalled, it stopped only Jenkins, checked Gitea health and retried successfully; it did not assert an unproven cause for the startup exception. Plugin versions and the persistent home volume were recorded. Controller builds were selected for trusted source without a Docker socket; Python installation and replacement-container recovery were made reproducible. For the authorized restart, Codex saved file sizes and hashes, restarted the service without deleting its volume, and confirmed all 13 configuration/build records were unchanged. The saved main job passed afterward. The team reviewed the observed results. No Jenkins backup/restore test, new paid cloud host or capacity upgrade was performed. \\
\parbox[t]{2.7cm}{\raggedright October 6--7, 2026\\ 1.7.1\\ GDL, CDX, NK} & Implement approved Chapter 3; update the manual, verify Actions artifacts, and apply the requested concise history/log and rubric review. & The user approved remote implementation, supplied the original source/images, and selected version 1.7.1. AI configured the runner/toolchain, corrected its memory limit, executed builds 3--4 and failure/repair 5--6, and verified downloaded PDFs by identity, checksum, links and rendered pages. The team reviews the final Actions PDF before submission. \\
\parbox[t]{2.7cm}{\raggedright September 29, 2026\\ 1.6.1\\ NK, GDL, CDX} & Complete and review the public-domain, HTTPS, evidence, recovery, and reference material for Assignment 4. & The team supplied the domain and renewal facts, verified DNS, HTTPS, certificate automation and external ports, and approved the backup/restore exercise. AI assisted with diagnostics, isolated recovery evidence, requirement auditing, live links, security explanations, concise credential and reference updates, figure-flow improvements, compilation, and visual review. \\
\parbox[t]{2.7cm}{\raggedright September 26, 2026\\ 1.6.0\\ NK, GDL, CDX} & Implement and document the MyFileAgent Gitea startup foundation while preserving the earlier grading services. & The team selected the accounts, approved changes, completed the repository workflow, ran verification commands, and supplied evidence. With permission, AI assisted with pinned Gitea/SQLite, persistent volumes, key-only SSH, and the Cloud Firewall while preserving ports 5050 and 8080 at that historical stage (both are now closed publicly) and documenting the instructor-cleared SSH exception. \\
\parbox[t]{2.7cm}{\raggedright September 18, 2026\\ 1.5.1\\ NK, GDL, CDX} & Develop and integrate Chapter 8, the Project Proposal, for the MyFileAgent one-click DevSecOps pipeline. & The team supplied the project direction and selected tools. AI assisted with organizing the proposal, defining a limited demonstration task, and presenting the planned installation, build, configuration, testing, deployment, security, and Grafana monitoring workflow. The team reviews and approves the final proposal. \\
\parbox[t]{2.7cm}{\raggedright September 18, 2026\\ 1.5.0\\ NK, GDL, CDX} & Document the DigitalOcean Droplet and Docker installation, website deployment, class-based JavaScript button design and UML diagram in Chapter 6, and the TeX Live Docker build, run, and verification workflow in Chapter 7. & The team supplied the requirements, deployment evidence, commands, and project files. AI assisted with LaTeX organization, code presentation, UML preparation, compilation, and layout review. The team reviews the material and verifies all commands and live deployment results. \\ \pagebreak
\parbox[t]{2.7cm}{\raggedright September 12, 2026\\ 1.4.1\\ NK, GDL, CDX} & Update Section 3.2 with the human-run command outputs, include Hosts and Passwords, reduce and link the glossary, and verify index links. & AI suggested Linux commands to run and assisted with document organization and LaTeX editing. The team verified the commands before running them, made changes as needed, ran the commands, and gathered the outputs. AI did not execute the commands or produce the recorded terminal outputs. \\
\parbox[t]{2.7cm}{\raggedright September 11, 2026\\ 1.4.0\\ NK, GDL, CDX} & Organize the Assignment 2 LaTeX report, integrate the supplied Linux-command chapter and problem-set chapter, and verify document layout and navigation. & The team supplied the assignment materials and terminal record, reviewed the generated text, and entered each problem set command into the terminal and manually verified the results. \\
\end{longtable}
\normalsize
\section{Evidence Boundary}
AI assistance was used for document organization, LaTeX authoring, code and
diagram presentation, proposal drafting, and layout review. Earlier Linux and website exercise outputs retain their original human-gathered
attribution. Later infrastructure assistance is identified in the dated entries
above. Assignment 5 remote execution is AI-assisted and recorded in the dated entries. The consolidated 1.7.1 entry summarizes the completed work and its user-authorized revisions.
\clearpage
\fancyhead[C]{\small\nouppercase{\leftmark}}
+23
View File
@@ -0,0 +1,23 @@
% Acronyms occurring in the assignment document.
\chapter*{Acronyms}
\markboth{Acronyms}{Acronyms}
\index{acronyms}
The following acronyms occur in the assignment document.
\begin{description}[style=nextline,leftmargin=2.2cm,labelindent=0pt]
\item[\textbf{ACME}] Automated Certificate Management Environment. \hfill Reference: \hyperref[AcronymRef:ACME]{p.~\pageref*{AcronymRef:ACME}}
\item[\textbf{AI}] Artificial Intelligence. \hfill Reference: \hyperref[AcronymRef:AI]{p.~\pageref*{AcronymRef:AI}}
\item[\textbf{API}] Application Programming Interface. \hfill Reference: \hyperref[AcronymRef:API]{p.~\pageref*{AcronymRef:API}}
\item[\textbf{DNS}] Domain Name System. \hfill Reference: \hyperref[AcronymRef:DNS]{p.~\pageref*{AcronymRef:DNS}}
\item[\textbf{HTTP}] Hypertext Transfer Protocol. \hfill Reference: \hyperref[AcronymRef:HTTP]{p.~\pageref*{AcronymRef:HTTP}}
\item[\textbf{HTTPS}] Hypertext Transfer Protocol Secure. \hfill Reference: \hyperref[AcronymRef:HTTPS]{p.~\pageref*{AcronymRef:HTTPS}}
\item[\textbf{SSH}] Secure Shell. \hfill Reference: \hyperref[AcronymRef:SSH]{p.~\pageref*{AcronymRef:SSH}}
\item[\textbf{TCP}] Transmission Control Protocol. \hfill Reference: \hyperref[AcronymRef:TCPAssignment4]{p.~\pageref*{AcronymRef:TCPAssignment4}}
\item[\textbf{TLS}] Transport Layer Security. \hfill Reference: \hyperref[AcronymRef:TLS]{p.~\pageref*{AcronymRef:TLS}}
\item[\textbf{SRE}] Site Reliability Engineering. \hfill Reference: \hyperref[AcronymRef:SRE]{p.~\pageref*{AcronymRef:SRE}}
\item[\textbf{SLI}] Service-Level Indicator. \hfill Reference: \hyperref[AcronymRef:SLI]{p.~\pageref*{AcronymRef:SLI}}
\item[\textbf{SLO}] Service-Level Objective. \hfill Reference: \hyperref[AcronymRef:SLO]{p.~\pageref*{AcronymRef:SLO}}
\item[\textbf{SLA}] Service-Level Agreement. \hfill Reference: \hyperref[AcronymRef:SLA]{p.~\pageref*{AcronymRef:SLA}}
\item[\textbf{TSDB}] Time-Series Database. \hfill Reference: \hyperref[AcronymRef:TSDB]{p.~\pageref*{AcronymRef:TSDB}}
\end{description}
+3
View File
@@ -0,0 +1,3 @@
% Compatibility entry point.
% The authoritative Overleaf main document is the top-level main.tex file.
\input{main.tex}
@@ -0,0 +1,264 @@
\chapter{Automated Manual Build}
\ChapterLabel{AutomatedManualBuild}
\index{Gitea Actions}\index{LaTeX!automated build}\index{build artifact}
\begin{devopsNote}[Assignment 5 implementation record]
Human version \texttt{1.7.1}; document date October 7, 2026. The team authorized
Chapter 3 implementation on its existing Droplet. Jenkins (instruction Chapter 4)
is outside this activity. Infrastructure checks below are observed results;
the manual build sequence below records the executed results.
\end{devopsNote}
\section{Source and trigger}
The source of truth is the existing
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline}{MyFileAgent repository}.
The entry point is
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/documentation/main.tex}{\path{documentation/main.tex}};
chapter sources, \texttt{cornell.cls}, bibliography, formatting files and all
historical figures are included. The transferred source archive had SHA-256
\path{ad93f9f2e71bc66a2b882b57510cbb7f51827637047073d6a6f78c0170e6205e}.
Its 12 \path{hw4_images} files preserve earlier evidence. Generated PDFs,
metadata, caches and secrets are excluded from source control.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/.gitea/workflows/manual-pdf.yml}{The manual workflow}
accepts \texttt{push} events on \texttt{main} and
\texttt{manual-build-validation}. It explicitly checks out the triggering SHA
and disables persisted checkout credentials. Pushes use Git over HTTPS to
\texttt{myfileagent.tech:443}. Caddy 2.11.4 terminates TLS and forwards to Gitea
1.27.3 on private container port 3000. The host mapping remains
\texttt{127.0.0.1:3000}. No Gitea SSH port, runner submission listener or
compiler port was published. The runner needs no public submission port because
source pushes terminate at Gitea, while the runner initiates outbound HTTPS
requests to Gitea to poll for and receive jobs.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[node distance=9mm and 7mm,
every node/.style={draw,rounded corners,align=center,font=\small,text width=3.0cm,minimum height=15mm},>=Stealth]
\node (team) {Team\\HTTPS source push};
\node[right=of team] (gitea) {Caddy 443\\Gitea private 3000};
\node[right=of gitea] (runner) {Runner\\HTTPS work requests};
\node[below=of runner] (docker) {Docker daemon\\internal socket};
\node[left=of docker] (job) {Temporary TeX job\\checkout and compile};
\node[left=of job] (pdf) {Named PDF artifact\\team downloads};
\draw[->] (team)--(gitea);
\draw[->] (gitea)--(runner);
\draw[->] (runner)--(docker);
\draw[->] (docker)--(job);
\draw[->] (job)--(pdf);
\draw[<->,dashed] (gitea)--(job);
\end{tikzpicture}
\caption{Actual single-Droplet manual-build path. Only the runner mounts the
Docker socket. The dashed HTTPS path carries source checkout and artifact upload; Gitea and the compiler do not share a source filesystem.}
\label{Fig:ManualBuildArchitecture}
\end{figure}
\section{Runner setup}
\phantomsection\label{GlossaryRef:actionsrunner}\index{runner!registration}
Runner ID 1, \texttt{assignment5-manual}, is registered only to
\path{myfileagent/myfileagent-pipeline}. The self-managed
\texttt{act\_runner} version is 0.6.1. Its image digest is
\path{sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86}.
The live files are under \path{/home/codex/myfileagent-gitea/runner};
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build}{versioned non-secret configuration}
records the deployment. \textbf{Execution mode: Docker container execution
(\texttt{docker://}).} Each job runs in a temporary TeX container created by
the host Docker daemon, rather than directly in the runner environment.
The workflow's \texttt{runs-on: manual-latex} selects the runner label, which
maps to the exact local compiler image ID recorded below. The runner polls
Gitea over outbound HTTPS, and the job uses HTTPS for checkout and upload.
Capacity is one job. The runner has a 192 MiB hard memory limit and 128 MiB Go
memory target; jobs have a 256 MiB limit, no swap, 0.65 CPU and a 256-process
limit. The initial 96 MiB runner limit caused an out-of-memory restart while
cloning an action in run 1; its temporary container and volumes were removed.
Increasing the bounded limit allowed run 2 to pass without another restart.
\EvidenceID{MAN-RUNNER-01}: October 6, 2026, America/New\_York
(UTC log timestamps may be October 7). Expected: registered online worker,
HTTPS reachability and an assigned job. Actual: the repository runner API
reported ID 1 online; \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/2}{preflight run 2}
was assigned to this worker and succeeded. Its downloaded text artifact
verified HTTPS certificate validation and blocked direct connections from the
job to private backend \texttt{172.20.0.2:3000} and gateway
\texttt{172.20.0.1:3000}. The job had no Docker socket, runner-state mount or
published ports. This is a measured bridge boundary, not a claim that every
outbound destination is blocked. Runner registration and execution follow
Gitea's documented model~\cite{GiteaActRunnerManual}.
\section{Reproducible compilation}
TeX is installed in the temporary job image, not the Gitea application
container. \path{ops/manual-build/Dockerfile} pins Debian by digest and its
packages to the October 1, 2026 Debian snapshot. The built local image is
\path{sha256:579106aaffa81dc2436a72a5dbfc51d3590f1a97646321fd38c694aae6d7cba1}
(1.32 GB); \texttt{force\_pull: false} selects this stored immutable image ID.
A replacement host must rebuild from the recorded definition and update the
recorded image ID after verification. Dependencies include TeX Live 2022,
latexmk 4.79, BibTeX, makeindex/makeglossaries, Latin Modern and recommended
fonts, Pygments 2.14.0 for minted, Node 18.20.4 and pypdf 3.4.1.
The job runs \texttt{python3} \path{documentation/ci/build_manual.py}. The helper copies
sources into a fresh temporary directory and invokes:
\begin{lstlisting}[language=bash]
latexmk -pdf -shell-escape -interaction=nonstopmode \
-halt-on-error -file-line-error main.tex
\end{lstlisting}
latexmk coordinates repeated PDF, bibliography and index passes. This report
uses authored, linked glossary/acronym lists; their label references are
resolved by repeated LaTeX passes rather than a generated glossary printout.
Shell escape is required by minted and is restricted to trusted source in the
job container. The helper verifies that checkout HEAD equals the triggering
SHA, removes prior publish targets, propagates a compiler failure, rejects
missing/empty/unreadable PDFs, verifies visible metadata, and rejects unresolved
references/citations or duplicate labels. Only success copies
\path{documentation/build/main.pdf} and \path{build-manifest.json} for upload.
The original manual was precompiled in a separate temporary container before
relying on Actions. The successful Actions records below are the authoritative
publication evidence. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/9}{successful run 9}
provides its compile-step log; the \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/9/jobs/9}{successful job log}
records checkout, latexmk passes, PDF validation and upload. See also the
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/documentation/ci/build_manual.py}{build helper}.
\section{PDF version traceability}
\phantomsection\label{GlossaryRef:buildidentity}\index{build identity}
The Assignment 5 builds below used human version \texttt{1.7.1};
the current manual is version \texttt{1.8.2}. The helper writes an
uncommitted \path{build-metadata.tex} with a suffix
\texttt{+build.RUN.SHORTSHA.attempt.ATTEMPT}, full Git commit, run number and
clickable run URL. The downloaded workflow PDFs visibly contain that run identity. The
current \hyperref[Build:Identity]{Build Identity page} identifies this edition
separately; a local review build is not an Actions publication. Metadata is produced in the temporary workspace;
no workflow step commits or pushes generated version changes. This avoids a
push/build loop. A local compile instead says \texttt{+local.unverified} and
must not be presented as an Actions artifact. The manifest correlates full
commit, run/attempt, PDF checksum and page count. The checkout and artifact
actions are pinned to tested commits, not floating tags~\cite{GiteaActionsComparisonManual}.
\section{Downloadable artifact}
\phantomsection\label{GlossaryRef:buildartifact}\index{artifact!retention}
For the historical Assignment 5 builds, the artifact name is
\texttt{assignment5-1.7.1-run-RUN-FULLSHA}; it contains the PDF and JSON
manifest. Open the matching \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4}{recorded successful run 4}, select that named
artifact, download its ZIP and extract \texttt{main.pdf}. Retention is
explicitly requested as 14 days, rather than relying on the server default;
expiration enforcement has not yet been observed. Keep the submitted PDF
outside this temporary retention window~\cite{GiteaActionsConfigManual}.
Artifacts are temporary build outputs, not permanent backups.
Checkout v4.2.2 is pinned to
\path{11bd71901bbe5b1630ceea73d27597364c9af683}; upload-artifact v3.2.2 to
\path{c6a366c94c3e0affe28c06c8df20a878f24da3cf}. The latter's legacy artifacts
are available from the run's named download link even though the newer REST
artifact-list endpoint returned no entries in the preflight. The direct
preflight artifact download was verified, including ZIP checksum and contents.
Manual artifact downloads and visible PDF checks are recorded below.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4/artifacts/assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a}{Download the recorded run-4 PDF artifact}.
The current Assignment 6 workflow uses artifact name
\texttt{assignment6-1.8.2-run-RUN-FULLSHA}. For this edition, use
\href{\BuildRunURL}{the matching Actions publication run} and
\href{\BuildRunURL/artifacts/assignment6-\DocumentVersion-run-\BuildRun-\BuildCommit}{its named PDF and manifest artifact}.
The Build Identity page supplies the exact commit and run number injected by
that run. Extract \texttt{main.pdf} from the ZIP and compare its checksum to
\texttt{build-manifest.json}; the artifact has the same 14-day retention.
\section{Change, failure, and repair evidence}
% BEGIN BUILD EVIDENCE
All observations below were made on October 6, 2026 (America/New\_York). Logs use UTC, where these runs are dated October 7. These are actual push-triggered manual builds, separate from infrastructure preflight runs 1--2.
\paragraph{Source change 1.}
\EvidenceID{MAN-BUILD-01}: Imported the full manual and activated its workflow. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3}{run 3 passed}; full commit \path{c74087a93bf53b44a75a25c3658fc178ff253225}.
Visible version: \path{1.7.1+build.3.c74087a.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/3/artifacts/assignment5-1.7.1-run-3-c74087a93bf53b44a75a25c3658fc178ff253225}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{ab99995751da7a67684d97e32344cfc8d7f3d0c6c26055bbd0670b3dc030d337}.
\paragraph{Source change 2.}
\EvidenceID{MAN-BUILD-02}: Improved long-identifier wrapping and clarified the introduction. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4}{run 4 passed}; full commit \path{2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a}.
Visible version: \path{1.7.1+build.4.2b8be11.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/4/artifacts/assignment5-1.7.1-run-4-2b8be117c7c9b2a074cc7fbfcf152e34d0e65b2a}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{ba87740958bada14f31d2236638c9b175d8b24797f715252cdb0f0af6668be06}.
\paragraph{Controlled failure.}
\EvidenceID{MAN-FAIL-01}: Expected: an invalid LaTeX command fails compilation and publishes no PDF. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/5}{run 5 failed} for commit \path{f0e7b74ee63b40811334ee9cd4aecf035f1b0864}, on \texttt{manual-build-validation}. The deliberate \texttt{\string\AssignmentFiveControlledFailure} command caused ``Undefined control sequence'' at chapter line 4; latexmk returned 12. The workflow skipped PDF upload and the expected named artifact returned HTTP 404. Main and the deployed services remained operational.
\paragraph{Repair.}
\EvidenceID{MAN-REPAIR-01}: Removed the deliberate undefined command on the validation branch. Expected: a successful full build and downloadable PDF with the triggering revision. Actual: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6}{run 6 passed}; full commit \path{a4737f1a4eed5e1b786038bb917ca1ab9f1ed856}.
Visible version: \path{1.7.1+build.6.a4737f1.attempt.1}; 72 pages. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/6/artifacts/assignment5-1.7.1-run-6-a4737f1a4eed5e1b786038bb917ca1ab9f1ed856}{named PDF and manifest artifact} was downloaded, opened with a PDF parser, and its PDF SHA-256 matched the manifest:
\path{7591b1cd87f319dfc77eaa4ca9fd9727d1e7b97253a05d9a93e8624296bc736e}.
The artifact name for each successful row is \texttt{assignment5-1.7.1-run-} followed by the run number, a hyphen and the full commit above. The run links and artifact links therefore identify the same source revision; version suffixes use its first seven hex digits. Full machine-readable records and downloaded PDF checksums are retained in \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/manual-build-evidence.json}{the versioned evidence manifest}. The controlled error was confined to the validation branch and its repair restored the exact source content of the second successful build.
Visual inspection of the downloaded run-4 chapter identified overlapping architecture labels; the final source corrects the diagram. Each Actions publication uses its own visible Build Identity and matching run.
The current review edition must not inherit the identity of an earlier artifact. Download verification of that final artifact is performed after publication, without editing the PDF or creating an automatic source commit loop.
% END BUILD EVIDENCE
\section{Runner and secret boundary}
\index{runner!security}\index{Docker socket}
The repository's Owners team may change workflows. The historical Assignment 5
preflight found no direct collaborators and no branch-protection rules; peer
review was then a team procedure rather than an enforced gate. This is not
the current policy: Assignment 6 subsequently enforced the required Jenkins
status check and peer approval on main, with bypass disabled, as documented
in \ChapterRef{JenkinsContinuousIntegration}. Only trusted team pushes to the
selected branches execute. Untrusted pull-request triggers are not enabled.
The runner controls the host Docker socket and therefore has powerful host
access; containers are not a security boundary against a malicious trusted
workflow author or Docker administrator. Jobs receive no socket or runner-state
mount; \texttt{valid\_volumes: []}, \texttt{docker\_host: '-'}, nonprivileged
execution and the separate bridge reduce accidental exposure. These controls
are recorded in the non-secret
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/runner-config.yaml}{runner configuration}
and \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/manual-build/runner-compose.yaml}{runner Compose file};
the \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/.gitea/workflows/manual-pdf.yml}{workflow}
records trusted push triggers and checkout permissions.
Registration state is stored outside Git in a mode-700 directory, with its
\texttt{.runner} file mode 600. Registration tokens were passed without logging
their values. A temporary implementation token has \texttt{write:repository}
scope and resides in restricted storage outside Git; that scope covers the
account's accessible repositories and is not a per-repository credential.
It is not passed to build jobs. Checkout uses the Actions job credential with
read-only workflow permissions and removes persisted Git credentials.
The \hyperref[Table:CredentialRegistry]{Passwords table} contains hints only.
\section{Manual quality and controls}
The \hyperref[Table:HostRegistry]{Hosts table} now identifies the runner,
compiler execution and ports. The \hyperref[Table:CredentialRegistry]{Passwords
table} now identifies protected runner state and the temporary implementation
credential without values. \hyperref[Chapter:DocumentHistory]{Document History} and
\AppendixRef{AIPromptLog} record the work and retain earlier attribution.
Figure~\ref{Fig:ManualBuildArchitecture}, linked glossary/index terms and
citations connect the operational record to its configuration and evidence.
The MyFileAgent team owns this single-Droplet runner. Preflight measured one
CPU, 961 MiB RAM, about 292 MiB available memory, no swap and 18 GiB free disk;
after the compiler image build about 17 GiB remained. No paid resize or new
machine was purchased. Existing cloud/domain charges and transfer allowances
were not re-audited; do not assume perpetual free service. Historical domain,
firewall, backup and instructor-exception evidence remains in
\ChapterRef{GiteaStartupFoundation}.
For a queued job, inspect branch trigger, Actions enablement, runner online
state and label. For a compile failure, read the first LaTeX error in the
matching job log, repair the source and push again. For absent artifacts,
confirm PDF existence, upload success and the legacy run download link before
assuming the REST listing is complete. Check memory/disk before retrying.
Stop only the added runner using its separate Compose project for recovery;
this leaves Gitea and the grading apps running. On retirement, remove runner
ID 1 through repository settings, revoke temporary credentials, and remove
only identified runner/job storage after preserving submission evidence.
Do not prune all Docker storage on this shared host.
\subsection*{Instruction Section 3.5 evidence coverage}
All eight requested evidence areas are retained in Sections 10.1--10.8:
source/trigger links and ports; registered runner and assigned run 2;
toolchain, commands and successful compilation log; generated commit/run
identity; named artifacts and download verification; successive builds 3/4,
failed run 5 and repaired run 6; runner/token boundary; and document controls,
registry hints and troubleshooting. These are dated historical observations.
The Build Identity page distinguishes an Actions publication from a local
review compile. Section 3.5 requires the final submitted PDF to be downloaded
from a successful workflow; use the current run and artifact links in
Section 10.5, rather than assigning an earlier artifact's identity to this
edition. Preserve the downloaded PDF outside the 14-day artifact window.
@@ -0,0 +1,201 @@
\chapter{DigitalOcean Docker Deployment}
\ChapterLabel{DigitalOceanDockerDeployment}
\index{DigitalOcean!Docker deployment}
\index{Docker!Ubuntu installation}
\section{Overview}
The team created an Ubuntu Droplet in the DigitalOcean project named
\textit{SSW 590 DevOps}. The Droplet is currently named
\texttt{ssw590-group7-droplet} and has one virtual CPU, 1 GB of RAM, 25 GB of
disk space, and the public IP address
\href{http://142.93.193.110}{142.93.193.110}. Docker Engine was then installed
on the Droplet by following Docker's official Ubuntu installation instructions
\cite{DockerUbuntuInstall}. Figure~\ref{fig:digitalocean-droplet} preserves the
original pre-upgrade cloud-console view; the text and host registry record the
current name and capacity.
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{digitalocean-droplet.png}
\caption{Original pre-upgrade view of the Ubuntu Droplet in the SSW 590
DevOps project; the current resource is named
\texttt{ssw590-group7-droplet} with 1 GB RAM and 25 GB storage.}
\label{fig:digitalocean-droplet}
\end{figure}
\FloatBarrier
\section{Installing Docker Engine on Ubuntu}
The package index was updated, the required certificate and download utilities
were installed, and Docker's official GPG key was saved in the APT keyring.
\begin{minted}{bash}
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg \
-o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
\end{minted}
The Docker repository was then added to the Ubuntu APT sources. The suite and
architecture values were determined automatically from the operating system.
\begin{minted}{bash}
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io \
docker-buildx-plugin docker-compose-plugin
\end{minted}
After installation, Docker was checked before the application images were
built and started.
\begin{minted}{bash}
sudo systemctl status docker
sudo docker --version
sudo docker run hello-world
\end{minted}
\section{First Container: Hello World Website}
\begin{devopsNote}[Historical deployment: public port 5050 is closed]
The commands and endpoint below preserve the earlier assignment record.
Public access to port 5050 has since been closed; do not rerun these historical
port-publishing commands as the current deployment procedure.
\end{devopsNote}
Following Section 2.5 of the supplied Docker setup guide, the team created a
minimal Node.js HTTP server, its \texttt{package.json}, a
\texttt{.dockerignore} file, and a Dockerfile based on
\texttt{node:20-alpine}. The image was built as \texttt{hello-node}; container
port 3000 was published through host port 5050.
\begin{minted}{bash}
cd hello-node-docker
sudo docker build -t hello-node .
sudo docker run -d --name hello-node -p 5050:3000 hello-node
sudo docker ps
\end{minted}
The historical endpoint (public port now closed) was
\href{http://142.93.193.110:5050}{http://142.93.193.110:5050}.
\section{Second Container: Two Buttons Website}
\begin{devopsNote}[Historical deployment: public port 8080 is closed]
The original two-button deployment below is historical. Public access to
port 8080 is now closed. Jenkins uses port 8080 only on the private bridge
and host loopback; users access Jenkins through its HTTPS hostname.
Do not rerun the historical public-port mapping below.
\end{devopsNote}
Following Section 2.6 of the supplied guide, the team created an Express-based
Node.js website with Blue and Red buttons. The project contained
\texttt{server.js}, \texttt{package.json}, \texttt{public/index.html},
\texttt{public/script.js}, and a Dockerfile. For Assignment 3 Step 3, the
original direct event-listener functions were replaced by a reusable
\texttt{ColorButtonController} class. Each button is represented by an instance
that stores its DOM element and target color, binds its click event, and changes
the page background through a class method.
\subsection{Class-Based JavaScript Implementation}
\begin{minted}{javascript}
class ColorButtonController {
constructor(buttonId, color) {
this.button = document.getElementById(buttonId);
this.color = color;
}
changeBackground() {
document.body.style.backgroundColor = this.color;
}
bind() {
this.button.addEventListener("click", () => this.changeBackground());
}
}
const blueButton = new ColorButtonController("blueBtn", "blue");
const redButton = new ColorButtonController("redBtn", "red");
blueButton.bind();
redButton.bind();
\end{minted}
The HTML loads the class-based script after defining both buttons.
\begin{minted}{html}
<button id="blueBtn">Blue</button>
<button id="redBtn">Red</button>
<script src="script.js"></script>
\end{minted}
\subsection{UML Class Diagram}
Figure~\ref{fig:color-button-uml} shows the updated object-oriented design.
The minus sign indicates private implementation data and the plus sign indicates
public operations. The same class is instantiated once for the Blue button and
once for the Red button.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[
uml/.style={draw=black, rounded corners=1pt, align=left,
inner sep=0pt, text width=10.5cm, font=\small}
]
\node[uml] (class) {%
\begin{minipage}{10.5cm}
\centering\textbf{ColorButtonController}\\[-2pt]
\rule{\linewidth}{0.4pt}
\raggedright $-$ button: HTMLButtonElement\\
$-$ color: string\\[-2pt]
\rule{\linewidth}{0.4pt}
$+$ ColorButtonController(buttonId: string, color: string)\\
$+$ bind(): void\\
$+$ changeBackground(): void
\end{minipage}
};
\end{tikzpicture}
\caption{UML class diagram for the class-based two-button website.}
\label{fig:color-button-uml}
\end{figure}
\FloatBarrier
\subsection{Build and Deployment}
The image was rebuilt as \texttt{color-buttons-app}; container port 3000 was
published through host port 8080. The existing container must be stopped and
removed before the revised image is deployed with the same container name.
\begin{minted}{bash}
cd color-buttons-app
sudo docker build -t color-buttons-app .
sudo docker stop color-buttons-app
sudo docker rm color-buttons-app
sudo docker run -d --name color-buttons-app -p 8080:3000 color-buttons-app
sudo docker ps
\end{minted}
The historical two-button endpoint (public port now closed) was
\href{http://142.93.193.110:8080}{http://142.93.193.110:8080}. Clicking either
button calls its controller instance and changes the page background to the
corresponding color.
\section{Deployment Summary}
The completed work for Steps 1 through 3 establishes a repeatable cloud deployment
workflow: provision the Ubuntu Droplet, install Docker from its official APT
repository, build each application image, run the containers with published
ports, implement reusable class-based client behavior, and confirm container
status with \texttt{docker ps}.
+156
View File
@@ -0,0 +1,156 @@
\chapter{Document Authoring Guide}
\ChapterLabel{DocumentGuide}
\index{LaTeX}
\index{document conventions}
\index{Appendix!Document Authoring Guide}
\section{How to Use This Appendix}
Use this appendix to maintain the template's file conventions, build process,
and review rules. Update it when the document structure or toolchain changes.
\section{Template Provenance}
This template was developed by \textbf{Darian Muresan, Ph.D.}, in conjunction
with \textbf{OpenAI Codex} and \textbf{Anthropic Claude Code}. Keep this
attribution distinct from the assignment-specific instructor metadata.
\section{File Naming and Responsibilities}
Every chapter file shall use the \texttt{devops} prefix, a PascalCase chapter
name, and the \texttt{.tex} suffix. Each such file shall contain one complete
chapter, beginning with \texttt{\string\chapter\{...\}}, and all of its
sections and subsections. Do not split one chapter into section-level
\texttt{.tex} files. For example, all of Chapter~2 is contained in
\path{devopsExampleAssignment.tex}. Do not add requirements or
architecture-design chapters; this template records a DevOps learning activity
and its operational evidence.
\section{Synonyms and Controlled Terms}
\index{synonyms}
Use one preferred term for each important concept. If an assignment uses
equivalent terms, record them here before release. For example, state whether
``continuous delivery'' refers to \gls{cd} generally or specifically excludes
automatic production deployment. Add important terms to
\texttt{devopsGlossary.tex} and index them where used.
\section{Building the PDF}
For Assignment 5, the authoritative publication route is the versioned
\path{.gitea/workflows/manual-pdf.yml} workflow in the MyFileAgent Gitea
repository. A trusted push to \texttt{main} or
\texttt{manual-build-validation} runs the registered \texttt{manual-latex}
runner and pinned temporary TeX container. Its command is:
\begin{verbatim}
python3 documentation/ci/build_manual.py
\end{verbatim}
The workflow supplies the triggering SHA, run number, run ID and attempt
through environment variables. The helper checks the checkout, creates
uncommitted build metadata in a fresh temporary workspace, runs
\texttt{latexmk -pdf} with minted shell escape, validates the PDF and references,
and publishes only successful output. It creates
\path{documentation/build/main.pdf} and a matching JSON manifest.
Download the named artifact from the successful Actions run and submit only
its PDF. See \ChapterRef{AutomatedManualBuild} for versions, limits, evidence,
retention, troubleshooting and credential boundaries.
For an explicitly unverified local draft, run from the documentation folder
inside the recorded TeX environment:
\begin{verbatim}
latexmk -pdf -shell-escape -interaction=nonstopmode \
-halt-on-error -file-line-error main.tex
\end{verbatim}
Without generated metadata the draft visibly says \texttt{+local.unverified}.
The legacy platform makefiles mentioned by the original template are not
included in this project; do not present those commands as tested here.
The toolchain includes bibliography, index and glossary utilities. This
manual's glossary/acronym lists are authored and linked directly; repeated
LaTeX passes resolve their links. Review compiler errors, undefined references,
layout and navigation, and do not edit generated auxiliary files or PDFs.
\section{Install LaTeX Tools on macOS}
\index{macOS}
\index{MacTeX}
\subsection{Recommended Installation}
Install the current full \href{https://www.tug.org/mactex/}{MacTeX}
distribution. It includes TeX Live, \texttt{pdflatex}, \texttt{bibtex},
\texttt{latexmk}, \texttt{makeglossaries}, \texttt{makeindex}, and useful
applications such as TeXShop and TeX Live Utility. The full distribution is the
least troublesome choice for this template because it includes the packages
used by the glossary, table, listing, color, and hyperlink features.
Either download the signed installer from the MacTeX web site and complete the
macOS installation dialog, or, if Homebrew is already installed, run:
\begin{verbatim}
brew install --cask mactex
\end{verbatim}
Close and reopen Terminal after installation. If the TeX commands are not
found, add the MacTeX binary directory to the current shell session:
\begin{verbatim}
export PATH="/Library/TeX/texbin:$PATH"
\end{verbatim}
Do not place this command in a shell profile until it has been verified on the
local computer.
\subsection{Verification and Compilation}
From the template directory, verify the tools:
\begin{verbatim}
command -v pdflatex bibtex latexmk makeglossaries makeindex
\end{verbatim}
Each command should print a path. Then create the PDF:
\begin{verbatim}
make -f makefileMacLinux pdf
\end{verbatim}
To remove generated intermediate files while keeping the PDF, run:
\begin{verbatim}
make -f makefileMacLinux clean
\end{verbatim}
\section{Install LaTeX Tools on Windows}
\index{Windows}
\index{MiKTeX}
\subsection{Recommended Installation}
Install the current Basic MiKTeX distribution using the official
\href{https://miktex.org/howto/install-miktex}{MiKTeX Windows installation
guide}. During installation, choose a per-user installation when appropriate
and set missing-package installation to \emph{Ask me first} or \emph{Yes}.
The latter is convenient for a student machine with Internet access; the former
makes each package installation explicit.
Open MiKTeX Console after installation, apply available updates, and install
the \texttt{latexmk} package if the verification command below cannot find it.
On an organization-managed computer, obtain approval before installing software
or changing execution policy.
\subsection{Verification and Compilation}
Open a new PowerShell window in the template directory and verify:
\begin{verbatim}
Get-Command pdflatex,bibtex,latexmk,makeglossaries,makeindex
\end{verbatim}
Each command should display a command record. Build the PDF with:
\begin{verbatim}
.\makefilePowerShell.ps1 -Action pdf
\end{verbatim}
If PowerShell blocks the script under a managed execution policy, ask the
system administrator for the approved procedure. Do not bypass institutional
security policy. To remove intermediate build files, run:
\begin{verbatim}
.\makefilePowerShell.ps1 -Action clean
\end{verbatim}
\section{Common Build Problems}
\begin{tabularx}{\linewidth}{L{3.0cm}Y}
\toprule \textbf{Symptom} & \textbf{Resolution}\\ \midrule
Command not found & Close and reopen the terminal. On macOS, verify the TeX
binary path; on Windows, verify MiKTeX completed installation and is on the user PATH.\\
Missing LaTeX package & Use MiKTeX Console or its approved on-the-fly package
installation prompt on Windows. On macOS, install the full MacTeX distribution
or use TeX Live Utility to add the missing package.\\
References or glossary incomplete & Run the supplied platform build instead of
a single \texttt{pdflatex} command; it runs BibTeX, the glossary tool, and the
index tool in the required order.\\
Script is blocked & Follow the institution's approved PowerShell policy or run
the documented build commands with an approved administrator.\\ \bottomrule
\end{tabularx}
\section{Authoring and Review Rules}
Replace bracketed placeholders with assignment facts. Keep operational examples
safe, bounded, and free of credentials. Link activities to evidence, retain
history, and state unknowns or instructor decisions explicitly. Rebuild after
structural, cross-reference, table, glossary, or index changes.
+46
View File
@@ -0,0 +1,46 @@
\chapter*{Document History}
\phantomsection
\ChapterLabel{DocumentHistory}
\addcontentsline{toc}{chapter}{Document History}
\markboth{Document History}{Document History}
\index{document history}
\footnotesize
\begin{longtable}{L{2.8cm}L{1.7cm}L{6.1cm}L{2.3cm}}
\caption{Document Update History}\label{Table:DocumentHistory}\\
\toprule
\textbf{Date / Version} & \textbf{Author Initials} & \textbf{Change} & \textbf{Changed At} \\
\midrule
\endfirsthead
\multicolumn{4}{l}{\footnotesize\itshape Document Update History (continued)}\\
\toprule
\textbf{Date / Version} & \textbf{Author Initials} & \textbf{Change} & \textbf{Changed At} \\
\midrule
\endhead
\bottomrule
\endlastfoot
November 8, 2026 / 1.10.1 & GDL, NK, CDX & Completed the secure delivery evidence audit, expanded the architecture with actual hosts, volumes and private paths, and linked release records, scans and recovery output. Recorded the v1 and v2 promotions, human decisions, production rollback samples, staging port-mismatch failure and delayed recovery. Added production HTTPS monitoring and preserved its limitation: the probe started after rollback. Recorded the unverified historical scanner database version and stateful rollback limitations. & \ChapterRef{SecureDeliveryRollback}, \ChapterRef{Hosts} \\
November 7, 2026 / 1.10.0 & GDL, NK, CDX & Established the Assignment 8 service and delivery foundation. Locked application dependencies and base image; prepared a dedicated Jenkins agent with Python, Docker, Ansible and the Docker collection. Configured pinned SSH, restricted deployment credentials, registry access, Caddy routes and separate staging and production Compose projects. Added tests, dependency and secret scans, image scanning, approval and Ansible deployment. Reviewed and merged the foundation and follow-up security corrections; documented initial validation and the health-check timeout investigation. & \ChapterRef{SecureDeliveryRollback} \\
October 28, 2026 / 1.9.2 & GDL, NK, CDX & Expanded Assignment 7 into eight evidence sections; added architecture and measured incident diagrams, original team screenshots, final alert/runbook details, SLI counts, persistence, reviewed operational links and explicit verification limits. Updated Hosts with Grafana, Passwords with the team-specified \texttt{bitwarden-grafana} hint, front matter and reference controls. Operational PR 14 and documentation PR 15 were approved and merged; Actions run 16 compiled the manual. Final editorial and table-wrapping corrections are incorporated in version 1.9.2. & \ChapterRef{SREMonitoringReliability}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
October 24, 2026 / 1.9.1 & GDL, NK, CDX & Added only the Assignment 7 SLI/SLO source draft: definitions, hypothetical 99\% error-budget example, verified ten-minute baseline, reproducible queries and pending incident limitations. Included the SRE chapter and baseline evidence. & \ChapterRef{SREMonitoringReliability}, \AppendixRef{AIPromptLog} \\
October 24, 2026 / 1.9.0 & GDL, NK, CDX & Clarified that historical public ports 5050/8080 are now closed; retained original commands and evidence, private Jenkins routing, and linked the historical Assignment 5 preflight to the later enforced branch gate. Prepared on the Droplet for team review. & \ChapterRef{DigitalOceanDockerDeployment}, \ChapterRef{GiteaStartupFoundation}, \ChapterRef{AutomatedManualBuild}, \AppendixRef{AIPromptLog} \\
October 9, 2026 / 1.8.2 & GDL, NK, CDX & \textbf{Jenkins usage through the web interface.} Configured the named Jenkins administrator and a dedicated, non-admin Gitea integration account. Stored its token in Jenkins credentials and corrected organization discovery scope. Created the multibranch pipeline for the startup repository and selected origin PR head revisions; disabled untrusted fork discovery. Committed the Python pricing example, two real unit tests and Jenkinsfile. Verified checkout, syntax checks and test results through the web interface. Created issue 10 and PR 11; deliberately changed multiplication to addition, observed test failure and a blocked merge, then restored multiplication and obtained a passing required check. Corrected the branch-protection context to \texttt{myfileagent-python-ci/}\allowbreak\texttt{pipeline/pr-main}, required peer approval and disabled bypass. NK approved; GDL merged; Jenkins tested the resulting main commit. Confirmed Matrix permissions for the named administrator, with no Anonymous or general Authenticated Users permissions. Refreshed plugin-update information, retained the controller warning, and confirmed the single current CI token. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Passwords} \\
October 9, 2026 / 1.8.1 & GDL, NK, CDX & \textbf{Networking and service access.} Configured the CI hostname, DNS A record and Caddy HTTPS reverse proxy on the existing Droplet. Corrected the administrative SSH tunnel to forward to the host loopback mapping instead of a Docker-only hostname. Verified the live login page, certificate issuer and validity, HTTP-to-HTTPS redirect, and anonymous API denial. Kept raw Jenkins port 8080 bound to loopback and did not publish an agent port. Configured repository-scoped Gitea push and PR webhooks over the private Compose bridge; allowed only the named Jenkins destination and blocked the public webhook receiver at Caddy. Correlated a successful delivery with a commit-specific Jenkins run. The team retired earlier service allowances: the attached Cloud Firewall now permits inbound 22, 80 and 443 only. Recorded external IPv4 results, IPv6 disabled, no CI AAAA answer, and UFW inactive. Public browser access remains the team's selected policy; instructor exception evidence has not been supplied. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Hosts} \\
October 9, 2026 / 1.8.0 & GDL, NK, CDX & \textbf{Jenkins installation and persistence.} Installed official Jenkins LTS with Java 21 on the existing one-CPU, 1 GB DigitalOcean Droplet, after recording memory and disk capacity. Used the LTS image tag and pinned immutable digest; the installed release was 2.580.1. Versioned the non-secret Compose configuration with restart policy, bounded JVM/container memory, private networking and persistent Jenkins home. Recovered a stalled initial startup by stopping only Jenkins, confirming Gitea remained healthy, and retrying; the original exception's root cause was not established. Installed and recorded Git/Gitea/Checks and supporting plugin versions. Selected controller execution for trusted team code, without a privileged Docker socket or separate inbound agent listener. Installed Python from recorded Debian repositories and retained a reproduction helper for replacement containers. Restarted Jenkins without deleting storage; all 13 recorded configuration/build files survived unchanged. The saved main job then passed syntax and both tests. This verified restart persistence, not backup/restore. Updated Hosts for CI services and Passwords with credential hints only. & \ChapterRef{JenkinsContinuousIntegration}, \ChapterRef{Hosts}, \ChapterRef{Passwords} \\
October 6--7, 2026 / 1.7.1 & GDL, CDX, NK & Implemented Assignment 5: imported the full manual and historical images; deployed the repository-scoped runner and pinned TeX image; enabled push builds with visible commit/run identity and downloadable artifacts. Verified source builds 3--4, controlled failure 5, repair 6, and downloaded publication PDFs. Updated Hosts for runner/job resources and Passwords for credential-storage hints only. Corrected layout and links, aligned the build guide, consolidated this history and the AI log, and checked all instruction Section 3.5 requirements. & \ChapterRef{AutomatedManualBuild}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
September 29, 2026 / 1.6.1 & NK, GDL, CDX & Activated \texttt{myfileagent.tech} with DNS, Caddy HTTPS, certificate and ACME evidence; documented the isolated backup/restore test, live links and temporary ports; refined the firewall, extra-credit, credential, figure-layout, and reference material; compiled and visually reviewed the manual. & \ChapterRef{GiteaStartupFoundation}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
September 26, 2026 / 1.6.0 & NK, GDL, CDX & Established the pinned Gitea/SQLite foundation, persistence test, two-member workflow, Cloud Firewall, key-only SSH, architecture and operations; updated Hosts and Passwords and documented the instructor-cleared SSH exception. & \ChapterRef{Hosts}, \ChapterRef{Passwords}, \ChapterRef{GiteaStartupFoundation}, \AppendixRef{AIPromptLog} \\
September 18, 2026 / 1.5.1 & NK, GDL, CDX & Added Chapter 8, the Project Proposal, describing the MyFileAgent one-click DevSecOps installation, build, configuration, testing, deployment, security, and Grafana monitoring pipeline. & \ChapterRef{ProjectProposal}, \AppendixRef{AIPromptLog} \\
September 18, 2026 / 1.5.0 & NK, GDL, CDX & Added Chapter 6 documenting the DigitalOcean Droplet, Docker installation, website deployment, class-based JavaScript button design, and UML diagram. Added Chapter 7 documenting the TeX Live Docker image, sample LaTeX source, build and run commands, and PDF verification. Updated the supporting report sections and project files. & \ChapterRef{DigitalOceanDockerDeployment}, \ChapterRef{LatexDocker}, \AppendixRef{AIPromptLog} \\
September 12, 2026 / 1.4.1 & NK, GDL, CDX & Added the complete Section 3 problem-set record with human-run outputs; organized the problem set as Section 3.2; included the Hosts and Passwords chapters; reduced and linked the assignment glossary; and verified the index links. & \ChapterRef{LinuxProblemSet}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \AppendixRef{AIPromptLog} \\
September 11, 2026 / 1.4.0 & NK, GDL, CDX & Customized the group report for Assignment 2; documented the Linux setup activity; added the Linux problem-set chapter & \ChapterRef{Introduction}, \ChapterRef{LinuxCommands}, \ChapterRef{LinuxProblemSet}, \AppendixRef{AIPromptLog} \\
September 2, 2026 / 1.3 & DDM, CDX & Provided the reusable \phantomsection\label{AcronymRef:SSW}SSW 590 DevOps assignment template and its one-file-per-chapter convention. & \hyperref[Chapter:TemplateAttribution]{Template baseline} \\
\end{longtable}
\normalsize
+126
View File
@@ -0,0 +1,126 @@
\chapter{Example Assignment}
\ChapterLabel{ExampleAssignment}
\index{activity brief}
\index{workflow}
\index{automation}
\index{infrastructure as code}
\index{evidence}
\index{observability}
\index{rollback}
\index{retrospective}
\index{continuous improvement}
\index{submission}
\index{cleanup}
\section{Activity Brief}
\subsection{Scenario}
Describe the operational scenario and why it matters. Use a bounded,
non-production system. \textit{Example: A team must deploy a small service
reliably to a remote Linux host and recover from a failed release.}
\subsection{Activities}
Assign stable IDs to each assessed activity. Add rows as needed.
\begin{tabularx}{\linewidth}{L{2.1cm}L{3.1cm}Y}
\caption{Activity Register\label{Table:ActivityRegister}}\\
\toprule \textbf{ID} & \textbf{Activity} & \textbf{Completion criterion}\\ \midrule
\ActivityID{ACT-01} & \textit{[Prepare environment]} & \textit{[repeatable environment baseline is present]}\\
\ActivityID{ACT-02} & \textit{[Automate workflow]} & \textit{[workflow runs from documented inputs]}\\
\ActivityID{ACT-03} & \textit{[Observe and recover]} & \textit{[evidence shows monitoring and recovery]}\\ \bottomrule
\end{tabularx}
\subsection{Success Criteria}
State observable outcomes, not implementation prescriptions. Include security,
cost, cleanup, and reproducibility criteria where applicable.
\subsection{Assessment Rubric}
\begin{tabularx}{\linewidth}{L{3.2cm}L{2.0cm}Y}
\toprule \textbf{Criterion} & \textbf{Weight} & \textbf{Evidence expected}\\ \midrule
Reproducible workflow & \textit{[points]} & \textit{[automation and clean-run proof]}\\
Operational quality & \textit{[points]} & \textit{[observability, rollback, security]}\\
Evidence and explanation & \textit{[points]} & \textit{[commands, outputs, rationale]}\\
Reflection & \textit{[points]} & \textit{[failure analysis and improvement]}\\ \bottomrule
\end{tabularx}
\section{Workflow and Implementation}
\subsection{Environment Baseline}
Specify the authorized environment, prerequisites, access model, versioned
inputs, and teardown procedure. Record commands in a repository script or
infrastructure-as-code definition; do not rely on a sequence of undocumented
console clicks.
\subsection{Procedure}
For each activity, state the goal, input, command or automation entry point,
expected result, and rollback or cleanup action. Link the corresponding
activity identifier and evidence identifier.
\begin{lstlisting}[language=bash,caption={Replace with a safe, repeatable workflow entry point.}]
# ./scripts/provision.sh --environment sandbox
# ./scripts/deploy.sh --version <tag>
# ./scripts/destroy.sh --environment sandbox
\end{lstlisting}
\subsection{Operational Controls}
Describe least-privilege access, secret handling, logging, monitoring, change
control, budget guardrails, backup or rollback, and resource cleanup. A secret
shall be referenced by its approved storage location, never pasted into this
document or committed to the repository.
\subsection{Failure Exercise}
Define one safe failure or degradation scenario. State the trigger, expected
signal, diagnosis path, recovery action, and evidence required. Never direct
students to disrupt shared or production infrastructure.
\section{Evidence Register}
\subsection{How to Use This Section}
Evidence demonstrates an actual execution; an expected result is not evidence.
Use sanitized command output, logs, screenshots, links to versioned files, or
recorded metrics. Redact secrets and personal information.
\begin{tabularx}{\linewidth}{L{1.7cm}L{2.2cm}L{2.6cm}Y}
\caption{Evidence Register\label{Table:EvidenceRegister}}\\
\toprule \textbf{ID} & \textbf{Activity} & \textbf{Evidence type} & \textbf{Location and interpretation}\\ \midrule
\EvidenceID{EVD-01} & \ActivityRef{ACT-01} & \textit{[log / script / image]} & \textit{[repository path or sanitized URL; what it demonstrates]}\\
\EvidenceID{EVD-02} & \ActivityRef{ACT-02} & \textit{[pipeline output]} & \textit{[location; result and relevant timestamp]}\\
\EvidenceID{EVD-03} & \ActivityRef{ACT-03} & \textit{[monitoring / recovery output]} & \textit{[location; failure signal and recovery result]}\\ \bottomrule
\end{tabularx}
\subsection{Evidence Quality Checks}
Evidence should identify the executed version, environment, time, command or
automation entry point, outcome, and any deviation from the expected result.
State failures plainly; they are valuable inputs to the retrospective.
\section{Retrospective}
\subsection{Outcome}
Summarize what happened, including completed work, gaps, and unexpected
behavior. Distinguish facts from interpretation.
\subsection{Flow and Feedback}
Identify queues, handoffs, manual steps, slow feedback, and sources of rework.
Explain which changes improved delivery flow or made failures visible sooner.
This emphasis on flow, feedback, and continual learning is consistent with the
DevOps framing introduced in \cite{PhoenixProject}.
\subsection{Improvement Experiments}
Propose one or more small, testable improvements. State the hypothesis, change,
measurement, expected result, and risk. Do not represent a proposal as an
approved production change.
\subsection{Team Contributions}
For team assignments, concisely identify each member's meaningful contribution
and any collaboration constraints.
\section{Submission and Cleanup}
\subsection{Submission Checklist}
\begin{itemize}
\item Versioned automation, configuration, and runbook are committed.
\item Evidence links resolve and contain no secrets or personal data.
\item The retrospective is complete and distinguishes results from proposals.
\item Remote resources have been destroyed or explicitly transferred as directed.
\item The repository identifies the final commit or release tag.
\end{itemize}
\subsection{Academic Integrity and Responsible Use}
Follow the course policy for collaboration and AI assistance. Cite external
code, tutorials, and AI-generated material as required by the instructor.
Students remain responsible for understanding, testing, and explaining all
submitted work.
@@ -0,0 +1,726 @@
\chapter{Startup Foundation with Gitea}
\ChapterLabel{GiteaStartupFoundation}
\index{Gitea}
\index{Docker!Gitea deployment}
\index{SQLite}
\index{persistent storage}
\index{DNS}
\index{HTTPS}
\index{ACME}
\index{Caddy}
\index{certificate renewal}
\index{Cloud Firewall}
\index{Docker volume}
\index{GitHub Student Developer Pack}
\index{pull request}
\index{SSH}
\index{TLS}
\section{Student Pack Domain and DNS}
On September 29, 2026, the team secured
\href{https://myfileagent.tech}{\texttt{myfileagent.tech}} through
\texttt{.TECH domains} using the
\href{https://education.github.com/pack}{GitHub Student Developer Pack}. The
team confirmed its eligible Pack account; the published offer provides one
standard \texttt{.TECH} domain free for one year. The registrar listed renewal
at \$29.99 per year. Nick owns the renewal task, disabled automatic renewal,
and recorded the September 29, 2027 expiration date. These non-secret terms
are recorded here without reproducing registrar account details.
The public \phantomsection\label{AcronymRef:DNS}DNS A record maps
\texttt{myfileagent.tech} to the Droplet IPv4
address \texttt{142.93.193.110}. An independently timed Windows lookup returned
that address, plain \phantomsection\label{AcronymRef:HTTP}HTTP returned
\texttt{308 Permanent Redirect} to the same hostname over
\phantomsection\label{AcronymRef:HTTPS}HTTPS, and HTTPS returned
\texttt{200 OK} through Caddy.
\begin{figure}[H]
\centering
\includegraphics[width=0.68\textwidth]{hw4_images/domain_http_evidence.png}
\caption{Dated independent DNS and HTTP evidence showing the public A record,
Caddy's HTTP-to-HTTPS redirect, and a successful HTTPS response.}
\label{fig:domain-http-evidence}
\end{figure}
\FloatBarrier
\section{Pinned Gitea Deployment}
On September 26, 2026, the team established a deployment of
\phantomsection\label{GlossaryRef:gitea}Gitea. It runs on
\texttt{ssw590-group7-droplet}. The deployment uses the official rootless
Gitea image following the official container guidance
\cite{GiteaDockerRootless}, and the official Caddy image from Docker Hub
\cite{CaddyDockerImage}. The exact pinned images and recorded digests are:
\begin{minted}{text}
gitea_image=docker.gitea.com/gitea:1.27.3-rootless
gitea_digest=sha256:1c17ecaead42eb3b5391553d8708103a4beb0e86edf5b9ebc1eb269c318845f2
caddy_image=caddy:2.11.4-alpine
caddy_digest=sha256:6aeddd44c3078b0f9a35206472a11420648a79c184603ef95957d0a20044cb2b
\end{minted}
The minimal definition consists of a versioned \texttt{compose.yaml}
and \texttt{Caddyfile}. The Gitea and Caddy services use
\texttt{restart: unless-stopped}; Git-over-\phantomsection\label{AcronymRef:SSH}SSH
is disabled.
The non-secret deployment files are versioned in the MyFileAgent repository as
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/gitea/compose.yaml}{\texttt{ops/gitea/}\allowbreak\texttt{compose.yaml}}
and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/gitea/Caddyfile}{\texttt{ops/gitea/}\allowbreak\texttt{Caddyfile}}.
The team verified the current public files after activation. The initial
Compose definition and Caddyfile were recorded by these commits, with later
commits preserving their version history:
\begin{minted}{text}
compose_commit=533ddfb38aaefaa36fbd130695b2e1adf566e822
caddyfile_commit=11ac824a326d40fdce71642cd37e2543b9eea12c
\end{minted}
The
following sanitized excerpt records the reproducible service, mount, port, and
network choices without credentials:
\begin{minted}{yaml}
name: myfileagent-gitea
services:
caddy:
image: caddy:2.11.4-alpine
container_name: myfileagent-caddy
restart: unless-stopped
profiles: [https]
ports: ["80:80", "443:443"]
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
networks: [edge, gitea-private]
gitea:
image: docker.gitea.com/gitea:1.27.3-rootless
container_name: myfileagent-gitea
restart: unless-stopped
environment:
GITEA__database__DB_TYPE: sqlite3
GITEA__database__PATH: /var/lib/gitea/data/gitea.db
GITEA__server__DOMAIN: "${GITEA_DOMAIN:-myfileagent.tech}"
GITEA__server__ROOT_URL: "${GITEA_ROOT_URL:-https://myfileagent.tech/}"
GITEA__server__DISABLE_SSH: "true"
GITEA__service__DISABLE_REGISTRATION: "true"
ports: ["127.0.0.1:3000:3000"]
volumes:
- gitea-data:/var/lib/gitea
- gitea-config:/etc/gitea
networks: [gitea-private]
\end{minted}
From a directory containing those two files, another authorized operator can
reproduce the current deployment with:
\begin{minted}{bash}
docker compose pull
docker compose --profile https up -d
docker compose ps
\end{minted}
Host port 3000 remains bound only to the
\phantomsection\label{GlossaryRef:loopback}loopback interface as
\texttt{127.0.0.1:3000}. An external connection attempt to public port 3000
failed as expected, while a request from the Droplet to
\texttt{http://127.0.0.1:3000/} returned HTTP 200. Public requests now terminate
at Caddy on ports 80 and 443 and traverse the private Compose network to
\texttt{gitea:3000}; the backend itself is never published publicly.
\section{Database and Persistence}
The team selected \phantomsection\label{GlossaryRef:sqlite}SQLite because this
is a small two-person course deployment and it avoids an unnecessary database
service and network port. Gitea stores its database at
\path{/var/lib/gitea/data/gitea.db}. The Docker-managed
\phantomsection\label{GlossaryRef:dockervolume}volumes
\texttt{myfileagent-gitea\_gitea-data} and
\texttt{myfileagent-gitea\_gitea-config} persist application data and
configuration outside the disposable container layer.
The team completed that replacement test on September 26, 2026 from
19:52:28 to 19:53:44 UTC. The exact before and after identifiers were:
\begin{minted}{text}
before_id=b0b377f252218b9495028307532d3529cd10c153dc18d3187470795b542618a8
after_id=186dbfeaf4d21609d8fa0b98741945844c69fc4a2d35d074935508ea0b008b48
\end{minted}
Before replacement, the first container served the MyFileAgent product
repository and open Issue~\#2,
``Implement validation that permits file operations only within the configured
demonstration directory and rejects traversal or out-of-scope paths.'' The
team then ran:
\begin{minted}{bash}
docker compose up -d --force-recreate --no-deps gitea
\end{minted}
The replacement container had the distinct after identifier shown above. The
same repository and open issue remained available, and the command record
reported \texttt{container\_replaced=PASS}. Both named volumes remained
mounted at \texttt{/var/lib/gitea} and \texttt{/etc/gitea}. Therefore the
repository, issue metadata, and configuration survived because their state was
stored in persistent volumes rather than the replaced container layer.
\begin{figure}[htbp]
\centering
\includegraphics[width=0.9\textwidth]{gitea_persistence_evidence.png}
\caption{Dated container-replacement evidence showing distinct before and
after container identifiers, the surviving MyFileAgent repository and Issue
\#2, a PASS result, and both persistent volume mounts.}
\label{fig:gitea-persistence-evidence}
\end{figure}
\FloatBarrier
This test verifies container-replacement persistence only; it is not a backup
or restore test.
\section{HTTPS and Certificate Renewal}
The team selected Caddy as the \phantomsection\label{GlossaryRef:reverseproxy}
reverse proxy and public \phantomsection\label{GlossaryRef:tls}
\phantomsection\label{AcronymRef:TLS}TLS termination
point. Caddy accepts public HTTPS and forwards private HTTP to
\texttt{gitea:3000} by Compose service name on the private
\texttt{gitea-private} network. Gitea never needs to publish its backend port
to the public interface. Caddy publishes ports 80 and 443 through the enabled
\texttt{https} profile. Its certificate and runtime state persist in the
\texttt{caddy-data} and \texttt{caddy-config} volumes.
The team compared Let's Encrypt and ZeroSSL, two publicly trusted ACME
certificate authorities supported by automated clients. Let's Encrypt was
selected because it provides free automated certificates without requiring a
paid plan and is the option recommended by the assignment. The Caddyfile pins
the Let's Encrypt production ACME directory. Caddy's
\phantomsection\label{GlossaryRef:acme}\phantomsection\label{AcronymRef:ACME}ACME
automation obtained the production
certificate, manages renewal, and adds the HTTP-to-HTTPS redirect
\cite{CaddyAutomaticHTTPS}.
The production proxy configuration selects the Let's Encrypt production ACME
directory and routes by Compose service name over the private network:
\begin{minted}{text}
{
acme_ca https://acme-v02.api.letsencrypt.org/directory
}
{$GITEA_HOSTNAME} {
reverse_proxy gitea:3000
}
\end{minted}
The Compose file defaults Gitea's \texttt{DOMAIN} to
\texttt{myfileagent.tech} and \texttt{ROOT\_URL} to
\texttt{https://myfileagent.tech/}. The live public repository is
available through the
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline}{MyFileAgent product-repository link}.
\paragraph{Activation and rollback.}
After the team confirmed the A record and firewall rules, it activated the
versioned deployment with the \texttt{https} profile:
\begin{minted}{bash}
cd /home/codex/myfileagent-gitea
docker compose --profile https config --quiet
docker compose --profile https up -d
\end{minted}
The activation preserved all four named volumes. If public access fails, the
bounded recovery path preserves data and stops only the proxy while operators
test the loopback service:
\begin{minted}{bash}
cd /home/codex/myfileagent-gitea
docker compose --profile https stop caddy
docker compose up -d gitea
curl -fsS -o /dev/null -w 'loopback_http=%{http_code}\n' \
http://127.0.0.1:3000/
\end{minted}
\paragraph{Validation and observed production result.}
The team validated the merged Compose model and Caddyfile before activation,
then verified the live endpoint after activation \cite{CaddyCommandLine}:
\begin{minted}{bash}
cd /home/codex/myfileagent-gitea
docker compose --profile https config --quiet
docker exec myfileagent-caddy caddy validate \
--config /etc/caddy/Caddyfile --adapter caddyfile
\end{minted}
The production certificate has subject \texttt{CN=myfileagent.tech}, issuer
\texttt{Let's Encrypt E1}, a September 29, 2026 start date, and a December 28,
2026 expiration date. Figure~\ref{fig:domain-certificate-evidence} records
those fields and its thumbprint; Figure~\ref{fig:domain-http-evidence} records
the redirect and successful HTTPS response.
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{hw4_images/domain_evidence.png}
\caption{Production certificate evidence showing the MyFileAgent hostname,
Let's Encrypt issuer, validity interval, and certificate thumbprint.}
\label{fig:domain-certificate-evidence}
\end{figure}
Caddy automatically obtains, stores, and renews managed certificates and
creates the HTTP redirect \cite{CaddyAutomaticHTTPS}. Caddy does not document
a Certbot-style \texttt{renew --dry-run} command. The team therefore tested
the same automation path with a temporary \texttt{acme-test.myfileagent.tech}
A record and Let's Encrypt staging directory. The first attempts occurred
before public DNS propagation and reported that no record existed. The team
confirmed the A record through the \texttt{1.1.1.1} and \texttt{8.8.8.8}
resolvers, retried, and observed multiple external HTTP-01 requests, a valid
authorization, and \texttt{certificate obtained successfully}. It then removed
the temporary Caddy block and DNS record and reconfirmed production HTTPS 200.
This is recorded as a successful staging automation exercise, not as a claim
that the production certificate was forcibly renewed.
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{hw4_images/caddy_renewal_test_evidence.png}
\caption{Dated Caddy ACME staging evidence showing renewal information,
successful certificate acquisition for the temporary test hostname, and a
subsequent successful production HTTPS response.}
\label{fig:caddy-renewal-test-evidence}
\end{figure}
\FloatBarrier
\section{Firewall and External Exposure}
\begin{devopsNote}[Current status: earlier public application ports are closed]
The September firewall rules, tests, figures, and table below are historical.
Public ports 5050 and 8080 were subsequently closed, as recorded in
\ChapterRef{JenkinsContinuousIntegration}. They are not current public
endpoints. Jenkins port 8080 remains private and loopback-only.
\end{devopsNote}
\phantomsection\label{GlossaryRef:cloudfirewall}
\paragraph{Exposure policy and temporary exceptions.}
The host currently publishes the earlier Assignment 3 applications on ports
5050 and 8080 while that work is graded; both returned HTTP 200 during the
September 26 check and were not altered. At Nick's direction, these two ports
will remain open only until Group Assignment~\#3 is graded; afterward, the team
will remove their inbound firewall rules when the earlier services are no
longer needed. The new Gitea backend is not public:
the host listener is \texttt{127.0.0.1:3000}, and an external port-3000 check
could not connect. The DigitalOcean Cloud Firewall
\texttt{ssw590-group7-gitea-firewall} was created and attached to the
\texttt{ssw590-group7-droplet}. The control panel reports eight total rules,
five inbound and three outbound. It permits
\phantomsection\label{AcronymRef:TCPAssignment4}80/TCP,
443/TCP, and---at the team's direction---administrative SSH on 22/TCP from all
IPv4 and IPv6 sources, and temporarily permits 5050/TCP and 8080/TCP for
Assignment 3 grading. Because the team requires SSH access from changing
locations, restricting SSH to a stable list of source addresses is not
operationally feasible. The instructor cleared this exception. SSH therefore
remains reachable from all IPv4 and IPv6 sources while the separately verified
key-only controls prohibit password and keyboard-interactive authentication.
\paragraph{Defense in depth.}
The Droplet has public IPv4 but no public IPv6 address. Outbound
traffic remains allowed for DNS, time synchronization, image retrieval, and
certificate services. This control must be implemented at the DigitalOcean
boundary rather than relying only on host UFW because Docker-published ports
can bypass expected UFW paths \cite{DigitalOceanCloudFirewalls}. The firewall
remains necessary even with HTTPS: HTTPS authenticates and encrypts web traffic,
but it does not close unrelated ports, restrict which services are reachable,
or prevent an accidentally published container port from accepting connections.
The firewall
is attached to one Droplet, shown by the control panel as
\texttt{ssw590-group7-droplet}, with the expected 1~GB / 25~GB / NYC1 facts.
Its three outbound rules allow ICMP, all TCP, and all UDP to IPv4 and IPv6
destinations. The control panel listed no overlapping firewall.
\paragraph{External verification.}
From an
external Windows client, the team obtained the final expected results on
September 29: 22/TCP, 80/TCP, 443/TCP, 5050/TCP, and 8080/TCP were reachable;
the Gitea backend on 3000/TCP and database port 5432/TCP were not reachable. A
fresh key-authenticated SSH connection also succeeded after firewall creation.
The team additionally opened an authenticated SSH local-forwarding session
from the same external workstation and loaded
\path{http://localhost:3000/myfileagent/myfileagent-pipeline}. This confirms that
the private Gitea administration path remains functional even though direct
public access to 3000/TCP is blocked.
Figure~\ref{fig:firewall-configuration-evidence} records the applied IPv4 and
IPv6 rule set, and Figure~\ref{fig:firewall-external-test-evidence} records the
external port-test results.
\begin{table}[H]
\centering
\caption{Host and container port mappings after firewall creation}
\label{tab:gitea-port-mappings}
\small
\begin{tabularx}{\textwidth}{L{1.9cm}L{3.4cm}Y Y}
\toprule
\textbf{Port} & \textbf{Listener or mapping} & \textbf{Current exposure} & \textbf{Purpose} \\
\midrule
22/TCP & Host OpenSSH & Public IPv4/IPv6; keys only & Administration and the verified Gitea tunnel \\
80/TCP & Caddy \texttt{80:80} & Public through firewall & HTTP redirect and ACME validation \\
443/TCP & Caddy \texttt{443:443} & Public through firewall & MyFileAgent HTTPS \\
3000/TCP & \path{127.0.0.1:3000:3000} & Loopback only & Private Gitea backend and SSH tunnel \\
5050/TCP & Earlier assignment service & Now closed publicly & Historical Assignment 3 grading \\
5432/TCP & No listener or mapping & Not public & Unused because SQLite was selected \\
8080/TCP & Earlier assignment service & Now closed publicly & Historical Assignment 3 grading \\
\bottomrule
\end{tabularx}
\end{table}
\begin{figure}[htbp]
\centering
\includegraphics[width=\textwidth]{hw4_images/firewall_configuration_evidence.png}
\caption{Sanitized DigitalOcean Cloud Firewall evidence showing inbound
allowances for SSH, HTTP, HTTPS, and the two temporarily preserved grading
services, plus outbound ICMP, TCP, and UDP rules for IPv4 and IPv6.}
\label{fig:firewall-configuration-evidence}
\end{figure}
\begin{figure}[htbp]
\centering
\includegraphics[width=0.62\textwidth]{hw4_images/firewall_external_test_evidence.png}
\caption{Dated external Windows-client evidence showing public ports 22, 80,
443, 5050, and 8080 reachable while the loopback-only Gitea backend on 3000
and the unused database port 5432 remain unreachable.}
\label{fig:firewall-external-test-evidence}
\end{figure}
\paragraph{SSH hardening and firewall attachment.}
An initial attempt in the SSW590 team context was blocked by an account
permissions warning related to the payment method. Switching to the authorized My Team
context resolved that blocker and made the correct Droplet available for
attachment. Before permitting public SSH from arbitrary locations, the team
installed \path{/etc/ssh/sshd_config.d/00-ssw590-ssh-hardening.conf}. It
disables password and keyboard-interactive authentication, permits root only
with a key, and explicitly enables public-key authentication. The file passed
\texttt{sshd -t}, and SSH was reloaded without terminating the active session.
The team then confirmed a new key-authenticated session, confirmed that a
password-only session was rejected, and recorded the following effective
configuration at 23:27:51 UTC:
\begin{minted}{text}
2026-09-26T23:27:51+00:00
permitrootlogin without-password
pubkeyauthentication yes
passwordauthentication no
kbdinteractiveauthentication no
\end{minted}
OpenSSH reports \texttt{without-password} as the effective equivalent of the
configured \texttt{prohibit-password} policy. These human-run checks established
key-only SSH before Cloud Firewall attachment, and the final external test
reconfirmed port 22. These controls support the instructor-cleared exception
for administration from changing locations.
\clearpage
\section{Startup Team Workflow}
The team created the
\href{https://myfileagent.tech/myfileagent}{\texttt{myfileagent} organization}
and public
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline}{\texttt{myfileagent-pipeline} product repository}
with an initialized
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/README.md}{\texttt{README.md}}.
The organization contains \texttt{nkogut} and \texttt{glovely} in the Owners
team. The supplied configuration evidence confirms that both accounts are
active and have the team's intended site-administrator role. Both accounts
also participate in the organization's Owners team so that either team member
can administer the shared startup workspace.
The repository contains five actionable product and operations issues. Issue
\#1 traces the MyFileAgent product-scope documentation through branch
\texttt{issue-1-product-scope} and Pull Request~\#6: \texttt{nkogut} authored
the merged change and the linked issue closed. Issue~\#4 traces the versioned Gitea deployment
through branch \texttt{issue-4-gitea-deployment} and Pull Request~\#7:
\texttt{glovely} authored the merged change and the linked issue closed. The
remaining issues retain the product and operations backlog.
The team then completed reciprocal approval on two additional merged changes:
\texttt{nkogut} authored Pull Request~\#8 and \texttt{glovely} submitted an
\texttt{APPROVED} review; \texttt{glovely} authored Pull Request~\#9 and
\texttt{nkogut} submitted an \texttt{APPROVED} review. The dated evidence also
shows both intended administrator accounts. Pull Request~\#8 references closed
operations Issue~\#4, while Pull Request~\#9 references closed product Issue~\#1.
Figure~\ref{fig:gitea-configuration-evidence} therefore records two complete
issue-linked, reciprocally reviewed, merged, and closed workflow traces while
leaving unfinished Issues~\#2, \#3, and \#5 open.
\noindent\textit{Evidence note.} This image was captured on September 26,
2026, before the organization and repository received their current names.
The displayed \texttt{filepilot/filepilot-pipeline} repository is the same
repository now available as
\texttt{myfileagent/myfileagent-pipeline}; its issues, pull requests, reviews,
and history were preserved.
\begin{figure}[H]
\centering
\includegraphics[width=0.72\textwidth]{hw4_images/gitea_configuration_evidence.png}
\caption{Dated Gitea configuration and workflow evidence showing both
administrator accounts, the public MyFileAgent repository, five actionable
issues, merged Pull Requests~\#8 and \#9 linked to closed Issues~\#4 and
\#1, and reciprocal approved reviews.}
\label{fig:gitea-configuration-evidence}
\end{figure}
\FloatBarrier
\section{Architecture and Operation}
The production request path is browser to DigitalOcean Cloud Firewall to Caddy
on 443, then Caddy to
\texttt{gitea:3000} over the private Compose bridge network. Gitea reads its SQLite
file and repository data from persistent Docker volumes. There is no public
Gitea application or database port. Caddy is configured for both the edge and
private networks; Gitea is attached only to the private network. Public
isolation is enforced by the loopback host binding and firewall rather than
Docker's \texttt{internal} network flag. An initial attempt using that flag
left the requested loopback publication unprogrammed, causing an empty browser
response; the team corrected the network definition while preserving the
named data volumes. An authenticated SSH local-forward remains available as an
administrative fallback and was verified before public activation.
Figure~\ref{fig:gitea-architecture} adapts the assignment reference to the
team's actual SQLite deployment. Solid arrows show the active public HTTPS
request path, the dashed arrow shows the verified SSH-tunnel fallback,
and the data arrow terminates in Docker-managed persistent storage rather than
the disposable Gitea container layer.
\begin{figure}[htbp]
\centering
\begin{tikzpicture}[
node distance=9mm and 12mm,
component/.style={draw, rounded corners, align=center, minimum height=12mm,
text width=2.45cm, fill=devopsLightBlue},
private/.style={draw, rounded corners, align=center, minimum height=12mm,
text width=2.45cm, fill=green!10},
data/.style={draw, cylinder, shape border rotate=90, aspect=0.28,
align=center, minimum height=15mm, text width=2.55cm, fill=gray!12},
flow/.style={-{Latex[length=2.5mm]}, thick},
tunnel/.style={-{Latex[length=2.5mm]}, thick, dashed}
]
\node[component] (browser) {Public browser\\HTTPS};
\node[component, right=of browser] (firewall) {DigitalOcean\\Cloud Firewall};
\node[component, right=of firewall] (caddy) {Caddy proxy\\\texttt{https} profile};
\node[private, right=of caddy] (gitea) {Gitea\\\texttt{gitea:3000}};
\node[data, below=of gitea] (storage) {\texttt{gitea-data}\\repositories +\\SQLite file};
\node[component, below=of browser] (admin) {Team admin\\SSH client};
\node[component, below=of firewall] (sshd) {Host OpenSSH\\key-only};
\draw[flow] (browser) -- node[above, font=\tiny]{443 / optional 80} (firewall);
\draw[flow] (firewall) -- node[above, font=\tiny]{80, 443} (caddy);
\draw[flow] (caddy) -- node[above, font=\tiny]{private} (gitea);
\draw[flow] (gitea) -- node[right, font=\scriptsize]{mounted path} (storage);
\draw[tunnel] (admin) -- node[above, font=\scriptsize]{22/TCP} (sshd);
\draw[tunnel] (sshd) -| node[pos=0.72, below, font=\scriptsize]{\texttt{127.0.0.1:3000}} (gitea);
\end{tikzpicture}
\caption{MyFileAgent Gitea request, administration, and persistence paths.
Caddy alone publishes the web edge; Gitea and its SQLite data remain private.}
\label{fig:gitea-architecture}
\end{figure}
\FloatBarrier
The service is operated from \path{/home/codex/myfileagent-gitea} with
\texttt{docker compose}. Container status, recent logs, loopback HTTP response,
volume presence, and memory availability were checked after startup. This
startup check is not the required persistence-replacement test and is not a
backup or restore test.
Routine restart and first-line troubleshooting use the versioned Compose
project and do not delete named volumes:
\begin{minted}{bash}
cd /home/codex/myfileagent-gitea
docker compose restart gitea
docker compose ps
docker compose logs --tail=100 gitea
curl -fsS -o /dev/null -w 'loopback_http=%{http_code}\n' \
http://127.0.0.1:3000/
docker inspect myfileagent-gitea \
--format '{{range .Mounts}}{{println .Name "->" .Destination}}{{end}}'
\end{minted}
Operators first check container state and recent logs, then the loopback HTTP
response and expected volume mounts. If public HTTPS fails while the
loopback check succeeds, the fault domain moves outward to the private proxy
network, Caddy logs, certificate state, DNS, and Cloud Firewall. A routine
restart reuses the existing volumes; the completed container-replacement test
proved persistence across replacement. Neither operation proves recoverability
from deletion or corruption, so neither is described as a backup/restore test.
\section{Manual Quality and Controls}
This chapter distinguishes observed results from planned or optional work. The
Hosts table records the current Droplet name, capacity, address, and non-root
administrative account, the private SSH-forwarded fallback, and the active
public hostname \texttt{myfileagent.tech}. The Passwords table
records only the Bitwarden entry names \texttt{Gitea - Nick},
\texttt{Gitea - Gowri}, and \texttt{.tech Domain} for the individual
\texttt{nkogut} and \texttt{glovely} accounts and registrar access; it contains
no passwords or derivation information. This Assignment 4 work uses one
consolidated history entry and one consolidated AI-assistance entry. The
required implementation and evidence are complete, with an instructor-cleared
SSH source-policy exception documented above. The optional backup/restore test
is recorded separately below and is not counted among the eight required
rubric items. Version~1.6.1 was compiled and visually inspected after the final
content and layout updates.
\clearpage
\section{Optional Extra Credit: Verified Backup and Restore}
\index{backup and restore}
\index{Gitea!backup and restore}
\paragraph{Completion status.}
The team completed and documented every part of the optional extra credit:
\begin{enumerate}[label=\arabic*.,leftmargin=*,nosep]
\item a dated backup method with its scope and temporary storage location;
\item a sanitized archive listing and a consistent cold-backup procedure; and
\item a pre-backup repository and issue, isolated restore, repository and
issue usability checks, labeled original/restored screenshots, and a
dated PASS outcome with cleanup evidence.
\end{enumerate}
On September 29, 2026, the team created the public
\href{https://myfileagent.tech/nkogut/backup-restore-proof}{\texttt{nkogut/backup-restore-proof}}
repository with an initialized \texttt{main} branch and open Issue~\#1,
``Verify repository and issue survive isolated restore.'' Both records existed
before the backup and served as recovery acceptance criteria.
\paragraph{Backup method and consistency.}
The team used a \phantomsection\label{GlossaryRef:coldbackup}cold backup so the
SQLite database, repositories,
attachments, and application files belonged to one recoverable point in time.
It stopped only the production Gitea container, archived the
\texttt{myfileagent-gitea\_gitea-data} and
\texttt{myfileagent-gitea\_gitea-config} volumes, then immediately restarted
Gitea. Caddy, the firewall, and the earlier grading services were unchanged.
Production was stopped at 20:19:13 UTC and healthy again at 20:19:17 UTC.
The archive was stored temporarily at
\path{/home/codex/myfileagent-gitea/backups/}
\path{myfileagent-gitea-backup-20260929T201913Z.tar.gz}. It was 117~KiB and
had SHA-256 digest
\texttt{b58b378bf1fca318160c0df370552e80ebfe967351daf3b88256c37e59bbe716}.
The backup command used read-only source mounts:
\begin{minted}{bash}
docker compose stop gitea
docker run --rm -u "$(id -u):$(id -g)" \
-v myfileagent-gitea_gitea-data:/source/data:ro \
-v myfileagent-gitea_gitea-config:/source/config:ro \
-v /home/codex/myfileagent-gitea/backups:/backup \
caddy:2.11.4-alpine \
sh -c 'tar -czf /backup/myfileagent-gitea-backup-20260929T201913Z.tar.gz \
-C /source data config'
docker compose up -d gitea
\end{minted}
The sanitized listing showed both the SQLite database and repository objects
inside the same archive:
\begin{minted}{text}
data/data/gitea.db
data/git/repositories/nkogut/backup-restore-proof.git/HEAD
data/git/repositories/nkogut/backup-restore-proof.git/refs/heads/main
production_after=nkogut/backup-restore-proof state=available
production_issue_after=#1 state=open
backup_phase=PASS
\end{minted}
\paragraph{Isolated restore and verification.}
The archive was extracted into new volumes
\texttt{myfileagent-restore-gitea-data} and
\texttt{myfileagent-restore-gitea-config}. A separate container named
\texttt{myfileagent-gitea-restore-test} used the same pinned Gitea image and
published only \texttt{127.0.0.1:3300}; it was never added to Caddy or the
Cloud Firewall. The production volumes were not mounted into the restore
container.
\begin{minted}{bash}
docker volume create myfileagent-restore-gitea-data
docker volume create myfileagent-restore-gitea-config
docker run --rm -u 0 \
-v myfileagent-restore-gitea-data:/restore/data \
-v myfileagent-restore-gitea-config:/restore/config \
-v /home/codex/myfileagent-gitea/backups:/backup:ro \
caddy:2.11.4-alpine \
sh -c 'tar -xzf /backup/myfileagent-gitea-backup-20260929T201913Z.tar.gz \
-C /restore && chown -R 1000:1000 /restore/data /restore/config'
docker run -d --name myfileagent-gitea-restore-test --restart no \
-p 127.0.0.1:3300:3000 \
-e GITEA__server__ROOT_URL=http://127.0.0.1:3300/ \
-e GITEA__server__DISABLE_SSH=true \
-v myfileagent-restore-gitea-data:/var/lib/gitea \
-v myfileagent-restore-gitea-config:/etc/gitea \
docker.gitea.com/gitea:1.27.3-rootless
\end{minted}
The restored \phantomsection\label{AcronymRef:API}API returned the same public
repository, default branch, and open
issue. A Git smart-HTTP \texttt{ls-remote} request returned two refs, showing
that the repository was usable rather than merely listed. Production remained
healthy throughout the isolated restore test.
\begin{minted}{text}
restore_ready=1
restored_repo=nkogut/backup-restore-proof default_branch=main private=false
restored_issue=#1 Verify repository and issue survive isolated restore state=open
restored_git_refs=2
restore_port=127.0.0.1:3300
production_status=1.27.3
restore_phase=PASS
\end{minted}
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{0.49\textwidth}
\centering
\textbf{Production repository}\par\smallskip
\includegraphics[width=\linewidth,trim=0 450 0 0,clip]{hw4_images/backup_original_repository.png}
\end{minipage}\hfill
\begin{minipage}[t]{0.49\textwidth}
\centering
\textbf{Isolated restored repository}\par\smallskip
\includegraphics[width=\linewidth,trim=0 450 0 0,clip]{hw4_images/backup_restored_repository.png}
\end{minipage}
\caption{The initialized proof repository in production and in the separate
loopback-only restored Gitea instance.}
\label{fig:gitea-backup-repository-evidence}
\end{figure}
\begin{figure}[htbp]
\centering
\begin{minipage}[t]{0.49\textwidth}
\centering
\textbf{Production Issue \#1}\par\smallskip
\includegraphics[width=\linewidth,trim=0 130 0 0,clip]{hw4_images/backup_original_issue.png}
\end{minipage}\hfill
\begin{minipage}[t]{0.49\textwidth}
\centering
\textbf{Restored Issue \#1}\par\smallskip
\includegraphics[width=\linewidth,trim=0 130 0 0,clip]{hw4_images/backup_restored_issue.png}
\end{minipage}
\caption{The same open issue and pre-backup description in production and
in the isolated restored instance.}
\label{fig:gitea-backup-issue-evidence}
\end{figure}
The full sanitized command record is retained as
\path{backup_restore_evidence.txt} in the Assignment 4 working directory. It
contains no archive contents, credentials, private keys, or access tokens. The
backup archive itself is not part of the submitted manual. After evidence
capture, the team removed the temporary restore container, both restore
volumes, and the sensitive archive at 20:25:38 UTC. Each cleanup check reported
\texttt{PASS}, and the production proof repository remained available.
\begin{minted}{text}
restore_container_removed=PASS
restore_volumes_removed=PASS
backup_archive_removed=PASS
production_repo=nkogut/backup-restore-proof available
cleanup_completed=2026-09-29T20:25:38+00:00
\end{minted}
+29
View File
@@ -0,0 +1,29 @@
% Assignment 2 glossary: only terms directly used in the assignment.
% Each page number is an explicit hyperlink to the corresponding occurrence.
\chapter*{Glossary}
\markboth{Glossary}{Glossary}
\index{glossary}
\begin{description}[style=nextline,leftmargin=3.1cm,labelindent=0pt]
\item[\textbf{ACME}] The automated protocol Caddy uses to obtain and renew the MyFileAgent TLS certificate. \hfill Reference: \hyperref[GlossaryRef:acme]{p.~\pageref*{GlossaryRef:acme}}
\item[\textbf{Cloud Firewall}] A DigitalOcean network-boundary control that permits only selected inbound traffic before it reaches the Droplet. \hfill Reference: \hyperref[GlossaryRef:cloudfirewall]{p.~\pageref*{GlossaryRef:cloudfirewall}}
\item[\textbf{cold backup}] A consistent backup taken while the application writing the data is stopped. \hfill Reference: \hyperref[GlossaryRef:coldbackup]{p.~\pageref*{GlossaryRef:coldbackup}}
\item[\textbf{Docker volume}] Docker-managed persistent storage whose contents survive replacement of the container that mounts it. \hfill Reference: \hyperref[GlossaryRef:dockervolume]{p.~\pageref*{GlossaryRef:dockervolume}}
\item[\textbf{Gitea}] A self-hosted software-development service providing Git repositories, issues, organizations, and pull requests. \hfill Reference: \hyperref[GlossaryRef:gitea]{p.~\pageref*{GlossaryRef:gitea}}
\item[\textbf{loopback interface}] A host-local interface; binding Gitea to \texttt{127.0.0.1} prevents direct access through the Droplet's public interface. \hfill Reference: \hyperref[GlossaryRef:loopback]{p.~\pageref*{GlossaryRef:loopback}}
\item[\textbf{reverse proxy}] A service that accepts public requests and forwards them to a private backend; Caddy performs this role for Gitea. \hfill Reference: \hyperref[GlossaryRef:reverseproxy]{p.~\pageref*{GlossaryRef:reverseproxy}}
\item[\textbf{SQLite}] An embedded database stored in a local file rather than a separately exposed database service. \hfill Reference: \hyperref[GlossaryRef:sqlite]{p.~\pageref*{GlossaryRef:sqlite}}
\item[\textbf{TLS}] The protocol that authenticates the HTTPS endpoint and encrypts browser traffic. \hfill Reference: \hyperref[GlossaryRef:tls]{p.~\pageref*{GlossaryRef:tls}}
\item[\textbf{build artifact}] A file produced by a workflow and retained with its run for download. \hfill Reference: \hyperref[GlossaryRef:buildartifact]{p.~\pageref*{GlossaryRef:buildartifact}}
\item[\textbf{build identity}] The manual version combined with the triggering Git revision and workflow run identifier. \hfill Reference: \hyperref[GlossaryRef:buildidentity]{p.~\pageref*{GlossaryRef:buildidentity}}
\item[\textbf{Actions runner}] A registered worker that requests Gitea workflow jobs and executes them in its configured environment. \hfill Reference: \hyperref[GlossaryRef:actionsrunner]{p.~\pageref*{GlossaryRef:actionsrunner}}
\item[\textbf{Jenkins controller}] The service that stores CI configuration and, in this deployment, also executes trusted pipeline commands. \hfill Reference: \hyperref[GlossaryRef:jenkinscontroller]{p.~\pageref*{GlossaryRef:jenkinscontroller}}
\item[\textbf{Jenkinsfile}] A versioned pipeline recipe containing checkout, syntax and test stages. \hfill Reference: \hyperref[GlossaryRef:jenkinsfile]{p.~\pageref*{GlossaryRef:jenkinsfile}}
\item[\textbf{required status check}] A named result on the latest pull-request head commit that branch protection requires before merge. \hfill Reference: \hyperref[GlossaryRef:requiredcheck]{p.~\pageref*{GlossaryRef:requiredcheck}}
\item[\textbf{webhook}] An event notification that starts integration processing; successful delivery alone is not a passing build or merge gate. \hfill Reference: \hyperref[GlossaryRef:webhook]{p.~\pageref*{GlossaryRef:webhook}}
\item[\textbf{SRE}] Engineering approach combining reliability objectives, monitoring and operations. \hfill Reference: \hyperref[GlossaryRef:sre]{p.~\pageref*{GlossaryRef:sre}}
\item[\textbf{dashboard}] Named visual collection of operational measurements. \hfill Reference: \hyperref[GlossaryRef:dashboard]{p.~\pageref*{GlossaryRef:dashboard}}
\item[\textbf{SLI}] Measured service success indicator with observation coverage. \hfill Reference: \hyperref[GlossaryRef:sli]{p.~\pageref*{GlossaryRef:sli}}
\item[\textbf{SLO}] Internal target for the indicator over a defined window. \hfill Reference: \hyperref[GlossaryRef:slo]{p.~\pageref*{GlossaryRef:slo}}
\item[\textbf{error budget}] Allowed unsuccessful fraction implied by a reliability target. \hfill Reference: \hyperref[GlossaryRef:errorbudget]{p.~\pageref*{GlossaryRef:errorbudget}}
\end{description}
+27
View File
@@ -0,0 +1,27 @@
\chapter{Hosts}
\ChapterLabel{Hosts}
\index{hosts}
\index{DigitalOcean}
\section{Overview}
This chapter lists the hosts used in the development environment for this
assignment and any that will be configured in future assignments.
\section{Host Registry}
\begin{tabularx}{\linewidth}{L{3.4cm}L{2.6cm}Y}
\caption{Host Registry\label{Table:HostRegistry}}\\
\toprule \textbf{Host Name} & \textbf{Provider} & \textbf{Purpose / Notes}\\ \midrule
\endfirsthead
\multicolumn{3}{l}{\small\itshape Host Registry (continued)}\\
\toprule \textbf{Host Name} & \textbf{Provider} & \textbf{Purpose / Notes}\\ \midrule
\endhead \bottomrule \endlastfoot
\texttt{ssw590-group7-}\newline\texttt{droplet} & DigitalOcean & Ubuntu Linux development environment at \texttt{142.93.193.110}; 1 virtual CPU, 1 GB memory, and 25 GB storage; normally administered through the non-root \texttt{codex} account; the team supplied the UFW check from a root shell. October 9 evidence: IPv6 disabled, attached Cloud Firewall permits inbound 22/80/443 only, UFW inactive. Hosts the MyFileAgent Gitea service at \href{https://myfileagent.tech}{\texttt{myfileagent.}\allowbreak\texttt{tech}} through Caddy-managed HTTPS. Gitea remains bound to \texttt{127.0.0.1:3000}; an authenticated SSH local forward is retained as an administrative fallback.\\
\texttt{gitea} & Existing Droplet & Repository-scoped Actions runner ID 1; temporary TeX jobs on the same host. Team-owned, capacity one, no public runner/compiler ports; runner 192 MiB and jobs 256 MiB. HTTPS to \href{https://myfileagent.tech}{Gitea}; separate Docker bridges. Runner state is outside Git; service health was checked during setup. See \ChapterRef{AutomatedManualBuild}.\\
\texttt{ci.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Jenkins 2.580.1 at \href{https://ci.myfileagent.tech/login}{HTTPS login}; public browser access, authentication required. Caddy forwards to \texttt{jenkins:8080} on the private bridge. Host port 8080 is loopback-only; no agent port is published. Team-owned, controller builds, persistent \texttt{jenkins-home}. Login, restart and main build 2 verified October 9, 2026; CI AAAA query returned no address. Named Matrix admin access team-confirmed; public-access approval remains unresolved. At the October 9 baseline, backup/monitoring was not established. Assignment 7 subsequently added HTTPS probes and host monitoring; monitoring does not establish Jenkins backup/restore. See \ChapterRef{JenkinsContinuousIntegration}.\\
\texttt{metrics.}\allowbreak\texttt{myfileagent.}\allowbreak\texttt{tech} & Existing Droplet & Grafana OSS 13.2.4 at \href{https://metrics.myfileagent.tech/login}{HTTPS login}; authentication required, anonymous access and signup disabled in provisioning. Caddy forwards privately to \texttt{grafana:3000}. Persistent Grafana volume; six-panel monitoring and two-panel runbook dashboards; team Discord alert route. See \ChapterRef{SREMonitoringReliability}.\\
\href{https://staging.myfileagent.tech}{staging.myfileagent.tech} & Existing Droplet & Staging pricing service; Caddy forwards HTTPS privately to port 8000.\\
\href{https://app.myfileagent.tech}{app.myfileagent.tech} & Existing Droplet & Production-like pricing service; Caddy forwards HTTPS privately to port 8000.\\
\texttt{prometheus} & Existing Droplet & Prometheus v3.15.1 on the private monitoring bridge at port 9090; separate persistent volume, 30-second scrapes, seven-day/512 MB block retention. No public port published.\\
\texttt{node-exporter} & Existing Droplet & Node Exporter v1.12.1, private port 9100; read-only host root/proc/sys and host PID namespace for whole-host CPU, memory and filesystem collectors.\\
\texttt{blackbox-exporter} & Existing Droplet & Blackbox Exporter v0.29.1, private port 9115; probes Gitea/Jenkins HTTPS login URLs with TLS verification. Same-Droplet probes do not prove reachability from all external networks.\\
\end{tabularx}
+94
View File
@@ -0,0 +1,94 @@
\chapter{Introduction}
\ChapterLabel{Introduction}
\index{introduction}
\index{Linux}
\index{Docker}
\index{DigitalOcean}
\index{LaTeX}
\section{Assignment Purpose}
This report records the team's developing DevOps environment and the work
completed through Assignment 7, retaining the Assignment 5 automated
manual-build work described in \ChapterRef{AutomatedManualBuild}. The earlier chapters establish Linux
\phantomsection\label{GlossaryRef:bash}Bash command-line skills, the Ubuntu working environment, host configuration, and
password-management concepts. Earlier assignments extended that foundation
by deploying Docker Engine on a DigitalOcean Droplet, containerizing two Node.js
websites, redesigning the two-button website with class-based JavaScript, and
using a TeX Live container to compile a simple LaTeX document. The report also
proposes the MyFileAgent Pipeline, a Python-based DevSecOps project centered on a
one-click workflow that installs dependencies, configures the environment,
builds containers, runs tests and security checks, deploys to DigitalOcean, and
verifies and monitors the result. A deliberately limited LLM file-replacement
task serves only as the pipeline's working demonstration. Assignment 4 adds a
version-pinned Gitea service with SQLite persistence, a Student Pack domain,
Caddy-managed HTTPS, a DigitalOcean Cloud Firewall, and a verified two-member
repository workflow.
\section{Team and Environment}
The work was completed by Nicholas Kogut and Gowri Das Lovely. The execution
environment is an Ubuntu Linux Droplet hosted on DigitalOcean, accessed remotely
with PuTTY. Docker provides the repeatable application environments used for
the Node.js and LaTeX workflows. Assignment 5 moves the complete report source into the team Gitea repository
and uses Gitea Actions for the submission PDF; operational verification is
recorded in \ChapterRef{AutomatedManualBuild}.
Authentication secrets, passwords, and private keys are not included in this
report.
\section{Assignment Requirements}
The retained earlier assignments required the team to:
\begin{enumerate}[label=\arabic*.]
\item create a DigitalOcean Droplet, install Docker Engine on Ubuntu, and
document the deployment commands and website links using minted LaTeX;
\item deploy the Hello World and two-button Node.js websites in Docker
containers;
\item replace the two-button page's direct JavaScript handlers with a reusable
class-based design and present its UML class diagram;
\item create and document a TeX Live Docker container that compiles a simple
LaTeX document into a \phantomsection\label{AcronymRef:PDF}PDF; and
\item propose a one-click DevSecOps pipeline, a minimal working demonstration,
its DigitalOcean environment, Python toolchain, Grafana monitoring,
comparison plan, testing strategy, and security controls.
\item establish the MyFileAgent startup foundation with pinned Gitea,
persistent SQLite storage, a two-member issue and pull-request
workflow, a Student Pack domain, HTTPS, and controlled external
exposure.
\end{enumerate}
\paragraph{Assignment 5 scope.}
Implement Chapter 3 of the instruction PDF, \path{dosManual-V1.18.pdf}:
version the full manual source, configure a self-managed Gitea runner, build
on source pushes, embed commit/run identity, publish a PDF artifact, and
record two successful source changes plus a controlled compile failure and
repair. This completed work is retained as the foundation for Assignment 6.
\paragraph{Assignment 6 scope and current status.}
Implement Chapter 4 of \path{dosManual-V1.38.pdf}: deploy controlled Jenkins,
connect the startup repository, execute meaningful checks, report statuses,
require a passing check before merge, and demonstrate an issue-linked failed,
repaired, reviewed pull request. The deployment and first passing Python build
are verified on October 9, 2026; private webhook, failed/blocked and repaired/passing checks, NK review and
GDL merge are also verified. The job restart and subsequent passing build are verified. \ChapterRef{JenkinsContinuousIntegration} records that boundary.
\section{Report Organization}
\ChapterRef{LinuxCommands} and \ChapterRef{LinuxProblemSet} retain the Linux
environment setup, command record, questions, solutions, and observed outputs.
\ChapterRef{Hosts} and \ChapterRef{Passwords} document the related host and
credential-management exercises. \ChapterRef{DigitalOceanDockerDeployment}
records the Droplet, Docker installation, Node.js deployments, class-based
JavaScript, and UML class diagram. \ChapterRef{LatexDocker} presents the TeX Live
container, sample source, build commands, and verification procedure.
\ChapterRef{ProjectProposal} describes the MyFileAgent Pipeline, its one-click
workflow, Python demonstration, tests, security gates, deployment,
Grafana-based observability, comparison strategy, and delivery plan.
\ChapterRef{GiteaStartupFoundation} records the verified Gitea foundation and
its domain, HTTPS, persistence, firewall, workflow, architecture, and operating
evidence.
\AppendixRef{AIPromptLog} records material \phantomsection\label{AcronymRef:AI}AI
assistance used to organize, author, and review the report.
\section{Submission and Verification}
Assignment 4 evidence is retained as a historical record. Assignment 5 has verified the runner, two successive source builds, downloaded versioned artifacts, and a controlled failure/repair exercise. Submit only the PDF downloaded from the final successful
Gitea Actions run after visual and navigation checks; a local draft is not the
final submission. Current status appears in \ChapterRef{AutomatedManualBuild}.
\ChapterRef{JenkinsContinuousIntegration} records Assignment 6 deployment, HTTPS, integration, pipeline verification, credential boundaries and remaining acceptance work.
@@ -0,0 +1,800 @@
\chapter{Continuous Integration with Jenkins}
\ChapterLabel{JenkinsContinuousIntegration}
\index{Jenkins}\index{continuous integration}\index{Python}\index{pull request!CI}
\begin{devopsNote}[Assignment 6 status: CI workflow verified; remaining operations checks pending]
This chapter implements Chapter 4 of \path{dosManual-V1.38.pdf} incrementally.
On October 9, 2026, the team deployed Jenkins, configured HTTPS and named
accounts, connected Gitea, and verified the first Python pipeline build.
The eight sections below follow the instructor's rubric order. Repository
webhooks, protected-branch enforcement, the controlled failed-then-repaired
pull request, peer review and merge were subsequently verified the same day.
The dedicated restart test, team external IPv4 port checks and plugin
update/security-notice review were subsequently verified. Remaining access
policy and final access verification remain identified explicitly. The team
subsequently supplied current Cloud Firewall attachment/rules, IPv4-only
evidence, UFW status, completed plugin and pipeline views, and the named-user
Matrix authorization configuration.
\end{devopsNote}
All dates in this chapter refer to October 9, 2026 unless stated otherwise.
Jenkins screenshots can display UTC; the team works in America/New\_York.
Build 1 began at 18:34 UTC (14:34 EDT). The account passwords and token values
were entered by the team privately and are not part of this report.
\section{Jenkins Deployment and Persistence}
\phantomsection\label{GlossaryRef:jenkinscontroller}\index{Jenkins!controller}
\subsection{Deployment choice and reproducible configuration}
The team reused \texttt{ssw590-group7-droplet}, the existing one-vCPU,
1 GB RAM, 25 GB disk DigitalOcean host. The initial read-only capacity check
showed 312 MiB available memory, no swap, and 17 GB free disk. The team chose
to trial Jenkins on that host rather than resize it. No capacity upgrade or
swap configuration was performed.
Jenkins uses the official image from Docker Hub \cite{JenkinsDockerA6}.
The requested tag was \texttt{jenkins/jenkins:lts-jdk21}; the installed
application reported version \textbf{2.580.1}. The deployed image is pinned
to the following immutable repository digest:
\begin{lstlisting}
jenkins/jenkins@sha256:
a660310e39ade10631f774bacd5219de767dfd08947ea5c32a739b5e5bb382c1
\end{lstlisting}
The digest is one uninterrupted image reference in the actual Compose file.
The configuration lives at \path{/home/codex/myfileagent-gitea/compose.jenkins.yaml}
and is versioned in
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/ops/jenkins/compose.jenkins.yaml}{the feature branch's Jenkins Compose file}.
The non-secret excerpt is:
\begin{lstlisting}
services:
jenkins:
container_name: myfileagent-jenkins
restart: unless-stopped
environment:
JAVA_OPTS: "-Xms64m -Xmx256m"
mem_limit: 448m
ports:
- "127.0.0.1:8080:8080"
volumes:
- jenkins-home:/var/jenkins_home
networks:
- gitea-private
volumes:
jenkins-home:
\end{lstlisting}
The full file includes the pinned image reference. Jenkins shares the
existing private bridge with Gitea and Caddy. The volume
\texttt{myfileagent-gitea\_jenkins-home} stores configuration, accounts,
credentials, plugins and jobs outside the disposable container layer.
The JVM heap limit is not the whole process's memory footprint; the Docker
limit bounds the container. Neither limit proves that every future workload
fits. Jobs should be run one at a time on this small host.
\subsection{Verification and recovery}
\EvidenceID{A6-DEPLOY-01}: the combined Compose configuration validated before
startup. The first start stalled and a fresh SSH connection timed out.
The operator stopped only Jenkins and verified Gitea HTTPS remained HTTP 200.
A subsequent start completed initialization and returned HTTP 200 from the
internal login page. The original attempt also logged an initialization
class-loading exception; its underlying cause was not established, so the
report does not attribute that exception conclusively to memory.
Adding a loopback port mapping recreated the container without deleting its
home volume. Later, installing Gitea plugins required a restart. The named
administrator account and saved Jenkins URL remained usable afterward.
These initial observations established retained setup state. The dedicated
job-before/job-after restart test was subsequently performed as follows.
Restart persistence is \textbf{not a backup/restore test}; no Jenkins backup
test has been performed or is claimed.
\subsection{Verified job restart and persistence}
\EvidenceID{A6-PERSIST-01}: before restarting Jenkins, the operator recorded
13 saved files: the multibranch/child-job configuration, six historical
\texttt{build.xml} records, and build-number state. Each file's path, byte
length and SHA-256 digest was saved. The six builds comprised feature-branch
build 1, PR 11 builds 1--4, and main build 1. The command was:
\begin{lstlisting}
cd /home/codex/myfileagent-gitea
docker compose -f compose.yaml -f compose.jenkins.yaml restart jenkins
\end{lstlisting}
No volume was deleted. After readiness returned, all 13 files were present
with unchanged hashes and sizes. Jenkins HTTPS login and Gitea both returned
HTTP 200. The authenticated browser displayed the saved multibranch pipeline,
both branches, the PR and previous build history. Evidence is retained in
\path{evidence/assignment6/persistence/before.json},
\path{evidence/assignment6/persistence/after.json} and
\path{evidence/assignment6/persistence/result.json}.
The operator then manually scheduled
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/2/console}{main build 2}.
It checked out unchanged merge commit \texttt{131d605}, used the saved
\texttt{gitea-jenkins-ci} credential, found Python 3.13.5, passed syntax and
both unit tests, and reported SUCCESS to Gitea. The run began at 15:26:49 EDT
(19:26:49 UTC) on October 9, 2026 and took 25 seconds. This checks usable
pipeline behavior after restart, not merely file presence. It is an ordinary
service restart test, not a backup/restore or a new job-bearing container
replacement test.
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth]{hw6_images/post-restart-main-build2.png}
\caption[Post-restart main build 2 passed]{October 9, 2026: saved main job
build 2 succeeds after Jenkins restart on merge commit \texttt{131d605}.
The linked console records checkout, Python, both tests and status delivery.}
\label{fig:a6-persistence}
\end{figure}
\subsection{Recorded plugin versions}
The operator recorded installed plugin manifests after restart. Key versions
are listed below; the complete dependency inventory is retained at
\path{documentation/evidence/assignment6/plugin-inventory.txt}.
\begin{tabularx}{\linewidth}{L{4.3cm}Y}
\toprule \textbf{Plugin ID} & \textbf{Observed version}\\ \midrule
\texttt{gitea} & \texttt{283.v14b\_179495971}\\
\texttt{gitea-checks} & \texttt{606.679.vb\_d632867a\_6b\_b\_}\\
\texttt{git} & \texttt{5.10.1}\\
\texttt{workflow-aggregator} & \texttt{608.v67378e9d3db\_1}\\
\texttt{workflow-}\allowbreak\texttt{multibranch} & \texttt{842.v3a\_b\_59b\_57b\_e6e}\\
\texttt{matrix-auth} & \texttt{3.3}\\
\texttt{timestamper} & \texttt{1.30}\\
\bottomrule
\end{tabularx}
The initial strategy was ``logged-in users can do anything.'' The team
subsequently selected Matrix-based security, granted the named administrator
Overall/Administer, and retained no permissions for Anonymous or Authenticated
Users; the configuration and confirmation are recorded in Section~\ref{sec:a6-auth}.
\section{HTTPS, Access, and Firewall}
\subsection{Public hostname, login and certificate}
The A record \texttt{ci.myfileagent.tech} resolves to
\texttt{142.93.193.110}. Caddy terminates TLS and forwards privately to
\texttt{jenkins:8080}, following the Jenkins Caddy integration approach
\cite{JenkinsCaddyA6}. Jenkins Location is set to
\url{https://ci.myfileagent.tech/}. Caddy's standard reverse proxy handles the
forwarded host/protocol headers. Its added site block is:
\begin{lstlisting}
ci.myfileagent.tech {
reverse_proxy jenkins:8080
}
\end{lstlisting}
The file was backed up, validated in the running Caddy container, and reloaded.
Caddy uses the existing production Let's Encrypt ACME endpoint and persistent
certificate state; automatic HTTPS provides renewal management
\cite{CaddyAutomaticHTTPS}. A Jenkins-hostname-specific renewal exercise has
not yet been run.
\EvidenceID{A6-HTTPS-01}: external Windows HTTPS verification accepted the
certificate and returned HTTP 200 from the complete login-page URL:
\begin{center}
\url{https://ci.myfileagent.tech/login}
\end{center}
Only the login page is visible to users who are not signed in; protected
Jenkins pages and build details require authentication. The public Gitea
commit-status page linked in Section~\ref{sec:a6-public-results} lets a grader
inspect the recorded successful Jenkins status without a Jenkins login. Jenkins features require authentication: an anonymous request to
\path{/api/json} returned HTTP 403. HTTP returned 308 with a redirect to
HTTPS. The observed certificate issuer is Let's Encrypt YE1; validity is
October 9, 2026 17:05:21 UTC through January 7, 2027 17:05:20 UTC, with
\texttt{ci.myfileagent.tech} in the subject alternative name.
The dated non-secret verification is retained at
\path{documentation/evidence/assignment6/deployment-verification.txt}.
\begin{figure}[H]
\centering
\includegraphics[width=0.88\linewidth]{hw6_images/jenkins-https-login.jpg}
\caption{October 9, 2026: the live Jenkins HTTPS sign-in page. It supports
web-service availability only; it is not pipeline or merge-gate evidence.}
\label{fig:a6-login}
\end{figure}
\subsection{Access decision and port boundary}
The team requested access from all public addresses so the professor and TA
could open the service. Login remains required. The team states that public
access is permitted; an independently supplied instructor approval record
has not been attached. Chapter 4's written baseline additionally requires
approved source ranges or a private access path. Accordingly, this manual
records public access as a team-selected exception requiring instructor
confirmation, rather than claiming compliance with that baseline restriction.
\begin{tabularx}{\linewidth}{L{2.4cm}L{3.4cm}Y}
\toprule \textbf{Port/path} & \textbf{Configured exposure} & \textbf{Verification boundary}\\ \midrule
443/TCP & Public Caddy HTTPS & External Jenkins login 200; authentication tested separately.\\
80/TCP & Public Caddy HTTP & External 308 redirect; ACME validation also uses the proxy.\\
8080/TCP & Host \texttt{127.0.0.1} only & Mapping verified; team Windows TCP check failed as expected.\\
50000/TCP & No published agent port & No agent published; team Windows TCP check failed as expected.\\
3000/TCP & Gitea host loopback & Existing Gitea backend mapping retained.\\
SSH & Public TCP 22 & Current Cloud Firewall permits all IPv4 sources; IPv6 disabled on Droplet.\\
\bottomrule
\end{tabularx}
The earlier firewall evidence in \ChapterRef{GiteaStartupFoundation} is
historical. On October 9, 2026, the team retired the earlier Assignment 3
services and supplied the updated Cloud Firewall rules. Inbound rules now
allow only TCP 22, 80 and 443 from all IPv4 and IPv6 sources; the earlier
5050 and 8080 allowances are absent, and no 50000 allowance is present.
Outbound ICMP and all TCP/UDP are permitted. Outbound allowances do not
publish inbound ports. Public SSH is retained; this record does not imply
source-restricted browser access.
\EvidenceID{A6-FIREWALL-01}: the Cloud Firewall is named
\texttt{ssw590-group7-gitea-firewall}. Its attached-Droplet view lists
\texttt{ssw590-group7-droplet}, address \texttt{142.93.193.110}, and
``Up to date.'' The paired views below document both rules and attachment.
\begin{figure}[H]
\centering
\includegraphics[width=0.76\linewidth]{hw6_images/cloud-firewall-rules.png}
\caption{October 9, 2026, team-provided evidence: current named Cloud Firewall rules permit inbound TCP 22, 80 and 443 only; earlier 5050/8080 allowances have been removed. Broad outbound rules do not permit inbound connections.}
\label{fig:a6-firewall-rules}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/cloud-firewall-attached.png}
\caption{October 9, 2026: the firewall attachment lists \texttt{ssw590-group7-droplet}, IPv4 \texttt{142.93.193.110}, as Up to date.}
\label{fig:a6-firewall-attachment}
\end{figure}
\EvidenceID{A6-IPV4-ONLY}: the Droplet's Public IPv6 tab offers ``Enable
IPv6,'' establishing that IPv6 is disabled. The team queried the Jenkins
hostname for an AAAA record; the response contains the zone's SOA authority
record and no AAAA address. The current deployment therefore uses IPv4 only;
IPv6 exposure tests are not applicable while this remains the configuration.
The firewall's ``All IPv6'' source entries alone do not enable IPv6.
\begin{figure}[H]
\centering
\includegraphics[width=0.66\linewidth]{hw6_images/droplet-ipv6-disabled.png}
\caption{October 9, 2026: the Droplet Public IPv6 view offers Enable IPv6; no public IPv6 is enabled. No shutdown or IPv6 activation was performed for this check.}
\label{fig:a6-ipv6}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/dns-aaaa-result.png}
\caption[CI hostname query returned no AAAA address]{October 9, 2026: team Windows query \texttt{Resolve-DnsName ci.myfileagent.tech -Type AAAA -DnsOnly} returned an SOA authority record and no AAAA address for the CI hostname.}
\label{fig:a6-aaaa}
\end{figure}
\EvidenceID{A6-HOST-FIREWALL}: the team ran the following read-only command
as root on the named Droplet and supplied its output:
\begin{lstlisting}
root@ssw590-group7-droplet:~# sudo ufw status verbose
Status: inactive
\end{lstlisting}
UFW does not provide active host filtering. The verified external filtering
layer is the attached DigitalOcean Cloud Firewall, supplemented by the
Compose loopback binding for Jenkins and the unpublished agent port. This
command does not inventory every possible nftables/iptables rule; a complete
host ruleset audit is not claimed. No UFW rule was enabled or changed.
The earlier external TCP tests below were supplied before the Cloud Firewall
cleanup; they are not relabeled as post-change tests. A fresh administrator
SSH/HTTPS connectivity check after cleanup has not been supplied.
For temporary private setup, the first SSH tunnel incorrectly used the Docker
container name as a host-side DNS name and failed. The corrected tunnel is:
\begin{lstlisting}
ssh -N -o ExitOnForwardFailure=yes \
-L 8080:127.0.0.1:8080 ssw590-codex
\end{lstlisting}
This reaches the Droplet's loopback mapping; the final browser entry is HTTPS.
\subsection{Team-performed external port checks}
\EvidenceID{A6-PORT-01}: on October 9, 2026, the team supplied PowerShell
results from its Windows Wi-Fi computer. The commands and observed TCP
results were:
\begin{lstlisting}
Test-NetConnection 142.93.193.110 -Port 8080
# TcpTestSucceeded : False
Test-NetConnection 142.93.193.110 -Port 50000
# TcpTestSucceeded : False
Test-NetConnection ci.myfileagent.tech -Port 443
# RemoteAddress : 142.93.193.110
# TcpTestSucceeded : True
\end{lstlisting}
The first two TCP attempts failed; their accompanying ICMP ping checks timed
out as well. Ping is a separate observation and is not the basis for the TCP
conclusion. The successful 443 check establishes reachability from the same
client network, while raw Jenkins and agent ports were unreachable there.
These are team-performed tests, not independently rerun by Codex; no exact
execution time was supplied. The result does not identify which network rule
caused the failed connection and does not establish every source network or
IPv6 path. Client private-address details are omitted from the retained
sanitized evidence \path{evidence/assignment6/external-port-checks.txt}.
\section{Gitea Trigger and Traceability}
\subsection{Repository integration and actual deployment}
The product repository is
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline}{myfileagent/myfileagent-pipeline}.
The dedicated non-admin Gitea identity \texttt{jenkins-ci} has Write collaborator
access to this repository. The Jenkins Gitea server entry is named
``MyFileAgent Gitea'' and uses \url{https://myfileagent.tech}.
Jenkins detected Gitea version 1.27.3. The Multibranch Pipeline is
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/}{myfileagent-python-ci}.
It uses credential ID \texttt{gitea-jenkins-ci}, owner \texttt{myfileagent}, and
repository \texttt{myfileagent-pipeline}. Branch discovery excludes branches
already filed as PRs; origin PR discovery selects the current PR revision.
Fork PR discovery was removed to avoid executing untrusted fork contributions.
The integration uses supported Gitea plugin capabilities \cite{GiteaPluginA6}.
\begin{figure}[H]
\centering
\resizebox{\linewidth}{!}{%
\begin{tikzpicture}[font=\small, >=Latex,
component/.style={draw,rounded corners,align=center,minimum width=3cm,minimum height=1.1cm},
data/.style={draw,align=center,fill=devopsLightBlue,minimum width=2.8cm,minimum height=1cm}]
\draw[dashed,rounded corners] (0,-5.1) rectangle (15,3.3);
\node[anchor=north west] at (0.15,3.15) {\textit{\(\ll\)device\(\gg\) DigitalOcean Droplet}};
\node[component] (firewall) at (1.8,1.6) {Cloud Firewall\\existing web rules};
\node[component] (proxy) at (8,1.6) {\(\ll\)container\(\gg\)\\Caddy TLS proxy};
\node[component] (gitea) at (3.2,-1) {\(\ll\)container\(\gg\)\\Gitea :3000};
\node[component] (jenkins) at (11.8,-1) {\(\ll\)container\(\gg\)\\Jenkins :8080\\checkout + tests here};
\node[data] (gdata) at (3.2,-3.1) {\(\ll\)volume\(\gg\)\\repositories + SQLite};
\node[data] (jdata) at (11.8,-3.1) {\(\ll\)volume\(\gg\)\\jenkins-home};
\node[component] (browser) at (-4.5,1.6) {Team / grader\\browser\\\href{https://ci.myfileagent.tech/login}{CI login: HTTPS}};
\draw[->] (browser) -- node[above]{HTTPS 443} (firewall);
\draw[->] (firewall) -- (proxy);
\draw[->] (proxy) -- node[left]{\href{http://gitea:3000/}{private HTTP :3000}} (gitea);
\draw[->] (proxy) -- node[right]{\href{http://jenkins:8080/}{private HTTP :8080}} (jenkins);
\draw[->] (gitea) -- (gdata);
\draw[->] (jenkins) -- (jdata);
\draw[->] (jenkins.west) -- node[midway,above,align=center,font=\scriptsize,fill=white,inner sep=2pt]{checkout + API status\\\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline.git}{HTTPS via myfileagent.tech}} (gitea.east);
\draw[->] (gitea.south east) -- node[midway,below,align=center,font=\scriptsize,fill=white,inner sep=2pt]{\href{http://jenkins:8080/gitea-webhook/post}{private webhook POST}\\verified HTTP 200: Processed} (jenkins.south west);
\node[align=center,font=\scriptsize] at (7.5,-4.4) {Shared private Compose bridge; controller executor; no separate agent.\\Diagram shows service roles; the verified Git/API URL routes through Caddy.};
\end{tikzpicture}}
\caption{Actual Assignment 6 deployment adapted from instruction Figure 4.2.
Solid paths identify configured service relationships, including the verified
private webhook. Its public proxy endpoint is blocked with HTTP 403. Public HTTPS browser access is the team's selected
access policy. Builds run on the Jenkins controller, with persistent home
storage and Gitea SQLite/repository volumes.}
\label{fig:a6-deployment}
\end{figure}
\paragraph{Actual routes (clickable endpoints).}
Browser access is \href{https://ci.myfileagent.tech/login}{HTTPS CI login}
through the Cloud Firewall and Caddy to
\href{http://jenkins:8080/}{Jenkins on the private bridge}.
Public repository/status viewing uses
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/commits/branch/main}{Gitea commit history}
through Caddy to \href{http://gitea:3000/}{private Gitea port 3000}.
Jenkins checks out
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline.git}{the actual HTTPS Git remote}
and reports status through
\href{https://myfileagent.tech/api/v1/repos/myfileagent/myfileagent-pipeline/statuses/131d605c5edb5b5080e4d54861c3c7bf7c360c9c}{Gitea's commit-status API}
using its stored credential. Gitea delivers repository events by POST to
\url{http://jenkins:8080/gitea-webhook/post}; that Docker-only hostname is
reachable inside the shared bridge, not from a grader's browser. Status
publication uses authenticated POST; its API link identifies the route,
not a browser action to perform. Only the HTTPS viewing links are grader-facing.
\subsection{Observed trigger and scope correction}
\EvidenceID{A6-TRIGGER-01}: the operator explicitly requested a multibranch scan.
The scan initially found no Jenkinsfile. After adding the feature branch,
another scan discovered it and started build 1. This was a \textbf{manual
branch-indexing trigger}, not a proven webhook or polling trigger.
Repository discovery first returned an empty list with the narrower token.
Adding organization Read scope to a replacement token and updating the
Jenkins credential made \texttt{myfileagent-pipeline} available. The initial
symptom was not accompanied by a captured HTTP error, so no specific 403
diagnosis is claimed. Gitea scopes separate organization API routes
\cite{GiteaScopesA6}.
The tested branch is \texttt{assignment6/python-ci}; the complete commit is
\begin{lstlisting}
041adfcda4d37d7c1da7de1861d98cc98e6e64b2
\end{lstlisting}
The corresponding
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/assignment6\%252Fpython-ci/1/console}{Jenkins build 1 console}
prints that checkout revision and reports the final result. At this initial
stage the webhook had not yet been configured. The following subsection
records its subsequent private-network implementation and automatic runs;
no public raw 8080 listener was needed.
\subsection{Verified private webhook}
\EvidenceID{A6-WEBHOOK-01}: repository hook 1 uses POST with
\texttt{application/json}, active push and PR events, and branch filter
\texttt{*}. Its destination is \url{http://jenkins:8080/gitea-webhook/post}
on the shared private Docker bridge. Gitea's destination allowlist was set
to \texttt{external,jenkins}; no blanket private-network wildcard was added.
The persistent Gitea container was recreated to apply that environment setting;
Gitea returned HTTP 200 afterward, and the team signed in again.
The installed Jenkins handler does not verify a shared-secret HMAC. The hook
secret is therefore empty; this report does not claim signature authentication.
Instead Caddy blocks \texttt{/gitea-webhook} and all subpaths on the public CI
site with HTTP 403, while the internal destination remains available. Raw
8080 stays loopback-only. Versioned reproduction files are
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/jenkins/compose.webhook.yaml}{the exact-host Compose override} and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/jenkins/Caddyfile.jenkins}{the Caddy site block}.
The repaired-head delivery \texttt{e0de474d-209a-48f1-a50e-67c79bd447d5}
returned HTTP 200 with body \texttt{Processed} at 19:05:55 UTC.
Jenkins separately recorded the PR event, checkout SHA and test result.
PR opening, failure push, repair push, final configuration push and merge
all triggered builds without a manual rescan. Status events are not selected,
so Jenkins status reporting does not form a webhook feedback loop.
The delivery screenshot and sanitized hook configuration are retained in
the Assignment 6 evidence folder. A successful delivery alone is not a
passing test result.
\section{Versioned Pipeline and Tests}
\label{sec:a6-public-results}
\paragraph{Public Gitea evidence for the grader.}
Open \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/commits/branch/main}{the public main-branch commit-status page}.
The merge row \texttt{131d605c5e} and repaired commit \texttt{02d31699aa}
show successful checks; the controlled defect \texttt{d6477b3df6} shows a
failed check. The included Gitea history screenshot preserves these results.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/11}{Public PR 11}
also records the review and merge. These Gitea views are the unauthenticated
evidence entry points. Jenkins console links below provide additional detail
for signed-in operators; graders do not need a Jenkins account to inspect the
public Gitea results. A passing main check is not a substitute for the
commit-specific PR merge-gate evidence in Section 11.5.
\paragraph{Public workflow job following the merge.}
The grader can also open
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/actions/runs/13/jobs/13}{Gitea Actions run 13, job 13}
to inspect the workflow associated with the merge of PR 11 into main.
This page identifies the \texttt{manual-pdf.yml} manual-build job and provides
additional public evidence of the repository's automated workflow.
It is a Gitea Actions job, separate from the Jenkins Python checks. The
Gitea commit-status view above supplies the Jenkins result; this Actions
link complements that evidence rather than replacing the Jenkins test or
required-check records.
\phantomsection\label{GlossaryRef:jenkinsfile}\index{Jenkinsfile}\index{unit test}
\subsection{Application, dependencies and clean run}
The team chose the instruction's permitted Python pricing application.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/pricing.py}{pricing.py}
multiplies price by quantity and raises ValueError for quantities below one.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/tests/test_pricing.py}{The test file}
asserts that \texttt{total\_price(10, 3)} equals 30 and that zero quantity is
rejected. The pipeline is a root-level
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/Jenkinsfile}{Jenkinsfile}.
\begin{lstlisting}
stage('Checkout') {
steps { checkout scm; sh 'git rev-parse HEAD' }
}
stage('Syntax check') {
steps {
sh 'python3 --version'
sh 'python3 -m py_compile pricing.py tests/test_pricing.py'
}
}
stage('Test') {
steps { sh 'python3 -m unittest discover -s tests -v' }
}
\end{lstlisting}
The full Declarative Pipeline disables default checkout and concurrent builds,
adds timestamps, enforces a five-minute timeout and retains ten builds.
Python 3.13.5 was installed from the image's Debian repositories; Git 2.47.3
was present. There are no pip dependencies, Docker socket mounts or separate
build agents. Checks execute as the Jenkins container user in
\path{/var/jenkins_home/workspace/_python-ci_assignment6_python-ci}.
The operator used root only for package installation, not pipeline execution.
For a clean local check, clone the repository, select the feature branch and run:
\begin{lstlisting}
python3 -m py_compile pricing.py tests/test_pricing.py
python3 -m unittest discover -s tests -v
\end{lstlisting}
Expected result: syntax exits zero; two tests pass. Invalid syntax or a failed
assertion must cause a nonzero exit and fail its Jenkins stage.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/assignment6/python-ci/ops/jenkins/install-python.sh}{The versioned Python installation helper}
must be rerun after Jenkins container replacement. The installed Python
packages survive a restart but are not in the pinned base image or persistent
home volume. This limitation is explicit rather than treating package
installation as a reproducible custom image build.
\subsection{First verified run}
\EvidenceID{A6-BUILD-01}: local syntax and both tests passed before commit.
The first push failed because the shell had no interactive Git credential;
the operator reused the existing restricted credential helper without exposing
its values. The branch then pushed successfully. Jenkins build 1 checked out
\texttt{041adfc}, completed all three stages and finished SUCCESS.
The console contains the following sanitized results:
\begin{lstlisting}
Python 3.13.5
test_invalid_quantity ... ok
test_total ... ok
Ran 2 tests in 0.004s
OK
[Gitea] Notifying branch build status: SUCCESS
[Gitea] Notified
Finished: SUCCESS
\end{lstlisting}
\subsection{Readable post-restart run evidence}
\EvidenceID{A6-BUILD-02}: the team supplied the Pipeline Steps and console
views of main build 2 plus its console text. The controller workspace is
\path{/var/jenkins_home/workspace/myfileagent-python-ci_main}. Checkout,
syntax compilation and both tests completed; Gitea received SUCCESS.
The complete tested revision is:
\begin{lstlisting}
131d605c5edb5b5080e4d54861c3c7bf7c360c9c
\end{lstlisting}
The sanitized excerpt pairs the exact checkout with each stage's outcome:
\begin{lstlisting}[basicstyle=\ttfamily\footnotesize]
[Pipeline] { (Checkout)
Checking out Revision
131d605c5edb5b5080e4d54861c3c7bf7c360c9c (main)
+ git rev-parse HEAD
131d605c5edb5b5080e4d54861c3c7bf7c360c9c
[Pipeline] { (Syntax check)
+ python3 --version
Python 3.13.5
+ python3 -m py_compile pricing.py tests/test_pricing.py
[Pipeline] { (Test)
+ python3 -m unittest discover -s tests -v
test_invalid_quantity ... ok
test_total ... ok
Ran 2 tests in 0.000s
OK
[Gitea] Notifying branch build status: SUCCESS
[Gitea] Notified
Finished: SUCCESS
\end{lstlisting}
Expected result: successful checkout, syntax exit zero, both tests passing,
and a successful reported status. Actual result: all expected results were
observed in this run. The permanent link is
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/2/console}{main build 2 console}.
The screenshot's localhost address is the team's temporary access path, not
the grader-facing service URL. This main-branch run supports pipeline and
restart verification; the separate PR runs below prove the merge gate.
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/main2-pipeline-stages.png}
\caption{October 9, 2026: main build 2 Pipeline Steps shows green Checkout and Syntax check stage results on merge commit \texttt{131d605}. The companion console excerpt identifies the full tested revision.}
\label{fig:a6-stages}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth,trim=205 55 337.5 65,clip]{hw6_images/main2-tests-success.png}
\caption{October 9, 2026: the same main build 2 shows both unit tests passing, Gitea status notification and Finished: SUCCESS on commit \texttt{131d605}. The private localhost URL is not the submission access URL.}
\label{fig:a6-test-results}
\end{figure}
\section{Required Merge Gate}
\phantomsection\label{GlossaryRef:requiredcheck}\index{merge gate}\index{status check}
\EvidenceID{A6-GATE-01}: the first branch build used context
\texttt{myfileagent-python-ci/pipeline/head}. The first actual PR build
revealed a different context, so the rule was corrected to require:
\begin{lstlisting}
myfileagent-python-ci/pipeline/pr-main
\end{lstlisting}
This context is emitted by the Gitea integration on the latest PR head;
installation of Gitea Checks alone does not prove enforcement
\cite{GiteaChecksA6}. The saved rule for \texttt{main} disables direct pushes
and force pushes, requires one approval, dismisses stale approvals, blocks
rejected reviews and outstanding official review requests, and disables
administrator merge override. The versioned rule is
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/ops/jenkins/main-branch-protection.json}{the applied branch-protection record}.
A missing/queued check showed ``Some required checks are missing.'' After
build 2 failed, Gitea showed ``Some required checks failed'' and prevented an
ordinary merge. After repair, the same required check passed, but the missing
review still blocked merging. Nick's subsequent approval satisfied the review
requirement and enabled the ordinary Create merge commit action. No bypass
was used. Figures~\ref{fig:a6-failed-gate} and~\ref{fig:a6-repaired-gate}
record the failed and repaired states; the exact context and SHA are also
retained in \path{evidence/assignment6/pr11-check-evidence.json}.
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth,trim=0 1330 0 850,clip]{hw6_images/pr-11-failed-gate.png}
\caption[Failed PR check blocks merging (October 9, 2026)]{October 9, 2026, 15:04 EDT: PR 11 head \texttt{d6477b3}; required
\texttt{myfileagent-python-ci/}\allowbreak\texttt{pipeline/pr-main} failed in Jenkins PR build 2.
Gitea states that required checks were unsuccessful and blocks ordinary merge.
The crop retains the failed commit and gate; the full original is retained
in the Assignment 6 evidence folder.}
\label{fig:a6-failed-gate}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth]{hw6_images/pr-11-repaired-gate.png}
\caption{October 9, 2026, after the 15:05 EDT repair: PR head
\texttt{02d3169}; required context
\texttt{myfileagent-python-ci/}\allowbreak\texttt{pipeline/pr-main}
passed in Jenkins PR build 3.
The pending human review remained an independent merge blocker.
This is the repaired green-check state, distinct from the preceding failed
red-check screenshot; neither screenshot claims peer approval was already granted.}
\label{fig:a6-repaired-gate}
\end{figure}
\section{Failure, Repair, and Review}
\EvidenceID{A6-PR-01}: \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/10}{issue 10}
tracks the CI acceptance exercise. \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/11}{PR 11}
links it with \texttt{Closes \#10}, targets \texttt{main}, and requests review
from \texttt{nkogut}. GDL's account \texttt{glovely} authored the PR;
the tracking issue was created while signed in as \texttt{jenkins-ci}.
NK's existing README name correction was preserved by fast-forwarding the
local checkout before the exercise.
\begin{tabularx}{\linewidth}{L{2.5cm}L{2.4cm}Y}
\toprule \textbf{Head / run} & \textbf{Result} & \textbf{Observed event and evidence}\\ \midrule
\texttt{ad056a3} / PR 1 & SUCCESS & PR-open webhook automatically discovered PR 11; checkout, syntax and both tests passed.\\
\texttt{d6477b3} / PR 2 & FAILURE & Multiplication changed to addition only on the feature branch; normal-total test failed with \texttt{13 != 30}; required check blocked merge.\\
\texttt{02d3169} / PR 3 & SUCCESS & Multiplication restored without weakening either test; push/synchronization automatically rebuilt the repaired head.\\
\texttt{b7ef485} / PR 4 & SUCCESS & Private webhook/proxy/protection configuration and operating notes versioned; final PR head passed both tests before review.\\
\texttt{131d605} / main 1 & SUCCESS & Human merge produced a new main commit; webhook automatically built it and both tests passed.\\
\bottomrule
\end{tabularx}
Run links: \href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/2/console}{failed PR build 2},
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/3/console}{repaired PR build 3},
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/4/console}{final PR build 4}, and
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/1/console}{post-merge main build 1}.
The controlled failed run retained the invalid-quantity test as passing and
returned exit code 1 from the normal-total assertion. No production service
failure was needed to demonstrate the gate.
At 15:13 EDT, \texttt{nkogut} approved the final head with the comment
``Good changes demonstrating Jenkins + Gitea.'' Gitea then explicitly stated
that the PR could be merged automatically. GDL used the normal merge action
at 15:14:45 EDT (19:14:45 UTC). PR 11 is merged and closed, and issue 10 closed
through its linked closing reference. Codex verified the review, merge and
post-merge build; it did not submit the human approval or click the merge.
The full merge revision is:
\begin{lstlisting}
131d605c5edb5b5080e4d54861c3c7bf7c360c9c
\end{lstlisting}
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth]{hw6_images/pr-11-approved-merge-eligible.png}
\caption{October 9, 2026: Nick's approval and the passing final PR check
made the ordinary merge action available. This is the review-satisfied state,
not an administrator override.}
\label{fig:a6-approved}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=0.60\linewidth]{hw6_images/pr-11-merged.png}
\caption{October 9, 2026: Gitea records GDL's merge into main and states
that PR 11 was successfully merged and closed. The separate main build
verified the merge commit after this action.}
\label{fig:a6-merged}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/gitea-commit-sequence.png}
\caption{October 9, 2026: Gitea main history ties failed commit \texttt{d6477b3}, repaired \texttt{02d3169}, final PR head \texttt{b7ef485}, and merge \texttt{131d605} to their recorded statuses. This overview supplements the mandatory PR merge-gate views.}
\label{fig:a6-commit-sequence}
\end{figure}
\section{Credentials and Build Boundary}
\subsection{Identity, scope and controller risk}
The verified named Jenkins administrator is \texttt{ssw590}, displayed as
Gowri Das Lovely. The team created \texttt{jenkins-ci} in Gitea, completed its
first-login password change, and approved Write access to the product
repository. No Gitea administrator role was granted to that account.
Its replacement token is public-only with repository Read/Write, user Read
and organization Read scopes. Jenkins stores it as the Global Gitea Personal
Access Token credential \texttt{gitea-jenkins-ci}; no value is in code or this
manual. Global scope makes it available to applicable jobs, so job creation
and pipeline editing must remain restricted to trusted team members.
The team identifies the Bitwarden entries as \texttt{jenkins-admin} and
\texttt{gitea-jenkins}; these are storage references, not credential values.
On October 9, 2026, after the team reported only one
token, Codex confirmed the signed-in account was \texttt{jenkins-ci} and its
Applications page listed only \texttt{jenkins-ci-status}, added at 14:26 EDT
and last used at 15:27 EDT, matching the successful post-restart build. No
superseded token was listed; no further deletion was performed. This verifies
the current inventory, not the historical revocation time. The token value
was not viewed or recorded; the list screenshot is retained as evidence.
\begin{figure}[H]
\centering
\includegraphics[width=0.94\linewidth]{hw6_images/jenkins-ci-repository-write-access.jpg}
\caption{October 9, 2026: the dedicated integration identity has Write access
to the product repository. The permission supports status reporting and also
allows code changes; the account is not a site administrator.}
\label{fig:a6-ci-account}
\end{figure}
Builds run on the \textbf{controller executor}, a permitted but higher-risk
assignment choice. Pipeline code can access the controller's workspace and
potentially sensitive service state. The current controller has two configured
executors; each job disables concurrent builds. The team has not yet reduced
the global executor count to one. Only trusted team members should author
the Jenkinsfile; the integration account itself has repository Write access.
Fork discovery is disabled, and no privileged Docker socket or inbound agent
port is provided. Default-branch restrictions are verified in the merge-gate section.
Named-user Matrix authorization now restricts Jenkins administration as
described below; the general logged-in group has no permissions.
\subsection{Named-user authorization}
\label{sec:a6-auth}\index{Jenkins!authorization}
\EvidenceID{A6-AUTH-01}: the team selected \textbf{Matrix-based security}.
The named Jenkins account \texttt{ssw590}, displayed as Gowri Das Lovely,
has \textbf{Overall/Administer}. Anonymous and Authenticated Users show
\textbf{No permissions granted}. Administrator access therefore belongs
to the named account, not every user who can sign in. The Gitea integration
account is a repository identity/credential, not an added Jenkins administrator.
The team supplied the configuration screenshot, then confirmed that
Manage Jenkins remained accessible after saving. The screenshot shows the
configured matrix; saved administrative access is team-confirmed rather
than independently reread by Codex. No post-save private-window access
result or self-registration-setting screenshot has been supplied; these
specific checks remain unconfirmed. The earlier anonymous API denial is
recorded separately and is not presented as a new post-change test.
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth]{hw6_images/jenkins-matrix-security.png}
\caption{October 9, 2026, team configuration evidence: Matrix-based security grants Gowri Das Lovely Overall/Administer; Anonymous and Authenticated Users have no permissions. The team subsequently confirmed retained administrative access after saving.}
\label{fig:a6-matrix}
\end{figure}
\subsection{Operator restart and troubleshooting}
For an ordinary restart, use the recorded Compose pair without deleting volumes:
\begin{lstlisting}
cd /home/codex/myfileagent-gitea
docker compose -f compose.yaml -f compose.jenkins.yaml restart jenkins
docker compose -f compose.yaml -f compose.jenkins.yaml ps jenkins
curl -I https://ci.myfileagent.tech/login
\end{lstlisting}
Expected result: Jenkins becomes ready and the saved job remains. The
completed persistence test above recorded unchanged before/after job state
and a passing subsequent build; repeat this verification after future restarts.
If startup fails, inspect filtered logs without printing setup secrets; stop
only Jenkins if the host loses responsiveness, confirm Gitea, then diagnose
before retry. After container replacement, rerun the Python helper before builds.
\phantomsection\label{GlossaryRef:webhook}\index{webhook}
For a failed webhook, inspect Gitea event selection, delivery response and
timestamp; verify the private destination, Docker network, configured webhook
route and authentication/signature settings. Match the delivered head commit
to a Jenkins run. For a failed build, identify the failed stage, confirm the
checkout SHA and tool availability, reproduce the command, repair on the same
branch and verify a fresh status. Never use a successful delivery as proof
that tests passed. This is an operator procedure; no live failed webhook
has been demonstrated yet.
\EvidenceID{A6-PLUGIN-01}: on October 9, 2026, the operator opened
Manage Jenkins / Plugins / Updates and selected Check now. The freshness
indicator changed from 1 hr 53 min old to 4.3 seconds old, and the page still
reported ``No updates available.'' The full installed-plugin page displayed
no plugin security, deprecated, incompatible or load-failure notices. Manage
Jenkins showed the built-in-node warning about controller builds. That warning
was retained and the existing trusted-controller boundary remains documented;
no agent was added or warning dismissed. Operator action: retain the current
plugin versions because Jenkins offered no updates; keep controller builds
limited to trusted team code and repeat this check during maintenance.
These observations describe Jenkins's refreshed update data and displayed
notices, not a guarantee that no vulnerability exists.
\begin{figure}[H]
\centering
\includegraphics[width=\linewidth,trim=0 185 0 0,clip]{hw6_images/plugin-updates-complete.png}
\caption[Refreshed Jenkins plugin check]{October 9, 2026: after Check now,
the team-provided completed Updates view clearly reports No updates available.
It replaces the earlier capture made during refresh. Installed-plugin notices and the
controller-build warning were reviewed separately.}
\label{fig:a6-plugin-check}
\end{figure} Do not run the manual compiler and heavy
Jenkins jobs concurrently; cost/cleanup remains on the existing team-owned
Droplet, with no new purchased cloud resource. On retirement, revoke the CI
token, remove its access and DNS/proxy entry, and preserve any needed Jenkins
home data before deleting resources.
\section{Manual Quality and Controls}
This Assignment 6 work-in-progress edition is version \textbf{1.8.2}, dated
October 9, 2026, with history/AI entries attributed to \textbf{GDL, NK, CDX}.
The history names Hosts and Passwords changes explicitly. Earlier chapters
and the completed Assignment 5 evidence were preserved from the latest
repository source. This chapter records decisions, expected/actual results,
failed attempts, corrections, links and a deployment diagram. New CI terms
are linked in the glossary and indexed; citations identify reused guidance.
\begin{tabularx}{\linewidth}{L{5.0cm}Y}
\toprule \textbf{Acceptance item} & \textbf{Status at this edition}\\ \midrule
Official Jenkins deployment and persistent home & Verified ordinary restart: 13 saved records unchanged; main build 2 passed.\\
HTTPS URL, login and redirect & Verified; team external 8080/50000 failed and 443 passed; current Cloud Firewall attachment/rules and IPv4-only status documented; public-access approval remains unresolved.\\
Repository discovery and traceable run & Verified private webhook, PR events, pushes and post-merge main run.\\
Versioned pipeline and meaningful tests & Initial and repaired/final PR heads passed; main build 2 stage/commit/test evidence added.\\
Protected default branch and required check & Verified exact PR context; failure blocked merge; normal merge after approval.\\
Issue-linked failure, repair, review and merge & Verified issue 10 / PR 11; NK approved, GDL merged.\\
Credentials and build boundary & Matrix administrator permissions and retained access team-confirmed; plugin evidence replaced. Bitwarden references recorded; private-window/self-registration checks unconfirmed.\\
Document controls and final submission & Version/history/registries updated; publication commit/run and artifact are identified on the Build Identity page and in Section 10.5.\\
\bottomrule
\end{tabularx}
+105
View File
@@ -0,0 +1,105 @@
% !TeX root = main.tex
% This is an included chapter. Compile the top-level main.tex for the full report.
\chapter{LaTeX Docker}
\ChapterLabel{LatexDocker}
\index{Docker!LaTeX container}
\index{LaTeX!Docker compilation}
\index{TeX Live}
\section{Purpose and Design}
Assignment 3 Step 4 requires a Docker container that compiles a simple LaTeX
document with TeX Live, which is the TeX distribution used by Overleaf. The
project separates the build environment from the host computer: the Docker
image installs the required TeX Live package, copies the source document into
the image, and runs \texttt{pdflatex}. A bind mount returns the generated PDF
and supporting files to an \texttt{output} directory on the host.
The project has the following structure:
\begin{minted}{text}
latex-docker/
|-- Dockerfile
|-- .dockerignore
|-- sample-source.txt
`-- output/
\end{minted}
\section{Sample LaTeX Document}
The container compiles the following small source document. It uses only the
base LaTeX packages installed in the image.
\inputminted{latex}{latex-docker/sample-source.txt}
\section{Dockerfile}
The image uses a small Debian base and installs
\texttt{texlive-latex-base} together with the recommended fonts needed by the
sample document. Removing the APT package lists keeps the resulting image
smaller.
\begin{minted}{dockerfile}
FROM debian:bookworm-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
texlive-latex-base \
lmodern \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY sample-source.txt .
CMD ["pdflatex", "-interaction=nonstopmode", \
"-halt-on-error", "sample-source.txt"]
\end{minted}
The Docker build context excludes generated and editor-specific files.
\begin{minted}{text}
output/
*.aux
*.log
*.pdf
.git
.DS_Store
\end{minted}
\section{Build and Run Procedure}
From the \texttt{latex-docker} directory, the output directory is created and
the Docker image is built with the tag \texttt{latex-compiler}.
\begin{minted}{bash}
cd latex-docker
mkdir -p output
sudo docker build -t latex-compiler .
\end{minted}
The container is then run with the host output directory mounted at
\texttt{/workspace/output}. The command overrides the default container command
so that all generated files are written to the mounted location. The container
is removed automatically after compilation.
\begin{minted}{bash}
sudo docker run --rm \
-v "$(pwd)/output:/workspace/output" \
latex-compiler \
pdflatex -interaction=nonstopmode -halt-on-error \
-output-directory=/workspace/output sample-source.txt
\end{minted}
\section{Verification}
The following commands verify that the container exited successfully and that
the expected PDF was written to the host.
\begin{minted}{bash}
ls -lh output/sample-source.pdf
file output/sample-source.pdf
\end{minted}
The expected result is a valid PDF named \texttt{sample-source.pdf}. Because the build
environment is encoded in the Dockerfile, the same source and image definition
can be used on another Docker host to obtain a consistent compilation workflow.
+148
View File
@@ -0,0 +1,148 @@
\chapter{Linux Commands}
\ChapterLabel{LinuxCommands}
\index{Linux}
\index{Linux!commands}
\index{DigitalOcean}
\index{PuTTY}
\section{Purpose}
This chapter documents the Linux command-line activities completed for
Assignment 2. The commands were executed on an Ubuntu Linux Droplet hosted
on DigitalOcean. PuTTY was used to establish a secure remote terminal
connection to the Droplet.
The activity created a controlled working directory containing text, \phantomsection\label{AcronymRef:CSV}CSV,
log, binary, directory, symbolic-link, and timestamped test artifacts. These
artifacts will be used to complete the Linux problem set.
\section{Execution Environment}
Table~\ref{Table:LinuxEnvironment} summarizes the environment used for this
activity. Passwords, private keys, and complete authentication credentials
are not included.
\begin{table}[htbp]
\centering
\caption{Linux command execution environment}
\label{Table:LinuxEnvironment}
\begin{tabularx}{\linewidth}{L{0.28\linewidth}Y}
\toprule
\textbf{Environment Item} & \textbf{Configuration} \\
\midrule
Cloud platform & DigitalOcean \\
Virtual host & Ubuntu Droplet \\
Droplet name & \texttt{ssw590-group7-droplet} \\
Droplet configuration & 1 virtual CPU, 1 GB memory, and 25 GB storage \\
Remote-access tool & PuTTY \\
Operating system & Ubuntu Linux \\
Remote user & \texttt{root} \\
Working directory & \texttt{/root/lx-test} \\
Activity status & Initial test environment successfully created \\
\bottomrule
\end{tabularx}
\end{table}
\section{Test Environment Setup}
The following instructor-provided commands were executed in the DigitalOcean
Ubuntu terminal. \phantomsection\label{AcronymRef:EE}\phantomsection\label{AcronymRef:CS} to perform the setup steps required for the problem set. These commands normally produce no terminal output when they
complete successfully.
\begin{lstlisting}[language=bash,caption={Initial DigitalOcean terminal record},label={Listing:InitialTerminalRecord}]
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~#
mkdir -p ~/lx-test && cd ~/lx-test
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "alpha\nbeta\nGamma\ngamma\nbeta\n" > words.txt
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "id,name,dept\n1,Ada,EE\n2,Linus,CS\n3,Grace,EE\n4,Dennis,CS\n" > people.csv
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "INFO boot ok\nWARN disk low\nERROR fan fail\nINFO shutdown\n" > sys.log
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
dd if=/dev/zero of=blob.bin bs=1K count=48 status=none
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
mkdir -p src/lib tmp archive
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "one two three four\n" > src/file1.txt
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
printf "two three four five\n" > src/file2.txt
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
ln -s src/file1.txt link-to-file1
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
touch -t 202401020304 old.txt
root@ubuntu-s-1vcpu-512mb-10gb-nyc1:~/lx-test#
\end{lstlisting}
\begin{comment}
\section{Created Artifacts}
The setup commands created the artifacts summarized in
Table~\ref{Table:LinuxArtifacts}.
\footnotesize
\begin{longtable}{L{0.25\linewidth}L{0.22\linewidth}L{0.42\linewidth}}
\caption{Artifacts created by the Linux setup commands}\label{Table:LinuxArtifacts}\\
\toprule
\textbf{Artifact} & \textbf{Type} & \textbf{Purpose or Contents} \\
\midrule
\endfirsthead
\multicolumn{3}{l}{\footnotesize\itshape Created Linux artifacts (continued)}\\
\toprule
\textbf{Artifact} & \textbf{Type} & \textbf{Purpose or Contents} \\
\midrule
\endhead
\bottomrule
\endlastfoot
\texttt{words.txt} & Text file & Contains mixed-case and repeated words for sorting and filtering.\\
\texttt{people.csv} & CSV file & Contains a header and four EE and CS personnel records.\\
\texttt{sys.log} & Log file & Contains INFO, WARN, and ERROR entries for searching and filtering.\\
\texttt{blob.bin} & Binary file & Contains 48 KiB of zero-valued data from \texttt{/dev/zero}.\\
\texttt{src/} & Directory & Contains two text files and the nested \texttt{lib/} directory.\\
\texttt{tmp/} & Directory & Temporary working location for later commands.\\
\texttt{archive/} & Directory & Destination for later archive operations.\\
\texttt{src/file1.txt} & Text file & Contains \texttt{one two three four}.\\
\texttt{src/file2.txt} & Text file & Contains \texttt{two three four five}.\\
\texttt{link-to-file1} & Symbolic link & Points to \texttt{src/file1.txt}.\\
\texttt{old.txt} & Timestamped file & Modification time set to January 2, 2024 at 03:04.\\
\end{longtable}
\normalsize
\section{Initial Terminal Record}
The following record reproduces the observed terminal interaction. The return
of the shell prompt without an error indicates that each silent setup command
was accepted.
\section{Verification Procedure}
The following commands will verify the working directory, created files,
directory hierarchy, symbolic link, file contents, binary size, and timestamp.
\begin{lstlisting}[language=bash,caption={Linux test-environment verification commands},label={Listing:LinuxVerificationCommands}]
pwd
ls -lah
find . -maxdepth 3 -type d | sort
cat words.txt
cat people.csv
cat sys.log
cat src/file1.txt
cat src/file2.txt
ls -l link-to-file1
cat link-to-file1
stat -c "%n: %s bytes" blob.bin
stat -c "%n: %y" old.txt
\end{lstlisting}
The observed output will be added after the team executes these verification
commands on the shared Droplet.
\section{Linux Problem Set}
The solutions to \texttt{linuxProblemSet.pdf} will be added to this section
after the problem set is reviewed. Each solution will include the executed
command, relevant output, and a concise explanation.
\end{comment}
+607
View File
@@ -0,0 +1,607 @@
\chapter{Linux Command Problem Set}
\ChapterLabel{LinuxProblemSet}
\index{Linux!problem set}
\section{Execution Guidance}
The following answers are written for the test environment created in \ChapterRef{LinuxCommands}. Commands were suggested by AI for the team to run, then verified by the team before execution; the team made changes as needed, ran the commands, and gathered the outputs. All problem-set commands and recorded outputs were executed and collected by humans, not by AI. Commands were executed from \texttt{/root/lx-test}.
\section{Problem Set}
\subsection*{A) Navigation \& File Ops}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=1]
\item \textbf{Show your present working directory path only.}
\index{Linux command!pwd}
\begin{lstlisting}[language=bash]
pwd
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
/root/lx-test
\end{lstlisting}
The command reports the current working directory used for the problem set.
\item \textbf{List all entries in the current directory, one per line, including dotfiles.}
\index{Linux command!ls}
\begin{lstlisting}[language=bash]
ls -a1
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
.
..
archive
blob.bin
link-to-file1
old.txt
people.csv
src
sys.log
tmp
words.txt
\end{lstlisting}
The `-a` option includes dotfiles and the `-1` option displays one entry per line.
\item \textbf{Copy `src/file1.txt` to `tmp/` only if `tmp` exists; do it verbosely.}
\index{Linux command!cp}
\begin{lstlisting}[language=bash]
[ -d tmp ] && cp -v src/file1.txt tmp/
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
'src/file1.txt' -> 'tmp/file1.txt'
\end{lstlisting}
The conditional copy runs only when `tmp` exists, and verbose mode reports the copy operation.
\item \textbf{Move `old.txt` into `archive/` and keep its original timestamp.}
\index{Linux command!mv}
\begin{lstlisting}[language=bash]
mv -v old.txt archive/
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
renamed 'old.txt' -> 'archive/old.txt'
\end{lstlisting}
The move is performed as a rename within the same filesystem, so the file's modification timestamp is retained.
\item \textbf{Create a new empty file `notes.md` only if it does not already exist.}
\index{Linux command!touch}
\begin{lstlisting}[language=bash]
[ -e notes.md ] || touch notes.md
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The existence test prevents `touch` from changing an existing file's timestamp.
\item \textbf{Show human-readable disk usage for the `src` directory only.}
\index{Linux command!du}
\begin{lstlisting}[language=bash]
du -sh src
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
16K src
\end{lstlisting}
The command reports the allocated disk usage for `src` in human-readable form.
\end{enumerate}
\subsection*{B) Viewing \& Searching}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=7]
\item \textbf{Print line numbers while displaying `sys.log`.}
\index{Linux command!nl}
\begin{lstlisting}[language=bash]
nl -ba sys.log
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
1 INFO boot ok
2 WARN disk low
3 ERROR fan fail
4 INFO shutdown
\end{lstlisting}
The `-b` option numbers all lines, including blank lines if present.
\item \textbf{Show only lines in `sys.log` containing `ERROR`, case-sensitively.}
\index{Linux command!grep}
\begin{lstlisting}[language=bash]
grep 'ERROR' sys.log
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
ERROR fan fail
\end{lstlisting}
The pattern is matched with case sensitivity, so only matching lines are returned.
\item \textbf{Count the distinct words in `words.txt`, case-insensitively.}
\index{Linux command!sort}
\begin{lstlisting}[language=bash]
sort -fu words.txt | wc -l
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
3
\end{lstlisting}
Sorting with `-f` and `-u` provides a case-insensitive unique count.
\item \textbf{Show lines in `words.txt` that start with `g` or `G`.}
\index{Linux command!grep}
\begin{lstlisting}[language=bash]
grep -i '^g' words.txt
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
Gamma
gamma
\end{lstlisting}
The case-insensitive anchored pattern selects lines beginning with the letter `g`.
\item \textbf{Display the first two lines of `people.csv` without an editor.}
\index{Linux command!head}
\begin{lstlisting}[language=bash]
head -n 2 people.csv
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
id,name,dept
1,Ada,EE
\end{lstlisting}
The command returns the first two lines of the CSV.
\item \textbf{Show the last three lines of `sys.log` and keep following if it grows.}
\index{Linux command!tail}
\begin{lstlisting}[language=bash]
tail -n 3 -f sys.log
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
WARN disk low
ERROR fan fail
INFO shutdown
^C
\end{lstlisting}
The command displays the current final three lines and then waits for additional lines until interrupted.
\end{enumerate}
\subsection*{C) Text Processing}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=13]
\item \textbf{Print only the second, name column from `people.csv`, excluding the header.}
\index{Linux command!awk}
\begin{lstlisting}[language=bash]
awk -F, 'NR > 1 {print $2}' people.csv
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
Ada
Linus
Grace
Dennis
\end{lstlisting}
The `awk` field separator is a comma, and records after the header print field 2.
\item \textbf{Sort `words.txt` case-insensitively and remove duplicates.}
\index{Linux command!tr}
\begin{lstlisting}[language=bash]
tr '[:upper:]' '[:lower:]' < words.txt | sort -u
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
alpha
beta
gamma
\end{lstlisting}
The pipeline lowercases the input before sorting uniquely.
\item \textbf{Replace every `three` with `3` in all files under `src/` in place, creating `.bak` backups.}
\index{Linux command!sed}
\begin{lstlisting}[language=bash]
find src -type f ! -name '*.bak' -exec sed -i.bak 's/three/3/g' {} +
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The command edits matching files in place while excluding existing backup files and creating `.bak` copies.
\textbf{Verification step:}
\begin{lstlisting}
$ cat src/file1.txt
one two 3 four
\end{lstlisting}
The verification command is included as evidence of the resulting file state and is not part of the solution command.
\item \textbf{Print the line, word, and byte counts for every `*.txt` file in `src/`.}
\index{Linux command!wc}
\begin{lstlisting}[language=bash]
find src -type f -name '*.txt' -exec wc -l -w -c {} +
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
1 4 15 src/file1.txt
1 4 16 src/file2.txt
2 8 31 total
\end{lstlisting}
The command reports line, word, and byte counts for the matching text files and a total.
\end{enumerate}
\subsection*{D) Permissions \& Ownership}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=17]
\item \textbf{Make `tmp/` readable, writable, and searchable only by its owner.}
\index{Linux command!chmod}
\begin{lstlisting}[language=bash]
chmod 700 tmp
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
Mode `700` grants the owner read, write, and execute \phantomsection\label{GlossaryRef:permissions}\gls{permissions} while granting none to group or others.
\item \textbf{Give group execute permission to `src/lib` recursively without changing owner or other bits.}
\index{Linux command!chmod}
\begin{lstlisting}[language=bash]
chmod -R g+x src/lib
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The recursive `g+x` operation adds group execute permission without changing the other \gls{permissions}.
\item \textbf{Show the numeric octal permissions of `src/file2.txt`.}
\index{Linux command!stat}
\begin{lstlisting}[language=bash]
stat -c '%a' src/file2.txt
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
644
\end{lstlisting}
The command prints the file's numeric \gls{permissions} mode.
\item \textbf{Make `notes.md` append-only via file attributes, if supported.}
\index{Linux command!chattr}
\begin{lstlisting}[language=bash]
chattr +a notes.md && lsattr notes.md
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
-----a--------e------- notes.md
\end{lstlisting}
The command sets the append-only attribute and then displays the file attributes to verify it.
\end{enumerate}
\section*{E) Links and Find}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=21]
\item \textbf{Verify that `link-to-file1` is a symbolic link and show its target.}
\index{Linux command!symbolic links}
\begin{lstlisting}[language=bash]
[ -L link-to-file1 ] && readlink link-to-file1
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
src/file1.txt
\end{lstlisting}
The test succeeds only for a \phantomsection\label{GlossaryRef:symboliclink}\gls{symboliclink}, after which `readlink` prints its target.
\item \textbf{Find all regular files under the current tree larger than 40 KiB.}
\index{Linux command!find}
\begin{lstlisting}[language=bash]
find . -type f -size +40k -print
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
./blob.bin
\end{lstlisting}
The search restricts results to regular files whose size exceeds 40 KiB.
\item \textbf{Find files modified in the last ten minutes under `tmp/` and print their sizes.}
\index{Linux command!find}
\begin{lstlisting}[language=bash]
find tmp -type f -mmin -10 -printf '%s %p\n'
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
19 tmp/file1.txt
\end{lstlisting}
The search filters by modification time and prints each matching size followed by its path.
\end{enumerate}
\section*{F) Processes \& Job Control}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=24]
\item \textbf{Show your processes in a tree view.}\phantomsection\label{AcronymRef:PPID}
\index{Linux command!processes}
\begin{lstlisting}[language=bash]
ps -u "$USER" --forest -o pid,ppid,stat,cmd
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
PID PPID STAT CMD
2 0 S [kthreadd]
3 2 S \_ [pool_workqueue_release]
4 2 I< \_ [kworker/R-rcu_g]
5 2 I< \_ [kworker/R-rcu_p]
6 2 I< \_ [kworker/R-slub_]
7 2 I< \_ [kworker/R-netns]
9 2 I< \_ [kworker/0:0H-kblockd]
12 2 I< \_ [kworker/R-mm_pe]
13 2 I \_ [rcu_tasks_kthread]
14 2 I \_ [rcu_tasks_rude_kthread]
15 2 I \_ [rcu_tasks_trace_kthread]
16 2 S \_ [ksoftirqd/0]
17 2 I \_ [rcu_preempt]
18 2 S \_ [migration/0]
19 2 S \_ [idle_inject/0]
20 2 S \_ [cpuhp/0]
21 2 S \_ [kdevtmpfs]
22 2 I< \_ [kworker/R-inet_]
23 2 S \_ [kauditd]
24 2 S \_ [khungtaskd]
26 2 S \_ [oom_reaper]
28 2 I< \_ [kworker/R-write]
29 2 S \_ [kcompactd0]
30 2 SN \_ [ksmd]
31 2 I< \_ [kworker/R-kinte]
32 2 I< \_ [kworker/R-kbloc]
33 2 I< \_ [kworker/R-blkcg]
34 2 S \_ [irq/9-acpi]
35 2 I< \_ [kworker/R-tpm_d]
36 2 I< \_ [kworker/R-ata_s]
37 2 I< \_ [kworker/R-md]
38 2 I< \_ [kworker/R-md_bi]
39 2 I< \_ [kworker/R-edac-]
40 2 I< \_ [kworker/R-devfr]
41 2 S \_ [watchdogd]
42 2 I< \_ [kworker/R-quota]
43 2 I< \_ [kworker/0:1H-kblockd]
44 2 S \_ [kswapd0]
45 2 S \_ [ecryptfs-kthread]
46 2 I< \_ [kworker/R-kthro]
47 2 I< \_ [kworker/R-acpi_]
48 2 S \_ [scsi_eh_0]
49 2 I< \_ [kworker/R-scsi_]
50 2 S \_ [scsi_eh_1]
51 2 I< \_ [kworker/R-scsi_]
52 2 S \_ [scsi_eh_2]
53 2 I< \_ [kworker/R-scsi_]
56 2 I< \_ [kworker/R-mld]
57 2 I< \_ [kworker/R-ipv6_]
64 2 I< \_ [kworker/R-kstrp]
66 2 I< \_ [kworker/u3:0]
71 2 I< \_ [kworker/R-crypt]
81 2 I< \_ [kworker/R-charg]
163 2 I< \_ [kworker/R-raid5]
200 2 S \_ [jbd2/vda1-8]
201 2 I< \_ [kworker/R-ext4-]
293 2 I< \_ [kworker/R-kmpat]
294 2 I< \_ [kworker/R-kmpat]
398 2 S \_ [jbd2/vda16-8]
399 2 I< \_ [kworker/R-ext4-]
1163 2 I< \_ [kworker/R-tls-s]
34191 2 S \_ [psimon]
52833 2 I \_ [kworker/u2:0-events_power_efficient]
53308 2 I \_ [kworker/u2:2-events_power_efficient]
53346 2 I \_ [kworker/u2:3-events_power_efficient]
53379 2 I \_ [kworker/0:1-cgroup_free]
53425 2 S \_ [psimon]
53433 2 S \_ [psimon]
53615 2 I \_ [kworker/0:2-events]
53633 2 I \_ [kworker/u2:4-events_unbound]
1 0 Ss /usr/lib/systemd/systemd --system --deserialize=75
837 1 Ss /usr/lib/systemd/systemd-logind
914 1 Ss+ /sbin/agetty -o -p -- \u --keep-baud 115200,57600,38400,9600 - vt220
920 1 Ssl /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal
960 1 Ss+ /sbin/agetty -o -p -- \u --noclear - linux
8058 1 Ssl /opt/digitalocean/bin/droplet-agent
20679 1 SLsl /sbin/multipathd -d -s
32446 1 Ss /usr/sbin/cron -f -P
34152 1 S<s /usr/lib/systemd/systemd-journald
34178 1 Ss /usr/lib/systemd/systemd-udevd
34749 1 Ssl /usr/libexec/udisks2/udisksd
34750 1 Ss sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
53422 34750 Ss \_ sshd: root@pts/0
53536 53422 Ss \_ -bash
53665 53536 R+ \_ ps -u root --forest -o pid,ppid,stat,cmd
34756 1 Ssl /usr/libexec/fwupd/fwupd
34772 1 Ssl /usr/sbin/ModemManager
53427 1 Ss /usr/lib/systemd/systemd --user
53428 53427 S \_ (sd-pam)
\end{lstlisting}
The `--forest` option renders the \phantomsection\label{GlossaryRef:process}\gls{process} relationships as a tree for the selected user.
\item \textbf{Start `sleep 120` in the background and show its \phantomsection\label{AcronymRef:PID}PID.}
\index{Linux command!sleep}
\begin{lstlisting}[language=bash]
sleep 120 & echo "$!"
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
[1] 53666
53666
\end{lstlisting}
\$! expands to the process \phantomsection\label{AcronymRef:ID}ID of the most recently started background job.
\item \textbf{Send TERM to all `sleep` processes owned by the current user without using `kill -9`.}
\index{Linux command!pkill}
\begin{lstlisting}[language=bash]
pkill -TERM -u "$USER" -x sleep
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
[1]+ Terminated sleep 120
\end{lstlisting}
The command requests graceful termination of exact-name `sleep` \gls{process}es belonging to the current user.
\item \textbf{Show the top five processes by memory usage in a noninteractive snapshot.}
\index{Linux command!ps}
\begin{lstlisting}[language=bash]
ps -eo pid,user,%mem,comm --sort=-%mem | head -n 6
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
PID USER %MEM COMMAND
34152 root 6.3 systemd-journal
20679 root 5.8 multipathd
34756 root 4.7 fwupd
53427 root 2.4 systemd
7679 do-agent 2.3 do-agent
\end{lstlisting}
The output is sorted by descending memory percentage, with the header included.
\end{enumerate}
\subsection*{G) Archiving and Compression}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=28]
\item \textbf{Create a gzipped tar archive named `src.tgz` from `src/` using relative paths.}
\index{Linux command!tar}
\begin{lstlisting}[language=bash]
tar -czf src.tgz src/
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The \phantomsection\label{GlossaryRef:archive}\gls{archive} is created from the relative `src/` path.
\item \textbf{List the contents of `src.tgz` without extracting it.}
\index{Linux command!tar}
\begin{lstlisting}[language=bash]
tar -tzf src.tgz
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
src/
src/file1.txt
src/file2.txt
src/lib/
src/file1.txt.bak
src/file2.txt.bak
\end{lstlisting}
The archive member names are displayed without extracting files.
\item \textbf{Extract only `file2.txt` from `src.tgz` into `tmp/`.}
\index{Linux command!tar}
\begin{lstlisting}[language=bash]
tar -xzf src.tgz -C tmp --strip-components=1 src/file2.txt
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The selected \gls{archive} member is extracted into `tmp/` after stripping the leading `src/` path component.
\textbf{Verification step:}
\begin{lstlisting}
$ ls -l tmp/file2.txt
-rw-r--r-- 1 root root 16 Sep 12 13:23 tmp/file2.txt
$ cat tmp/file2.txt
two 3 four five
\end{lstlisting}
The verification command is included as evidence of the resulting file state and is not part of the solution command.
\end{enumerate}
\subsection*{H) Networking \& System Info}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=31]
\item \textbf{Show all listening \phantomsection\label{AcronymRef:TCP}TCP sockets with associated PIDs without assuming root access.}
\index{Linux command!ss}
\begin{lstlisting}[language=bash]
ss -ltnp
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
LISTEN 0 4096 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=34750,fd=3),("systemd",pid=1,fd=109))
LISTEN 0 4096 127.0.0.54:53 0.0.0.0:* users:(("systemd-resolve",pid=34166,fd=17))
LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=34166,fd=15))
LISTEN 0 4096 [::]:22 [::]:* users:(("sshd",pid=34750,fd=4),("systemd",pid=1,fd=110))
\end{lstlisting}
The command lists listening TCP sockets and includes process information where permitted.
\item \textbf{Print the default route or gateway concisely.}
\index{Linux command!ip route}
\begin{lstlisting}[language=bash]
ip route show default
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
default via 142.93.192.1 dev eth0 proto static
\end{lstlisting}
The command displays the system's default route.
\item \textbf{Display the kernel name, release, and machine architecture.}
\index{Linux command!uname}
\begin{lstlisting}[language=bash]
uname -srm
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
Linux 6.8.0-124-generic x86_64
\end{lstlisting}
The output contains the kernel name, release, and machine architecture.
\item \textbf{Show the last five successful logins or sessions on the system.}
\index{Linux command!last}
\begin{lstlisting}[language=bash]
last -n 5
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
root pts/0 100.8.220.73 Sat Sep 12 13:12 still logged in
root pts/1 155.246.151.34 Thu Sep 10 21:23 - 22:23 (00:59)
root pts/0 155.246.151.34 Thu Sep 10 21:22 - 00:36 (03:13)
reboot system boot 6.8.0-124-generi Thu Sep 10 21:16 still running
wtmp begins Thu Sep 10 21:16:00 2026
\end{lstlisting}
The command displays the most recent login/session records available from the system accounting log.
\end{enumerate}
\subsection*{I) Package \& Services (Debian/Ubuntu)}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=35]
\item \textbf{Show the installed version of the `coreutils` package.}
\index{Linux command!coreutils}
\begin{lstlisting}[language=bash]
dpkg-query -W -f='${Version}\n' coreutils
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
9.4-3ubuntu6.3
\end{lstlisting}
The package query prints the installed version string.
\item \textbf{Search available packages whose names contain `ripgrep`.}
\index{Linux command!apt-cache}
\begin{lstlisting}[language=bash]
apt-cache search --names-only ripgrep
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
ripgrep - Recursively searches directories for a regex pattern
\end{lstlisting}
The package cache is searched by package name only.
\item \textbf{Check whether the `cron` service is active and print only its status line.}
\index{Linux command!systemctl}
\begin{lstlisting}[language=bash]
systemctl is-active cron
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
active
\end{lstlisting}
The command returns the service's active-state value.
\end{enumerate}
\subsection*{J) Bash \& Scripting}
\begin{enumerate}[label=\textbf{\arabic*.},leftmargin=*,start=38]
\item \textbf{Loop over `*.txt` in `src/` and print each filename and word count.}
\index{Linux command!Bash}
\begin{lstlisting}[language=bash]
shopt -s nullglob
for f in src/*.txt; do
printf '%s : %s\n' "$f" "$(wc -w < "$f")"
done
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
src/file1.txt : 4
src/file2.txt : 4
\end{lstlisting}
The loop uses `nullglob` so an unmatched pattern expands to no files, and `wc -w` supplies each word count in \gls{bash}.
\item \textbf{Export CSV rows where `dept == "CS"` to `cs.txt`, excluding the header.}
\index{Linux command!awk}
\begin{lstlisting}[language=bash]
awk -F, 'NR > 1 && $3 == "CS"' people.csv > cs.txt
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
(no terminal output)
\end{lstlisting}
The `awk` condition selects records after the header whose third field equals `CS`.
\textbf{Verification step:}
\begin{lstlisting}
$ cat cs.txt
2,Linus,CS
4,Dennis,CS
\end{lstlisting}
The verification command is included as evidence of the resulting file state and is not part of the solution command.
\item \textbf{Create an environment variable `X` with value `42`, print it, and remove it from the environment.}
\index{Linux command!environment variables}
\begin{lstlisting}[language=bash]
export X=42; printf '%s\n' "$X"; unset X
\end{lstlisting}
\textbf{Observed output:}
\begin{lstlisting}
42
\end{lstlisting}
The \phantomsection\label{GlossaryRef:environmentvariable}\gls{environmentvariable} is exported, printed, and then unset in the current shell.
\end{enumerate}
+28
View File
@@ -0,0 +1,28 @@
\chapter{Passwords}
\ChapterLabel{Passwords}
\index{passwords}
\index{credentials}
\section{Overview}
For security reasons, passwords in this document are stored only as links to another password store (shared BitWarden cloud account), never as the credential itself. When a new credential is created, add a row naming the user and server, add the corresponding entry to the password manager, and record only the password manager's entry name here.
\section{Credential Registry}
\begin{tabularx}{\linewidth}{L{1.8cm}L{2.6cm}L{3.4cm}Y}
\caption{Credential Registry\label{Table:CredentialRegistry}}\\
\toprule \textbf{User} & \textbf{Server} & \textbf{Credential Reference} & \textbf{Rotation / Notes}\\ \midrule
\endfirsthead
\multicolumn{4}{l}{\small\itshape Credential Registry (continued)}\\
\toprule \textbf{User} & \textbf{Server} & \textbf{Credential Reference} & \textbf{Rotation / Notes}\\ \midrule
\endhead \bottomrule \endlastfoot
Group 7 & Droplet (DigitalOcean) & Bitwarden: \texttt{DigitalOcean Droplet} & Cloud administration; rotate periodically.\\
\texttt{nkogut} & MyFileAgent Gitea & Bitwarden: \texttt{Gitea - Nick} & Named Gitea administrator.\\
\texttt{glovely} & MyFileAgent Gitea & Bitwarden: \texttt{Gitea - Gowri} & Named Gitea administrator.\\
Group 7 & \texttt{.TECH domains} & Bitwarden: \texttt{.tech Domain} & Domain registrar access.\\
Group 7 & Actions runner & Restricted state: \texttt{.runner} & Outside Git; mode 600. Revoke on retirement.\\
\texttt{glovely} & Setup access & Restricted temporary token file & Repository-write setup only; revoke after use.\\
\texttt{ssw590} & Jenkins & Bitwarden: \texttt{jenkins-admin} & Named Matrix administrator.\\
\texttt{jenkins-}\allowbreak\texttt{ci} & Gitea & Bitwarden: \texttt{gitea-jenkins} & Non-admin; product repository Write access.\\
\texttt{jenkins-}\allowbreak\texttt{ci} & Jenkins / Gitea & Jenkins credential: \texttt{gitea-}\allowbreak\texttt{jenkins-ci} & Global PAT: repo write; user/org read. Rotate on compromise.\\
Group 7 & Grafana & Bitwarden: \path{bitwarden-grafana} & Never publish the password. The restricted initial-password file outside Git is a bootstrap value and must not be used to reset the changed login.\\
Group 7 & Discord alert route & Restricted \path{grafana-discord-webhook} and private routing provisioning outside Git & Secret URL excluded from source and screenshots. Rotate/revoke through the team Discord integration if compromised; preserve resolved delivery.\\
\end{tabularx}
+161
View File
@@ -0,0 +1,161 @@
\chapter{Project Proposal}
\ChapterLabel{ProjectProposal}
\index{project proposal}
\index{DevSecOps pipeline}
\index{agentic LLM}
\index{Python}
\index{Grafana}
\section{Project Title}
\begin{center}
\Large\textbf{MyFileAgent Pipeline: One-Click DevSecOps Deployment for an Agentic LLM}
\end{center}
\section{Project Description and Primary Focus}
The primary product of this project is an automated, repeatable DevSecOps
pipeline that will install, configure, and demonstrate file-interaction tasks with an LLM. The pipeline will install required
packages, download a pinned small language model from the Hugging Face Hub,
build the containers, create the configuration, run security and functional
tests, deploy the services to a DigitalOcean Ubuntu Droplet, and perform
post-deployment health checks. A user will start the complete workflow through
one manual GitHub Actions button or one documented local command.
Once automatically configured for the specific environment it is deployed to, the LLM can be given a file name or expected text which it will use to locate a file on the system. It will also be given the new contents for that file and will perform a controlled text replacement. It will call a tool using Python libraries to perform the deterministic
file validation, backup, diff display, and write operation. The project
does not promise general desktop control, autonomous file discovery, open-ended
planning, or unrestricted shell access, and will focus on the installation and setup pipeline rather than the extending the LLM's capabilities.
The model will be downloaded from the Hugging Face Hub using its supported
download workflow \cite{HuggingFaceHubDownload}. A small quantized GGUF model
will run locally through \texttt{llama.cpp} \cite{LlamaCpp}. Pinning the model
revision and checksum will make repeated pipeline runs reproducible.
\section{Demonstration Task}
The pipeline's end-to-end acceptance test will demonstrate installation, configuration, deployment, and usage of the LLM model. Each step of this process will be clearly displayed using visual metrics from GitHub actions, DigitalOcean droplet system resource monitoring, and Grafana. Finally, the following task (implemented as a test case) will demonstrate that this process was successful:
\begin{quote}
``In the approved demonstration folder, open the file about \texttt{project status}, verify
that it contains \texttt{Status: Draft}, and replace that line with
\texttt{Status: Reviewed}.''
\end{quote}
The application will receive a description of the target file's name (not necessarily an exact path) and replacement values, confirm
that the file exists inside the allowed folder, create a backup, show a diff,
perform the replacement, verify the saved result, and append a JSON Lines audit
record. If validation fails, it will stop without modifying the file.
\section{One-Click Pipeline}
The pipeline will perform the following stages in order:
\begin{enumerate}[label=\arabic*.]
\item validate required secrets, variables, model identifiers, and target
Droplet information;
\item install or verify Docker, Docker Compose, Python dependencies, and
required monitoring components;
\item download the pinned model and verify its checksum;
\item lint and statically analyze the Python source;
\item run unit, integration, security, and minimal end-to-end tests;
\item build and scan versioned container images;
\item generate deployment configuration from protected variables;
\item deploy the application, inference, Prometheus, and Grafana services;
\item run health checks and the fixed file-replacement acceptance test; and
\item publish test (e.g., via the task outlined above), scan, deployment, and monitoring results.
\end{enumerate}
The workflow will fail immediately when a required stage fails. Deployment
will use pinned versions, health checks, restart policies, resource limits, and
a rollback target. Re-running the same workflow should be idempotent and should
not duplicate configuration or damage an existing deployment.
\section{Proposed Architecture and Tools}
\begin{longtable}{L{2.7cm}L{4.2cm}L{7.3cm}}
\caption{Proposed MyFileAgent pipeline}\label{Table:MyFileAgentPipeline}\\
\toprule
\textbf{Stage} & \textbf{Planned Tools} & \textbf{Purpose} \\
\midrule
\endfirsthead
\toprule
\textbf{Stage} & \textbf{Planned Tools} & \textbf{Purpose} \\
\midrule
\endhead
\bottomrule
\endlastfoot
Source control & Git and GitHub & Store pipeline definitions, Python source, tests, Docker files, configuration templates, issues, and version history. \\
One-click orchestration & GitHub Actions \texttt{workflow\_dispatch}, Bash, and a Makefile & Provide one manual action that validates, builds, tests, scans, deploys, and verifies the complete system \cite{GitHubActions}. \\
File operations & Python \texttt{pathlib}, \texttt{shutil}, \texttt{difflib}, and atomic replacement & Provide a tool the LLM Agent will call to enforce the approved folder, create a backup, generate a diff, perform the single text replacement, and verify the result \cite{PythonPathlib}. \\
Model acquisition & Hugging Face Hub & Download a selected small model and pin its revision and checksum. \\
Inference & \texttt{llama.cpp} with a quantized GGUF model & Run a resource-conscious local model for the demonstration. \\
Testing & \texttt{pytest}, mocks, and temporary directories & Test configuration, file safeguards, backup and replacement behavior, failure handling, and the deployed acceptance case \cite{PytestDocs}. \\
Security & Ruff & Check Python quality, static-analysis rules. \\
Packaging and deployment & Docker Compose and DigitalOcean & Build and deploy versioned application, inference, and monitoring services on the Ubuntu Droplet. \\
Application monitoring & Prometheus and Grafana & Collect pipeline and application metrics and display build, test, deployment, health, latency, token, and failure information in a dashboard \cite{PrometheusOverview,GrafanaPrometheus}. \\
Host monitoring & DigitalOcean Monitoring & Supplement Grafana with Droplet-level CPU, memory, disk, and availability graphs and alerts \cite{DigitalOceanMonitoring}. \\
Audit storage & JSON Lines files and retained CI artifacts & Preserve pipeline results and a small append-only record of demonstration runs without requiring a separate database service. \\
\end{longtable}
\section{DevSecOps and Testing Strategy}
Security and verification are pipeline gates rather than later manual tasks.
Pull requests will run formatting, linting, unit tests, dependency checks,
static analysis, and container scanning. Only an approved main-branch revision
may start deployment. The containers will run as non-root users, secrets will
come from protected variables, and the demonstration workspace will be the
only writable application mount.
The automated test suite will emphasize the delivery system:
\begin{itemize}
\item pipeline configuration tests for required variables, pinned versions,
repeatable installation, failure handling, and rollback information;
\item Python tool to be called by the LLM; unit tests for path boundaries, backups, diffs, atomic writes,
audit records, and rejection of invalid input;
\item integration tests using temporary folders and a mocked inference
response;
\item security gates for source, dependencies, secrets, and images; and
\item a post-deployment acceptance test that performs only the fixed sample
replacement and confirms the backup, result, audit entry, and health
status.
\end{itemize}
\section{Monitoring Dashboard}
Grafana will be the main operational dashboard. Prometheus will supply metrics
for pipeline duration, test pass or failure counts, deployment status,
container health, inference latency, limited token estimates, acceptance-test
results, and application errors. These measures show whether the automated
delivery pipeline is reliable and repeatable; token information is a supporting
metric rather than the project's main goal. DigitalOcean Monitoring may be used
in addition for host-level CPU, memory, disk, and availability information.
\section{Planned Deliverables and Milestones}
\begin{enumerate}[label=\arabic*.]
\item define the one-click pipeline stages, configuration contract, success
criteria, and rollback approach;
\item create the GitHub repository, Python demonstration service and LLM-callable tool, and automated tests;
\item Choose a small model, pin and download it, and confirm the single demonstration
task locally;
\item create the Docker Compose deployment and security gates;
\item automate installation, configuration, build, test, scan, deployment,
health checking, and acceptance testing through one trigger;
\item configure Prometheus and Grafana, with DigitalOcean host monitoring as
an optional additional source;
and
\item demonstrate a clean one-click run and document timing, test, security,
monitoring, failure, and rollback results.
\end{enumerate}
\section{Success Criteria and Unique Contribution}
The project succeeds when one authorized action can take a documented target
from prerequisites to a healthy, tested, monitored deployment. The run must
install or validate dependencies, retrieve the pinned model, build containers,
pass automated tests and security gates, deploy the services, complete health
checks, execute the fixed file-replacement acceptance test, and expose results
in Grafana. A repeated run must be safe and produce consistent results, while a
failed gate must prevent or stop deployment and provide useful logs.
+197
View File
@@ -0,0 +1,197 @@
@book{PhoenixProject,
author = {Kim, Gene and Behr, Kevin and Spafford, George},
title = {The Phoenix Project: A Novel about IT, DevOps, and Helping Your Business Win},
publisher = {IT Revolution Press},
year = {2018}
}
@misc{HuggingFaceHubDownload,
author = {{Hugging Face}},
title = {Download Files from the Hub},
year = {2026},
howpublished = {\url{https://huggingface.co/docs/huggingface_hub/guides/download}},
note = {Accessed: September 18, 2026}
}
@misc{LlamaCpp,
author = {{llama.cpp contributors}},
title = {llama.cpp: LLM Inference in C/C++},
year = {2026},
howpublished = {\url{https://github.com/ggml-org/llama.cpp}},
note = {Accessed: September 18, 2026}
}
@misc{PythonPathlib,
author = {{Python Software Foundation}},
title = {pathlib---Object-Oriented Filesystem Paths},
year = {2026},
howpublished = {\url{https://docs.python.org/3/library/pathlib.html}},
note = {Accessed: September 18, 2026}
}
@misc{PytestDocs,
author = {{pytest contributors}},
title = {pytest Documentation},
year = {2026},
howpublished = {\url{https://docs.pytest.org/}},
note = {Accessed: September 18, 2026}
}
@misc{PrometheusOverview,
author = {{Prometheus Authors}},
title = {Prometheus Overview},
year = {2026},
howpublished = {\url{https://prometheus.io/docs/introduction/overview/}},
note = {Accessed: September 18, 2026}
}
@misc{GrafanaPrometheus,
author = {{Grafana Labs}},
title = {Prometheus Monitoring and Grafana Dashboards},
year = {2026},
howpublished = {\url{https://grafana.com/oss/prometheus/}},
note = {Accessed: September 18, 2026}
}
@misc{DigitalOceanMonitoring,
author = {{DigitalOcean}},
title = {Monitoring Documentation},
year = {2026},
howpublished = {\url{https://docs.digitalocean.com/products/monitoring/}},
note = {Accessed: September 18, 2026}
}
@misc{GitHubActions,
author = {{GitHub}},
title = {GitHub Actions Documentation},
year = {2026},
howpublished = {\url{https://docs.github.com/actions}},
note = {Accessed: September 18, 2026}
}
@misc{DockerUbuntuInstall,
author = {{Docker, Inc.}},
title = {Install Docker Engine on Ubuntu},
year = {2026},
howpublished = {\url{https://docs.docker.com/engine/install/ubuntu/}},
note = {Accessed: September 18, 2026}
}
@misc{GiteaDockerRootless,
author = {{Gitea Limited}},
title = {Installation with Docker (rootless)},
year = {2026},
howpublished = {\url{https://docs.gitea.com/installation/install-with-docker-rootless/}},
note = {Accessed: September 26, 2026}
}
@misc{CaddyDockerImage,
author = {{Docker, Inc.}},
title = {Caddy Official Image},
year = {2026},
howpublished = {\url{https://hub.docker.com/_/caddy}},
note = {Accessed: September 26, 2026}
}
@misc{CaddyAutomaticHTTPS,
author = {{Caddy Project}},
title = {Automatic HTTPS},
year = {2026},
howpublished = {\url{https://caddyserver.com/docs/automatic-https}},
note = {Accessed: September 26, 2026}
}
@misc{CaddyCommandLine,
author = {{Caddy Documentation}},
title = {Command Line},
howpublished = {\url{https://caddyserver.com/docs/command-line}},
note = {Accessed September 26, 2026}
}
@misc{DigitalOceanCloudFirewalls,
author = {{DigitalOcean}},
title = {Cloud Firewalls Documentation},
year = {2026},
howpublished = {\url{https://docs.digitalocean.com/products/networking/firewalls/}},
note = {Accessed: September 26, 2026}
}
@misc{GiteaActRunnerManual,
author={{Gitea}}, title={Act Runner},
howpublished={\url{https://docs.gitea.com/1.26/usage/actions/act-runner/}},
note={Accessed October 6, 2026}}
@misc{GiteaActionsComparisonManual,
author={{Gitea}}, title={Compared to GitHub Actions},
howpublished={\url{https://docs.gitea.com/1.27/usage/actions/comparison/}},
note={Accessed October 6, 2026}}
@misc{GiteaActionsConfigManual,
author={{Gitea}}, title={Configuration Cheat Sheet: Actions},
howpublished={\url{https://docs.gitea.com/1.27/administration/config-cheat-sheet/}},
note={Accessed October 6, 2026}}
@misc{JenkinsDockerA6,
author = {{Jenkins Project}},
title = {Installing Jenkins with Docker},
howpublished = {\url{https://www.jenkins.io/doc/book/installing/docker/}},
note = {Accessed October 9, 2026}
}
@misc{JenkinsCaddyA6,
author = {{Jenkins Project}},
title = {Reverse proxy configuration with Caddy},
howpublished = {\url{https://www.jenkins.io/doc/book/system-administration/reverse-proxy-configuration-with-jenkins/reverse-proxy-configuration-caddy/}},
note = {Accessed October 9, 2026}
}
@misc{GiteaPluginA6,
author = {{Jenkins Project}},
title = {Gitea plugin},
howpublished = {\url{https://plugins.jenkins.io/gitea/}},
note = {Accessed October 9, 2026}
}
@misc{GiteaChecksA6,
author = {{Jenkins Project}},
title = {Gitea Checks plugin},
howpublished = {\url{https://plugins.jenkins.io/gitea-checks/}},
note = {Accessed October 9, 2026}
}
@misc{GiteaScopesA6,
author = {{Gitea Limited}},
title = {Token scopes},
howpublished = {\url{https://docs.gitea.com/development/oauth2-provider/#scopes}},
note = {Accessed October 9, 2026}
}
@misc{PrometheusStorageA7,
author = {{Prometheus Authors}},
title = {Prometheus Storage},
year = {2026},
howpublished = {\url{https://prometheus.io/docs/prometheus/latest/storage/}},
note = {Accessed: October 28, 2026}
}
@misc{NodeExporterA7,
author = {{Prometheus Authors}},
title = {Monitoring Linux Host Metrics with the Node Exporter},
year = {2026},
howpublished = {\url{https://prometheus.io/docs/guides/node-exporter/}},
note = {Accessed: October 28, 2026}
}
@misc{BlackboxExporterA7,
author = {{Prometheus Authors}},
title = {Blackbox Exporter: Multi-target HTTPS Probing},
year = {2026},
howpublished = {\url{https://github.com/prometheus/blackbox_exporter}},
note = {Accessed: October 28, 2026}
}
@misc{GrafanaAlertFilesA7,
author = {{Grafana Labs}},
title = {Provision Grafana Alerting Resources from Files},
year = {2026},
howpublished = {\url{https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/}},
note = {Accessed: October 28, 2026}
}
@@ -0,0 +1,597 @@
\chapter{Introduction to SRE: Monitoring and Reliability}
\ChapterLabel{SREMonitoringReliability}
\index{SRE}\index{Prometheus}\index{Grafana}\index{Node Exporter}\index{Blackbox Exporter}
\begin{devopsNote}[Assignment 7 final draft]
This chapter addresses instructor manual version 1.42, Chapter 5, using the existing
MyFileAgent Gitea/Jenkins Droplet. Evidence is dated October 24--28, 2026.
Operational PR 14 and documentation PR 15 were reviewed and merged; Gitea Actions
run 16 successfully compiled and published the Assignment 7 manual.
\end{devopsNote}
\section{Deployment and Reproducibility}
\subsection{Scope, Ownership and Baseline}
\phantomsection\label{AcronymRef:SRE}\label{GlossaryRef:sre}
Site reliability engineering (SRE) combines measurable objectives, monitoring and
operating procedures. Four separate project-published containers were added:
Prometheus, Grafana OSS, Node Exporter and Blackbox Exporter. Gitea, Jenkins, Caddy,
the repository and the Droplet were reused. No Kubernetes, cAdvisor, application
metrics plugin, separate Alertmanager or new workload was introduced.
Gowri Das Lovely coordinated the approved work; Codex assisted with implementation,
measurement and source authoring on the Droplet. Nicholas Kogut independently approved
and merged \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/14}{PR 14}.
Branch \texttt{assignment7/monitoring} had head
\path{6605394d7a3e4183bfc8e94e2b08f1d324a73b8e}; its reviewed merge is
\path{b42689f02f30ad895101a2c5f367e54e3603bc5d}.
Issues 12 and 13 are owned follow-ups. A separate initial Assignment 7 planning issue
was not captured; later issues are not described as a pre-deployment issue.
Host \texttt{ssw590-group7-droplet}, IPv4 \texttt{142.93.193.110}, has one vCPU and
nominal 1 GB RAM/25 GB storage. Pre-monitoring main build 3 passed October 24 in
19.365 seconds on starting commit \path{131d605c5edb5b5080e4d54861c3c7bf7c360c9c}.
Available memory ranged from 86.3 to 170.2 MiB during that build; host CPU reached
100\% in one sample. These are whole-host observations, not Jenkins-only consumption.
A dated October 28 cross-check recorded Ubuntu 24.04.4 LTS, \texttt{x86\_64}, Docker
29.8.1 and Compose v5.5.1; total RAM was 1,008,177,152 bytes and swap 1,073,737,728
bytes. Root filesystem size was 24,883,167,232 bytes. These later values are not
relabeled as an October 24 baseline. See
\path{evidence/assignment7/documentation-host-comparison-2026-10-28.json}.
No new paid host/upgrade was purchased; existing hosting and domain remain team-owned.
A current billing amount was not collected. Monitoring success does not resolve the
earlier access-policy exceptions automatically.
\subsection{Architecture, Images and Retention}
% Source-only architecture figure; no compilation performed.
\begin{figure}[htbp]
\centering
\small
\begin{tabular}{c}
\fbox{\parbox{0.88\linewidth}{\centering External browser clients\\HTTPS 443; Caddy-managed certificates}}\\[0.6em]
$\downarrow$\\[0.6em]
\fbox{\parbox{0.88\linewidth}{\centering Shared DigitalOcean Droplet: Caddy reverse proxy\\
\texttt{myfileagent.tech} $\rightarrow$ Gitea\\
\texttt{ci.myfileagent.tech} $\rightarrow$ Jenkins\\
\texttt{metrics.myfileagent.tech} $\rightarrow$ authenticated Grafana}}\\[0.6em]
$\downarrow$ private Docker networking\\[0.6em]
\fbox{\parbox{0.88\linewidth}{\centering Grafana $\rightarrow$ Prometheus:9090\\
Prometheus $\rightarrow$ Node Exporter:9100 and Blackbox Exporter:9115\\
Prometheus also scrapes itself and Blackbox Exporter's own metrics.\\
Blackbox $\rightarrow$ Gitea/Jenkins HTTPS login URLs; TLS validation enabled.}}\\[0.6em]
\fbox{\parbox{0.88\linewidth}{\centering Node Exporter $\rightarrow$ read-only host root/proc/sys; host PID namespace\\
Prometheus $\rightarrow$ persistent \texttt{prometheus\_data} volume\\
Grafana $\rightarrow$ persistent \texttt{grafana\_data} volume\\
Grafana alerting $\rightarrow$ team Discord webhook over HTTPS; secret outside Git}}\\
\end{tabular}
\caption{Deployed monitoring architecture. Only Grafana joins both the monitoring
and existing private proxy networks. Raw monitoring ports are not published.
A total Droplet failure can also stop local monitoring and notifications.}
\label{Figure:SREArchitecture}
\end{figure}
\begin{table}[htbp]\centering\small
\begin{tabularx}{\linewidth}{L{2.5cm}YL{2.2cm}}
\toprule Service & Published image & Release\\\midrule
Prometheus & \texttt{prom/prometheus} & v3.15.1\\
Grafana OSS & \texttt{grafana/grafana} & 13.2.4\\
Node Exporter & \texttt{quay.io/prometheus/node-exporter} & v1.12.1\\
Blackbox Exporter & \texttt{quay.io/prometheus/blackbox-exporter} & v0.29.1\\
\bottomrule\end{tabularx}
\caption{Recorded Linux/amd64 monitoring images. Compose fixes tags rather than claiming all images are digest-pinned.}
\end{table}
Full pulled digests are preserved in
\path{evidence/assignment7/monitoring-image-digests-2026-10-24.json}.
Prometheus has a 160 MiB memory/swap cap and \texttt{GOMEMLIMIT=120MiB}; exporters have
32 MiB caps. Grafana's memory/swap limit was removed at the team's request after
bounded startup failed readiness. CPU quotas remain. This observed shared-host lab
operation is not a sizing guarantee. Run Jenkins/manual builds one at a time; two
configured executors do not prove safe concurrency. Per-job nonconcurrency does not
prevent overlap between different jobs.
\phantomsection\label{AcronymRef:TSDB}
Prometheus time-series database (TSDB) retention is seven days and 512 MB of blocks.
Write-ahead-log, head and compaction require additional room: 512 MB is not a total
volume quota. Save evidence before history expires\cite{PrometheusStorageA7}.
\subsection{Deployment, Persistence and Recovery Instructions}
The reviewed \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring}{monitoring source}
is deployed from \path{/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring}.
Only Grafana joins both \texttt{myfileagent-gitea\_gitea-private} and
\texttt{myfileagent-monitoring\_monitoring}. Node Exporter reads host root/proc/sys
through a read-only root mount and uses the host PID namespace. This grants sensitive
host visibility, but no privileged mode or Docker socket. Only CPU, memory and
filesystem collectors are enabled. No monitoring host ports are published.
The following abridged Compose excerpt shows the persistent/private boundary;
the reviewed source contains all services, limits and the separate secret override.
\begin{lstlisting}
services:
prometheus:
image: prom/prometheus:v3.15.1
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
networks: [monitoring]
grafana:
image: grafana/grafana:13.2.4
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning:ro
networks: [monitoring, proxy]
networks:
monitoring:
proxy:
external: true
name: myfileagent-gitea_gitea-private
volumes:
prometheus_data:
grafana_data:
\end{lstlisting}
No \texttt{ports:} mapping is present for these monitoring services.
Review actual networks, identities and paths before deployment. The override uses
supplemental group 1000 and this Droplet's restricted secret paths. An authorized
operator supplies the initial Grafana password and private Discord routing file
outside Git; the committed routing placeholder contains only \texttt{apiVersion: 1}.
It cannot recreate the receiver secret. Never reset a changed login with the bootstrap
file. See the team-specified \texttt{bitwarden-grafana} hint in \ChapterRef{Passwords}.
From the reviewed monitoring directory, after checking prerequisites:
\begin{lstlisting}
docker compose config --quiet
docker compose pull
docker compose up -d node-exporter blackbox-exporter prometheus
docker compose exec -T prometheus promtool check config /etc/prometheus/prometheus.yml
docker compose up -d grafana
docker compose ps
\end{lstlisting}
Compose and promtool checks passed; Blackbox loaded its module and successfully
probed services. Preserve all existing Caddy routes when adding the Grafana route;
validate Caddy before reload. The example fragment is not a whole Caddyfile replacement.
Rollback only monitoring with \texttt{docker compose stop} from its directory; resume
with \texttt{docker compose start}. Never use \texttt{down -v}, global pruning or
stop the existing Gitea/Jenkins project as monitoring rollback.
Separate named volumes preserve Prometheus history and Grafana state. Before upgrades,
plan a consistent stopped Grafana volume/SQLite backup, preserve ownership and store
private routing secrets separately. Use a documented consistent Prometheus snapshot
or planned stopped backup, not an assumed-consistent live recursive copy. Restore
into isolation and verify before replacing live data. Monitoring backup/restore has
not been exercised; the later restart evidence proves persistence only.
\section{Metrics and HTTPS Probes}
\subsection{Collection and Metric Inventory}
Jobs \texttt{prometheus}, \texttt{node}, \texttt{blackbox} and \texttt{https} scrape
every 30 seconds. The first three collect Prometheus itself, host metrics and Blackbox's
own metrics. The separate multi-target job requests Blackbox \texttt{/probe}, retaining
the target URL as \texttt{instance}\cite{NodeExporterA7,BlackboxExporterA7}.
\begin{table}[htbp]\centering\footnotesize
\begin{tabularx}{\linewidth}{L{4.2cm}L{1.7cm}Y}
\toprule Metric & Type/unit & Labels, meaning and limits\\\midrule
\path{node_cpu_seconds_total} & Counter, seconds & CPU/mode/instance; cumulative host CPU time. Use rates, not raw counts, for utilization.\\
\texttt{node\_memory\_}\allowbreak\texttt{MemAvailable\_bytes} & Gauge, bytes & Instance/job; estimated host memory available without swapping, not just unused RAM.\\
\texttt{node\_filesystem\_}\allowbreak\texttt{size\_bytes}, \texttt{node\_filesystem\_}\allowbreak\texttt{avail\_bytes} & Gauge, bytes & Device/fstype/mountpoint/instance; select the same real root filesystem, excluding overlays and pseudo mounts.\\
\path{up} & Gauge, 0/1 & Job/instance; collection succeeded. Not application availability.\\
\path{probe_success} & Gauge, 0/1 & Job/URL instance; configured probe succeeded, not authenticated Git/build correctness.\\
\path{probe_duration_seconds} & Gauge, seconds & Job/URL instance; elapsed probe duration. A failed probe may finish quickly.\\
\bottomrule\end{tabularx}\caption{Required metric inventory and interpretation.}
\end{table}
\subsection{Host Cross-check and Actual Filesystem Labels}
The verified selector is \texttt{mountpoint="/", device="/dev/vda1", fstype="ext4"},
not an assumed \texttt{/host} label or overlay. October 28 \texttt{free -b} and exported
total RAM both gave 1,008,177,152 bytes. Available RAM was 217,042,944 bytes at the host
command versus a recently scraped 232,452,096 bytes. Observations were not simultaneous;
changing workloads prevent exact equality. Root size matched at 24,883,167,232 bytes;
available root bytes were 12,422,406,144 versus 12,422,414,336, an 8,192-byte difference
between nearby observations. CPU idle time from \texttt{/proc/stat} was 31,254,346 ticks
versus a recently scraped 312,523.19 seconds. The recorded host clock unit is 100 ticks per second. Compare using units and
timestamps; these are not raw quantities in identical units. No precise simultaneous
CPU-rate comparison is claimed. Raw values are in the dated host-comparison JSON.
Host metrics combine workloads and cannot be attributed solely to Jenkins.
\subsection{HTTPS Success Definition and Diagnosis}
Targets are \url{https://myfileagent.tech/user/login} and
\url{https://ci.myfileagent.tech/login}. The GET module follows redirects, requires
SSL, prefers IPv4 and validates hostname/certificate. Expected final status is 2xx;
there is no body-content assertion or authenticated user transaction.
\begin{lstlisting}
modules:
http_2xx:
prober: http
timeout: 10s
http:
method: GET
preferred_ip_protocol: ip4
follow_redirects: true
fail_if_not_ssl: true
tls_config:
insecure_skip_verify: false
\end{lstlisting}
All five targets and both service probes were healthy in the October 28 cross-check.
During the Jenkins outage, collection continued while its probe became zero:
\texttt{up=1} can coexist with \texttt{probe\_success=0}. Diagnose collection, exporter
logs, DNS, TLS and proxy/backend health before restarting anything. A same-Droplet
login-page probe does not establish external reachability from every network, working
Git operations or successful builds. Complete host failure can stop monitoring too.
\section{HTTPS and Access Control}
\subsection{Public Pages and Authentication}
Operating entry points are \href{https://myfileagent.tech/user/login}{Gitea login},
\href{https://ci.myfileagent.tech/login}{Jenkins login} and
\href{https://metrics.myfileagent.tech/login}{Grafana login}.
Grafana's root URL is \url{https://metrics.myfileagent.tech}; provisioning disables
anonymous access and signup. The team changed the bootstrap password privately.
Figure~\ref{Figure:GrafanaSignedOut} shows the supplied incognito login page. It
establishes the displayed page requires credentials, not that every direct dashboard
URL has independently been tested signed out.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.68\textheight,keepaspectratio]{hw7_images/team-grafana-incognito-login.png}
\caption{Team-supplied incognito Grafana login page. No password is included.}
\label{Figure:GrafanaSignedOut}\end{figure}
October 28 Jenkins configuration showed the private security realm,
\texttt{disableSignup=true}, Matrix authorization, and no explicit Anonymous or general
Authenticated Users grants. This is a configuration check, not a new private-window
access test. Earlier public-browser and SSH-source exception limitations remain
unresolved without independent instructor approval; working monitoring does not waive them.
\subsection{External Port Evidence and Limits}
\EvidenceID{A7-ACCESS-01}: the team ran PowerShell from its Windows workstation outside
the Droplet October 28, 14:20:37--14:21:35 EDT. IPv4 \texttt{142.93.193.110} accepted
TCP on 80/443. Ports 3000, 3001, 5050, 8080, 9090, 9100, 9115 and 50000 were not
reachable within the 2.5-second timeout. Earlier public 5050/8080 endpoints are closed;
current Jenkins 8080 remains private and loopback-bound. Failed connections do not
distinguish refusal from filtering. No raw monitoring port is intentionally published.
The transcript resolved IPv6 \texttt{2607:7700:0:28:0:2:8e5d:c16e}; all tested ports,
including 80/443, were unreachable. A Droplet check found no global IPv6 address while
kernel disable flags were zero. TLS-validating
probes and HTTPS health checks from the Droplet are separate evidence, not replacements
for a missing external command result. Sanitized findings are in
\path{evidence/assignment7/team-external-access-summary-2026-10-28.json}; the original
transcript remains private outside Git because it includes workstation metadata.
A complete independent scan of unintended public HTTPS metrics routes is not recorded.
\section{Dashboard and Continuous-Integration Correlation}
\subsection{Six Required Panels}
\phantomsection\label{GlossaryRef:dashboard}
The \href{https://metrics.myfileagent.tech/d/myfileagent-sre}{MyFileAgent -- SRE Monitoring}
dashboard has UID \texttt{myfileagent-sre}, folder SSW590, timezone
\texttt{America/New\_York}, and 30-second refresh. Its units and legends distinguish:
\begin{enumerate}
\item \textbf{Whole-host CPU (percent):}
\begin{lstlisting}
100 * (1 - avg by(instance) (rate(node_cpu_seconds_total{mode="idle"}[2m])))
\end{lstlisting}
This averages host CPU non-idle time over a two-minute rate window.
\item \textbf{Available host memory (bytes, displayed MiB):}
\begin{lstlisting}
node_memory_MemAvailable_bytes{job="node"}
\end{lstlisting}
\item \textbf{Root available space (percent):}
\begin{lstlisting}
100 * node_filesystem_avail_bytes{mountpoint="/",device="/dev/vda1",fstype="ext4"}
/ node_filesystem_size_bytes{mountpoint="/",device="/dev/vda1",fstype="ext4"}
\end{lstlisting}
\item \textbf{Gitea HTTPS availability (0/1):} \texttt{probe\_success} filtered to its URL.
\item \textbf{Jenkins HTTPS availability (0/1):} the same metric filtered to its URL.
\item \textbf{HTTPS duration (seconds):} \texttt{probe\_duration\_seconds\{job="https"\}}
with separate service lines. A quick failed probe is not good latency.
\end{enumerate}
Scrape health is checked separately with \texttt{up}, not substituted for availability.
The original screenshots below were chosen by the team; their rolling windows were
captured at different times and are not a single fixed comparison dataset.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{hw7_images/team-dashboard-cpu-memory.png}
\caption{Team-selected CPU/memory evidence with build markers on both panels.}
\label{Figure:SRECPU}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{hw7_images/team-dashboard-root-gitea.png}
\caption{Team-selected root-space and Gitea availability panels.}
\label{Figure:SRERootGitea}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.70\textheight,keepaspectratio]{hw7_images/team-dashboard-jenkins-duration.png}
\caption{Team-selected Jenkins availability and two-service HTTPS duration panels.}
\label{Figure:SREJenkinsDuration}\end{figure}
\subsection{Normal Build 4: Before, During and After}
\EvidenceID{A7-CI-01}: \href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/4/}{main build 4}
passed October 24, 16:34:13.162--16:34:45.699 EDT, duration 32.537 seconds, on commit
\path{131d605c5edb5b5080e4d54861c3c7bf7c360c9c}. It ran on the Jenkins controller
executor on this Droplet, passed syntax and two tests, and notified Gitea. Separate
start/end annotations were saved on each of the six panels with build, commit,
timestamps and execution location. They are panel-specific, not automatically global.
The fixed comparison window is
\href{https://metrics.myfileagent.tech/d/myfileagent-sre?from=1792873933162\&to=1792874145699}{16:32:13.162--16:35:45.699 EDT}.
Host CPU ranged approximately 24.57--37.49\% before, 36.67--38.99\% during, and
55.51--64.56\% after. Available memory during the run ranged from 181,882,880 to
222,879,744 bytes. Root available space stayed near 50.8\%; both service probes stayed
one. These are shared-host correlations, not per-Jenkins attribution. A two-minute
CPU rate smooths/delays a short build's peak. Five-second query steps over 30-second
scrapes repeat evaluations; they do not create five-second observations. No synthetic
load was added to manufacture a spike. Raw series and test evidence are versioned.
\section{SLI, SLO and Error Budget}
\subsection{Definitions and Hypothetical Example}
\phantomsection\label{AcronymRef:SLI}\label{GlossaryRef:sli}\index{SLI}
A service-level indicator (SLI) is the measured fraction of specified HTTPS probes
that succeed; report each service separately and include expected/received coverage.
\phantomsection\label{AcronymRef:SLO}\label{GlossaryRef:slo}\index{SLO}
Our service-level objective (SLO) is at least 99\% successful scheduled probes over
24 hours per service, an internal laboratory target.
\phantomsection\label{AcronymRef:SLA}\index{SLA}
A service-level agreement (SLA) is a customer agreement that may define consequences
for a miss; this exercise creates no customer SLA.
The instructor's hypothetical figures are not measured results. At 30-second intervals,
a complete day has 2,880 probes. Gitea's 2,880/2,880 is 100\%; Jenkins's 2,850/2,880
is approximately 98.96\%, below 99\%.
\phantomsection\label{GlossaryRef:errorbudget}\index{error budget}
The theoretical error budget is $(1-0.99)\times2880=28.8$ failed samples, equivalent
to $28.8\times30/60=14.4$ minutes under uniform sampling. At most 28 whole failures
meet the target; 30 exceed the theoretical budget by 1.2 samples, about 0.6 minutes.
These equivalents are not exact continuous downtime measurements.
\subsection{Baseline and Actual Exercise Window}
\EvidenceID{A7-SLO-BASELINE-01}: the healthy October 24 baseline was
16:40:50--16:50:50 EDT, 20:40:50--20:50:50 UTC, evaluation epoch \texttt{1792875050}.
Both services had 20 received samples, all successful. The actual controlled-exercise
window was \textbf{17:23:00--17:33:00 EDT} on October 24, 21:23:00--21:33:00 UTC,
evaluation epoch \texttt{1792877580}. Approximately 20 samples are expected in ten minutes.
\begin{table}[htbp]\centering
\begin{tabular}{lrrrr}\toprule
Service & Received & Successes & Failures & Success fraction\\\midrule
Gitea & 20 & 20 & 0 & 100\%\\
Jenkins & 20 & 12 & 8 & 60\%\\\bottomrule
\end{tabular}
\caption{Measured exercise window: both services have nominal 20/20 coverage. This is not a 24-hour SLO measurement.}
\label{Table:SREIncidentSLI}\end{table}
Both services ended at \texttt{probe\_success=1}. Received failures were isolated to
Jenkins. Do not extrapolate the ten-minute percentage to claim a full-day miss/pass.
Full-day collection and actually meeting the SLO are optional in instructor version 1.42.
\subsection{Reproduce Queries and Interpret Missing Data}
Evaluate these instant queries at the recorded epoch while history remains retained:
\begin{lstlisting}
100 * avg_over_time(probe_success{job="https"}[10m])
count_over_time(probe_success{job="https"}[10m])
count_over_time(probe_success{job="https"}[10m])
- sum_over_time(probe_success{job="https"}[10m])
up{job=~"https|blackbox|prometheus"}
\end{lstlisting}
Range selectors are left-open/right-closed. Boundaries, jitter and restarts can change
counts. Averages use received observations; absent samples/series are unknown, not
success. Count binary probe failures separately from collection failures. Exact query
results and samples are retained in
\path{evidence/assignment7/jenkins-incident-sli-fixed-window.json} and
\path{evidence/assignment7/jenkins-incident-probe-samples.json}.
\section{Alerts and Operator Runbooks}
\subsection{Final Rules and Team-Controlled Delivery}
Grafana manages two file-provisioned rules in folder SSW590, group \texttt{team-sre},
evaluated every 30 seconds. Labels include owner \texttt{SSW590-Group7}, team
\texttt{group7}, scope \texttt{assignment7}, and severity. Both rules have a summary,
description and runbook link. No-data and execution errors enter Alerting, not health.
Provisioned definitions are changed in reviewed files followed by an authorized
reload/restart, not treated as durable UI-only changes\cite{GrafanaAlertFilesA7}.
\begin{table}[htbp]\centering\small
\begin{tabularx}{\linewidth}{L{3.6cm}YL{2cm}}
\toprule Rule & Condition and response & Pending/\newline severity\\\midrule
\texttt{sre-service-}\allowbreak\texttt{unavailable} & Expected probe below one, separate URL instances; inspect collection, TLS, proxy/backend and restore only the affected service. & 1 minute; critical\\
\path{sre-root-capacity} & Verified root available percentage below 15\%; inspect growth and agree on safe cleanup/retention, protecting persistent data. & 5 minutes; warning\\
\bottomrule\end{tabularx}\caption{Final actionable alert rules.}\end{table}
Missing expected service series are explicitly replaced with zero and grouped by URL:
\begin{lstlisting}
min by (instance) (
probe_success{job="https"}
or on(instance) label_replace(vector(0),"instance",
"https://myfileagent.tech/user/login","","")
or on(instance) label_replace(vector(0),"instance",
"https://ci.myfileagent.tech/login","","")
)
\end{lstlisting}
Capacity uses the same available/size selectors as the root panel.
The \href{https://metrics.myfileagent.tech/d/myfileagent-sre-runbooks}{live runbook dashboard}
contains service-response panel 1 and capacity-response panel 2; Markdown runbooks
are also versioned. Contact point \texttt{team-alerts} uses Discord integration
\texttt{team-discord}, with resolved delivery enabled. Policy groups by folder,
alert name and instance; group wait is 10 seconds, group interval one minute, and
repeat four hours. Collection, evaluation, pending and grouping delays accumulate.
The team created the destination and supplied the webhook privately. Gmail SMTP was
considered but was not the working route. No receiver secret is included in this manual.
\subsection{Contact Point and Safe Capacity Test}
The team received the contact-point test, but a test message alone does not prove a
rule. The October 24 capacity exercise temporarily raised the free-space threshold
from 15\% to 90\%, above roughly 50.8\% free, retaining the five-minute pending period.
No disk was filled. Figure~\ref{Figure:SRECapacityAlerts} provides the team-received firing and resolved notifications as evidence of the safe test and recovery after restoring the final 15\% threshold. Threshold change was recorded at 17:14:02.658 EDT; pending was
observed, then firing at 17:19:57.613. The team supplied the actual firing message.
We restored 15\% at 17:20:24.112 and verified final threshold/Normal state by
17:21:40.949. Resolved delivery was also confirmed. These are observation times,
not precise message-delivery seconds. The resolved screenshot includes an obsolete
setup description restored with older rule text; it is historical wording, not the
current route. The live description was corrected before the service outage test.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.40\textheight,keepaspectratio]{hw7_images/capacity-discord-firing-team.png}\par\medskip
\includegraphics[width=\linewidth,height=0.40\textheight,keepaspectratio]{hw7_images/capacity-discord-resolved-team.png}
\caption{Actual team-received capacity firing and resolved messages. Final rule: below 15\% for five minutes.}
\label{Figure:SRECapacityAlerts}\end{figure}
\subsection{Diagnosis, Restoration and Escalation}
Acknowledge and record time; identify the URL instance; compare collection health,
probe result/duration and exporter logs. Check DNS, TLS and Caddy before assuming
backend failure. Inspect affected container state/logs, resource pressure and recent
changes. Never disable TLS validation to clear a warning. For the approved Jenkins
exercise, the known recovery command was:
\begin{lstlisting}
cd /home/codex/myfileagent-gitea
docker compose -f compose.yaml -f compose.jenkins.yaml start jenkins
\end{lstlisting}
Verify the service name before reuse. Confirm HTTPS, recovered probes, a passing
pipeline and Gitea status notification, then record resolved delivery. Escalate
unresolved faults to the other team member. For capacity, compare \texttt{df -B1 /},
inspect growth read-only, protect volumes/repositories/evidence and agree on cleanup.
Do not globally prune Docker or delete service data to manufacture recovery.
Repeating a controlled outage or threshold test requires an approved team window.
\section{Controlled Incident, Recovery and Persistence}
\subsection{Approved Jenkins-Only Exercise}
The team approved an approximately three-minute Jenkins stop. Prechecks found no
unfinished build and an empty queue. Codex executed the known commands on the team's
behalf; automatic recovery restarted only Jenkins after approximately three minutes.
Gitea and monitoring stayed running and volumes were preserved.
Figure~\ref{Figure:SREIncidentDashboard} is the original team dashboard capture.
Figure~\ref{Figure:SREIncidentTimeline} adds source-authored event annotations from
saved samples; those markers are not claimed to have been saved in the Grafana UI.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.72\textheight,keepaspectratio]{hw7_images/team-incident-dashboard-full.png}
\caption{Team dashboard capture for October 24, approximately 17:23--17:33:59 EDT: Jenkins drops and recovers while Gitea remains one. The displayed range extends beyond the exact 17:23--17:33 SLI window.}
\label{Figure:SREIncidentDashboard}\end{figure}
\begin{figure}[htbp]\centering
\begin{tikzpicture}[x=1.05cm,y=0.9cm,>=Stealth]
\draw[->] (0,0) -- (10.5,0) node[right]{\scriptsize EDT};
\foreach \x/\lab in {0/17:23,2/17:25,4/17:27,6/17:29,8/17:31,10/17:33}{\draw (\x,0.08)--(\x,-0.08) node[below]{\scriptsize\lab};}
\node[left] at (0,3.2){\scriptsize Gitea};
\node[left] at (0,1.4){\scriptsize Jenkins};
\draw[gray,dotted] (0,1)--(10,1);\draw[gray,dotted] (0,1.8)--(10,1.8);
\node[left] at (0,1){\tiny 0};\node[left] at (0,1.8){\tiny 1};
\draw[devopsGreen,thick] (0.41482,3.6)--(9.91482,3.6);
\draw[devopsBlue,thick] (0.18372,1.80) -- (0.68372,1.80) -- (0.68372,1.80) -- (1.18372,1.80) -- (1.18372,1.80) -- (1.68372,1.80) -- (1.68372,1.80) -- (2.18372,1.80) -- (2.18372,1.80) -- (2.68372,1.80) -- (2.68372,1.80) -- (3.18372,1.80) -- (3.18372,1.80) -- (3.68372,1.80) -- (3.68372,1.80) -- (4.18372,1.80) -- (4.18372,1.00) -- (4.68372,1.00) -- (4.68372,1.00) -- (5.18372,1.00) -- (5.18372,1.00) -- (5.68372,1.00) -- (5.68372,1.00) -- (6.18372,1.00) -- (6.18372,1.00) -- (6.68372,1.00) -- (6.68372,1.00) -- (7.18372,1.00) -- (7.18372,1.00) -- (7.68372,1.00) -- (7.68372,1.00) -- (8.18372,1.00) -- (8.18372,1.80) -- (8.68372,1.80) -- (8.68372,1.80) -- (9.18372,1.80) -- (9.18372,1.80) -- (9.68372,1.80) -- (9.68372,1.80);
\draw[dashed] (3.86662,0)--(3.86662,4.1) node[above,align=center]{\tiny Stop\\\tiny17:26:51.997};
\draw[dashed,devopsRed] (5.33333,0)--(5.33333,2.5) node[above,align=center]{\tiny Firing\\\tiny17:28:20};
\draw[dashed] (6.91812,0)--(6.91812,4.1) node[above,align=center]{\tiny Restart\\\tiny17:29:55.087};
\draw[dashed,devopsGreen] (7.81022,0)--(7.81022,2.5) node[above,align=center]{\tiny HTTPS ready\\\tiny17:30:48.613};
\end{tikzpicture}
\caption{Annotated timeline from saved binary probe samples, shown as sample-and-hold steps. First failed Jenkins sample: 17:27:11.023; first recovered sample: 17:31:11.023. Command/HTTP event markers are separate from probe transitions. This is a source-authored figure, not an altered Grafana screenshot.}
\label{Figure:SREIncidentTimeline}\end{figure}
\begin{table}[htbp]\centering\small
\begin{tabularx}{\linewidth}{L{5cm}L{3.1cm}Y}\toprule
Event & October 24 EDT & Evidence boundary\\\midrule
Stop requested & 17:26:45.883 & Automation event\\
Jenkins stopped & 17:26:51.997 & Stop completed\\
First failed sample & 17:27:11.023 & Actual probe timestamp\\
Failure first observed & 17:27:12.740 & Polling timestamp\\
Rule firing transition & 17:28:20 & Grafana UI\\
Firing first observed & 17:28:34.086 & Polling timestamp\\
Discord firing received & displayed 17:28 & No exact second\\
Acknowledgment & Confirmed in chat & Clock time unavailable\\
Restart requested & 17:29:55.087 & Automatic recovery\\
Start command finished & 17:29:57.750 & Exit zero, not readiness\\
HTTPS ready observed & 17:30:48.613 & HTTP 200\\
First successful sample & 17:31:11.023 & Actual probe timestamp\\
Rule Normal transition & 17:31:20 & Grafana UI\\
Discord resolved received & Confirmed & No visible message time\\
\bottomrule\end{tabularx}\caption{Event versus observation times, America/New\_York, UTC--04:00.}
\label{Table:SRETimeline}\end{table}
Stop-to-first-failed-sample was 19.026 seconds; stop-to-rule-firing was 88.003 seconds.
First failed sample to firing was 68.977 seconds. Polling observed firing 14.086 seconds
after the UI transition. The scrape/evaluation intervals and one-minute pending period
explain quantization; notification grouping adds delay. Exact delivery/acknowledgment
latency cannot be calculated without precise receipt/acknowledgment times.
Stopped-to-restart-requested was 183.090 seconds, restart-to-observed HTTPS readiness
53.526 seconds, and stopped-to-observed readiness 236.617 seconds (about 3 minutes
57 seconds). Startup extended the three-minute injection. First failed to first
recovered sample spans 240 seconds; this is a sampled interval, not exact downtime.
\begin{figure}[p]\centering
\includegraphics[width=\linewidth,height=0.40\textheight,keepaspectratio]{hw7_images/jenkins-discord-firing-team.png}\par\medskip
\includegraphics[width=\linewidth,height=0.40\textheight,keepaspectratio]{hw7_images/jenkins-discord-resolved-team.png}
\caption{Service-rule firing and resolved messages received in the team Discord channel.}
\label{Figure:SREServiceAlerts}\end{figure}
\subsection{Recovery Validation and Blameless Review}
Both probes ended at one and Discord delivery/resolution was confirmed.
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/5/}{Recovery-validation build 5}
ran \textbf{October 25}, after fresh sign-in, passing syntax and two tests in 36.837
seconds on commit \path{131d605c5edb5b5080e4d54861c3c7bf7c360c9c}. Its log records
Gitea SUCCESS notification. It is following-day validation, not an immediate recovery
build. The manual was subsequently compiled successfully by Gitea Actions run 16 on October 28; that later publication is distinct from the immediate outage recovery window.
This approved fault injection is not an unplanned application defect or an individual's
error. Impact was eight failed Jenkins probes; Gitea had no failures in the fixed
window. Isolation, the idle-build precheck, known recovery command, automatic restart,
per-service instances and Discord delivery worked. Gaps were exact receipt and
acknowledgment times and prompt pipeline-validation access.
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/11}{Earlier PR 11}
records a code-test failure/repair, distinct from unavailable-service monitoring.
The full blameless review is retained in the reviewed operational source.
\textbf{P1 issue 12}, assigned to Gowri (\texttt{glovely}), proposes an independent
external HTTPS checker. A complete shared-host/network failure can stop local detection
and notifications. \textbf{P2 issue 13}, also assigned to Gowri, tracks complete incident
timestamps and prompt recovery validation. Both remain open improvements, not completed
deployments or authorization for a new outage or paid service.
\subsection{Separate Prometheus and Grafana Persistence Test}
\EvidenceID{A7-PERSIST-01}: on October 28 both services were restarted separately
without deleting volumes. Prometheus restart was requested 13:31:34.517 EDT and
readiness observed 13:31:40.103 (5.585 seconds). Grafana restart was requested
13:32:15.106 and readiness observed 13:32:55.110 (40.004 seconds). Old October 24
probe values were unchanged. Data-source, two alert-rule and 18 annotation records
matched before/after hashes. Grafana's resource storage retained both original
six-panel monitoring and two-panel runbook dashboards. Its empty legacy dashboard
table was not mistaken for lost dashboards. All targets/both probes were healthy
afterward. Gitea/Jenkins/Grafana health/login checks from the Droplet returned 200;
these are not the skipped external HTTPS capture.
One approximately 60-second interval between Jenkins samples was recorded: 19 received
versus approximately 20 expected; Gitea had 20. The missed scheduled collection is
unknown, not proof of service failure or success. Grafana restart pauses evaluation
and notifications even while Prometheus collects. This demonstrates persistence,
not backup/restore or uninterrupted observation.
\section{Manual Integration, Traceability and Remaining Work}
\subsection{Reviewed Operational Source and CI}
All links below identify immutable merge commit
\path{b42689f02f30ad895101a2c5f367e54e3603bc5d}, rather than a moving branch.
\begin{itemize}
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/compose.yaml}{Compose configuration} and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/README.md}{deployment/recovery guide}.
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/prometheus/prometheus.yml}{Prometheus targets} and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/blackbox/blackbox.yml}{Blackbox probe module}.
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/grafana/dashboards/team-sre.json}{Dashboard definition} and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/grafana/provisioning/alerting/team-sre-rules.json}{final alert rules}.
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/runbooks}{operator runbooks},
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/incidents/2026-10-24-jenkins-outage.md}{blameless review} and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/b42689f02f30ad895101a2c5f367e54e3603bc5d/monitoring/evidence}{sanitized evidence}.
\item \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/14}{Reviewed PR 14},
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/12}{P1 issue 12} and
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/13}{P2 issue 13}.
\end{itemize}
Both Jenkins branch and required PR checks passed on feature head \texttt{6605394d7a}.
Nicholas (\texttt{nkogut}) approved at 14:03 EDT and merged at 14:04 EDT October 28.
\href{https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/6/}{Post-merge main build 6}
passed syntax and two tests in 36.824 seconds on the merge commit and notified Gitea.
These existing Python regressions do not validate every monitoring setting. Separate
Compose/promtool, JSON, dashboard-copy and private secret-value checks support the
operational change; no gate was bypassed.
\subsection{Document Controls and Publication Boundary}
This is cumulative Assignment 7 manual version 1.9.2, with SRE after Jenkins. Hosts
includes the Grafana page and private monitoring services. Passwords contains the
team-specified \texttt{bitwarden-grafana} entry and non-revealing Discord hints. No
vault login, webhook URL, password or private key is included. Introduction, history,
glossary/acronyms, references and AI attribution are updated. Raw original screenshots
remain unchanged; the annotated incident figure is generated from recorded samples.
The documentation was reviewed and merged through
\href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/15}{PR 15}.
Gitea Actions run 16 successfully compiled the manual from merge commit
\path{acdd4c0a4cb285641094f7f78baf2dea6f75dff5}. Version 1.9.2 incorporates the team's
final editorial and table-layout corrections and is compiled through the same Gitea
Actions workflow. The title page, Build Identity page, footer and artifact label use
\texttt{1.9.2}; generated metadata identifies the exact source revision and run.
Retain the downloaded PDF and build manifest, verify their checksum identity, and
inspect affected pages before submission. The build identity distinguishes this
revision from the earlier version 1.9.0 publication.
Remaining operational boundaries are incomplete signed-out direct-URL testing,
earlier unresolved access exceptions, no initial planning issue, no tested monitoring
backup/restore and next-day recovery-build timing. The later successful manual build
is recorded separately from that incident's immediate recovery checks. Full-day SLO
measurement is optional; issues 12/13 remain open by design.
@@ -0,0 +1,118 @@
\chapter{Secure Delivery and Rollback}
\ChapterLabel{SecureDeliveryRollback}
\section{Scope and architecture}
The stateless Startup Pricing Service uses Flask and Gunicorn. A trusted Jenkins agent runs tests, scans, image publication and Ansible; the controller schedules work and records human approval. Ansible connects by pinned SSH to the Droplet and manages separate staging and production Compose projects. Caddy terminates public HTTPS and forwards private container traffic to port 8000. The Gitea registry stores immutable images. Prometheus probes HTTPS through Blackbox Exporter; Grafana displays metrics. All services share one Droplet, so neither availability nor tenant isolation is equivalent to a multi-host deployment.
\begin{figure}[p]
\centering
\begin{tikzpicture}[x=1cm,y=1cm, every node/.style={draw,rounded corners,align=center,font=\scriptsize,inner sep=3pt}, arrow/.style={-{Stealth},thick}]
\node (client) at (0,0) {Team browser\\public HTTPS};
\node[draw,dashed,minimum width=13.6cm,minimum height=9.4cm,label={[draw=none]above:Existing single DigitalOcean Droplet}] (host) at (7,-5.6) {};
\node (proxy) at (6.9,-1.7) {Caddy container\\TLS / reverse proxy};
\node (stage) at (10.8,-3.1) {staging.myfileagent.tech\\pricing-staging :8000};
\node (prod) at (10.8,-4.4) {app.myfileagent.tech\\pricing-production :8000};
\node (git) at (2.2,-3.4) {Gitea + SQLite\\OCI registry};
\node (controller) at (5.7,-4.1) {Jenkins controller};
\node (agent) at (5.7,-5.6) {Trusted agent container\\Ansible process};
\node (docker) at (8.4,-6.5) {Host SSH account\\Docker Engine + Compose};
\node (mon) at (2.5,-7.5) {Prometheus + Grafana\\Blackbox + Node Exporter};
\node (dirs) at (10.5,-8.0) {Host deployment directories\\pricing-staging / pricing-production};
\draw[arrow] (client) -- (proxy);
\draw[arrow] (proxy) -- (stage); \draw[arrow] (proxy) -- (prod);
\draw[arrow] (controller) -- (agent); \draw[arrow] (agent) -- (docker);
\draw[arrow] (docker) -- (stage); \draw[arrow] (docker) -- (prod); \draw[arrow] (docker) -- (dirs);
\draw[arrow] (agent) -- (git); \draw[arrow] (mon.west) -- ++(-0.8,0) |- (proxy.west);
\end{tikzpicture}
\caption{Actual single-host delivery: external HTTPS, private container paths, and Ansible SSH to the host. Application containers are stateless.}
\label{Fig:A8Architecture}
\end{figure}
\begin{table}[p]
\centering\footnotesize
\begin{tabularx}{\linewidth}{L{3.4cm}Y}
\toprule Component & Actual persistent volume or host bind mount \\ \midrule
Gitea / SQLite & \path{myfileagent-gitea_gitea-data} and \path{myfileagent-gitea_gitea-config} \\
Jenkins controller & \path{myfileagent-gitea_jenkins-home} \\
Caddy & \path{myfileagent-gitea_caddy-data}, \path{myfileagent-gitea_caddy-config}; \path{/home/codex/myfileagent-gitea/Caddyfile} \\
Prometheus & \path{myfileagent-monitoring_prometheus_data}; \path{/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/prometheus/prometheus.yml} \\
Grafana & \path{myfileagent-monitoring_grafana_data}; \path{/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/grafana/provisioning} \\
Blackbox / Node & \path{/home/codex/myfileagent-gitea/assignment7-monitoring/monitoring/blackbox/blackbox.yml}; host \path{/} mounted read-only for Node \\
Agent & Docker socket \path{/var/run/docker.sock}; separate agent workspace volumes; no Ansible service container \\
Applications & \path{/opt/startup/pricing-staging}, \path{/opt/startup/pricing-production}; no persistent application volume \\ \bottomrule
\end{tabularx}
\caption{Observed durable volumes and host mounts in the single-Droplet architecture. Exporters have no data volumes.}
\end{table}
The diagram is logical: the probe reaches the application through Caddy, and Ansible changes the host over SSH, not inside an application container. The agent has the Docker socket and the dedicated \texttt{a8deploy} account has passwordless root sudo; both confer effective host-administrator rights. Only authorized operators and reviewed code may use those privileges. Separate registry write and read credentials are held in Jenkins; target root Docker authentication is stored without encryption and must be restricted and removed after assessment. No credentials belong in source, screenshots or reports.
Persistent volumes retained are \path{myfileagent-gitea_gitea-data}, \path{myfileagent-gitea_gitea-config}, \path{myfileagent-gitea_jenkins-home}, \path{myfileagent-gitea_caddy-data}, \path{myfileagent-gitea_caddy-config}, \path{myfileagent-monitoring_prometheus_data}, and \path{myfileagent-monitoring_grafana_data}. Gitea uses SQLite within its existing data. The Caddyfile and monitoring configuration are host bind mounts under \path{/home/codex/myfileagent-gitea/}; Node Exporter reads the host root and Blackbox has no data volume. Ansible's application directories are \path{/opt/startup/pricing-staging} and \path{/opt/startup/pricing-production}; the pricing containers have no persistent application volume. The application ports are private. Shared proxy-network membership permits more lateral access than dedicated isolation.
\section{Build inputs and security}
On the trusted agent the recorded versions were Python 3.13.5, Git 2.47.3, Docker CLI 26.1.5, Ansible core 2.22.0 and community.docker 5.0.4; the target reported Docker 29.8.1 and Compose 5.5.1 on x86\_64. The release Dockerfile pins \path{python:3.13-alpine@sha256:7984cf56ceaddebe4fefeb75d64000b9f45d8b77b11a09b24524da6cdc3af0c8}; exact dependencies, including Flask 3.1.3 and Gunicorn 23.0.0, are in the linked requirements file. The image runs as UID 10001; Compose drops capabilities and uses a read-only root filesystem with writable temporary storage.
The release gates run unit tests, \texttt{pip-audit}, repository secret scanning and Trivy HIGH/CRITICAL image scanning. A finding, scanner error, or unavailable database blocks release unless an instructor accepts a documented, time-limited exception; false positives and unfixed findings require explicit triage, not silent suppression. Scan results are time-specific and do not prove absence of vulnerabilities. A disposable private-key fixture blocked \href{https://ci.myfileagent.tech/job/assignment8-secret-gate-demo/4/console}{secret gate \#4}; the fixture was removed. A controlled test failure blocked \href{https://ci.myfileagent.tech/job/assignment8-test-gate-demo/1/console}{test gate \#1}. The corrected audit covers all nine locked packages; the earlier validation \#9 summary has an evidence-contamination limitation and is not used as release evidence.
\section{Release traceability and evidence}
Times below are UTC on 7 November 2026. The abbreviated identifiers identify the linked full commits; the full digests are recorded in the Jenkins artifacts and handoff. The same published digest was used for each release's staging and production deployment. Both staging reruns reported \texttt{changed=0}. Human approver Gowri Das Lovely approved each restricted Jenkins input; the agent did not approve it.
\begin{longtable}{L{1.4cm}L{3.8cm}L{3.4cm}L{5.4cm}}
\toprule Release & Source and config commit & Registry digest (SHA-256 prefix) & Verified pipeline and production approval \\ \midrule\endhead
v1 & \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/commit/0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2}{\texttt{0cb5a34}} & \texttt{715a3c80d5fff431} & \href{https://ci.myfileagent.tech/job/assignment8-release/3/}{Jenkins release \#3}; approval 22:44:27; finished 22:46:08; health OK, v1, quantity 3 total 30. \\
v2 & \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/commit/ee128d18bddd1763b916b40f05829f2e769f0654}{\texttt{ee128d1}} & \texttt{2ab86894ada4c12b} & \href{https://ci.myfileagent.tech/job/assignment8-release/4/}{Jenkins release \#4}; approval 23:03:50; finished 23:05:41; health OK, v2, quantity 3 total 36. \\ \bottomrule
\end{longtable}
Full immutable registry references (the source and configuration commits are linked above):\par
\path{myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2}\par
\path{myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9}\par
Both release runs passed their tests, dependency and secret gates, syntax and image checks, and included authenticated publication and pull. Trivy 0.69.1 reported zero HIGH/CRITICAL findings in both release image reports; the dependency reports list all nine locked packages with zero known findings, and secret summaries report exit status 0. The reports record scan timestamps, but the exact vulnerability database version was not retained and cannot be reconstructed. Findings may change. \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/17}{PR \#17} covered its reviewed head; later fixes were independently reviewed and merged in \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/18}{PR \#18}. The health-timeout mitigation and v2 source were separately reviewed in \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/19}{PR \#19} and \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/20}{PR \#20}. Earlier release \#2 reached staging but failed the unchanged rerun after health-check timeouts; it did not reach production. The later successes do not establish a guaranteed fix under every load.
\subsection{Selected recorded results}
The following lines summarize results recorded in the archived Jenkins and Ansible output. Release times are UTC on 7 November 2026.
\begin{verbatim}
Release #3: Ran 3 tests; dependency audit: no known vulnerabilities
Staging v1 repeat: ok=9 changed=0 unreachable=0 failed=0
Release #4: Ran 3 tests; dependency audit: no known vulnerabilities
Staging v2 repeat: ok=9 changed=0 unreachable=0 failed=0
Staging mismatch: container pricing-staging-app-1 is unhealthy
Recovery: ok=9 changed=2 unreachable=0 failed=0
\end{verbatim}
The staging recovery excerpt is from 8 November. Full task output and the immutable release records are linked below; the recovery's two changes reflect restoration, not an unchanged rerun.
\subsection{Direct evidence and source links}
A checked, redacted \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/branch/main/documentation/evidence/assignment8}{repository evidence bundle} preserves the selected reports, release records, recovery responses, checksums and excerpts. The bundle includes a separate timestamped current-state check; it is not substituted for historical data. The v1 and v2 runs retain redacted evidence: dependency reports (\href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/dependency-audit.json}{v1}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/dependency-audit.json}{v2}), image scans (\href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/image-scan.json}{v1}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/image-scan.json}{v2}), secret summaries (\href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/secret-scan-summary.json}{v1}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/secret-scan-summary.json}{v2}), and target pulls (\href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/target-pull.txt}{v1}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/target-pull.txt}{v2}). The unchanged staging reruns are linked for \href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/reports/staging-second-run.txt}{v1} and \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/reports/staging-second-run.txt}{v2}; each reported nine tasks OK, zero changes and zero failures.
Release records: \href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/releases/generated/v1-staging.yml}{v1 staging}, \href{https://ci.myfileagent.tech/job/assignment8-release/3/artifact/releases/generated/v1-production.yml}{v1 production}, \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/releases/generated/v2-staging.yml}{v2 staging} and \href{https://ci.myfileagent.tech/job/assignment8-release/4/artifact/releases/generated/v2-production.yml}{v2 production}. Each release's console contains the checked Ansible health, identity and price assertions. Approval events occurred at 22:44:27 and 23:03:50 UTC; the associated approval files were written at 22:44:31 and 23:03:54 respectively.
The reviewed \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2/secure-delivery/v1}{v1 source, tests, Dockerfile and lockfile} and \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/ee128d18bddd1763b916b40f05829f2e769f0654/secure-delivery/v1}{v2 source, tests, Dockerfile and lockfile} are distinct revisions of the same application. The \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/ee128d18bddd1763b916b40f05829f2e769f0654/secure-delivery/Jenkinsfile.release.draft}{reviewed release pipeline}, \href{https://myfileagent.tech/myfileagent/myfileagent-pipeline/src/commit/ee128d18bddd1763b916b40f05829f2e769f0654/secure-delivery/ansible}{inventory, playbook and template}, and \href{https://ci.myfileagent.tech/job/assignment8-agent-check/2/console}{agent version check} complete the implementation links. Despite its historical filename, the linked release pipeline was executed in releases \#3 and \#4.
\section{Recovery exercises and monitoring}
\href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/}{Rollback \#1} checked healthy production v2 and restored the matching reviewed v1 configuration and digest. Gowri approved at 23:12:50; Ansible began at 23:13:01 and verified v1 at 23:14:37. HTTP samples observed 502 from 23:13:49 through 23:13:55, a timeout at 23:13:57 and 200 at 23:14:01. Samples bound observations, not exact interruption duration. The archived \href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-identity.json}{identity}, \href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-health.json}{health}, \href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/after-price.json}{price} and \href{https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/availability-samples.txt}{samples} show v1, the full v1 commit and total 30.
In staging only, configuration commit \texttt{c0cdd915} bound Gunicorn to 8001 while its image health check remained on 8000. \href{https://ci.myfileagent.tech/job/assignment8-staging-failure/1/}{Failure run \#1} stopped after Compose reported unhealthy at 23:21 on 7 November. A session interruption delayed recovery overnight. \href{https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/}{Recovery run \#1} restored reviewed v2 configuration and digest starting 15:54:48 on 8 November; Ansible verified recovery at 15:56:45. Archived staging \href{https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/health.json}{health}, \href{https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/identity.json}{identity} and \href{https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/price.json}{price} confirmed v2/36. A separate current HTTPS observation at 16:29:04 UTC on 8 November showed production v1/30 and staging v2/36; it does not replace earlier release evidence. There was no continuous availability measurement for the whole staging interval.
On 8 November at 16:01:05, the production \url{https://app.myfileagent.tech/health} target was added to the existing HTTPS Blackbox job; Gitea, Jenkins and host metrics were retained. Prometheus accepted the configuration and reported all three HTTPS \texttt{probe\_success} values as 1 afterward. The provisioned Grafana dashboard displayed the production probe with latest value 1 when checked on 8 November. Since the production probe was added after the promotions and rollback, it cannot establish their historical availability or alert behavior. A 30-second scrape may miss a short interruption, and a status probe cannot validate price or source identity.
\subsection{Release and recovery screenshots}
The following images show the Jenkins records after the events. Captions identify the affected environment, release and event time in UTC; the images are not claimed to have been captured during the events. The archived logs and release records linked above contain the detailed results.
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/release-v1.jpg}
\caption{Staging and production, v1: Jenkins release \#3 succeeded on 7 November 2026; production verification completed at 22:46:08 UTC. The run retained approval, scan, digest and staging records.}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/release-v2.jpg}
\caption{Staging and production, v2: Jenkins release \#4 succeeded on 7 November 2026; production verification completed at 23:05:41 UTC. The recorded revision and release artifacts appear in the run.}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/rollback.jpg}
\caption{Production, rollback from v2 to v1: Jenkins rollback \#1 succeeded; Ansible verified the restored release at 23:14:37 UTC on 7 November 2026. Before/after responses and interruption samples are archived.}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/staging-failure.jpg}
\caption{Staging, v2 image with deliberate port-mismatch configuration: Jenkins failure \#1 stopped at approximately 23:21 UTC on 7 November 2026. The archived Ansible log records the unhealthy container.}\end{figure}
\begin{figure}[p]\centering
\includegraphics[width=\textwidth]{hw8_images/staging-recovery.jpg}
\caption{Staging, restored v2: Jenkins recovery \#1 succeeded; Ansible verified recovery at 15:56:45 UTC on 8 November 2026. The health, identity and price responses are archived.}\end{figure}
\FloatBarrier
\section{Operations runbooks}
\textbf{Release:} review the exact source and configuration, input locks, security reports, staging behavior and immutable digest. Run the release job on reviewed main; verify health, identity and price, then the unchanged Ansible rerun. An authorized human reviews and approves the restricted Jenkins input before production. Promote the same digest and verify again; record the approver, times and artifacts.
\textbf{Failed staging deployment:} stop promotion, preserve logs and release metadata, inspect the health failure, restore the last reviewed configuration and corresponding image record, run Ansible and verify health, identity and price. The playbook does not automatically roll back.
\textbf{Production rollback:} an authorized human decides and approves a rollback; check the current release, restore the reviewed earlier image \emph{and} matching configuration, run Ansible, verify health, source and price, and record start, recovery and sampled interruption. A real database migration, external payment, or incompatible stored state may make image-only rollback unsafe. Prefer an expand-and-contract migration compatible with both versions; this stateless exercise did not test a database rollback.
\textbf{Cleanup:} after grading and only when retention permits, remove application projects, their Caddy routes, test DNS and dedicated credentials; retain earlier services, their volumes and required evidence. Do not prune Docker or use \texttt{compose down -v}. The single Droplet has shared CPU, memory and failure domain; earlier health-check timeouts illustrate that capacity matters.
Source, tests, release records and automation are linked in Section 13.3. Jenkins retains the supporting run logs and artifacts.
Binary file not shown.

After

Width:  |  Height:  |  Size: 387 KiB

@@ -0,0 +1,18 @@
Verification UTC: 2026-10-09 18:40:19
Image=jenkins/jenkins@sha256:a660310e39ade10631f774bacd5219de767dfd08947ea5c32a739b5e5bb382c1 RestartPolicy=unless-stopped PortBindings={"8080/tcp":[{"HostIp":"127.0.0.1","HostPort":"8080"}]}
Volume=myfileagent-gitea_jenkins-home Destination=/var/jenkins_home
Python 3.13.5
HTTPS login: 200
Anonymous API: 403
HTTP/1.1 308 Permanent Redirect
Connection: close
Location: https://ci.myfileagent.tech/
Server: Caddy
Date: Fri, 09 Oct 2026 18:40:20 GMT
issuer=C = US, O = Let's Encrypt, CN = YE1
notBefore=Oct 9 17:05:21 2026 GMT
notAfter=Jan 7 17:05:20 2027 GMT
X509v3 Subject Alternative Name:
DNS:ci.myfileagent.tech
@@ -0,0 +1,5 @@
Team-supplied Windows PowerShell results, recorded October 9, 2026. Exact execution time not supplied.
Test-NetConnection 142.93.193.110 -Port 8080: TcpTestSucceeded False; ping TimedOut
Test-NetConnection 142.93.193.110 -Port 50000: TcpTestSucceeded False; ping TimedOut
Test-NetConnection ci.myfileagent.tech -Port 443: RemoteAddress 142.93.193.110; TcpTestSucceeded True
Private client details omitted. These results do not identify the blocking rule or verify IPv6.
@@ -0,0 +1,40 @@
{
"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": [
"myfileagent-python-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": true,
"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-09T19:03:48Z",
"updated_at": "2026-10-09T19:04:32Z"
}
@@ -0,0 +1,67 @@
[
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/builds/1/build.xml",
"sha256": "bd4269cfed12a0e6b0a0a6053c8257eca92470d78c7127e14dce02e831f10168",
"bytes": 19593
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/builds/2/build.xml",
"sha256": "00b049c4a5b62002139818b572744a5f58fda28a5a1ebc907bfcae4a5adcc69c",
"bytes": 19211
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/builds/3/build.xml",
"sha256": "8adecc92852e74dcc58d7fb38f6e47731c0be5e66a29b32b4975ab550a8d95c6",
"bytes": 19209
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/builds/4/build.xml",
"sha256": "14a9b5094aa597ca7ca51df4bc1b1ca786b5fb280ff497f54d4fc955d75604c8",
"bytes": 19210
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/config.xml",
"sha256": "95934bc851e86f80c7c6f2f24c5af9e2749afb71a37cfcdaf73377eab1aed14e",
"bytes": 3290
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/nextBuildNumber",
"sha256": "f0b5c2c2211c8d67ed15e75e656c7862d086e9245420892a7de62cd9ec582a06",
"bytes": 2
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/assignment6-python-ci.52n4g0/builds/1/build.xml",
"sha256": "730ac081d5bf3ea36b6327745039c02216ebae182ae8fb5e9b921dfb64a4e997",
"bytes": 18236
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/assignment6-python-ci.52n4g0/config.xml",
"sha256": "26ea701d344510efcb143d27184d6bded9a534480987189d01e0e54c171c83bc",
"bytes": 3001
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/assignment6-python-ci.52n4g0/nextBuildNumber",
"sha256": "53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3",
"bytes": 2
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/main/builds/1/build.xml",
"sha256": "d59c3f9f3ce011cca3203df132e12e4fd2fb50ca0718f5f4f3a802f1d8386494",
"bytes": 18346
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/main/config.xml",
"sha256": "b69f5315f6b00668a2c514f01175a532c01f3d22d80cda95673e0c6c478fa795",
"bytes": 4180
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/main/nextBuildNumber",
"sha256": "53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3",
"bytes": 2
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/config.xml",
"sha256": "f9696483fc29b4b70746f8f6f466eb63ad24f7722ae4529c6fed0775ba6732f9",
"bytes": 2609
}
]
@@ -0,0 +1,67 @@
[
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/builds/1/build.xml",
"sha256": "bd4269cfed12a0e6b0a0a6053c8257eca92470d78c7127e14dce02e831f10168",
"bytes": 19593
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/builds/2/build.xml",
"sha256": "00b049c4a5b62002139818b572744a5f58fda28a5a1ebc907bfcae4a5adcc69c",
"bytes": 19211
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/builds/3/build.xml",
"sha256": "8adecc92852e74dcc58d7fb38f6e47731c0be5e66a29b32b4975ab550a8d95c6",
"bytes": 19209
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/builds/4/build.xml",
"sha256": "14a9b5094aa597ca7ca51df4bc1b1ca786b5fb280ff497f54d4fc955d75604c8",
"bytes": 19210
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/config.xml",
"sha256": "95934bc851e86f80c7c6f2f24c5af9e2749afb71a37cfcdaf73377eab1aed14e",
"bytes": 3290
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/PR-11/nextBuildNumber",
"sha256": "f0b5c2c2211c8d67ed15e75e656c7862d086e9245420892a7de62cd9ec582a06",
"bytes": 2
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/assignment6-python-ci.52n4g0/builds/1/build.xml",
"sha256": "730ac081d5bf3ea36b6327745039c02216ebae182ae8fb5e9b921dfb64a4e997",
"bytes": 18236
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/assignment6-python-ci.52n4g0/config.xml",
"sha256": "26ea701d344510efcb143d27184d6bded9a534480987189d01e0e54c171c83bc",
"bytes": 3001
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/assignment6-python-ci.52n4g0/nextBuildNumber",
"sha256": "53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3",
"bytes": 2
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/main/builds/1/build.xml",
"sha256": "d59c3f9f3ce011cca3203df132e12e4fd2fb50ca0718f5f4f3a802f1d8386494",
"bytes": 18346
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/main/config.xml",
"sha256": "b69f5315f6b00668a2c514f01175a532c01f3d22d80cda95673e0c6c478fa795",
"bytes": 4180
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/branches/main/nextBuildNumber",
"sha256": "53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3",
"bytes": 2
},
{
"path": "/var/jenkins_home/jobs/myfileagent-python-ci/config.xml",
"sha256": "f9696483fc29b4b70746f8f6f466eb63ad24f7722ae4529c6fed0775ba6732f9",
"bytes": 2609
}
]
@@ -0,0 +1,8 @@
{
"date": "2026-10-09",
"jenkins_login_http": 200,
"recorded_files": 13,
"unchanged_files": 13,
"changed_files": [],
"test": "ordinary Jenkins service restart; persistent volume retained; no backup/restore or container replacement tested"
}
@@ -0,0 +1,671 @@
Skip to content
Manage Jenkins
Plugins
Search
Manage Jenkins
Gowri Das Lovely
Plugins
Updates
Available plugins
Installed plugins
Advanced settings
Name
  ↓
Health
Enabled
Apache HttpComponents Client 4.x API Plugin
Version
4.5.14-269.vfa_2321039a_83
Bundles Apache HttpComponents Client 4.x and allows it to be used by Jenkins plugins.
Report an issue with this plugin
94
ASM API Plugin
Version
9.10.1-216.va_9256d3b_844b_
This plugin provides the ASM APIs (v9.10.1) for other plugins.
Report an issue with this plugin
100
Authentication Tokens API Plugin
Version
1.144.v5ff4a_5ec5c33
This plugin provides an API for converting credentials into authentication tokens in Jenkins.
Report an issue with this plugin
94
bouncycastle API Plugin
Version
2.30.1.86.1-306.vfc711fa_36d5f
This plugin provides a stable API to Bouncy Castle related tasks.
Report an issue with this plugin
100
Branch API Plugin
Version
2.1303.v9f3b_95dc329d
This plugin provides an API for multiple branch based projects.
Report an issue with this plugin
100
Caffeine API Plugin
Version
3.3.0-210.v71b_2985ce530
Caffeine api plugin for use by other Jenkins plugins.
Report an issue with this plugin
100
Checks API plugin
Version
422.vc7e8b_51488c6
This plugin defines an API for Jenkins to publish checks to SCM platforms.
Report an issue with this plugin
98
commons-lang3 v3.x Jenkins API Plugin
Version
3.21.0-122.v6a_ea_4fd34049
Jenkins Api Plugin that Bundles Apache Commons Lang v3.x.
Usage will slim downstream plugin and not require dependency jar being provided by core Jenkins.
Provides org.apache.commons:commons-lang3:3.21.0.
Report an issue with this plugin
100
commons-text API Plugin
Version
1.15.0-218.va_61573470393
Jenkins Api Plugin that Bundles Apache Commons Text v1.x.
Usage will slim downstream plugin.
Provides org.apache.commons:commons-text:1.15.0.
Report an issue with this plugin
97
Credentials Binding Plugin
Version
728.v902a_273b_8947
Allows credentials to be bound to environment variables for use from miscellaneous build steps.
Report an issue with this plugin
100
Credentials Plugin
Version
1511.v2e3cb_0008ef0
This plugin allows you to store credentials in Jenkins.
Report an issue with this plugin
100
Display URL API
Version
2.217.va_6b_de84cc74b_
Provides the DisplayURLProvider extension point to provide alternate URLs for use in notifications.
Report an issue with this plugin
97
Durable Task Plugin
Version
686.v80ff80875b_82
Library offering an extension point for processes which can run outside of Jenkins yet be monitored.
Report an issue with this plugin
100
Folders Plugin
Version
6.1106.v3a_d9a_6d2465e
This plugin allows users to create "folders" to organize jobs. Users can define custom taxonomies (like by project type, organization type etc). Folders are nestable and you can define views within folders. Maintained by CloudBees, Inc.
Report an issue with this plugin
100
Git client plugin
Version
6.6.1
Utility plugin for Git support in Jenkins
Report an issue with this plugin
100
Git plugin
Version
5.10.1
This plugin integrates Git with Jenkins.
Report an issue with this plugin
97
Gitea Checks plugin
Version
606.679.vb_d632867a_6b_b_
This plugin provides Gitea commit checks API for other plugins.
Report an issue with this plugin
97
Gitea Plugin
Version
283.v14b_179495971
SCM API implementation for Gitea
Report an issue with this plugin
96
Gson API Plugin
Version
2.14.0-201.v8eefe5515533
This plugin provides the Gson APIs (v2.14.0) for other plugins.
Report an issue with this plugin
100
Handy Uri Templates 2.x API Plugin
Version
2.1.8-38.vcea_5d521d5f3
Bundles Handy Uri Templates 2.x and allows it to be used by Jenkins plugins
Report an issue with this plugin
94
Instance Identity
Version
203.v15e81a_1b_7a_38
Maintains an RSA key pair that can serve as a foundation of authentication when communicating with Jenkins
Report an issue with this plugin
92
Ionicons API
Version
94.vcc3065403257
Provides Ionicons for Jenkins Plugins, internally known as "symbols".
Check out the design-library how to use ionicons in your plugin.
Report an issue with this plugin
93
Jackson 2 API Plugin
Version
2.22.3-447.v6a_93ce7d2c82
This plugin exposes the Jackson 2 JSON APIs to other Jenkins plugins.
Report an issue with this plugin
100
Jackson Annotations 2 API Plugin
Version
2.22-19.v10a_a_582ea_26e
This plugin exposes the Jackson Annotation 2 APIs to other Jenkins plugins.
Report an issue with this plugin
100
Jakarta Activation API
Version
2.1.4-1
This plugin provides the Jakarta Activation API for other plugins.
Report an issue with this plugin
97
Jakarta Mail API
Version
2.1.5-1
This plugin provides the Jakarta Mail API for other plugins.
Report an issue with this plugin
96
Jakarta XML Binding API
Version
4.0.9-19.v2b_a_5b_44d9a_1c
This plugin provides the Jakarta XML Binding API for other plugins.
Report an issue with this plugin
100
JavaBeans Activation Framework (JAF) API
Version
1.2.0-8
This plugin provides the JavaBeans Activation Framework (JAF) API for other plugins.
Report an issue with this plugin
94
JAXB plugin
Version
2.3.9-143.v5979df3304e6
JAXB packaging for more transparent Java 9+ compatibility
Report an issue with this plugin
97
Joda Time API Plugin
Version
2.15.0-208.v6b_084e7a_d9f0
This plugin provides the Joda Time APIs (v2.15.0) for other plugins.
Report an issue with this plugin
100
JSON API Plugin
Version
20260814-226.v20f9685d642c
This plugin provides the JSON APIs (v20260814) for other plugins.
Report an issue with this plugin
100
Mailer Plugin
Version
534.v1b_36f5864073
This plugin allows you to configure email notifications for build results.
Report an issue with this plugin
97
Matrix Authorization Strategy Plugin
Version
3.3
Offers matrix-based security authorization strategies (global and per-project).
Report an issue with this plugin
100
Mina SSHD API :: Common
Version
2.19.0-192.v2b_a_7b_2c1dc71
Provides the Common module of Apache Mina SSHD to plugins.
Report an issue with this plugin
100
Mina SSHD API :: Core
Version
2.19.0-192.v2b_a_7b_2c1dc71
Provides the Core module of Apache Mina SSHD to plugins.
Report an issue with this plugin
100
OWASP Markup Formatter Plugin
Version
173.v680e3a_b_69ff3
Uses the OWASP Java HTML Sanitizer to allow safe-seeming HTML markup to be entered in project descriptions and the like.
Report an issue with this plugin
94
Pipeline
Version
608.v67378e9d3db_1
A suite of plugins that lets you orchestrate automation, simple or complex. See Pipeline as Code with Jenkins for more details.
Report an issue with this plugin
94
Pipeline: API
Version
1413.v2ff1a_5e720fa_
Plugin that defines Pipeline API.
Report an issue with this plugin
97
Pipeline: Basic Steps
Version
1098.v808b_fd7f8cf4
Commonly used steps for Pipelines.
Report an issue with this plugin
95
Pipeline: Build Step
Version
601.v6d4c6d1a_9dc7
Adds the Pipeline step build to trigger builds of other jobs.
Report an issue with this plugin
100
Pipeline: Declarative
Version
2.2293.v6e7193cec599
An opinionated, declarative Pipeline.
Report an issue with this plugin
96
Pipeline: Declarative Extension Points API
Version
2.2293.v6e7193cec599
APIs for extension points used in Declarative Pipelines.
Report an issue with this plugin
96
Pipeline: Groovy
Version
4391.v652b_b_b_1b_7c00
Pipeline execution engine based on continuation passing style transformation of Groovy scripts.
Report an issue with this plugin
100
Pipeline: Groovy Libraries
Version
806.v408277b_33d1d
Libraries for Pipeline scripts allowing logic to be shared across jobs.
Report an issue with this plugin
100
Pipeline: Input Step
Version
560.v56198a_642157
Adds the Pipeline step input to wait for human input or approval.
Report an issue with this plugin
100
Pipeline: Job
Version
1609.v8926e7962024
Defines a new job type for pipelines and provides their generic user interface.
Report an issue with this plugin
100
Pipeline: Milestone Step
Version
152.v6e22b_8cfc66c
Plugin that provides the milestone step
Report an issue with this plugin
97
Pipeline: Model API
Version
2.2293.v6e7193cec599
Model API for Declarative Pipeline.
Report an issue with this plugin
96
Pipeline: Multibranch
Version
842.v3a_b_59b_57b_e6e
Enhances Pipeline plugin to handle branches better by automatically grouping builds from different branches.
Report an issue with this plugin
100
Pipeline: Nodes and Processes
Version
1479.v56e587f413a_7
Pipeline steps locking agents and workspaces, and running external processes that may survive a Jenkins restart or agent reconnection.
Report an issue with this plugin
97
Pipeline: SCM Step
Version
487.v41313a_96b_65d
Adds a Pipeline step to check out or update working sources from various SCMs (version control).
Report an issue with this plugin
100
Pipeline: Stage Step
Version
345.va_96187909426
Adds the Pipeline step stage to delineate portions of a build.
Report an issue with this plugin
97
Pipeline: Stage Tags Metadata
Version
2.2293.v6e7193cec599
Library plugin for Pipeline stage tag metadata.
Report an issue with this plugin
96
Pipeline: Step API
Version
724.v538c2362b_dfb_
API for asynchronous build step primitive.
Report an issue with this plugin
97
Pipeline: Supporting APIs
Version
1015.v785e5a_b_b_8b_22
Common utility implementations to build Pipeline Plugin
Report an issue with this plugin
97
Plain Credentials Plugin
Version
199.v9f8e1f741799
Allows use of plain strings and files as credentials.
Report an issue with this plugin
94
Plugin Utilities API Plugin
Version
7.1341.v039f146993d9
Provides utility classes that can be used to accelerate plugin development.
Report an issue with this plugin
96
SCM API Plugin
Version
728.vc30dcf7a_0df5
This plugin provides a new enhanced API for interacting with SCM systems.
Report an issue with this plugin
97
Script Security Plugin
Version
1433.v17c58a_e45cc1
Allows Jenkins administrators to control what in-process scripts can be run by less-privileged users.
Report an issue with this plugin
100
SnakeYAML API Plugin
Version
2.7-152.vc672728cf536
This plugin provides org.yaml:snakeyaml:2.7 for other plugins.
Report an issue with this plugin
98
SSH Credentials Plugin
Version
372.va_250881b_08cd
Allows storage of SSH credentials in Jenkins
Report an issue with this plugin
97
Structs Plugin
Version
362.va_b_695ef4fdf9
Library plugin for DSL plugins that need names for Jenkins objects.
Report an issue with this plugin
97
Timestamper
Version
1.30
Adds timestamps to the Console Output
Report an issue with this plugin
94
Variant Plugin
Version
70.va_d9f17f859e0
This user-invisible library plugin allows other multi-modal plugins to behave differently depending on where they run.
Report an issue with this plugin
94
Woodstox Core API Plugin
Version
7.3.0-16.v017f30ed004c
This plugin provides Woodstox (v7.3.0) to other plugins.
Report an issue with this plugin
100
@@ -0,0 +1,130 @@
Short-Name: antisamy-markup-formatter
Plugin-Version: 173.v680e3a_b_69ff3
Short-Name: apache-httpcomponents-client-4-api
Plugin-Version: 4.5.14-269.vfa_2321039a_83
Short-Name: asm-api
Plugin-Version: 9.10.1-216.va_9256d3b_844b_
Short-Name: authentication-tokens
Plugin-Version: 1.144.v5ff4a_5ec5c33
Short-Name: bouncycastle-api
Plugin-Version: 2.30.1.86.1-306.vfc711fa_36d5f
Short-Name: branch-api
Plugin-Version: 2.1303.v9f3b_95dc329d
Short-Name: caffeine-api
Plugin-Version: 3.3.0-210.v71b_2985ce530
Short-Name: checks-api
Plugin-Version: 422.vc7e8b_51488c6
Short-Name: cloudbees-folder
Plugin-Version: 6.1106.v3a_d9a_6d2465e
Short-Name: commons-lang3-api
Plugin-Version: 3.21.0-122.v6a_ea_4fd34049
Short-Name: commons-text-api
Plugin-Version: 1.15.0-218.va_61573470393
Short-Name: credentials-binding
Plugin-Version: 728.v902a_273b_8947
Short-Name: credentials
Plugin-Version: 1511.v2e3cb_0008ef0
Short-Name: display-url-api
Plugin-Version: 2.217.va_6b_de84cc74b_
Short-Name: durable-task
Plugin-Version: 686.v80ff80875b_82
Short-Name: git-client
Plugin-Version: 6.6.1
Short-Name: git
Plugin-Version: 5.10.1
Short-Name: gitea-checks
Plugin-Version: 606.679.vb_d632867a_6b_b_
Short-Name: gitea
Plugin-Version: 283.v14b_179495971
Short-Name: gson-api
Plugin-Version: 2.14.0-201.v8eefe5515533
Short-Name: handy-uri-templates-2-api
Plugin-Version: 2.1.8-38.vcea_5d521d5f3
Short-Name: instance-identity
Plugin-Version: 203.v15e81a_1b_7a_38
Short-Name: ionicons-api
Plugin-Version: 94.vcc3065403257
Short-Name: jackson-annotations2-api
Plugin-Version: 2.22-19.v10a_a_582ea_26e
Short-Name: jackson2-api
Plugin-Version: 2.22.3-447.v6a_93ce7d2c82
Short-Name: jakarta-activation-api
Plugin-Version: 2.1.4-1
Short-Name: jakarta-mail-api
Plugin-Version: 2.1.5-1
Short-Name: jakarta-xml-bind-api
Plugin-Version: 4.0.9-19.v2b_a_5b_44d9a_1c
Short-Name: javax-activation-api
Plugin-Version: 1.2.0-8
Short-Name: jaxb
Plugin-Version: 2.3.9-143.v5979df3304e6
Short-Name: joda-time-api
Plugin-Version: 2.15.0-208.v6b_084e7a_d9f0
Short-Name: json-api
Plugin-Version: 20260814-226.v20f9685d642c
Short-Name: mailer
Plugin-Version: 534.v1b_36f5864073
Short-Name: matrix-auth
Plugin-Version: 3.3
Short-Name: mina-sshd-api-common
Plugin-Version: 2.19.0-192.v2b_a_7b_2c1dc71
Short-Name: mina-sshd-api-core
Plugin-Version: 2.19.0-192.v2b_a_7b_2c1dc71
Short-Name: pipeline-build-step
Plugin-Version: 601.v6d4c6d1a_9dc7
Short-Name: pipeline-groovy-lib
Plugin-Version: 806.v408277b_33d1d
Short-Name: pipeline-input-step
Plugin-Version: 560.v56198a_642157
Short-Name: pipeline-milestone-step
Plugin-Version: 152.v6e22b_8cfc66c
Short-Name: pipeline-model-api
Plugin-Version: 2.2293.v6e7193cec599
Short-Name: pipeline-model-definition
Plugin-Version: 2.2293.v6e7193cec599
Short-Name: pipeline-model-extensions
Plugin-Version: 2.2293.v6e7193cec599
Short-Name: pipeline-stage-step
Plugin-Version: 345.va_96187909426
Short-Name: pipeline-stage-tags-metadata
Plugin-Version: 2.2293.v6e7193cec599
Short-Name: plain-credentials
Plugin-Version: 199.v9f8e1f741799
Short-Name: plugin-util-api
Plugin-Version: 7.1341.v039f146993d9
Short-Name: scm-api
Plugin-Version: 728.vc30dcf7a_0df5
Short-Name: script-security
Plugin-Version: 1433.v17c58a_e45cc1
Short-Name: snakeyaml-api
Plugin-Version: 2.7-152.vc672728cf536
Short-Name: ssh-credentials
Plugin-Version: 372.va_250881b_08cd
Short-Name: structs
Plugin-Version: 362.va_b_695ef4fdf9
Short-Name: timestamper
Plugin-Version: 1.30
Short-Name: variant
Plugin-Version: 70.va_d9f17f859e0
Short-Name: woodstox-core-api
Plugin-Version: 7.3.0-16.v017f30ed004c
Short-Name: workflow-aggregator
Plugin-Version: 608.v67378e9d3db_1
Short-Name: workflow-api
Plugin-Version: 1413.v2ff1a_5e720fa_
Short-Name: workflow-basic-steps
Plugin-Version: 1098.v808b_fd7f8cf4
Short-Name: workflow-cps
Plugin-Version: 4391.v652b_b_b_1b_7c00
Short-Name: workflow-durable-task-step
Plugin-Version: 1479.v56e587f413a_7
Short-Name: workflow-job
Plugin-Version: 1609.v8926e7962024
Short-Name: workflow-multibranch
Plugin-Version: 842.v3a_b_59b_57b_e6e
Short-Name: workflow-scm-step
Plugin-Version: 487.v41313a_96b_65d
Short-Name: workflow-step-api
Plugin-Version: 724.v538c2362b_dfb_
Short-Name: workflow-support
Plugin-Version: 1015.v785e5a_b_b_8b_22
@@ -0,0 +1,50 @@
{
"initial": {
"sha": "ad056a363cde9d8b2fe988da95047a07996c1a66",
"state": "success",
"checks": [
{
"context": "myfileagent-python-ci/pipeline/pr-main",
"status": "success",
"target_url": "https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/1/display/redirect",
"updated_at": "2026-10-09T19:03:32Z"
}
]
},
"failure": {
"sha": "d6477b3df620383ca6215d2455f9e40d457e3513",
"state": "failure",
"checks": [
{
"context": "myfileagent-python-ci/pipeline/pr-main",
"status": "failure",
"target_url": "https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/2/display/redirect",
"updated_at": "2026-10-09T19:04:55Z"
}
]
},
"repair": {
"sha": "02d31699aaf13b3e4d18865d34c16a2bb46135c6",
"state": "success",
"checks": [
{
"context": "myfileagent-python-ci/pipeline/pr-main",
"status": "success",
"target_url": "https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/3/display/redirect",
"updated_at": "2026-10-09T19:06:08Z"
}
]
},
"final": {
"sha": "b7ef4850b74bbb7169871684a385a7bfad7beee8",
"state": "success",
"checks": [
{
"context": "myfileagent-python-ci/pipeline/pr-main",
"status": "success",
"target_url": "https://ci.myfileagent.tech/job/myfileagent-python-ci/job/PR-11/4/display/redirect",
"updated_at": "2026-10-09T19:09:20Z"
}
]
}
}
@@ -0,0 +1,19 @@
{
"pr": 11,
"merged": true,
"merged_at": "2026-10-09T19:14:45Z",
"merged_by": "glovely",
"merge_sha": "131d605c5edb5b5080e4d54861c3c7bf7c360c9c",
"checks": [
{
"context": "Assignment 5 manual PDF / manual (push)",
"status": "pending",
"target_url": "/myfileagent/myfileagent-pipeline/actions/runs/13/jobs/13"
},
{
"context": "myfileagent-python-ci/pipeline/head",
"status": "success",
"target_url": "https://ci.myfileagent.tech/job/myfileagent-python-ci/job/main/1/display/redirect"
}
]
}
@@ -0,0 +1,8 @@
Evidence supplied by team during October 9, 2026 documentation update.
Cloud Firewall ssw590-group7-gitea-firewall attached to ssw590-group7-droplet, 142.93.193.110, Up to date.
Inbound TCP 22/80/443 all IPv4/IPv6; no 5050/8080/50000 allowances. Outbound ICMP/all TCP/all UDP.
Droplet Public IPv6 offers Enable IPv6 (disabled). CI AAAA query: SOA authority only, no AAAA returned.
sudo ufw status verbose: Status: inactive. Other host rules not inventoried.
Matrix-based security: ssw590 display Gowri Das Lovely Overall/Administer; Anonymous and Authenticated Users no permissions. Team confirms admin access after save.
Post-save private-window and self-registration checks not supplied. Public-browser exception approval not supplied.
Earlier external TCP tests precede firewall cleanup; no fresh post-cleanup connectivity test claimed.
@@ -0,0 +1,20 @@
{
"id": 1,
"type": "gitea",
"active": true,
"events": [
"pull_request_milestone",
"pull_request_sync",
"push",
"pull_request",
"pull_request_label",
"pull_request_review_request",
"pull_request_assign",
"pull_request_comment",
"pull_request_review"
],
"config": {
"url": "http://jenkins:8080/gitea-webhook/post",
"content_type": "json"
}
}
@@ -0,0 +1,181 @@
{
"threshold_changed_utc": "2026-10-24T21:14:02.658288+00:00",
"temporary_threshold_percent": 90,
"final_threshold_percent": 15,
"pending_period": "5m",
"evaluation_interval": "30s",
"status": "Capacity test complete: pending, firing, delivered, restored to 15 percent, Normal, resolved delivery confirmed",
"disk_filled": false,
"observations": [
{
"utc": "2026-10-24T21:15:21.192219+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:15:52.139970+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:16:22.574568+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:16:52.959503+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:17:23.237339+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:17:53.610412+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:18:24.495369+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:18:56.001250+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:19:26.923982+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 1",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
},
{
"utc": "2026-10-24T21:19:57.612786+00:00",
"metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 1",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 0",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 1",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
]
}
],
"firing_observed_utc": "2026-10-24T21:19:57.612786+00:00",
"delivery_metrics_before_restore": [
"grafana_alerting_alerts{state=\"alerting\"} 1",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 2",
"grafana_alerting_alerts{state=\"pending\"} 0",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 2",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 0"
],
"threshold_restored_utc": "2026-10-24T21:20:24.112443+00:00",
"restore_restart_exit": 0,
"post_restore_metrics": [
"grafana_alerting_alerts{state=\"alerting\"} 0",
"grafana_alerting_alerts{state=\"error\"} 0",
"grafana_alerting_alerts{state=\"nodata\"} 0",
"grafana_alerting_alerts{state=\"normal\"} 3",
"grafana_alerting_alerts{state=\"pending\"} 0",
"grafana_alerting_alerts{state=\"recovering\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"firing\"} 0",
"grafana_alerting_alerts_received_total{org=\"1\",status=\"resolved\"} 1"
],
"final_threshold_verified_percent": 15,
"post_restore_checked_utc": "2026-10-24T21:21:40.949248+00:00",
"recipient_firing_confirmed": true,
"recipient_resolved_confirmed": true,
"recipient_evidence": [
{
"path": "screenshots/capacity-discord-firing-team.png",
"sha256": "0e3407260eb23a004d6a01c52310af8578a6dde391cdf59a85e9c0b6573fc2a7",
"source": "User-supplied original Discord screenshot"
},
{
"path": "screenshots/capacity-discord-resolved-team.png",
"sha256": "6cc200817a42e99650c3dee8e42a41616c704ae8ac1262b79ec0edf8361c5825",
"source": "User-supplied original Discord screenshot"
}
],
"evidence_note": "Resolved message contains an outdated setup description from the restored original rules. Delivery and capacity testing are established by the actual messages and recorded state transitions; do not repeat that stale description as current status. Resolved screenshot does not show an exact message time."
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,8 @@
[
"[2026-10-24T20:34:42.991Z] + python3 -m py_compile pricing.py tests/test_pricing.py",
"[2026-10-24T20:34:44.991Z] + python3 -m unittest discover -s tests -v",
"[2026-10-24T20:34:44.991Z] Ran 2 tests in 0.000s",
"[2026-10-24T20:34:44.992Z] OK",
"[Gitea] Notifying branch build status: SUCCESS This commit looks good",
"Finished: SUCCESS"
]
@@ -0,0 +1,209 @@
{
"utc": "2026-10-28T18:26:35.475821+00:00",
"os": "PRETTY_NAME=\"Ubuntu 24.04.4 LTS\"\nNAME=\"Ubuntu\"\nVERSION_ID=\"24.04\"\nVERSION=\"24.04.4 LTS (Noble Numbat)\"\nVERSION_CODENAME=noble\nID=ubuntu\nID_LIKE=debian\nHOME_URL=\"https://www.ubuntu.com/\"\nSUPPORT_URL=\"https://help.ubuntu.com/\"\nBUG_REPORT_URL=\"https://bugs.launchpad.net/ubuntu/\"\nPRIVACY_POLICY_URL=\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\"\nUBUNTU_CODENAME=noble\nLOGO=ubuntu-logo\n",
"architecture": "x86_64",
"cpu_count": "1",
"docker": "Docker version 29.8.1, build 4a63305",
"compose": "Docker Compose version v5.5.1",
"free_bytes": "total used free shared buff/cache available\nMem: 1008177152 791134208 83894272 3186688 288735232 217042944\nSwap: 1073737728 687190016 386547712",
"root_df_bytes": "Filesystem 1B-blocks Used Available Use% Mounted on\n/dev/vda1 24883167232 12443983872 12422406144 51% /",
"host_cpu_stat": "cpu 849598 5629 769109 31254346 375454 0 12249 642032 0 0",
"metrics": {
"node_memory_MemTotal_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemTotal_bytes",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1793211996.756,
"1008177152"
]
}
]
}
},
"node_memory_MemAvailable_bytes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_memory_MemAvailable_bytes",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1793211996.858,
"232452096"
]
}
]
}
},
"node_filesystem_size_bytes{mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_filesystem_size_bytes",
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node",
"mountpoint": "/"
},
"value": [
1793211996.907,
"24883167232"
]
}
]
}
},
"node_filesystem_avail_bytes{mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_filesystem_avail_bytes",
"device": "/dev/vda1",
"fstype": "ext4",
"instance": "node-exporter:9100",
"job": "node",
"mountpoint": "/"
},
"value": [
1793211997.001,
"12422414336"
]
}
]
}
},
"node_cpu_seconds_total{mode=\"idle\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "node_cpu_seconds_total",
"cpu": "0",
"instance": "node-exporter:9100",
"job": "node",
"mode": "idle"
},
"value": [
1793211997.058,
"312523.19"
]
}
]
}
},
"up": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "up",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1793211997.139,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1793211997.139,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1793211997.139,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "blackbox-exporter:9115",
"job": "blackbox"
},
"value": [
1793211997.139,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "prometheus:9090",
"job": "prometheus"
},
"value": [
1793211997.139,
"1"
]
}
]
}
},
"probe_success{job=\"https\"}": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1793211997.189,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1793211997.189,
"1"
]
}
]
}
}
}
}
@@ -0,0 +1 @@
{"security_realm_class": "hudson.security.HudsonPrivateSecurityRealm", "disableSignup": "true", "authorization_class": "hudson.security.GlobalMatrixAuthorizationStrategy", "anonymous_grants": false, "authenticated_group_grants": false}
@@ -0,0 +1,18 @@
{
"created_via": "Existing user-signed-in Gitea session",
"author_shown_in_gitea": "jenkins-ci",
"issues": [
{
"number": 12,
"priority": "P1",
"owner": "glovely",
"url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/12"
},
{
"number": 13,
"priority": "P2",
"owner": "glovely",
"url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/issues/13"
}
]
}
@@ -0,0 +1,186 @@
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"values": [
[
1792876991.023,
"1"
],
[
1792877021.023,
"1"
],
[
1792877051.023,
"1"
],
[
1792877081.023,
"1"
],
[
1792877111.023,
"1"
],
[
1792877141.023,
"1"
],
[
1792877171.023,
"1"
],
[
1792877201.023,
"1"
],
[
1792877231.023,
"0"
],
[
1792877261.023,
"0"
],
[
1792877291.023,
"0"
],
[
1792877321.023,
"0"
],
[
1792877351.023,
"0"
],
[
1792877381.023,
"0"
],
[
1792877411.023,
"0"
],
[
1792877441.023,
"0"
],
[
1792877471.023,
"1"
],
[
1792877501.023,
"1"
],
[
1792877531.023,
"1"
],
[
1792877561.023,
"1"
]
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"values": [
[
1792877004.889,
"1"
],
[
1792877034.889,
"1"
],
[
1792877064.889,
"1"
],
[
1792877094.889,
"1"
],
[
1792877124.889,
"1"
],
[
1792877154.889,
"1"
],
[
1792877184.889,
"1"
],
[
1792877214.889,
"1"
],
[
1792877244.889,
"1"
],
[
1792877274.889,
"1"
],
[
1792877304.889,
"1"
],
[
1792877334.889,
"1"
],
[
1792877364.889,
"1"
],
[
1792877394.889,
"1"
],
[
1792877424.889,
"1"
],
[
1792877454.889,
"1"
],
[
1792877484.889,
"1"
],
[
1792877514.889,
"1"
],
[
1792877544.889,
"1"
],
[
1792877574.889,
"1"
]
]
}
]
}
}
@@ -0,0 +1,133 @@
{
"start_utc": "2026-10-24T21:23:00+00:00",
"end_utc": "2026-10-24T21:33:00+00:00",
"qualification": "Fixed 10-minute incident window; sampled availability, not 24-hour SLO",
"queries": {
"availability_percent": {
"promql": "100*avg_over_time(probe_success{job=\"https\"}[10m])",
"response": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792877580,
"60"
]
},
{
"metric": {
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792877580,
"100"
]
}
]
}
}
},
"samples": {
"promql": "count_over_time(probe_success{job=\"https\"}[10m])",
"response": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792877580,
"20"
]
},
{
"metric": {
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792877580,
"20"
]
}
]
}
}
},
"failures": {
"promql": "count_over_time(probe_success{job=\"https\"}[10m])-sum_over_time(probe_success{job=\"https\"}[10m])",
"response": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792877580,
"8"
]
},
{
"metric": {
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792877580,
"0"
]
}
]
}
}
},
"end_probe": {
"promql": "probe_success{job=\"https\"}",
"response": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792877580,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792877580,
"1"
]
}
]
}
}
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,38 @@
[
{
"image": "prom/prometheus:v3.15.1",
"digests": [
"prom/prometheus@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2"
],
"architecture": "amd64",
"os": "linux",
"id": "sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2"
},
{
"image": "grafana/grafana:13.2.4",
"digests": [
"grafana/grafana@sha256:dbbc38ea21103cefb50396340cd88afec779c7e070b0a7bf5a75b4ce46651d3f"
],
"architecture": "amd64",
"os": "linux",
"id": "sha256:dbbc38ea21103cefb50396340cd88afec779c7e070b0a7bf5a75b4ce46651d3f"
},
{
"image": "quay.io/prometheus/node-exporter:v1.12.1",
"digests": [
"quay.io/prometheus/node-exporter@sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0"
],
"architecture": "amd64",
"os": "linux",
"id": "sha256:1b4e4438faca4dd7e001dd445d161a4a2091b0fededa84093b3a8dfeae1f1be0"
},
{
"image": "quay.io/prometheus/blackbox-exporter:v0.29.1",
"digests": [
"quay.io/prometheus/blackbox-exporter@sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13"
],
"architecture": "amd64",
"os": "linux",
"id": "sha256:ea1c7aa3ef3f307cd03e85f34abb604478ccb90b567fc690da0cd9776da76b13"
}
]
@@ -0,0 +1,281 @@
{
"started_utc": "2026-10-28T17:31:31.276382+00:00",
"purpose": "Separate service restart persistence, not backup/restore",
"events": [
{
"service": "prometheus",
"restart_requested_utc": "2026-10-28T17:31:34.517301+00:00",
"restart_exit": 0,
"restart_finished_utc": "2026-10-28T17:31:36.010653+00:00",
"ready_observed_utc": "2026-10-28T17:31:40.102642+00:00"
},
{
"service": "grafana",
"restart_requested_utc": "2026-10-28T17:32:15.105596+00:00",
"restart_exit": 0,
"restart_finished_utc": "2026-10-28T17:32:20.870015+00:00",
"ready_observed_utc": "2026-10-28T17:32:55.109817+00:00"
}
],
"before": {
"utc": "2026-10-28T17:31:31.276421+00:00",
"containers": {
"prometheus": {
"id": "28b35f29a8f87de81ff57432bf01ffd220cff426152d4428800efd9c305005ae",
"mounts": [
[
"myfileagent-monitoring_prometheus_data",
"/prometheus"
]
]
},
"grafana": {
"id": "d71ae8d91703940df0a9128a5e9741c66b8d1798cae50f1306d0064a54e527cc",
"mounts": [
[
"myfileagent-monitoring_grafana_data",
"/var/lib/grafana"
]
]
}
},
"historical_probe": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792877580,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792877580,
"1"
]
}
]
}
},
"database": {
"dashboard": {
"count": 0,
"sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
},
"data_source": {
"count": 1,
"sha256": "e951bf9a8c74d5329a16b8da0b49a932564592f49b778735c7e54badcf94dbdf"
},
"alert_rule": {
"count": 2,
"sha256": "bb4b682af4f1b2e37f82d6fc0270cd773b6123dc4ada8352df2bec2bf1f7c5f8"
},
"annotation": {
"count": 18,
"sha256": "c5531a98daa5397b436ddd9692ce7bfcf8a8c5b67a7255e7679fb4b6d75bc0a8"
}
}
},
"after": {
"utc": "2026-10-28T17:33:30.259795+00:00",
"containers": {
"prometheus": {
"id": "28b35f29a8f87de81ff57432bf01ffd220cff426152d4428800efd9c305005ae",
"mounts": [
[
"myfileagent-monitoring_prometheus_data",
"/prometheus"
]
]
},
"grafana": {
"id": "d71ae8d91703940df0a9128a5e9741c66b8d1798cae50f1306d0064a54e527cc",
"mounts": [
[
"myfileagent-monitoring_grafana_data",
"/var/lib/grafana"
]
]
}
},
"historical_probe": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792877580,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792877580,
"1"
]
}
]
}
},
"database": {
"dashboard": {
"count": 0,
"sha256": "4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945"
},
"data_source": {
"count": 1,
"sha256": "e951bf9a8c74d5329a16b8da0b49a932564592f49b778735c7e54badcf94dbdf"
},
"alert_rule": {
"count": 2,
"sha256": "bb4b682af4f1b2e37f82d6fc0270cd773b6123dc4ada8352df2bec2bf1f7c5f8"
},
"annotation": {
"count": 18,
"sha256": "c5531a98daa5397b436ddd9692ce7bfcf8a8c5b67a7255e7679fb4b6d75bc0a8"
}
}
},
"database_equal": true,
"historical_values_equal": true,
"current_probes": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "probe_success",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1793208813.125,
"1"
]
},
{
"metric": {
"__name__": "probe_success",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1793208813.125,
"1"
]
}
]
}
},
"target_health": {
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"__name__": "up",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1793208813.419,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1793208813.419,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "node-exporter:9100",
"job": "node"
},
"value": [
1793208813.419,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "blackbox-exporter:9115",
"job": "blackbox"
},
"value": [
1793208813.419,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "prometheus:9090",
"job": "prometheus"
},
"value": [
1793208813.419,
"1"
]
}
]
}
},
"finished_utc": "2026-10-28T17:33:33.422124+00:00",
"collection_gaps": [
{
"instance": "https://ci.myfileagent.tech/login",
"samples": 19,
"gaps_over_45_seconds": [
{
"from_epoch": 1793208671.023,
"to_epoch": 1793208731.022,
"seconds": 59.999
}
]
},
{
"instance": "https://myfileagent.tech/user/login",
"samples": 20,
"gaps_over_45_seconds": []
}
],
"restart_readiness_seconds": {
"prometheus": 5.585,
"grafana": 40.004
},
"dashboard_storage_note": "Legacy dashboard table is empty in this Grafana version; see monitoring-restart-state-verification.json for resource-backed dashboards."
}
@@ -0,0 +1,25 @@
{
"grafana_state": {
"dashboards": [
{
"uid": "myfileagent-sre",
"title": "MyFileAgent - SRE Monitoring",
"panels": 6,
"creationTimestamp": "2026-10-24T20:29:24Z"
},
{
"uid": "myfileagent-sre-runbooks",
"title": "MyFileAgent - Alert Runbooks",
"panels": 2,
"creationTimestamp": "2026-10-24T20:56:55Z"
}
],
"annotations": 18
},
"https": {
"https://metrics.myfileagent.tech/api/health": 200,
"https://ci.myfileagent.tech/login": 200,
"https://myfileagent.tech/user/login": 200
},
"checked_utc": "2026-10-28T17:33:28.307692+00:00"
}
@@ -0,0 +1,8 @@
{
"result": "SUCCESS",
"duration": "36363",
"pr_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/14",
"head_sha": "6605394d7a3e4183bfc8e94e2b08f1d324a73b8e",
"gitea_ui": "All checks were successful; 0 of 1 official approvals",
"merged": false
}
@@ -0,0 +1,12 @@
{
"number": 6,
"result": "SUCCESS",
"duration": "36824",
"revision_matches_merge": true,
"two_tests_passed": true,
"gitea_notified": true,
"pr_url": "https://myfileagent.tech/myfileagent/myfileagent-pipeline/pulls/14",
"merge_sha": "b42689f02f30ad895101a2c5f367e54e3603bc5d",
"approved_by": "nkogut",
"merged_by": "nkogut"
}
@@ -0,0 +1,129 @@
{
"evaluation_time_utc": "2026-10-24T20:50:50+00:00",
"window_start_utc": "2026-10-24T20:40:50+00:00",
"window_end_utc": "2026-10-24T20:50:50+00:00",
"timezone_for_display": "America/New_York",
"scrape_interval_seconds": 30,
"expected_samples_approximately": 20,
"queries": {
"availability_percent": "100 * avg_over_time(probe_success{job=\"https\"}[10m])",
"received_samples": "count_over_time(probe_success{job=\"https\"}[10m])",
"observed_failed_samples": "count_over_time(probe_success{job=\"https\"}[10m]) - sum_over_time(probe_success{job=\"https\"}[10m])",
"collection_health": "up{job=~\"https|blackbox|prometheus\"}"
},
"results": {
"availability_percent": [
{
"metric": {
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792875050,
"100"
]
},
{
"metric": {
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792875050,
"100"
]
}
],
"received_samples": [
{
"metric": {
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792875050,
"20"
]
},
{
"metric": {
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792875050,
"20"
]
}
],
"observed_failed_samples": [
{
"metric": {
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792875050,
"0"
]
},
{
"metric": {
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792875050,
"0"
]
}
],
"collection_health": [
{
"metric": {
"__name__": "up",
"instance": "https://myfileagent.tech/user/login",
"job": "https"
},
"value": [
1792875050,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "https://ci.myfileagent.tech/login",
"job": "https"
},
"value": [
1792875050,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "blackbox-exporter:9115",
"job": "blackbox"
},
"value": [
1792875050,
"1"
]
},
{
"metric": {
"__name__": "up",
"instance": "prometheus:9090",
"job": "prometheus"
},
"value": [
1792875050,
"1"
]
}
]
},
"classification": "Non-disruptive baseline/query verification, NOT controlled-outage evidence or a 24-hour SLO evaluation."
}
@@ -0,0 +1,20 @@
{
"compiled": false,
"sections": [
"Deployment and Reproducibility",
"Metrics and HTTPS Probes",
"HTTPS and Access Control",
"Dashboard and Continuous-Integration Correlation",
"SLI, SLO and Error Budget",
"Alerts and Operator Runbooks",
"Controlled Incident, Recovery and Persistence",
"Manual Integration, Traceability and Remaining Work"
],
"missing_assets": [],
"unbalanced_environments": [],
"missing_citations": [],
"duplicate_new_labels": [],
"secret_match_filenames": [],
"clock_ticks_per_second": "100",
"source_only_checks": "Not a substitute for LaTeX compilation and visual inspection"
}
@@ -0,0 +1,24 @@
{
"test_time": "2026-10-28T14:20:37-04:00",
"source": "Team Windows workstation outside Droplet",
"ipv4": "142.93.193.110",
"ipv4_reachable_ports": [
80,
443
],
"ipv4_unreachable_ports": [
3000,
3001,
5050,
8080,
9090,
9100,
9115,
50000
],
"ipv6_tested": "2607:7700:0:28:0:2:8e5d:c16e",
"ipv6_all_tested_ports_unreachable": true,
"ipv6_interpretation": "Inconclusive for firewall filtering because expected 80/443 also unreachable; verify host configuration and client IPv6 connectivity",
"https_curl_results": "Absent from supplied PowerShell transcript; HTTP/TLS results not established by this file",
"privacy": "Original transcript retained mode 600 outside Git; contains workstation metadata"
}
@@ -0,0 +1,50 @@
{
"collected_utc": "2026-11-08T16:34:38.771243+00:00",
"runs": {
"assignment8-staging-failure": {
"source": "https://ci.myfileagent.tech/job/assignment8-staging-failure/1/artifact/reports/failure-ansible.txt",
"selected_nonsecret_lines": [
"TASK [Gathering Facts] *********************************************************",
"TASK [Validate release selection] **********************************************",
"TASK [Create deployment directory] *********************************************",
"TASK [Render selected Compose configuration] ***********************************",
"TASK [Converge application without rebuilding] *********************************",
"[ERROR]: Task failed: Module failed: General error: container pricing-staging-app-1 is unhealthy",
"PLAY RECAP *********************************************************************",
"startup : ok=4 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 "
]
},
"assignment8-staging-recovery": {
"source": "https://ci.myfileagent.tech/job/assignment8-staging-recovery/1/artifact/reports/recovery-ansible.txt",
"selected_nonsecret_lines": [
"TASK [Gathering Facts] *********************************************************",
"TASK [Validate release selection] **********************************************",
"TASK [Create deployment directory] *********************************************",
"TASK [Render selected Compose configuration] ***********************************",
"TASK [Converge application without rebuilding] *********************************",
"TASK [Verify health through public TLS endpoint] *******************************",
"TASK [Read release identity] ***************************************************",
"TASK [Exercise business behavior] **********************************************",
"TASK [Check release identity and calculation] **********************************",
"PLAY RECAP *********************************************************************",
"startup : ok=9 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
]
},
"assignment8-rollback-v1": {
"source": "https://ci.myfileagent.tech/job/assignment8-rollback-v1/1/artifact/reports/rollback-ansible.txt",
"selected_nonsecret_lines": [
"TASK [Gathering Facts] *********************************************************",
"TASK [Validate release selection] **********************************************",
"TASK [Create deployment directory] *********************************************",
"TASK [Render selected Compose configuration] ***********************************",
"TASK [Converge application without rebuilding] *********************************",
"TASK [Verify health through public TLS endpoint] *******************************",
"TASK [Read release identity] ***************************************************",
"TASK [Exercise business behavior] **********************************************",
"TASK [Check release identity and calculation] **********************************",
"PLAY RECAP *********************************************************************",
"startup : ok=9 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 "
]
}
}
}
@@ -0,0 +1,5 @@
[2026-11-07T22:34:38.502Z] Ran 3 tests in 0.056s
[2026-11-07T22:34:40.697Z] No known vulnerabilities found
[2026-11-07T22:34:50.357Z] Secret scanner exit status: 0
[2026-11-07T22:39:47.533Z] startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Finished: SUCCESS
@@ -0,0 +1,9 @@
target_env: production
release_image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
expected_version: v1
expected_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
configuration_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
build_url: https://ci.myfileagent.tech/job/assignment8-release/3/
expected_total: 30
public_url: https://app.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,9 @@
target_env: staging
release_image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
expected_version: v1
expected_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
configuration_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
build_url: https://ci.myfileagent.tech/job/assignment8-release/3/
expected_total: 30
public_url: https://staging.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,9 @@
Approver: ssw590
Decision: approved
Time (UTC): 2026-11-07T22:44:31Z
Build: https://ci.myfileagent.tech/job/assignment8-release/3/
Source and configuration commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
Image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
Version: v1
Expected total for 3: 30
Staging and scans: passed
@@ -0,0 +1 @@
{"dependencies": [{"name": "blinker", "version": "1.9.0", "vulns": []}, {"name": "click", "version": "8.5.0", "vulns": []}, {"name": "flask", "version": "3.1.3", "vulns": []}, {"name": "gunicorn", "version": "23.0.0", "vulns": []}, {"name": "itsdangerous", "version": "2.2.0", "vulns": []}, {"name": "jinja2", "version": "3.1.6", "vulns": []}, {"name": "markupsafe", "version": "3.0.4", "vulns": []}, {"name": "packaging", "version": "26.3", "vulns": []}, {"name": "werkzeug", "version": "3.1.9", "vulns": []}], "fixes": []}
@@ -0,0 +1 @@
myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
{
"scanner": "Trivy 0.69.1",
"scope": "checked-out repository excluding Git metadata, temporary test environment and generated reports",
"findings": 0,
"exit_code": 0,
"timestamp_utc": "2026-11-07T22:34:49.489244+00:00"
}
@@ -0,0 +1,39 @@
PLAY [Deploy a selected immutable pricing release] *****************************
TASK [Gathering Facts] *********************************************************
ok: [startup]
TASK [Validate release selection] **********************************************
ok: [startup] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [Create deployment directory] *********************************************
ok: [startup]
TASK [Render selected Compose configuration] ***********************************
ok: [startup]
TASK [Converge application without rebuilding] *********************************
ok: [startup]
TASK [Verify health through public TLS endpoint] *******************************
ok: [startup]
TASK [Read release identity] ***************************************************
ok: [startup]
TASK [Exercise business behavior] **********************************************
ok: [startup]
TASK [Check release identity and calculation] **********************************
ok: [startup] => {
"changed": false,
"msg": "All assertions passed"
}
PLAY RECAP *********************************************************************
startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
@@ -0,0 +1,4 @@
myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2: Pulling from myfileagent/pricing
Digest: sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
Status: Image is up to date for myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
@@ -0,0 +1,5 @@
[2026-11-07T22:57:07.313Z] Ran 3 tests in 0.061s
[2026-11-07T22:57:10.242Z] No known vulnerabilities found
[2026-11-07T22:57:32.642Z] Secret scanner exit status: 0
[2026-11-07T23:02:33.262Z] startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Finished: SUCCESS
@@ -0,0 +1,9 @@
target_env: production
release_image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
expected_version: v2
expected_commit: ee128d18bddd1763b916b40f05829f2e769f0654
configuration_commit: ee128d18bddd1763b916b40f05829f2e769f0654
build_url: https://ci.myfileagent.tech/job/assignment8-release/4/
expected_total: 36
public_url: https://app.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,9 @@
target_env: staging
release_image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
expected_version: v2
expected_commit: ee128d18bddd1763b916b40f05829f2e769f0654
configuration_commit: ee128d18bddd1763b916b40f05829f2e769f0654
build_url: https://ci.myfileagent.tech/job/assignment8-release/4/
expected_total: 36
public_url: https://staging.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,9 @@
Approver: ssw590
Decision: approved
Time (UTC): 2026-11-07T23:03:54Z
Build: https://ci.myfileagent.tech/job/assignment8-release/4/
Source and configuration commit: ee128d18bddd1763b916b40f05829f2e769f0654
Image: myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
Version: v2
Expected total for 3: 36
Staging and scans: passed
@@ -0,0 +1 @@
{"dependencies": [{"name": "blinker", "version": "1.9.0", "vulns": []}, {"name": "click", "version": "8.5.0", "vulns": []}, {"name": "flask", "version": "3.1.3", "vulns": []}, {"name": "gunicorn", "version": "23.0.0", "vulns": []}, {"name": "itsdangerous", "version": "2.2.0", "vulns": []}, {"name": "jinja2", "version": "3.1.6", "vulns": []}, {"name": "markupsafe", "version": "3.0.4", "vulns": []}, {"name": "packaging", "version": "26.3", "vulns": []}, {"name": "werkzeug", "version": "3.1.9", "vulns": []}], "fixes": []}
@@ -0,0 +1 @@
myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
{
"scanner": "Trivy 0.69.1",
"scope": "checked-out repository excluding Git metadata, temporary test environment and generated reports",
"findings": 0,
"exit_code": 0,
"timestamp_utc": "2026-11-07T22:57:30.639294+00:00"
}
@@ -0,0 +1,39 @@
PLAY [Deploy a selected immutable pricing release] *****************************
TASK [Gathering Facts] *********************************************************
ok: [startup]
TASK [Validate release selection] **********************************************
ok: [startup] => {
"changed": false,
"msg": "All assertions passed"
}
TASK [Create deployment directory] *********************************************
ok: [startup]
TASK [Render selected Compose configuration] ***********************************
ok: [startup]
TASK [Converge application without rebuilding] *********************************
ok: [startup]
TASK [Verify health through public TLS endpoint] *******************************
ok: [startup]
TASK [Read release identity] ***************************************************
ok: [startup]
TASK [Exercise business behavior] **********************************************
ok: [startup]
TASK [Check release identity and calculation] **********************************
ok: [startup] => {
"changed": false,
"msg": "All assertions passed"
}
PLAY RECAP *********************************************************************
startup : ok=9 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
@@ -0,0 +1,4 @@
myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9: Pulling from myfileagent/pricing
Digest: sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
Status: Image is up to date for myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
myfileagent.tech/myfileagent/pricing@sha256:2ab86894ada4c12bd066ae1d29be40a296b1a037f379c494dead5cad4d8b88f9
@@ -0,0 +1 @@
Finished: SUCCESS
@@ -0,0 +1 @@
{"status":"ok","version":"v1"}
@@ -0,0 +1 @@
{"commit":"0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2","service":"Startup Pricing","version":"v1"}
@@ -0,0 +1 @@
{"currency":"USD","quantity":3,"total":30}
@@ -0,0 +1,3 @@
Approver: ssw590
Decision: approved
Time UTC: 2026-11-07T23:12:54Z
@@ -0,0 +1,66 @@
2026-11-07T23:13:01Z 200
2026-11-07T23:13:03Z 200
2026-11-07T23:13:04Z 200
2026-11-07T23:13:05Z 200
2026-11-07T23:13:07Z 200
2026-11-07T23:13:08Z 200
2026-11-07T23:13:09Z 200
2026-11-07T23:13:11Z 200
2026-11-07T23:13:13Z 200
2026-11-07T23:13:15Z 200
2026-11-07T23:13:17Z 200
2026-11-07T23:13:18Z 200
2026-11-07T23:13:19Z 200
2026-11-07T23:13:20Z 200
2026-11-07T23:13:22Z 200
2026-11-07T23:13:23Z 200
2026-11-07T23:13:24Z 200
2026-11-07T23:13:27Z 200
2026-11-07T23:13:29Z 200
2026-11-07T23:13:31Z 200
2026-11-07T23:13:32Z 200
2026-11-07T23:13:33Z 200
2026-11-07T23:13:35Z 200
2026-11-07T23:13:36Z 200
2026-11-07T23:13:37Z 200
2026-11-07T23:13:38Z 200
2026-11-07T23:13:39Z 200
2026-11-07T23:13:40Z 200
2026-11-07T23:13:42Z 200
2026-11-07T23:13:43Z 200
2026-11-07T23:13:45Z 200
2026-11-07T23:13:47Z 200
2026-11-07T23:13:48Z 200
2026-11-07T23:13:49Z 502
2026-11-07T23:13:50Z 502
2026-11-07T23:13:51Z 502
2026-11-07T23:13:53Z 502
2026-11-07T23:13:54Z 502
2026-11-07T23:13:55Z 502
2026-11-07T23:13:57Z 000
2026-11-07T23:14:01Z 200
2026-11-07T23:14:02Z 200
2026-11-07T23:14:03Z 200
2026-11-07T23:14:04Z 200
2026-11-07T23:14:06Z 200
2026-11-07T23:14:07Z 200
2026-11-07T23:14:08Z 200
2026-11-07T23:14:10Z 200
2026-11-07T23:14:11Z 200
2026-11-07T23:14:13Z 200
2026-11-07T23:14:15Z 200
2026-11-07T23:14:16Z 200
2026-11-07T23:14:17Z 200
2026-11-07T23:14:19Z 200
2026-11-07T23:14:20Z 200
2026-11-07T23:14:21Z 200
2026-11-07T23:14:22Z 200
2026-11-07T23:14:24Z 200
2026-11-07T23:14:25Z 200
2026-11-07T23:14:26Z 200
2026-11-07T23:14:29Z 200
2026-11-07T23:14:30Z 200
2026-11-07T23:14:32Z 200
2026-11-07T23:14:34Z 200
2026-11-07T23:14:35Z 200
2026-11-07T23:14:36Z 200
@@ -0,0 +1 @@
{"commit":"ee128d18bddd1763b916b40f05829f2e769f0654","service":"Startup Pricing","version":"v2"}
@@ -0,0 +1 @@
{"currency":"USD","quantity":3,"total":36}
@@ -0,0 +1 @@
2026-11-07T23:13:01Z
@@ -0,0 +1 @@
2026-11-07T23:14:37Z
@@ -0,0 +1,8 @@
target_env: production
release_image: myfileagent.tech/myfileagent/pricing@sha256:715a3c80d5fff4319e275583e73e58cd80bffadea6e25796dd4867135ff036c2
expected_version: v1
expected_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
configuration_commit: 0cb5a34cc4c2709ea3eb95f58bf5b0b2fa350ef2
expected_total: 30
public_url: https://app.myfileagent.tech
proxy_network: myfileagent-gitea_gitea-private
@@ -0,0 +1,2 @@
Scanner exit status: 1
Finished: FAILURE
@@ -0,0 +1,2 @@
Stage "Must not run after failure" skipped due to earlier failure(s)
Finished: FAILURE

Some files were not shown because too many files have changed in this diff Show More