Initial commit: import SSW 590 DevOps manual LaTeX source
16
.gitignore
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
*.aux
|
||||||
|
*.log
|
||||||
|
*.out
|
||||||
|
*.toc
|
||||||
|
*.bbl
|
||||||
|
*.blg
|
||||||
|
*.synctex.gz
|
||||||
|
*.fls
|
||||||
|
*.fdb_latexmk
|
||||||
|
*.glg
|
||||||
|
*.glo
|
||||||
|
*.gls
|
||||||
|
*.ist
|
||||||
|
*.idx
|
||||||
|
*.ilg
|
||||||
|
*.ind
|
||||||
11
.latexmkrc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
# Add glossaries support to latexmk
|
||||||
|
add_cus_dep( 'acn', 'acr', 0, 'makeglossaries' );
|
||||||
|
add_cus_dep( 'glo', 'gls', 0, 'makeglossaries' );
|
||||||
|
$clean_ext .= " acr acn alg glo gls glg";
|
||||||
|
|
||||||
|
sub makeglossaries {
|
||||||
|
my ($base_name, $path) = fileparse( $_[0] );
|
||||||
|
my @args = ( "-d", $path, $base_name );
|
||||||
|
if ($silent) { unshift @args, "-q"; }
|
||||||
|
return system "makeglossaries", @args;
|
||||||
|
}
|
||||||
2365
IEEEtran.bst
Normal file
5
abstract.tex
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
This assignment guides students through a reproducible DevOps activity. It
|
||||||
|
defines the learning objectives, environment boundary, workflow, evidence,
|
||||||
|
reflection, and submission criteria. Replace bracketed text with assignment-
|
||||||
|
specific facts before release. Students should be able to recreate the work
|
||||||
|
from the submitted automation and runbook rather than from undocumented manual steps.
|
||||||
367
cornell.cls
Normal 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
devopsAIAgentGuide.tex
Normal 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}
|
||||||
103
devopsAIPromptLog.tex
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
\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{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{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.
|
||||||
132
devopsAssignment.tex
Normal file
@ -0,0 +1,132 @@
|
|||||||
|
% SSW 590 DevOps Assignment Template
|
||||||
|
% Developed by Darian Muresan, Ph.D., with OpenAI Codex and Anthropic Claude Code.
|
||||||
|
% AI agents: read devopsAIAgentGuide.tex before editing this template.
|
||||||
|
\documentclass[12pt]{cornell}
|
||||||
|
|
||||||
|
\usepackage[T1]{fontenc}
|
||||||
|
\usepackage{lmodern}
|
||||||
|
\usepackage{xspace}
|
||||||
|
\usepackage{xcolor}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
\usepackage{fancyhdr}
|
||||||
|
\usepackage{amsmath,amssymb}
|
||||||
|
\usepackage{array}
|
||||||
|
\usepackage{booktabs}
|
||||||
|
\usepackage{longtable}
|
||||||
|
\usepackage{tabularx}
|
||||||
|
\usepackage{ltablex}
|
||||||
|
\keepXColumns
|
||||||
|
\usepackage{enumitem}
|
||||||
|
\usepackage{minted}
|
||||||
|
\usepackage{tcolorbox}
|
||||||
|
\usepackage{makeidx}
|
||||||
|
\usepackage[colorlinks=true,citecolor=blue,linkcolor=blue,urlcolor=blue]{hyperref}
|
||||||
|
\usepackage[acronym,toc]{glossaries}
|
||||||
|
|
||||||
|
\makeindex
|
||||||
|
\makeglossaries
|
||||||
|
\input{devopsGlossary.tex}
|
||||||
|
|
||||||
|
\definecolor{devopsBlue}{RGB}{31,78,121}
|
||||||
|
\definecolor{devopsGreen}{RGB}{46,125,50}
|
||||||
|
\definecolor{devopsRed}{RGB}{183,28,28}
|
||||||
|
\definecolor{devopsGray}{RGB}{90,90,90}
|
||||||
|
\definecolor{devopsLightBlue}{RGB}{232,240,247}
|
||||||
|
|
||||||
|
% Replace these values for each assignment.
|
||||||
|
\newcommand{\AssignmentTitle}{Digital Ocean Docker + Project Proposal -- Group}
|
||||||
|
\newcommand{\AssignmentNumber}{3}
|
||||||
|
\newcommand{\DocumentVersion}{1.8}
|
||||||
|
\newcommand{\DocumentStatus}{Group Report}
|
||||||
|
\newcommand{\CourseNumber}{SSW 590}
|
||||||
|
\newcommand{\CourseName}{DevOps}
|
||||||
|
\newcommand{\Instructor}{Darian Muresan}
|
||||||
|
\newcommand{\Organization}{Stevens Institute of Technology}
|
||||||
|
\newcommand{\DocumentDate}{September 28, 2026}
|
||||||
|
\newcommand{\DueDate}{[Due Date and Time]}
|
||||||
|
\newcommand{\VERSION}{Version \DocumentVersion}
|
||||||
|
|
||||||
|
\hypersetup{
|
||||||
|
pdftitle={\CourseNumber\ --- Assignment \AssignmentNumber: \AssignmentTitle},
|
||||||
|
pdfauthor={\Instructor},
|
||||||
|
pdfcreator={Darian Muresan, Ph.D., with OpenAI Codex and Anthropic Claude Code},
|
||||||
|
pdfsubject={Reusable DevOps course assignment template},
|
||||||
|
pdfkeywords={DevOps, automation, delivery pipeline, infrastructure as code, evidence}
|
||||||
|
}
|
||||||
|
|
||||||
|
\newcolumntype{Y}{>{\raggedright\arraybackslash}X}
|
||||||
|
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
|
||||||
|
\setlength{\tabcolsep}{4pt}
|
||||||
|
\renewcommand{\arraystretch}{1.12}
|
||||||
|
\setlength{\LTpre}{6pt}
|
||||||
|
\setlength{\LTpost}{6pt}
|
||||||
|
|
||||||
|
% Stable IDs make activity, evidence, and artifact references durable.
|
||||||
|
\newcommand{\ArtifactLabel}[2]{\phantomsection\label{#1:#2}}
|
||||||
|
\newcommand{\ArtifactID}[2]{\texttt{#2}\ArtifactLabel{#1}{#2}\index{#1!#2}}
|
||||||
|
\newcommand{\ArtifactRef}[2]{\hyperref[#1:#2]{\texttt{#2}}}
|
||||||
|
\newcommand{\ActivityID}[1]{\ArtifactID{Activity}{#1}}
|
||||||
|
\newcommand{\ActivityRef}[1]{\ArtifactRef{Activity}{#1}}
|
||||||
|
\newcommand{\EvidenceID}[1]{\ArtifactID{Evidence}{#1}}
|
||||||
|
\newcommand{\EvidenceRef}[1]{\ArtifactRef{Evidence}{#1}}
|
||||||
|
\newcommand{\ChapterLabel}[1]{\label{Chapter:#1}}
|
||||||
|
\newcommand{\ChapterRef}[1]{\hyperref[Chapter:#1]{Chapter~\ref*{Chapter:#1}}}
|
||||||
|
\newcommand{\StatusPass}{\textbf{\footnotesize\textcolor{devopsGreen}{PASS}}}
|
||||||
|
\newcommand{\StatusPending}{\textbf{\footnotesize\textcolor{devopsGray}{PENDING}}}
|
||||||
|
\newcommand{\StatusFail}{\textbf{\footnotesize\textcolor{devopsRed}{FAIL}}}
|
||||||
|
|
||||||
|
\newtcolorbox{devopsNote}[1][]{
|
||||||
|
colback=devopsLightBlue, colframe=devopsBlue, boxrule=0.6pt, arc=1mm, title=#1
|
||||||
|
}
|
||||||
|
|
||||||
|
\setminted{
|
||||||
|
breaklines=true, frame=single, fontsize=\footnotesize,
|
||||||
|
linenos=true, numbersep=6pt, tabsize=2
|
||||||
|
}
|
||||||
|
|
||||||
|
\changenormalspacing{\singlespacing}
|
||||||
|
\begin{document}
|
||||||
|
\pagenumbering{roman}
|
||||||
|
\singlespacing
|
||||||
|
\include{prologue}
|
||||||
|
|
||||||
|
\setcounter{page}{1}
|
||||||
|
\pagenumbering{arabic}
|
||||||
|
\pagestyle{fancy}
|
||||||
|
\fancyhf{}
|
||||||
|
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
|
||||||
|
\lhead{\small Assignment \AssignmentNumber}
|
||||||
|
\chead{\small\nouppercase{\leftmark}}
|
||||||
|
\rhead{\small\thepage}
|
||||||
|
\lfoot{\small\CourseNumber}
|
||||||
|
\cfoot{\small\copyright\ \Organization}
|
||||||
|
\rfoot{\small\VERSION}
|
||||||
|
\renewcommand{\headrulewidth}{0.4pt}
|
||||||
|
\renewcommand{\footrulewidth}{0.4pt}
|
||||||
|
|
||||||
|
\include{devopsIntroduction}
|
||||||
|
\include{devopsGitea}
|
||||||
|
\include{devopsExampleAssignment}
|
||||||
|
\include{devopsKanbanSetup}
|
||||||
|
\include{devopsPasswords}
|
||||||
|
\include{devopsHosts}
|
||||||
|
\include{devopsLocalDocker}
|
||||||
|
\include{devopsProjectProposal}
|
||||||
|
|
||||||
|
\bibliographystyle{IEEEtran}
|
||||||
|
\bibliography{devopsReferences}
|
||||||
|
|
||||||
|
\appendix
|
||||||
|
\include{devopsDocumentGuide}
|
||||||
|
\include{devopsAIAgentGuide}
|
||||||
|
\include{devopsAIPromptLog}
|
||||||
|
|
||||||
|
\glsaddall
|
||||||
|
\printglossaries
|
||||||
|
\cleardoublepage
|
||||||
|
\phantomsection
|
||||||
|
\ChapterLabel{Index}
|
||||||
|
\addcontentsline{toc}{chapter}{Index}
|
||||||
|
\markboth{Index}{Index}
|
||||||
|
\printindex
|
||||||
|
\end{document}
|
||||||
142
devopsDocumentGuide.tex
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
\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}
|
||||||
|
The template requires a LaTeX distribution with \texttt{pdflatex},
|
||||||
|
\texttt{bibtex}, \texttt{makeglossaries}, and \texttt{makeindex}.
|
||||||
|
Install the tools using the platform instructions below, then run one of the
|
||||||
|
following platform builds.
|
||||||
|
|
||||||
|
\subsection{macOS and Linux Build}
|
||||||
|
\begin{verbatim}
|
||||||
|
make -f makefileMacLinux pdf
|
||||||
|
\end{verbatim}
|
||||||
|
|
||||||
|
\subsection{Windows PowerShell Build}
|
||||||
|
\begin{verbatim}
|
||||||
|
.\makefilePowerShell.ps1 -Action pdf
|
||||||
|
\end{verbatim}
|
||||||
|
The completed build regenerates references, bibliography, glossary, and index.
|
||||||
|
Review the log and visually inspect affected PDF pages. Do not edit generated
|
||||||
|
auxiliary files or the PDF directly.
|
||||||
|
|
||||||
|
\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.
|
||||||
30
devopsDocumentHistory.tex
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
\chapter*{Document History}
|
||||||
|
\addcontentsline{toc}{chapter}{Document History}
|
||||||
|
\index{document history}
|
||||||
|
\section*{How to Use This Chapter}
|
||||||
|
Add the newest approved change at the top. Retain every approved entry and
|
||||||
|
link each entry to the changed chapter, table, figure, or controlled artifact.
|
||||||
|
|
||||||
|
\begin{tabularx}{\linewidth}{L{2.4cm}L{2.6cm}YL{3.2cm}}
|
||||||
|
\caption{Document Update History\label{Table:DocumentHistory}}\\
|
||||||
|
\toprule \textbf{Date / Version} & \textbf{Author / contributor} & \textbf{Change} & \textbf{Sections / related tables}\\ \midrule
|
||||||
|
\endfirsthead
|
||||||
|
\multicolumn{4}{l}{\small\itshape Document Update History (continued)}\\
|
||||||
|
\toprule \textbf{Date / Version} & \textbf{Author / contributor} & \textbf{Change} & \textbf{Sections / related tables}\\ \midrule
|
||||||
|
\endhead \bottomrule \endlastfoot
|
||||||
|
October 8, 2026 / 1.8 (draft) & MB, CDX & Improved Chapter 2 wording and layout, removed screenshot transcriptions that duplicated the supplied figures, and standardized contributor initials. & \ChapterRef{Gitea}, \ChapterRef{AIPromptLog}\\
|
||||||
|
October 8, 2026 / 1.7 (draft) & MB, CDX & Clarified provider responsibilities: Name.com is the domain registrar and AWS Lightsail is the production hosting provider. & \hyperref[sec:gitea-domain]{Section~\ref*{sec:gitea-domain}}, \hyperref[sec:gitea-deployment]{Section~\ref*{sec:gitea-deployment}}, \ChapterRef{Gitea}, \ChapterRef{Hosts}\\
|
||||||
|
October 8, 2026 / 1.6 (draft) & MB, CDX & Added DNS, certificate, and Lightsail firewall screenshots; transcribed the supplied DNS result, recorded certificate validity, and flagged unrestricted SSH for correction. Updated the host inventory with observed exposure. & \hyperref[sec:gitea-domain]{Section~\ref*{sec:gitea-domain}}, \hyperref[sec:gitea-https]{Section~\ref*{sec:gitea-https}}, \hyperref[sec:gitea-firewall]{Section~\ref*{sec:gitea-firewall}}, \hyperref[sec:gitea-controls]{Section~\ref*{sec:gitea-controls}}; \ChapterRef{Gitea}, \ChapterRef{Hosts}, \ChapterRef{AIPromptLog}\\
|
||||||
|
October 8, 2026 / 1.5 (draft) & MB, CDX & Replaced the Gitea scaffold with the eight-section Startup Foundation chapter; recorded supplied Lightsail endpoint and updated both Hosts and Passwords tables with non-secret values/references. Runtime procedures are documented for verification during deployment. & \hyperref[sec:gitea-domain]{Section~\ref*{sec:gitea-domain}}, \hyperref[sec:gitea-deployment]{Section~\ref*{sec:gitea-deployment}}, \hyperref[sec:gitea-firewall]{Section~\ref*{sec:gitea-firewall}}, \hyperref[sec:gitea-controls]{Section~\ref*{sec:gitea-controls}}; \ChapterRef{Gitea}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \ChapterRef{AIPromptLog}\\
|
||||||
|
October 7, 2026 / 1.4 (draft) & MB, CDX & Added the eight-section Gitea scaffold, host/password table updates, and the student-reported Ubuntu 24.04.4 LTS and 7.0.0-1012-aws kernel versions; AWS hosting is recorded as the current deployment choice. & \ChapterRef{Gitea}, \ChapterRef{Hosts}, \ChapterRef{Passwords}, \ChapterRef{AIPromptLog}\\
|
||||||
|
October 1, 2026 / 1.3 (draft) & MB, CDX & Updated the Assignment 3 title-page metadata with the group report title, instructor, and document date. & \ChapterRef{TemplateAttribution}, \ChapterRef{AIPromptLog}\\
|
||||||
|
October 1, 2026 / 1.3 (draft) & MB, CDX & Added the Project Proposal chapter for a one-button containerized task tracker, including the GitHub Actions and Jenkins comparison, proposed DevSecOps toolchain, release workflow, dashboard, SWOT analyses, unique feature, and rubric alignment. & \ChapterRef{ProjectProposal}, \ChapterRef{AIPromptLog}\\
|
||||||
|
September 22, 2026 / 1.3 (draft) & CC, CDX & Completed the Local Docker chapter with the two observed local website results, embedded screenshot evidence, minted formatting, and a stable chapter link. & \ChapterRef{LocalDocker}, \ChapterRef{AIPromptLog}\\
|
||||||
|
September 9, 2026 / 1.3 (draft) & CDX & Added Passwords and Hosts chapters with long tables, proposed rules, non-secret hints, and host placeholders; human review pending. & \ChapterRef{Passwords}, \ChapterRef{Hosts}, \ChapterRef{AIPromptLog}\\
|
||||||
|
September 9, 2026 / 1.3 (draft) & CDX & Added the requested Kanban Setup chapter from the student's account and recorded AI assistance; human review pending. & \ChapterRef{KanbanSetup}, \ChapterRef{AIPromptLog}\\
|
||||||
|
September 2, 2026 / 1.3 & DDM, CDX & Established the one-file-per-chapter convention, added it to the AI Agent Usage Guide, and consolidated the complete example assignment chapter into \texttt{devopsExampleAssignment.tex}. & \ChapterRef{ExampleAssignment}, \ChapterRef{AIAgentGuide}, \ChapterRef{DocumentGuide}\\
|
||||||
|
September 2, 2026 / 1.2 & DDM, CDX & Added macOS MacTeX and Windows MiKTeX installation, verification, compilation, cleanup, and troubleshooting instructions to the Document Authoring Guide appendix. & \ChapterRef{DocumentGuide}\\
|
||||||
|
September 2, 2026 / 1.1 & DDM, CDX & Reorganized the example assignment as one chapter with activity, workflow, evidence, retrospective, and submission sections so each homework can follow the same chapter pattern. & \ChapterRef{ExampleAssignment}\\
|
||||||
|
September 2, 2026 / 1.0 & DDM, CDX & Created the reusable SSW 590 DevOps assignment template from the architecture template infrastructure; replaced requirements and design chapters with activity, workflow, evidence, retrospective, and submission chapters. & \ChapterRef{Introduction}, \ChapterRef{ExampleAssignment}, \ChapterRef{AIAgentGuide}\\
|
||||||
|
\textit{[date / version]} & \textit{[initials]} & \textit{[approved change and rationale]} & \textit{[link]}\\
|
||||||
|
\end{tabularx}
|
||||||
126
devopsExampleAssignment.tex
Normal 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{minted}{bash}
|
||||||
|
# ./scripts/provision.sh --environment sandbox
|
||||||
|
# ./scripts/deploy.sh --version <tag>
|
||||||
|
# ./scripts/destroy.sh --environment sandbox
|
||||||
|
\end{minted}
|
||||||
|
|
||||||
|
\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.
|
||||||
332
devopsGitea.tex
Normal file
@ -0,0 +1,332 @@
|
|||||||
|
\setcounter{chapter}{1}
|
||||||
|
\chapter{Startup Foundation with Gitea}
|
||||||
|
\ChapterLabel{Gitea}
|
||||||
|
\index{Gitea}
|
||||||
|
\index{AWS Lightsail}
|
||||||
|
\index{Caddy}
|
||||||
|
\index{SQLite}
|
||||||
|
|
||||||
|
This chapter documents the production Gitea work hub and its deployment,
|
||||||
|
security controls, and team workflow. It separates observed configuration
|
||||||
|
from recommended operating procedures. The eight sections follow the Chapter~2
|
||||||
|
rubric.
|
||||||
|
|
||||||
|
\section{Student Pack Domain and DNS}\label{sec:gitea-domain}
|
||||||
|
The domain \texttt{590hcm.dev} was registered through Name.com using its
|
||||||
|
offer in the GitHub Student Developer Pack, which provides benefits for
|
||||||
|
verified students. AWS Lightsail hosts the production Gitea instance at
|
||||||
|
\texttt{git.590hcm.dev}. The offer includes an eligible domain registration
|
||||||
|
and Domain Safe at no cost for the first year. Track the renewal amount,
|
||||||
|
currency, and expiration date in the Name.com account and set a calendar
|
||||||
|
reminder~\cite{GitHubStudentPack,NameComStudentOffer}. Gitea is available at
|
||||||
|
\href{https://git.590hcm.dev}{\texttt{https://git.590hcm.dev}}.
|
||||||
|
|
||||||
|
See \autoref{Figure:GiteaDNSLookup} for the DNS lookup result.
|
||||||
|
|
||||||
|
\begin{figure}[htbp]
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.95\linewidth]{prism-uploads/gitea-dns-nslookup.png}
|
||||||
|
\caption{Terminal output resolving \texttt{git.590hcm.dev} to \texttt{184.193.0.32}; DNS lookup screenshot.}\label{Figure:GiteaDNSLookup}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\section{Pinned Gitea Deployment}\label{sec:gitea-deployment}
|
||||||
|
The production instance runs Ubuntu 24.04.4 LTS with kernel
|
||||||
|
\texttt{7.0.0-1012-aws} on AWS Lightsail. Record its bundle, region, and Docker
|
||||||
|
Engine build from \texttt{docker version} in the operations inventory.
|
||||||
|
|
||||||
|
The Compose configuration pins these images:
|
||||||
|
\texttt{gitea/gitea:1.22} and \texttt{caddy:2.8.4}. Update either tag after
|
||||||
|
compatibility testing. Both services use restart policies and named persistent
|
||||||
|
volumes; Gitea has no published backend port. Docker volumes persist
|
||||||
|
independently of individual containers~\cite{DockerVolumes,GiteaDockerDocs}.
|
||||||
|
|
||||||
|
\begin{minted}{yaml}
|
||||||
|
services:
|
||||||
|
caddy:
|
||||||
|
image: caddy:2.8.4
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
volumes:
|
||||||
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
|
- caddy_data:/data
|
||||||
|
- caddy_config:/config
|
||||||
|
networks:
|
||||||
|
- frontend
|
||||||
|
- backend
|
||||||
|
depends_on:
|
||||||
|
- gitea
|
||||||
|
|
||||||
|
gitea:
|
||||||
|
image: gitea/gitea:1.22
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
USER_UID: "1000"
|
||||||
|
USER_GID: "1000"
|
||||||
|
GITEA__database__DB_TYPE: sqlite3
|
||||||
|
GITEA__database__PATH: /data/gitea/gitea.db
|
||||||
|
GITEA__server__ROOT_URL: https://git.590hcm.dev/
|
||||||
|
GITEA__server__HTTP_PORT: "3000"
|
||||||
|
volumes:
|
||||||
|
- gitea_data:/data
|
||||||
|
expose:
|
||||||
|
- "3000"
|
||||||
|
networks:
|
||||||
|
- backend
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
gitea_data:
|
||||||
|
caddy_data:
|
||||||
|
caddy_config:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
frontend:
|
||||||
|
backend:
|
||||||
|
internal: true
|
||||||
|
\end{minted}
|
||||||
|
|
||||||
|
The matching proxy configuration contains no credentials:
|
||||||
|
\begin{minted}{text}
|
||||||
|
git.590hcm.dev {
|
||||||
|
encode zstd gzip
|
||||||
|
reverse_proxy gitea:3000
|
||||||
|
}
|
||||||
|
\end{minted}
|
||||||
|
|
||||||
|
For repeatability, store the reviewed Compose and Caddy files in a restricted,
|
||||||
|
version-controlled deployment repository. Do not commit secrets. From the
|
||||||
|
server, with Docker Engine and the Compose plugin installed, run:
|
||||||
|
\begin{minted}{bash}
|
||||||
|
mkdir -p ~/gitea-stack
|
||||||
|
cd ~/gitea-stack
|
||||||
|
# Place the reviewed compose.yaml and Caddyfile here using a secure process.
|
||||||
|
docker compose config --quiet
|
||||||
|
docker compose pull
|
||||||
|
docker compose up -d
|
||||||
|
docker compose ps
|
||||||
|
docker version
|
||||||
|
\end{minted}
|
||||||
|
The setup-time web configuration wizard must use the SQLite path shown above;
|
||||||
|
set no administrator password in a listing or shell history. Keep the resolved Gitea image digest with the tag in the deployment record
|
||||||
|
for reproducibility.
|
||||||
|
|
||||||
|
\begin{tabularx}{\linewidth}{L{3.3cm}Y}
|
||||||
|
\caption{Lightsail Deployment Parameters\label{Table:GiteaDeployment}}\\
|
||||||
|
\toprule \textbf{Parameter} & \textbf{Configuration}\\ \midrule
|
||||||
|
Provider / role & AWS Lightsail; Gitea work hub, source control, and issue tracking.\\
|
||||||
|
Operating system & Ubuntu 24.04.4 LTS; kernel \texttt{7.0.0-1012-aws}.\\
|
||||||
|
Gitea / Caddy & \texttt{gitea/gitea:1.22}; Caddy \texttt{2.8.4}.\\
|
||||||
|
Restart / storage & \texttt{unless-stopped}; named volumes \texttt{gitea\_data}, \texttt{caddy\_data}, and \texttt{caddy\_config}.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
\section{Database and Persistence}\label{sec:gitea-persistence}
|
||||||
|
SQLite is selected for this single-instance deployment. Its database file is
|
||||||
|
\path{/data/gitea/gitea.db}; the named \texttt{gitea\_data} volume mounted at
|
||||||
|
\texttt{/data} also retains Gitea configuration, repositories, attachments,
|
||||||
|
and other application data. This one-volume design avoids an unnecessary
|
||||||
|
separate database service and makes the application data boundary explicit
|
||||||
|
~\cite{GiteaDockerDocs}. A database user/password is not applicable to this
|
||||||
|
SQLite configuration.
|
||||||
|
|
||||||
|
To test container replacement without deleting data, first create a harmless
|
||||||
|
test repository and issue, record their identifiers, then capture the initial
|
||||||
|
state. Recreate only containers; do not use \texttt{down --volumes}, \texttt{-v},
|
||||||
|
or manually remove named volumes:
|
||||||
|
\begin{minted}{bash}
|
||||||
|
docker compose ps
|
||||||
|
docker compose logs --no-color --tail=100 gitea
|
||||||
|
# After recording the test repository and issue in the UI:
|
||||||
|
docker compose down
|
||||||
|
docker compose up -d
|
||||||
|
docker compose ps
|
||||||
|
docker compose logs --no-color --tail=100 gitea
|
||||||
|
\end{minted}
|
||||||
|
After recreation, verify that the same repository and issue remain available
|
||||||
|
and retain sanitized before/after UI or log evidence. The container
|
||||||
|
replacement test demonstrates volume persistence only. It does not establish
|
||||||
|
backup integrity, off-host retention, recovery-point objectives, or successful
|
||||||
|
disaster recovery; those require a separately tested backup and restore plan.
|
||||||
|
|
||||||
|
\begin{tabularx}{\linewidth}{L{3.2cm}Y}
|
||||||
|
\caption{Container-Recreation Persistence Checks\label{Table:GiteaPersistence}}\\
|
||||||
|
\toprule \textbf{Checkpoint} & \textbf{Verification}\\ \midrule
|
||||||
|
Before replacement & Record the test repository and issue identifiers.\\
|
||||||
|
Recreation & Run \texttt{docker compose down}, then \texttt{docker compose up -d}; preserve named volumes.\\
|
||||||
|
After replacement & Confirm the same repository and issue remain available.\\
|
||||||
|
Backup / restore & Container recreation is not a backup; perform and document a separate off-host backup and restore test.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
\section{HTTPS and Certificate Renewal}\label{sec:gitea-https}
|
||||||
|
Caddy is selected as the TLS-terminating reverse proxy because it obtains and
|
||||||
|
renews certificates automatically when DNS, ports, and site configuration
|
||||||
|
meet its requirements. Nginx with Certbot is also viable, but requires a
|
||||||
|
separate ACME client, renewal scheduling, and reload/verification wiring.
|
||||||
|
TLS terminates at Caddy; the proxy forwards requests to Gitea on the private
|
||||||
|
Compose network. Caddy's automatic HTTPS and renewal behavior are documented
|
||||||
|
by the project; Let's Encrypt certificates have finite validity and should be
|
||||||
|
renewed automatically before expiry~\cite{CaddyAutomaticHTTPS,CertbotRenewal,LECerts}.
|
||||||
|
|
||||||
|
From an external client, check the HTTP-to-HTTPS redirect and inspect the
|
||||||
|
certificate with these commands; certificate details are shown in
|
||||||
|
\autoref{Figure:GiteaCertificate}.
|
||||||
|
\begin{minted}{bash}
|
||||||
|
curl -I http://git.590hcm.dev/
|
||||||
|
echo | openssl s_client -servername git.590hcm.dev -connect git.590hcm.dev:443 2>/dev/null | openssl x509 -noout -subject -issuer -dates
|
||||||
|
\end{minted}
|
||||||
|
\begin{minted}{bash}
|
||||||
|
docker compose exec caddy caddy validate --config /etc/caddy/Caddyfile --adapter caddyfile
|
||||||
|
\end{minted}
|
||||||
|
For Caddy renewal-path testing, run the syntax check above, then use a separate staging hostname and isolated Caddy instance configured with the Let's Encrypt staging ACME directory. Confirm successful staging issuance and inspect sanitized Caddy logs; staging certificates are not production certificates. Caddy does not use Certbot's renew command, and configuration validation alone does not prove renewal~\cite{CaddyStaging}. Track the certificate expiration date and review sanitized Caddy logs during
|
||||||
|
renewal checks.
|
||||||
|
|
||||||
|
\begin{figure}[htbp]
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.72\linewidth]{prism-uploads/gitea-certificate-details.png}
|
||||||
|
\caption{Browser certificate details for \texttt{git.590hcm.dev}; issued by Let's Encrypt (CN \texttt{YE2}), issued October 7, 2026 at 7:47:41 PM and expiring January 5, 2027 at 6:47:40 PM. }\label{Figure:GiteaCertificate}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
|
||||||
|
\section{Firewall and External Exposure}\label{sec:gitea-firewall}
|
||||||
|
The intended exposure policy allows HTTP \texttt{80/TCP}, HTTPS \texttt{443/TCP},
|
||||||
|
and SSH \texttt{22/TCP} only from approved administrator networks. The Lightsail screenshot in
|
||||||
|
\autoref{Figure:GiteaLightsailFirewall} shows HTTP allowed from any IPv4 or
|
||||||
|
IPv6 source, HTTPS from any IPv4 source, and SSH from any IPv4 or IPv6 source.
|
||||||
|
Thus SSH is currently unrestricted, contrary to the intended policy. Backend
|
||||||
|
ports \texttt{3000/TCP} and \texttt{5432/TCP} must not be internet-accessible.
|
||||||
|
Publish only ports 80 and 443 from the Compose proxy. Gitea uses Compose
|
||||||
|
network-only \texttt{expose: 3000}; SQLite means no PostgreSQL listener is
|
||||||
|
needed. Restrict SSH to approved administrator source CIDRs in Lightsail;
|
||||||
|
the SSH source CIDRs should be limited to administrator networks. Review IPv4 and IPv6 cloud firewall
|
||||||
|
rules, and disable IPv6 exposure unless deliberately configured and tested.
|
||||||
|
AWS Lightsail firewall rules control instance traffic, while Docker port
|
||||||
|
publishing creates host-level exposure paths; verify both layers
|
||||||
|
~\cite{LightsailFirewall,DockerPortPublishing}.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
\begin{figure}[htbp]
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=\linewidth]{prism-uploads/gitea-lightsail-firewall.png}
|
||||||
|
\caption{Lightsail firewall snapshot supplied by the user; screenshot filename indicates October 7, 2026 at 9:20:45 PM. It documents unrestricted SSH and IPv4/IPv6 scope for HTTP.}\label{Figure:GiteaLightsailFirewall}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\begin{devopsNote}[Action required: restrict SSH]
|
||||||
|
The snapshot shows SSH allowed from any IPv4 or IPv6 address and Lightsail
|
||||||
|
browser SSH enabled. Restrict SSH to approved administrator source ranges,
|
||||||
|
review browser SSH against policy, and repeat the external tests. The image
|
||||||
|
records the rule state at its capture time.
|
||||||
|
\end{devopsNote}
|
||||||
|
|
||||||
|
Run these tests from outside the Lightsail instance; retain the sanitized
|
||||||
|
outputs with source network and UTC time:
|
||||||
|
\begin{minted}{bash}
|
||||||
|
nc -zv git.590hcm.dev 80 443 22 3000 5432
|
||||||
|
nmap -Pn -p 22,80,443,3000,5432 git.590hcm.dev
|
||||||
|
\end{minted}
|
||||||
|
HTTPS protects confidentiality and integrity in transit, but does not decide
|
||||||
|
which ports or source networks may connect. The cloud firewall and host/Docker
|
||||||
|
exposure controls are separate defense-in-depth layers; neither substitutes
|
||||||
|
for careful authentication and patching.
|
||||||
|
|
||||||
|
\begin{figure}[htbp]
|
||||||
|
\centering
|
||||||
|
\begin{minted}{text}
|
||||||
|
Browser (public)
|
||||||
|
| HTTPS :443; HTTP :80 only for redirect / ACME
|
||||||
|
v
|
||||||
|
AWS Lightsail Cloud Firewall
|
||||||
|
allow: 80/TCP, 443/TCP, restricted 22/TCP
|
||||||
|
deny: 3000/TCP, 5432/TCP; review IPv4 and IPv6
|
||||||
|
v
|
||||||
|
Caddy TLS Proxy (public listener)
|
||||||
|
| private Compose network: gitea:3000
|
||||||
|
v
|
||||||
|
Gitea (no published host port)
|
||||||
|
| /data/gitea/gitea.db and repository data
|
||||||
|
v
|
||||||
|
Named persistent volume: gitea_data
|
||||||
|
\end{minted}
|
||||||
|
\caption{Reported Gitea deployment trust boundaries and data path. The diagram shows the intended configuration; validate the live firewall against it.}\label{Figure:GiteaNetwork}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\section{Startup Team Workflow}\label{sec:gitea-workflow}
|
||||||
|
Create a Gitea organization for the startup and a product repository. Its
|
||||||
|
\texttt{README.md} should describe the product, local setup, tests, contribution
|
||||||
|
and review expectations, and support ownership. Use the workflow plan below
|
||||||
|
to add member accounts and issue-linked pull requests. Give two
|
||||||
|
team members individual accounts and least-privilege roles; do not share
|
||||||
|
accounts or include credentials. Suggested actionable backlog items are:
|
||||||
|
\begin{enumerate}[label=\arabic*.]
|
||||||
|
\item Add a reproducible local setup and configuration example to \texttt{README.md}.
|
||||||
|
\item Add automated tests for the product's primary user workflow.
|
||||||
|
\item Add dependency and container-image vulnerability scanning to CI.
|
||||||
|
\item Document a release and rollback procedure for the production service.
|
||||||
|
\item Add an uptime, TLS-expiry, and disk-capacity monitoring runbook.
|
||||||
|
\end{enumerate}
|
||||||
|
For each of two issues, use the sequence: create an issue, create an issue-linked
|
||||||
|
branch, open a pull request referencing the issue, obtain a peer review, merge
|
||||||
|
only after approval/checks, then verify issue closure. Use actual Gitea object URLs and dates when carrying out the workflow.
|
||||||
|
|
||||||
|
\begin{tabularx}{\linewidth}{L{3.0cm}Y}
|
||||||
|
\caption{Startup Organization, Backlog, and Pull-Request Evidence\label{Table:GiteaWorkflow}}\\
|
||||||
|
\toprule \textbf{Deliverable} & \textbf{Record to complete from Gitea}\\ \midrule
|
||||||
|
Organization / product repository & Create a startup organization and product repository; link the README.\\
|
||||||
|
Two members and roles & Assign one member as organization owner/maintainer and the other as developer/peer reviewer; use individual accounts.\\
|
||||||
|
Five issues & Create actionable issues for setup documentation, product tests, vulnerability scanning, release/rollback, and service monitoring.\\
|
||||||
|
Flow 1 & Create a README setup issue; branch as \texttt{docs/issue-<id>-setup}; open a PR with \texttt{Closes \#<id>}; obtain Member B review; merge and confirm issue closure.\\
|
||||||
|
Flow 2 & Create a security-scanning issue; branch as \texttt{ci/issue-<id>-security-scan}; open a PR with \texttt{Closes \#<id>}; obtain Member A review; merge and confirm issue closure.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
\section{Architecture and Operation}\label{sec:gitea-operations}
|
||||||
|
A browser resolves \texttt{git.590hcm.dev} to the reported IPv4 endpoint and
|
||||||
|
connects through the Lightsail firewall. Caddy accepts public HTTP/HTTPS,
|
||||||
|
redirects HTTP to HTTPS, manages the public certificate, and reverse-proxies
|
||||||
|
to Gitea over the private Compose network. Gitea serves the application and
|
||||||
|
stores the SQLite database and repositories in \texttt{/data}, backed by the
|
||||||
|
named volume. The public trust boundary ends at the proxy; Gitea and its data
|
||||||
|
volume are private to the instance. Confirm IPv6 follows the same intended
|
||||||
|
policy rather than assuming IPv4 rules cover it.
|
||||||
|
|
||||||
|
Routine operation and first checks:
|
||||||
|
\begin{minted}{bash}
|
||||||
|
cd ~/gitea-stack
|
||||||
|
docker compose ps
|
||||||
|
docker compose logs --since=15m --no-color caddy gitea
|
||||||
|
docker compose restart caddy gitea
|
||||||
|
docker compose ps
|
||||||
|
docker compose logs --since=5m --no-color caddy gitea
|
||||||
|
\end{minted}
|
||||||
|
If the service is unavailable, first check DNS and external ports, then
|
||||||
|
Lightsail firewall attachment, Compose health/state, Caddy logs and certificate
|
||||||
|
status, Gitea logs, disk capacity, and volume mounts. Avoid deleting volumes
|
||||||
|
as a troubleshooting step. The persistence test in \autoref{Table:GiteaPersistence} checks container
|
||||||
|
recreation only. Separately maintain protected off-host backups, documented
|
||||||
|
retention, and a verified restore procedure.
|
||||||
|
|
||||||
|
\section{Manual Quality and Controls}\label{sec:gitea-controls}
|
||||||
|
This revision records the reported host values and a reproducible
|
||||||
|
configuration plan. Log operational results after each check is run. The change history links to this chapter and both inventory
|
||||||
|
chapters. Record the setup date, image digest, renewal date, and test results
|
||||||
|
in the operations record. Keep a concise record of any failed configuration and
|
||||||
|
its corrective action. Listings contain no password,
|
||||||
|
token, private key, or other credential. Apply the same strict redaction to
|
||||||
|
captured logs, screenshots, DNS output, and firewall exports before including
|
||||||
|
them.
|
||||||
|
|
||||||
|
\clearpage
|
||||||
|
\begin{tabularx}{\linewidth}{L{3.5cm}Y}
|
||||||
|
\caption{Manual Quality and Evidence Controls\label{Table:GiteaManualQuality}}\\
|
||||||
|
\toprule \textbf{Control} & \textbf{Current record}\\ \midrule
|
||||||
|
Version and change date & Version 1.8; October 8, 2026.\\
|
||||||
|
Hostname and host inventory & User-supplied values recorded in \autoref{Table:DevelopmentHosts}; include the instance bundle, region, and Docker Engine build in the host inventory.\\
|
||||||
|
Credential inventory & Three Gitea-related rows added to \autoref{Table:PasswordRules}; vault references only, no secret values.\\
|
||||||
|
Evidence & DNS, certificate, and firewall screenshots are captioned; run the documented redirect, external-port, persistence, and workflow checks during deployment.\\
|
||||||
|
Failed configurations & Record each failed attempt with its corrective action and retest result.\\
|
||||||
|
Redaction & Listings contain no credentials; review every future log and figure for secrets before inclusion.\\
|
||||||
|
Backup / restore & Test backup and restore separately from container-persistence verification.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
13
devopsGlossary.tex
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
\newacronym{ai}{AI}{artificial intelligence}
|
||||||
|
\newacronym{ci}{CI}{continuous integration}
|
||||||
|
\newacronym{cd}{CD}{continuous delivery or continuous deployment}
|
||||||
|
\newacronym{iac}{IaC}{infrastructure as code}
|
||||||
|
\newacronym{slo}{SLO}{service-level objective}
|
||||||
|
\newglossaryentry{automation}{name={automation},description={A repeatable, version-controlled procedure executed by software rather than undocumented manual steps}}
|
||||||
|
\newglossaryentry{deployment}{name={deployment},description={The controlled delivery of a versioned change to an environment}}
|
||||||
|
\newglossaryentry{evidence}{name={evidence},description={A retained record of an actual execution, observation, or review}}
|
||||||
|
\newglossaryentry{observability}{name={observability},description={The ability to infer system behavior from signals such as logs, metrics, traces, and health checks}}
|
||||||
|
\newglossaryentry{pipeline}{name={pipeline},description={An automated sequence that builds, tests, packages, and/or deploys a change}}
|
||||||
|
\newglossaryentry{rollback}{name={rollback},description={A controlled return to a known acceptable version or state after a failed or harmful change}}
|
||||||
|
\newglossaryentry{runbook}{name={runbook},description={A documented operational procedure for a repeatable task or incident response}}
|
||||||
|
\newglossaryentry{synonyms}{name={synonyms},description={Equivalent terms used in this assignment; record preferred terms to avoid ambiguity in instructions and evidence}}
|
||||||
50
devopsHosts.tex
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
\chapter{Hosts}
|
||||||
|
\ChapterLabel{Hosts}
|
||||||
|
\index{hosts}
|
||||||
|
\index{development environment}
|
||||||
|
|
||||||
|
Name.com is the domain registrar for \texttt{590hcm.dev}; AWS Lightsail is
|
||||||
|
the hosting provider for the production Gitea instance at
|
||||||
|
\texttt{git.590hcm.dev}. The table also records proposed local development
|
||||||
|
hosts. The supplied production endpoint is not independent evidence of
|
||||||
|
instance configuration or firewall testing.
|
||||||
|
|
||||||
|
\section{Development Host Inventory}
|
||||||
|
The local entries use the proposed \texttt{dev-<role>} naming rule. The Gitea
|
||||||
|
host is a distinct reported production resource; see
|
||||||
|
\autoref{Table:GiteaDeployment} for instance details still to capture.
|
||||||
|
|
||||||
|
\small
|
||||||
|
\begin{longtable}{@{}L{2.8cm}L{3.2cm}L{3.2cm}L{4.0cm}@{}}
|
||||||
|
\caption{Development and Gitea Host Inventory\label{Table:DevelopmentHosts}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Hostname} & \textbf{Role} & \textbf{Environment / provider} & \textbf{Address / exposed ports / URL}\\
|
||||||
|
\midrule
|
||||||
|
\endfirsthead
|
||||||
|
\multicolumn{4}{l}{\small\itshape Development and Gitea hosts (continued)}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Hostname} & \textbf{Role} & \textbf{Environment / provider} & \textbf{Address / exposed ports / URL}\\
|
||||||
|
\midrule
|
||||||
|
\endhead
|
||||||
|
\midrule
|
||||||
|
\multicolumn{4}{r}{\small\itshape Continued on next page}\\
|
||||||
|
\endfoot
|
||||||
|
\bottomrule
|
||||||
|
\endlastfoot
|
||||||
|
\texttt{dev-workstation} & Primary workspace for writing code and managing course files. & Development / not specified. & Proposed; address to be confirmed.\\
|
||||||
|
\addlinespace
|
||||||
|
\texttt{dev-app} & Run and test the development application. & Development / not specified. & Proposed; address to be confirmed.\\
|
||||||
|
\addlinespace
|
||||||
|
\texttt{dev-db} & Store test data for the development application. & Development / not specified. & Proposed; address to be confirmed.\\
|
||||||
|
\addlinespace
|
||||||
|
\texttt{dev-build} & Run repeatable builds and automated tests. & Development / not specified. & Proposed; address to be confirmed.\\
|
||||||
|
\addlinespace
|
||||||
|
\texttt{git.590hcm.dev} & Gitea Work Hub / Source Control \& Issue Tracking. & Production / AWS Lightsail. & IPv4: \texttt{184.193.0.32}; intended 80/TCP, 443/TCP, restricted 22/TCP. Screenshot observed 80/TCP any IPv4/IPv6, 443/TCP any IPv4, and 22/TCP any IPv4/IPv6 (unrestricted; correction required). \url{https://git.590hcm.dev}.\\
|
||||||
|
\end{longtable}
|
||||||
|
\normalsize
|
||||||
|
|
||||||
|
The four \texttt{dev-*} entries remain proposed. The Gitea production hostname,
|
||||||
|
role, provider, IPv4 address, and intended exposed ports above were supplied
|
||||||
|
for this revision; obtain console and external-test evidence before marking
|
||||||
|
them independently verified. Account rules and non-secret vault references
|
||||||
|
are listed in \ChapterRef{Passwords}.
|
||||||
47
devopsIntroduction.tex
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
\chapter{Introduction}
|
||||||
|
\ChapterLabel{Introduction}
|
||||||
|
\index{introduction}
|
||||||
|
\index{DevOps}
|
||||||
|
|
||||||
|
\section{How to Use This Assignment}
|
||||||
|
Replace bracketed text with approved assignment facts. Delete instructional
|
||||||
|
examples before release, but retain the stable identifiers, history, glossary,
|
||||||
|
index, appendices, and evidence structure. This document is an assignment
|
||||||
|
brief and operational record, not a requirements or software-design document.
|
||||||
|
|
||||||
|
\section{Purpose and Learning Objectives}
|
||||||
|
State the DevOps capability students will practice and the observable learning
|
||||||
|
outcomes. \textit{Example: Students will provision a minimal Linux service,
|
||||||
|
automate its deployment, collect operational evidence, and demonstrate a safe
|
||||||
|
rollback.}
|
||||||
|
|
||||||
|
\section{Scope and Constraints}
|
||||||
|
State the permitted cloud or local environment, team size, required tools,
|
||||||
|
budget limits, source-control repository, timebox, and prohibited actions.
|
||||||
|
Do not include credentials, access tokens, student records, or production data.
|
||||||
|
|
||||||
|
\section{Deliverables and Due Date}
|
||||||
|
\begin{tabularx}{\linewidth}{L{3.2cm}Y}
|
||||||
|
\toprule \textbf{Item} & \textbf{Expectation}\\ \midrule
|
||||||
|
Due date & \DueDate\\
|
||||||
|
Repository & \textit{[repository URL or LMS location]}\\
|
||||||
|
Required deliverables & \textit{[automation, runbook, evidence, reflection]}\\
|
||||||
|
Team policy & \textit{[individual or team; contribution expectations]}\\ \bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
\section{Using This Template with AI Agents}
|
||||||
|
\index{AI agent!DevOps workflow}
|
||||||
|
AI may assist with explanation, drafting, troubleshooting, and reviewing
|
||||||
|
automation. It does not replace student understanding or authorize an agent to
|
||||||
|
operate accounts, approve work, invent results, or receive secrets. Before
|
||||||
|
editing, an AI agent shall read \texttt{devopsAIAgentGuide.tex}, load only the
|
||||||
|
relevant assignment files, identify assumptions, and preserve evidence
|
||||||
|
boundaries. Record material AI assistance in \ChapterRef{AIPromptLog}.
|
||||||
|
|
||||||
|
\begin{verbatim}
|
||||||
|
Read devopsAIAgentGuide.tex first. For this SSW 590 assignment, identify the
|
||||||
|
requested task and read only the listed sources. Use supplied evidence only;
|
||||||
|
do not invent commands, deployment results, approvals, credentials, or costs.
|
||||||
|
Preserve stable IDs and history. Make the smallest appropriate change, build
|
||||||
|
the PDF, and report assumptions, risks, and actions requiring human approval.
|
||||||
|
\end{verbatim}
|
||||||
14
devopsKanbanSetup.tex
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
\chapter{Kanban Setup}
|
||||||
|
\ChapterLabel{KanbanSetup}
|
||||||
|
\index{Kanban}
|
||||||
|
\index{Jira}
|
||||||
|
|
||||||
|
I used Atlassian Jira to create my Kanban board for SSW 590. The setup
|
||||||
|
process was straightforward and involved the following steps:
|
||||||
|
|
||||||
|
\begin{enumerate}
|
||||||
|
\item I logged in to Jira.
|
||||||
|
\item I created a new site for SSW 590.
|
||||||
|
\item I selected the \textbf{Kanban} option.
|
||||||
|
\item I clicked \textbf{Create} to create my Kanban board.
|
||||||
|
\end{enumerate}
|
||||||
66
devopsLocalDocker.tex
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
\chapter{Local Docker}
|
||||||
|
\ChapterLabel{LocalDocker}
|
||||||
|
\index{Docker}
|
||||||
|
\index{Docker!local environment}
|
||||||
|
|
||||||
|
For this assignment, I installed Docker and ran the two example websites
|
||||||
|
described in Sections~2.5 and~2.6 of the \textit{dsoDockerSetup} document.
|
||||||
|
Both websites ran inside Docker containers on my local computer. I verified
|
||||||
|
them by opening their loopback addresses in a web browser.
|
||||||
|
|
||||||
|
\section{Local Website Endpoints}
|
||||||
|
The two local addresses used for verification were:
|
||||||
|
|
||||||
|
\begin{minted}[linenos=false]{text}
|
||||||
|
http://127.0.0.1:5050
|
||||||
|
http://127.0.0.1:8080
|
||||||
|
\end{minted}
|
||||||
|
|
||||||
|
The loopback address \texttt{127.0.0.1} limits access to the local computer.
|
||||||
|
The port number identifies which containerized website the browser should
|
||||||
|
open.
|
||||||
|
|
||||||
|
\section{Hello World Website}
|
||||||
|
The first Docker example displayed the message ``Hello, World from Node +
|
||||||
|
Docker!'' at \texttt{http://127.0.0.1:5050}. The visible page confirms that
|
||||||
|
the website responded through the local port published for its container.
|
||||||
|
|
||||||
|
\begin{figure}[p]
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=\textwidth]{prism-uploads/hello-world-screenshot.pdf}
|
||||||
|
\caption{Hello World website running locally in a Docker container on port 5050.}
|
||||||
|
\label{Figure:LocalDockerHelloWorld}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\section{Color Buttons Website}
|
||||||
|
The second Docker example displayed a page titled ``Click a Button to Change
|
||||||
|
Background'' at \texttt{http://127.0.0.1:8080}. The screenshot shows the
|
||||||
|
Blue and Red controls and a blue page background, confirming that the
|
||||||
|
interactive website loaded through the local port published for its
|
||||||
|
container.
|
||||||
|
|
||||||
|
\begin{figure}[p]
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=\textwidth]{prism-uploads/color-buttons-screenshot.pdf}
|
||||||
|
\caption{Color Buttons website running locally in a Docker container on port 8080.}
|
||||||
|
\label{Figure:LocalDockerColorButtons}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\section{Results}
|
||||||
|
Table~\ref{Table:LocalDockerResults} summarizes the observed results. The
|
||||||
|
screenshots document the browser-visible results; they do not expose
|
||||||
|
passwords, tokens, or other secrets.
|
||||||
|
|
||||||
|
\begin{tabularx}{\linewidth}{L{3.2cm}L{3.8cm}Y}
|
||||||
|
\caption{Local Docker Website Results\label{Table:LocalDockerResults}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Example} & \textbf{Local address} & \textbf{Observed result}\\ \midrule
|
||||||
|
Hello World & \texttt{127.0.0.1:5050} & The browser displayed ``Hello, World from Node + Docker!'' as shown in Figure~\ref{Figure:LocalDockerHelloWorld}.\\
|
||||||
|
Color Buttons & \texttt{127.0.0.1:8080} & The browser displayed the color-selection page with Blue and Red buttons as shown in Figure~\ref{Figure:LocalDockerColorButtons}.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
Both examples were successfully accessible from the local browser at their
|
||||||
|
assigned ports. This demonstrated that Docker could run the two web
|
||||||
|
applications in containers and publish each application to a separate local
|
||||||
|
port.
|
||||||
54
devopsPasswords.tex
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
\chapter{Passwords}
|
||||||
|
\ChapterLabel{Passwords}
|
||||||
|
\index{password rules}
|
||||||
|
|
||||||
|
This chapter records proposed development credentials and non-secret vault
|
||||||
|
references for the reported Gitea production host. These entries do not
|
||||||
|
confirm that accounts exist. No password, token, private key, or secret value
|
||||||
|
is included in this report.
|
||||||
|
|
||||||
|
\section{My Proposed Password Rule}
|
||||||
|
My rule is \textbf{one host, one account, one unique secret}. I will use a
|
||||||
|
separate, randomly generated password of at least 16 characters for each
|
||||||
|
password-based account and keep it in a password manager. I will not derive
|
||||||
|
passwords from host names, usernames, the course number, or a shared base
|
||||||
|
password. Hints below identify only the purpose and vault location, never any
|
||||||
|
password characters, token, or generation pattern.
|
||||||
|
|
||||||
|
\section{User, Password, and Server Rules}
|
||||||
|
The hosts are described in \ChapterRef{Hosts}. Use unique credentials and
|
||||||
|
least privilege; use SSH key authentication where available and keep private
|
||||||
|
keys out of this document and source control.
|
||||||
|
|
||||||
|
\small
|
||||||
|
\begin{longtable}{@{}L{2.1cm}L{3.2cm}L{4.7cm}L{3.6cm}@{}}
|
||||||
|
\caption{User, Password, and Server Rules\label{Table:PasswordRules}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{User label} & \textbf{Server / host} & \textbf{Password and access rule} & \textbf{Non-secret hint / vault reference}\\
|
||||||
|
\midrule
|
||||||
|
\endfirsthead
|
||||||
|
\multicolumn{4}{l}{\small\itshape Password rules (continued)}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{User label} & \textbf{Server / host} & \textbf{Password and access rule} & \textbf{Non-secret hint / vault reference}\\
|
||||||
|
\midrule
|
||||||
|
\endhead
|
||||||
|
\midrule
|
||||||
|
\multicolumn{4}{r}{\small\itshape Continued on next page}\\
|
||||||
|
\endfoot
|
||||||
|
\bottomrule
|
||||||
|
\endlastfoot
|
||||||
|
\texttt{devuser} & \texttt{dev-workstation} & Use a unique generated password for the everyday development account; reserve administrative access for tasks that require it. & Vault reference: Development / Workstation (entry title only).\\
|
||||||
|
\addlinespace
|
||||||
|
\texttt{appuser} & \texttt{dev-app} & Use a separate generated password if password login is enabled; limit this account to application development tasks. & Vault reference: Development / Application host (entry title only).\\
|
||||||
|
\addlinespace
|
||||||
|
\texttt{dbuser} & \texttt{dev-db} & Use a unique database-account password, distinct from the host login; restrict access to the development database. & Vault reference: Development / Database (entry title only).\\
|
||||||
|
\addlinespace
|
||||||
|
\texttt{builduser} & \texttt{dev-build} & Use a distinct generated password if interactive login is needed; keep automation credentials separate and out of source files. & Vault reference: Development / Build host (entry title only).\\
|
||||||
|
\addlinespace
|
||||||
|
Gitea administrator & \texttt{git.590hcm.dev} & Individual administrator account with only required privileges; account name and existence require confirmation. & Vault reference: Infrastructure / Gitea / Administrator (entry title only).\\
|
||||||
|
\addlinespace
|
||||||
|
\texttt{ubuntu} SSH user & AWS Lightsail instance & Prefer key authentication; restrict SSH access to authorized administrators. Never record private key material here. & Vault reference: Infrastructure / Lightsail / SSH key metadata only.\\
|
||||||
|
\addlinespace
|
||||||
|
SQLite DB user & \texttt{git.590hcm.dev} & Not applicable for SQLite: the local database file has no separate database login. & N/A; no database-user password or token exists for this configuration.\\
|
||||||
|
\end{longtable}
|
||||||
|
\normalsize
|
||||||
207
devopsProjectProposal.tex
Normal file
@ -0,0 +1,207 @@
|
|||||||
|
\chapter{Project Proposal}
|
||||||
|
\ChapterLabel{ProjectProposal}
|
||||||
|
\index{project proposal}
|
||||||
|
\index{GitHub Actions}
|
||||||
|
\index{Jenkins}
|
||||||
|
\index{DevSecOps}
|
||||||
|
|
||||||
|
This chapter proposes a project and tool comparison for the semester. All
|
||||||
|
tools, environments, pipeline stages, and dashboard features described here
|
||||||
|
are planned work rather than completed implementation.
|
||||||
|
|
||||||
|
\section{Project Title}
|
||||||
|
\textbf{One-Button DevSecOps Task Tracker}
|
||||||
|
|
||||||
|
\section{Project Description}
|
||||||
|
I propose building a small web application for a fictional DevOps startup.
|
||||||
|
The application will allow a user to create tasks, assign a status, update a
|
||||||
|
task, and view the current work queue. It will also expose a health endpoint
|
||||||
|
and display the application version so that deployments can be tested and
|
||||||
|
observed.
|
||||||
|
|
||||||
|
The starting point will be my existing Node.js and Docker work demonstrated
|
||||||
|
in \ChapterRef{LocalDocker}. Instead of stopping with a static Hello World
|
||||||
|
page, I will extend the project into a working task-tracking application with
|
||||||
|
automated testing, container packaging, security checks, deployment, and
|
||||||
|
monitoring. The automated build will produce a versioned Docker image of the
|
||||||
|
task tracker.
|
||||||
|
|
||||||
|
\section{Selected Tool and Alternative}
|
||||||
|
I propose \textbf{GitHub Actions} as the primary automation tool. Its workflows
|
||||||
|
can run from repository events or a manual trigger, making it suitable for the
|
||||||
|
planned build, test, scan, package, and release process
|
||||||
|
\cite{GitHubActionsDocs}. Docker also provides official GitHub Actions for
|
||||||
|
building and publishing container images \cite{DockerBuildActionsDocs}.
|
||||||
|
|
||||||
|
The alternative tool will be \textbf{Jenkins}. Jenkins Pipeline represents a
|
||||||
|
delivery process as code in a version-controlled \texttt{Jenkinsfile} and can
|
||||||
|
model build, test, and deployment stages \cite{JenkinsPipelineDocs}. I will
|
||||||
|
implement the main pipeline with GitHub Actions and reproduce enough of the
|
||||||
|
same workflow in Jenkins to compare setup, security, maintenance, usability,
|
||||||
|
and operational visibility.
|
||||||
|
|
||||||
|
\begin{tabularx}{\linewidth}{L{3.2cm}YY}
|
||||||
|
\caption{Proposed Automation Tool Comparison\label{Table:AutomationComparison}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Area} & \textbf{GitHub Actions} & \textbf{Jenkins}\\ \midrule
|
||||||
|
Source-control integration & Workflow stored with the GitHub repository and triggered by repository events or manual dispatch. & Pipeline stored in a \texttt{Jenkinsfile}, with Jenkins configured to monitor the repository.\\
|
||||||
|
Hosting model & GitHub-hosted runner initially; a self-hosted runner remains an option. & A locally managed Jenkins controller and agent, preferably isolated in containers.\\
|
||||||
|
Administration & Lower initial administration for a small GitHub-hosted project. & Greater control, with added responsibility for installation, plugins, credentials, upgrades, and backups.\\
|
||||||
|
Security focus & Restrict workflow permissions, protect environments, pin trusted actions, and keep secrets outside the repository. & Restrict controller and agent access, minimize plugins, protect credentials, and maintain the Jenkins host.\\
|
||||||
|
Comparison evidence & Workflow duration, setup effort, failed-stage visibility, security configuration, and release results. & The same measures collected from an equivalent Jenkins pipeline.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
\section{Proposed Application and DevSecOps Tools}
|
||||||
|
Table~\ref{Table:ProjectToolchain} identifies the initial toolchain. The final
|
||||||
|
selection may change as the application and course requirements become more
|
||||||
|
detailed.
|
||||||
|
|
||||||
|
\begin{tabularx}{\linewidth}{L{3.2cm}L{4.0cm}Y}
|
||||||
|
\caption{Proposed Project Toolchain\label{Table:ProjectToolchain}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Capability} & \textbf{Proposed tool} & \textbf{Planned use}\\ \midrule
|
||||||
|
Source control & Git and GitHub & Store application code, Docker configuration, tests, pipeline definitions, documentation, and release tags.\\
|
||||||
|
Application & Node.js web application & Implement task creation, status updates, a health endpoint, and version reporting.\\
|
||||||
|
Database & PostgreSQL & Store tasks and status history in a separate development container.\\
|
||||||
|
Testing & Jest and Supertest & Run unit and API tests before an image is released.\\
|
||||||
|
Container build & Docker and Docker Compose & Package the application and run the application and database as local services.\\
|
||||||
|
Primary CI/CD & GitHub Actions & Automate build, test, security scanning, image publication, deployment, and smoke testing.\\
|
||||||
|
Alternative CI/CD & Jenkins Pipeline & Reproduce the core pipeline for a structured comparison with GitHub Actions.\\
|
||||||
|
Security & Dependency audit and Trivy & Check dependencies, scan the repository and container image, and fail the release on defined high-risk findings. Trivy supports scanning repositories, container images, secrets, and misconfiguration \cite{TrivyDocs}.\\
|
||||||
|
Image registry & GitHub Container Registry & Store versioned container images produced by successful release workflows.\\
|
||||||
|
Deployment & Local Docker Compose initially & Provide a repeatable development deployment without assuming cloud cost; a small DigitalOcean environment may be evaluated later if approved.\\
|
||||||
|
Monitoring & Prometheus and Grafana & Collect health and operational metrics and present them in a dashboard.\\
|
||||||
|
Issue tracking & Jira & Track backlog tasks, security work, defects, and release milestones on the Kanban board.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
\section{Sample Project Tasks}
|
||||||
|
The initial backlog will contain the following tasks:
|
||||||
|
|
||||||
|
\begin{enumerate}
|
||||||
|
\item Create the Node.js application and health endpoint.
|
||||||
|
\item Add create, read, update, and status-change operations for tasks.
|
||||||
|
\item Add PostgreSQL persistence and database migration scripts.
|
||||||
|
\item Add unit tests, API tests, linting, and a repeatable local test command.
|
||||||
|
\item Create a multi-stage Dockerfile and a Docker Compose development stack.
|
||||||
|
\item Create the GitHub Actions pipeline and the comparison Jenkins pipeline.
|
||||||
|
\item Add dependency, secret, configuration, and container-image security scans.
|
||||||
|
\item Publish a versioned image only after all quality and security gates pass.
|
||||||
|
\item Deploy the approved image, run a smoke test, and document rollback.
|
||||||
|
\item Build the operational dashboard and record comparison measurements.
|
||||||
|
\end{enumerate}
|
||||||
|
|
||||||
|
\section{One-Button Build and Release}
|
||||||
|
The GitHub Actions workflow will provide a manual release trigger so that one
|
||||||
|
approved action starts the complete process. Normal pull requests will run
|
||||||
|
validation without deploying. The release workflow will execute the stages in
|
||||||
|
Table~\ref{Table:ReleasePipeline} and stop immediately when a required gate
|
||||||
|
fails.
|
||||||
|
|
||||||
|
\begin{tabularx}{\linewidth}{L{2.6cm}L{3.0cm}Y}
|
||||||
|
\caption{Proposed One-Button Release Pipeline\label{Table:ReleasePipeline}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Stage} & \textbf{Purpose} & \textbf{Completion gate}\\ \midrule
|
||||||
|
Checkout & Retrieve the approved source revision and pipeline configuration. & The workflow records the commit identifier being built.\\
|
||||||
|
Dependencies & Install locked application dependencies. & Installation succeeds from the committed dependency lock file.\\
|
||||||
|
Quality & Run formatting, linting, unit tests, and API tests. & All required checks and tests pass.\\
|
||||||
|
Security & Audit dependencies and scan source, configuration, secrets, and the container image. & Findings remain within the documented release policy.\\
|
||||||
|
Build & Create an immutable Docker image tagged with the release and commit identifiers. & The image builds successfully and can start in a test environment.\\
|
||||||
|
Publish & Push the approved image to the container registry. & The registry contains the expected immutable image tag.\\
|
||||||
|
Deploy & Update the development environment to the approved image. & Application and database services report healthy status.\\
|
||||||
|
Verify & Run a smoke test against the health endpoint and task API. & The deployed version responds correctly and matches the requested release.\\
|
||||||
|
Record & Save test, scan, image, deployment, and timing results. & The dashboard and release record identify the outcome and deployed version.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
If deployment verification fails, the process will redeploy the previously
|
||||||
|
known working image tag. Secrets will be stored in the automation platform's
|
||||||
|
approved secret store and injected only when required; they will not be placed
|
||||||
|
in source files, Docker images, logs, or this report.
|
||||||
|
|
||||||
|
\section{Operational Dashboard}
|
||||||
|
The proposed Grafana dashboard will present operational and delivery data in
|
||||||
|
one view. Planned panels include:
|
||||||
|
|
||||||
|
\begin{itemize}
|
||||||
|
\item application availability and health-check status;
|
||||||
|
\item request count, response time, and error rate;
|
||||||
|
\item current application version and last deployment time;
|
||||||
|
\item pipeline success rate and duration by automation tool;
|
||||||
|
\item unit and API test results;
|
||||||
|
\item open high-severity security findings;
|
||||||
|
\item container restart count and basic CPU and memory use; and
|
||||||
|
\item rollback count and recovery time after a failed deployment.
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
The same release will be exercised through GitHub Actions and Jenkins where
|
||||||
|
practical so that the dashboard and retained pipeline records can support a
|
||||||
|
comparison rather than relying only on personal preference.
|
||||||
|
|
||||||
|
\section{Modified SWOT Analysis}
|
||||||
|
The following SWOT tables are preliminary hypotheses. They will be updated
|
||||||
|
with measured evidence after both pipeline implementations are exercised.
|
||||||
|
|
||||||
|
\subsection{GitHub Actions}
|
||||||
|
\begin{longtable}{@{}L{2.7cm}L{10.8cm}@{}}
|
||||||
|
\caption{Preliminary Modified SWOT for GitHub Actions\label{Table:GitHubActionsSWOT}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Category} & \textbf{Project-specific assessment}\\ \midrule
|
||||||
|
\endfirsthead
|
||||||
|
\toprule
|
||||||
|
\textbf{Category} & \textbf{Project-specific assessment}\\ \midrule
|
||||||
|
\endhead \bottomrule \endlastfoot
|
||||||
|
Strengths & Close integration with the selected source repository, workflow files reviewed with the application, accessible hosted runners, and a direct path from pull-request checks to a manual release.\\
|
||||||
|
Weaknesses & Workflow behavior depends on platform conventions and third-party actions; complex workflows may become difficult to debug without disciplined structure and logging.\\
|
||||||
|
Opportunities & Reusable workflows, automated container publication, protected release environments, and security evidence attached to every proposed release.\\
|
||||||
|
Threats / risks & Excessive workflow permissions, untrusted actions, exposed secrets, platform dependency, and uncontrolled runner or artifact usage.\\
|
||||||
|
\end{longtable}
|
||||||
|
|
||||||
|
\subsection{Jenkins}
|
||||||
|
\begin{longtable}{@{}L{2.7cm}L{10.8cm}@{}}
|
||||||
|
\caption{Preliminary Modified SWOT for Jenkins\label{Table:JenkinsSWOT}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Category} & \textbf{Project-specific assessment}\\ \midrule
|
||||||
|
\endfirsthead
|
||||||
|
\toprule
|
||||||
|
\textbf{Category} & \textbf{Project-specific assessment}\\ \midrule
|
||||||
|
\endhead \bottomrule \endlastfoot
|
||||||
|
Strengths & Flexible pipeline design, control over the execution environment, broad integration options, and a versioned \texttt{Jenkinsfile}.\\
|
||||||
|
Weaknesses & Requires administration of the controller, agents, plugins, credentials, storage, upgrades, and backups in addition to the application itself.\\
|
||||||
|
Opportunities & Demonstrates a self-hosted automation model, supports custom agents, and provides a meaningful comparison of operational ownership against a hosted workflow service.\\
|
||||||
|
Threats / risks & Outdated plugins or controller software, excessive administrative access, credential exposure, configuration drift, unavailable agents, and loss of pipeline history without backup.\\
|
||||||
|
\end{longtable}
|
||||||
|
|
||||||
|
\section{Unique Proposal}
|
||||||
|
The unique feature will be a \textbf{release confidence score} displayed on
|
||||||
|
the dashboard. The score will combine the latest test result, security-gate
|
||||||
|
result, health-check result, deployment age, and rollback status. It will not
|
||||||
|
replace the underlying evidence; selecting the score will lead to the test,
|
||||||
|
scan, and deployment details that produced it. The experiment will evaluate
|
||||||
|
whether one concise indicator helps a small team notice release risk without
|
||||||
|
hiding failures.
|
||||||
|
|
||||||
|
\section{Rubric Alignment}
|
||||||
|
\begin{tabularx}{\linewidth}{L{4.2cm}Y}
|
||||||
|
\caption{Project Rubric Alignment\label{Table:ProjectRubricAlignment}}\\
|
||||||
|
\toprule
|
||||||
|
\textbf{Expectation} & \textbf{Proposal response}\\ \midrule
|
||||||
|
Selected tool or environment & GitHub Actions is the primary tool; Jenkins is the alternative; Docker Compose is the initial deployment environment.\\
|
||||||
|
Working sample application & A Node.js task tracker with PostgreSQL persistence, health reporting, and version reporting.\\
|
||||||
|
Specific DevOps tools & GitHub, Docker, automated tests, security scanning, a registry, deployment automation, Prometheus, and Grafana.\\
|
||||||
|
Comparable tools & GitHub Actions and Jenkins will execute equivalent build, test, scan, package, and deployment stages where practical.\\
|
||||||
|
Build environment & Local containers first, with a small approved cloud deployment considered later rather than assumed.\\
|
||||||
|
Operational dashboard & Grafana panels will report application health, delivery performance, security results, resource signals, and deployed version.\\
|
||||||
|
Modified SWOT charts & Preliminary SWOT tables are included for both automation tools and will be revised from execution evidence.\\
|
||||||
|
Unique contribution & A transparent release confidence score links a summary indicator to detailed test, security, and deployment evidence.\\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
\section{Current Scope and Decisions Still Needed}
|
||||||
|
The first deliverable will remain local to avoid unapproved cloud cost. Before
|
||||||
|
implementation, I will confirm whether the final deployment must use a cloud
|
||||||
|
provider, the required hosting budget, the minimum dashboard metrics, and the
|
||||||
|
security threshold that should block a release. I will also confirm whether
|
||||||
|
the full Jenkins deployment must match GitHub Actions or whether a smaller
|
||||||
|
comparison pipeline is sufficient.
|
||||||
111
devopsReferences.bib
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
@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{GitHubActionsDocs,
|
||||||
|
author = {{GitHub}},
|
||||||
|
title = {Understanding GitHub Actions},
|
||||||
|
howpublished = {\url{https://docs.github.com/en/actions/get-started/understand-github-actions}},
|
||||||
|
note = {Accessed October 1, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{DockerBuildActionsDocs,
|
||||||
|
author = {{Docker}},
|
||||||
|
title = {Docker Build GitHub Actions},
|
||||||
|
howpublished = {\url{https://docs.docker.com/build/ci/github-actions/}},
|
||||||
|
note = {Accessed October 1, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{JenkinsPipelineDocs,
|
||||||
|
author = {{Jenkins Project}},
|
||||||
|
title = {Pipeline},
|
||||||
|
howpublished = {\url{https://www.jenkins.io/doc/book/pipeline/}},
|
||||||
|
note = {Accessed October 1, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{TrivyDocs,
|
||||||
|
author = {{Aqua Security}},
|
||||||
|
title = {Trivy Documentation},
|
||||||
|
howpublished = {\url{https://trivy.dev/docs/latest/guide/}},
|
||||||
|
note = {Accessed October 1, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{GitHubStudentPack,
|
||||||
|
author = {{GitHub Education}},
|
||||||
|
title = {GitHub Student Developer Pack},
|
||||||
|
howpublished = {\url{https://education.github.com/pack}},
|
||||||
|
note = {Offer and eligibility terms must be verified at time of redemption; accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{NameComStudentOffer,
|
||||||
|
author = {{Name.com}},
|
||||||
|
title = {GitHub Student Developer Pack Offer},
|
||||||
|
howpublished = {\url{https://www.name.com/support/articles/360036364834-signing-up-for-github-student-developer-pack}},
|
||||||
|
note = {Confirm current redemption, eligible domains, and renewal pricing in the account; accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{GiteaDockerDocs,
|
||||||
|
author = {{Gitea Project}},
|
||||||
|
title = {Installation with Docker},
|
||||||
|
howpublished = {\url{https://docs.gitea.com/installation/install-with-docker}},
|
||||||
|
note = {Accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{DockerVolumes,
|
||||||
|
author = {{Docker}},
|
||||||
|
title = {Volumes},
|
||||||
|
howpublished = {\url{https://docs.docker.com/engine/storage/volumes/}},
|
||||||
|
note = {Accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{CaddyAutomaticHTTPS,
|
||||||
|
author = {{Caddy Project}},
|
||||||
|
title = {Automatic HTTPS},
|
||||||
|
howpublished = {\url{https://caddyserver.com/docs/automatic-https}},
|
||||||
|
note = {Accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{CertbotRenewal,
|
||||||
|
author = {{Electronic Frontier Foundation}},
|
||||||
|
title = {Certbot Instructions},
|
||||||
|
howpublished = {\url{https://certbot.eff.org/instructions}},
|
||||||
|
note = {Nginx and Certbot renewal setup; accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{LECerts,
|
||||||
|
author = {{Let's Encrypt}},
|
||||||
|
title = {Frequently Asked Questions},
|
||||||
|
howpublished = {\url{https://letsencrypt.org/docs/faq/}},
|
||||||
|
note = {Accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{LightsailFirewall,
|
||||||
|
author = {{Amazon Web Services}},
|
||||||
|
title = {Control instance traffic with firewalls in Amazon Lightsail},
|
||||||
|
howpublished = {\url{https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-firewall.html}},
|
||||||
|
note = {Accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{DockerPortPublishing,
|
||||||
|
author = {{Docker}},
|
||||||
|
title = {Port publishing and mapping},
|
||||||
|
howpublished = {\url{https://docs.docker.com/engine/network/port-publishing/}},
|
||||||
|
note = {Accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{GitHubStudentEligibility,
|
||||||
|
author = {{GitHub}},
|
||||||
|
title = {GitHub Terms and Conditions for the Student Developer Pack},
|
||||||
|
howpublished = {\url{https://docs.github.com/en/education/about-github-education/github-education-for-students/github-terms-and-conditions-for-the-student-developer-pack}},
|
||||||
|
note = {Accessed October 8, 2026}
|
||||||
|
}
|
||||||
|
|
||||||
|
@misc{CaddyStaging,
|
||||||
|
author = {{Caddy Project}},
|
||||||
|
title = {Caddyfile Global Options: ACME CA},
|
||||||
|
howpublished = {\url{https://caddyserver.com/docs/caddyfile/options}},
|
||||||
|
note = {Use the documented Let's Encrypt staging ACME directory for testing; accessed October 8, 2026}
|
||||||
|
}
|
||||||
BIN
prism-uploads/PNG image.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
prism-uploads/Screenshot 2026-10-07 at 9.20.45 PM.png
Normal file
|
After Width: | Height: | Size: 138 KiB |
BIN
prism-uploads/color-buttons-screenshot.pdf
Normal file
BIN
prism-uploads/dosManual-V1.12 (1).pdf
Normal file
BIN
prism-uploads/gitea-certificate-details.png
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
prism-uploads/gitea-dns-nslookup.png
Normal file
|
After Width: | Height: | Size: 82 KiB |
BIN
prism-uploads/gitea-lightsail-firewall.png
Normal file
|
After Width: | Height: | Size: 138 KiB |
BIN
prism-uploads/hello-world-screenshot.pdf
Normal file
BIN
prism-uploads/image.png
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
prism-uploads/image_2.png
Normal file
|
After Width: | Height: | Size: 549 KiB |
25
prologue.tex
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
\title{\CourseNumber\ --- \CourseName\\[0.5em]\large Assignment \AssignmentNumber: \AssignmentTitle\\[1.5em]\normalsize\VERSION\\\DocumentStatus}
|
||||||
|
\author{\Instructor\\\Organization}
|
||||||
|
\conferraldate{}{\DocumentDate}
|
||||||
|
\copyrightholder{\Organization}
|
||||||
|
\copyrightyear{2026}
|
||||||
|
\maketitle
|
||||||
|
\makecopyright
|
||||||
|
|
||||||
|
\cleardoublepage
|
||||||
|
\phantomsection
|
||||||
|
\chapter*{Template Attribution}
|
||||||
|
\ChapterLabel{TemplateAttribution}
|
||||||
|
\addcontentsline{toc}{chapter}{Template Attribution}
|
||||||
|
\markboth{Template Attribution}{Template Attribution}
|
||||||
|
\index{template attribution}
|
||||||
|
\index{Muresan, Darian}
|
||||||
|
This DevOps assignment template was developed by \textbf{Darian Muresan, Ph.D.},
|
||||||
|
in conjunction with \textbf{OpenAI Codex} and \textbf{Anthropic Claude Code}.
|
||||||
|
|
||||||
|
\clearpage
|
||||||
|
\begin{abstract}\input{abstract.tex}\end{abstract}
|
||||||
|
\input{devopsDocumentHistory.tex}
|
||||||
|
\contentspage
|
||||||
|
\tablelistpage
|
||||||
|
\figurelistpage
|
||||||