devOpsManual/devopsAIPromptLog.tex
carmen-cortese af3f0045e4 Draft Chapter 6 Secure Delivery and Rollback
Adds devopsSecureDelivery.tex (included after Chapter 5): evidence-status
table by rubric row, delivery architecture diagram, connection and
deployment-rights tables, observed version inventory, security gate
policy, traceability and rollback-timeline tables, limitations and
state-compatibility discussion, and release, failed-deployment, rollback
and cleanup runbooks. Results not yet produced are marked PENDING.
Also adds Chapter 6 references, a document history entry and an AI
prompt log entry. Builds locally with no undefined references.

Refs SSW590Team/pricing-app#7

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:35:14 -05:00

143 lines
11 KiB
TeX

\chapter{AI Prompt Log}
\ChapterLabel{AIPromptLog}
\index{AI prompt log}
\section{How to Use This Appendix}
Use this log when AI assistance materially affects assignment wording,
automation, evidence interpretation, troubleshooting, or feedback. Record
enough context for an instructor or reviewer to understand the input, output,
assumptions, and human corrections. Do not record credentials or personal data.
\section{Secure Delivery and Rollback Chapter}
Dates: November 18 -- December 1, 2026; Contributors: CC, CLD; Tool: Anthropic Claude Code (Claude Opus 5.5); Task: plan and implement Chapter 6 of \textit{dosManual-V1.43} from the supplied \texttt{dosSecureDelivery} starter. Output used: the locked application build, Jenkinsfile delivery and redeploy stages, availability probe and smoke tests, Ansible inventory and Compose limits, agent image, server setup runbook, monitoring probe job and dashboard, and this chapter's draft. The assistant ran server commands over SSH with the student's approval (deploy account, agent image build and swap) and reported the open Gitea registration finding. The student created the Gitea issue; no secret was given to or produced by the assistant. Human review: pending.
\section{Gitea Assignment Chapter}
Date: October 7, 2026; Contributors: MB, CDX; Tool: OpenAI Codex; Task: prepare a Gitea chapter
following the eight required subsections and rubric in Chapter 2 of the
provided \textit{dosManual-V1.12} PDF. Inputs: the PDF and the student's
report that an AWS EC2 instance has been created and terminal output
showing Ubuntu 24.04.4 LTS (24.04, noble) and kernel 7.0.0-1012-aws; exact
image tags, domain, database choice, and other deployment/test evidence were
not provided. Output used:
\ChapterRef{Gitea}, an eight-section scaffold with evidence tables and
placeholders; the Hosts and Passwords tables were extended with clearly
unverified Gitea placeholders. The written assignment requires DigitalOcean,
so the AWS deployment is flagged for instructor approval. Human completion
and review: pending. No credentials or operational results were invented.
\section{Assignment 3 Title Page}
Date: October 1, 2026; Contributors: MB, CDX; Tool: OpenAI Codex; Task: update the first page for
Assignment 3. Inputs: the requested Digital Ocean Docker and Project Proposal
group title, instructor Darian Muresan, and document date September 28, 2026.
Output used: updated title-page metadata and Group Report status. The apparent
``Ocearn'' typographical error was corrected to ``Ocean.'' Human review and
corrections: pending.
\section{Project Proposal Chapter}
Date: October 1, 2026; Contributors: MB, CDX; Tool: OpenAI Codex; Task: draft the semester Project
Proposal from the instructor's project description and rubric. Inputs: the
assignment requirements, the professor's clarification that the proposal must
identify both an automation tool and what the automated build will build, and
the student's existing local Node.js and Docker exercise. Output used:
\ChapterRef{ProjectProposal}, proposing a containerized task tracker built by
GitHub Actions and compared with Jenkins. The chapter includes a proposed
DevSecOps toolchain, sample backlog, one-button release stages, dashboard,
preliminary SWOT analyses, unique release-confidence feature, and rubric
mapping. Human review and corrections: pending. No implementation, cloud
approval, cost, pipeline result, deployment, or monitoring result was claimed.
\section{Local Docker Chapter}
Date: September 22, 2026; Tool: OpenAI Codex; Task: create a Local Docker
chapter documenting the two example websites from Sections~2.5 and~2.6 of
the \textit{dsoDockerSetup} document. Inputs: the assignment instructions,
the student's statement that both websites were run in Docker, and the
provided Hello World and Color Buttons screenshot PDFs. Output used:
\ChapterRef{LocalDocker}, which records the observed local ports and embeds
both screenshots. The screenshots show Hello World at port 5050 and Color
Buttons at port 8080. Code-style content is formatted with the minted package.
Human review and corrections: pending. No unobserved commands, image names,
container names, or Docker versions were invented.
\section{Kanban Setup Chapter}
Date: September 9, 2026; Tool: OpenAI Codex; Task: add a chapter describing
the student's Jira Kanban setup. Inputs: the student reported logging in,
creating a new site for SSW 590, selecting Kanban, and clicking Create.
Output used: a first-person account of these steps in
\ChapterRef{KanbanSetup}. No additional configuration steps or evidence
were supplied or invented. Human review and corrections: pending.
\section{Passwords and Hosts Chapters}
Date: September 9, 2026; Tool: OpenAI Codex; Task: add Passwords and Hosts
chapters with long tables, an original password rule, and password hints
without listing passwords. Inputs: the assignment requirements; no actual
host inventory, usernames, or passwords were supplied. Output used:
\ChapterRef{Passwords} and \ChapterRef{Hosts}, with a proposed unique-secret
rule, non-secret password-manager reminders, and four proposed local host
roles. Assumptions: host and account labels are placeholders, not verified
configuration; the student must confirm the required roles and actual names.
Human review and corrections: pending. No credentials were requested or
recorded.
\section{Chapter 5 Monitoring Restructure}
Date: November 1, 2026; contributors: CC, CLD; tool: Anthropic Claude Code
(Claude Opus 5.5). Task: compare MB's October 30 Chapter 5 draft with
Chapter 5 of \texttt{dosManual-V1.42} and restructure it into the eight
required evidence sections. Inputs: the assignment PDF; MB's draft; the
pricing-app \texttt{feature/issue-3-monitoring} configuration, README, and
runbook at commit \texttt{d1504e2591}; and CC's November 1 terminal screenshot
of \path{/home/ubuntu/monitoring}. Output used: the restructured
\ChapterRef{Monitoring}, Hosts and Passwords monitoring rows, glossary terms,
citations, and history entry. Configuration tables were transcribed from the
versioned files; operational results come only from MB's recorded October 30
observations and CC's screenshot. The review noted that the provisioned alert
rules do not select the contact point. No probe, alert, incident, restart, or
exposure result was invented; those items are marked pending. Human review:
pending.
\section{Example Record}
Date: \textit{[timestamp]}; Tool and model: \textit{[name]}; Task:
\textit{[requested outcome]}; Inputs: \textit{[sanitized constraints and
evidence]}; Output used: \textit{[summary]}; Human review and corrections:
\textit{[summary]}; Unresolved assumptions: \textit{[list or none]}.
\section{Startup Foundation with Gitea}
Date: October 8, 2026; Contributors: MB, CDX; Tool: OpenAI Codex; Task: replace the prior Gitea
scaffold with the eight required Chapter 2 sections and update version history
plus Hosts and Passwords tables. Inputs: the user-supplied Lightsail hostname,
IPv4 address, intended ports, requested SQLite/Caddy design, and formatting
requirements. Output used: \ChapterRef{Gitea}, a sanitized reference
configuration and evidence-capture tables; \ChapterRef{Hosts} and
\ChapterRef{Passwords}, updated with the supplied endpoint and non-secret-only
credential references. DNS, curl, certificate, firewall, container,
persistence, team, and pull-request outputs were not supplied and remain
pending; no operational evidence or credentials were invented. Human author
name and review: not supplied; review pending.
\section{Gitea Evidence Screenshots}
Date: October 8, 2026; Contributors: MB, CDX; Tool: OpenAI Codex; Task: integrate the three user-supplied screenshots into Chapter 2. Inputs: terminal DNS lookup, browser certificate viewer, and AWS Lightsail firewall-rule screenshots. Output used: Figures~\ref{Figure:GiteaDNSLookup}, \ref{Figure:GiteaCertificate}, and \ref{Figure:GiteaLightsailFirewall}; the DNS lookup is presented as a screenshot without a duplicate typed transcription, certificate validity is recorded in its figure caption, and observed firewall source ranges are reflected in \ChapterRef{Hosts} and \ChapterRef{Gitea}. The Lightsail screenshot shows SSH allowed from any IPv4 or IPv6 address; the manual flags this as a required corrective action, not as compliant restricted SSH. No HTTP redirect, external port scan, persistence log, or workflow evidence was included in these uploads. Credentials were not present in the supplied images. Human review and remediation: pending.
\section{Registrar and Hosting Provider Clarification}
Date: October 8, 2026; Contributors: MB, CDX; Tool: OpenAI Codex; Task: state provider responsibilities explicitly. Input: user clarification that Name.com is used for domain registration and AWS Lightsail for hosting. Output used: the Chapter 2 domain and deployment sections and Hosts inventory now distinguish Name.com as registrar from Lightsail as hosting provider. Human review: pending.
\section{Chapter 2 Formatting and Attribution}
Date: October 8, 2026; Contributors: MB, CDX; Task: improve Chapter 2 formatting, remove text duplicating screenshot evidence, and standardize post-September 22 contributor initials. Output used: the Chapter 2 DNS, deployment, persistence, TLS, firewall, workflow, and controls sections; the document history identifies MB and CDX for work after September 22.
\section{Automated Manual Build Implementation}
Date: October 10, 2026; contributors: MB, CDX; tool: OpenAI Codex using Computer Use in Safari. The user authorized completing Chapter 3 in the existing Lightsail Gitea project. Read the earlier report and dosManual version 1.18. Observed Gitea 1.22.3, Caddy 2.8.4, act runner 0.6.1, and an already registered texlive runner. The draft workflow existed only outside the repository. Prepared a versioned push workflow, pinned TeX image, Node runtime, and visible build metadata. An isolated preflight compilation succeeded. Actions run and artifact verification remain pending at this source revision; subsequent evidence will record actual results. No secrets are included.
Verified runs 1 and 2 passed for successive changes; run 3 failed for the intentional undefined command with upload skipped; run 4 passed after repair. Added Chapter 3, host and hint-only credential records, glossary terms, and evidence links. No credential value was written to source.
\section{Jenkins CI Implementation and Review Draft}
Date: October 20--23, 2026; contributors: MB, CDX; tool: OpenAI Codex.
Task: continue the existing Lightsail/Gitea project through Chapter 4 of
\texttt{dosManual-V1.38}. MB confirmed instructor approval of Lightsail,
selected the Python pricing example and private SSH tunnel, authorized the
dedicated pricing-app integration identity, created the Jenkins administrator
password personally, and added the local hosts entry. Codex inspected and
configured the service, tested private/public paths, and used an isolated
application branch for failure and repair. Observed PR-2 run 1 failed for
13 != 30; run 2 passed both tests on the new SHA. Codex prepared this chapter,
supporting tables, diagram, and review package from actual evidence. MB will
arrange teammate review later. No teammate approval, merge, issue closure,
SSH remediation, instructor access, or complete Chapter 4 submission is
claimed. No secret value is included in this document.