-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SEC-4228 Security testing & hardening guide for C5 WIP * SEC-4228 Security testing & hardening guide for C5 WIP (with MKDOCS) * MKDOCS capabilities * deleting RFIs from PDF
- Loading branch information
1 parent
98a0693
commit 36f14f0
Showing
15 changed files
with
259 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.wy-nav-content { | ||
max-width: 100% | ||
} | ||
|
||
|
||
.wy-table-responsive table td, .wy-table-responsive table th td { | ||
white-space: wrap; | ||
word-wrap: break-word; | ||
} | ||
|
||
@media print { | ||
.pagebreak { | ||
clear: both; | ||
min-height: 1px; | ||
page-break-after: always; | ||
} | ||
body { | ||
margin: 0.1in; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ ruamel.yaml | |
watchdog | ||
markdown-include | ||
importlib_resources | ||
semantic-version | ||
semantic-version | ||
shutils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<%! import html %> | ||
<%! from r3threatmodeling.template_utils import createTitleAnchorHash, makeMarkdownLinkedHeader, mermaid_escape, valueOr %> | ||
<% PAGEBREAK = """<div class="pagebreak"></div>"""%> | ||
|
||
<%namespace name="lib" file="lib.mako"/> | ||
|
||
|
||
${lib.renderTMReportPart(tmo, ancestorData, toc=False, summary=True, )} | ||
|
||
% for descendantTM in tmo.getDescendants(): | ||
${lib.renderTMReportPart(descendantTM, ancestorData=False, headerLevel=2)} | ||
% endfor | ||
|
||
${makeMarkdownLinkedHeader(2, 'Requests For Information')} | ||
|
||
__RFI_PLACEHOLDER__ | ||
|
||
${PAGEBREAK} | ||
|
||
<%include file="operationalHardeningGuide.mako" args="printTOC=False, headerLevel=2"/> | ||
|
||
${PAGEBREAK} | ||
|
||
<%include file="testingGuide.mako" args="printTOC=False, headerLevel=2"/> | ||
|
||
${PAGEBREAK} | ||
|
||
<%include file="keysSummary.mako" args="printTOC=False, headerLevel=2"/> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<%! import html %>\ | ||
<%! from r3threatmodeling.template_utils import createTitleAnchorHash, makeMarkdownLinkedHeader, mermaid_escape, valueOr %>\ | ||
<% PAGEBREAK = """<div class="pagebreak"></div>"""%>\ | ||
<%namespace name="lib" file="lib.mako"/>\ | ||
site_name: Threat Models | ||
use_directory_urls: false | ||
nav: | ||
- Home: 'index.md' | ||
% for tm in tm_list: | ||
<% | ||
tmTitle = tm['title'] | ||
tmName = tm['name'] | ||
tmID = tm['ID'] | ||
%> | ||
- ${tmTitle}: '${tmID}/${tmID}.md' | ||
% endfor | ||
|
||
theme: | ||
name: readthedocs | ||
navigation_depth: 4 | ||
# features: | ||
# - navigation.tabs | ||
markdown_extensions: | ||
# - toc: | ||
# baselevel: 1 | ||
|
||
- md_in_html | ||
# plugins: | ||
# - mkdocstrings: | ||
# handlers: | ||
# python: | ||
# options: | ||
# heading_level: 1 | ||
# - search: | ||
# - with-pdf | ||
# - mkpdfs: broken | ||
# # - company: R3 | ||
# # - author: Security Team at R3 | ||
# - print-site | ||
# - pdf-with-js: | ||
# enable: true | ||
|
||
extra_css: | ||
- css/mkdocs.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<%! import html %> | ||
<%! from r3threatmodeling.template_utils import createTitleAnchorHash, makeMarkdownLinkedHeader, mermaid_escape, valueOr %> | ||
<% PAGEBREAK = """<div class="pagebreak"></div>"""%> | ||
<%namespace name="lib" file="lib.mako"/> | ||
|
||
# Threat Models | ||
|
||
% for tm in tm_list: | ||
<% | ||
tmTitle = tm['title'] | ||
tmName = tm['name'] | ||
tmID = tm['ID'] | ||
%> | ||
<a href="${tmID}/${tmID}.html">${tmTitle}</a> | ||
## (${tmTitle})[${tmID}/${tmID}.html] | ||
% endfor | ||
|
||
## WARNING: this content is R3 private and confidential | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.