Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
7b1b9c5
twistlock/twistlock#20384: Add note about VM image scanning.
Jul 1, 2020
00cc403
Merge pull request #1 from twistlock/ian/20384
iansk Jul 1, 2020
5248901
Intro and architecture initial re-writes
e-shuster Jul 5, 2020
a52cf8f
Intro and architecture initial re-writes
e-shuster Jul 5, 2020
72c747d
Intro and architecture initial re-writes
e-shuster Jul 5, 2020
0e8b10d
Additional Introduction Changes
e-shuster Jul 6, 2020
e667eee
Additional Introduction Changes
e-shuster Jul 6, 2020
a725404
Operation Clause Changes and new images
e-shuster Jul 6, 2020
a8866e1
Operation Clause Changes and new images
e-shuster Jul 6, 2020
56a9063
Operation Clause Changes and new images
e-shuster Jul 6, 2020
9f44dba
Merge remote-tracking branch 'docs/master'
Jul 6, 2020
3472350
Merge branch 'master' into CNAF/Intro_Architecture_Edits
Jul 6, 2020
77710f2
Edits.
Jul 6, 2020
abbe10e
Merge pull request #3 from twistlock/CNAF/Intro_Architecture_Edits
iansk Jul 6, 2020
fd989ac
Remove meta file.
Jul 6, 2020
d644fb3
Update nav to logging tab
iansk Jul 7, 2020
ff27867
Add note that CNAF and Segment can't simultaneously be enabled.
Jul 8, 2020
c091d98
Fix note.
Jul 9, 2020
7fb0283
Adding rule scope and app list to deployment
e-shuster Jul 14, 2020
933fede
Deploy doc changes
e-shuster Jul 14, 2020
fee257c
deploy docs commit
e-shuster Jul 14, 2020
65d618b
ongoing changes
e-shuster Jul 14, 2020
9b8d83f
Changes to deployment page -adding images, host, container and app em…
e-shuster Jul 15, 2020
8c28e1a
Changes to deployment page -adding images, host, container and app em…
e-shuster Jul 15, 2020
4060f6b
Changes to deployment page -adding images, host, container and app em…
e-shuster Jul 15, 2020
f78e5c2
Changes to deployment page -adding images, host, container and app em…
e-shuster Jul 15, 2020
5d37248
Ian/support link scrub (#9)
iansk Jul 15, 2020
5b28ebb
Describe caps for different types of data held in Console's DB. (#10)
iansk Jul 15, 2020
c7a5e13
final commits to the deploy page
e-shuster Jul 16, 2020
308ba64
Delete -X
e-shuster Jul 16, 2020
60a664f
Licensing update for CNAF
e-shuster Jul 16, 2020
cb1429d
initial commit
e-shuster Jul 16, 2020
69cd833
syslog message documentation update for CNAF
e-shuster Jul 16, 2020
d333a1f
Added CNAF performance benchmark
e-shuster Jul 16, 2020
dda50c8
Refactor so the PDF builds correctly.
Jul 18, 2020
2a1fa9f
Edits.
Jul 18, 2020
a3f2e0d
Edits
iansk Jul 18, 2020
a137757
Merge pull request #15 from twistlock/CNAF/add_cnaf_performance_stats
e-shuster Jul 19, 2020
99f50f6
Merge pull request #11 from twistlock/CNAF/deploy_docs_commits
e-shuster Jul 19, 2020
009636c
Merge pull request #12 from twistlock/CNAF/licensing
e-shuster Jul 19, 2020
34caa3d
Merge pull request #13 from twistlock/CNAF/cnaf_main_page_final_edits
e-shuster Jul 19, 2020
de68327
Merge pull request #14 from twistlock/CNAF/syslog_enriched_doc_update
e-shuster Jul 19, 2020
f7f35d2
Merge pull request #5 from twistlock/ian/cnaf-segment-warn
e-shuster Jul 19, 2020
87e6c19
adding missing png image
e-shuster Jul 19, 2020
06cc82b
Merge pull request #17 from twistlock/CNAF/adding_arch_image
e-shuster Jul 19, 2020
ab3bfba
Update cnaf.adoc
oorryy Jul 19, 2020
e013956
Merge pull request #19 from twistlock/ory-docs-fix-suggestions
e-shuster Jul 20, 2020
0b18111
Review and edit the deployment page
oorryy Jul 20, 2020
1a6ecbd
Fermat docs, part 1 (#21)
iansk Jul 21, 2020
f2ccd15
Merge pull request #20 from twistlock/ory-docs-fix-suggestions
e-shuster Jul 22, 2020
8066f85
Runtime defense for hosts v3 (#22)
iansk Jul 22, 2020
4b80ba4
Document ServiceNow alerts. (#23)
iansk Jul 23, 2020
d578bd2
System requirements updated to match Fermat release (#8)
avish9 Jul 23, 2020
e3ce3b4
Add Aporeto docs (#4)
emanic Jul 23, 2020
5ee9c43
Remove content on HA. (#24)
iansk Jul 23, 2020
279160c
revising based on dev team comments
e-shuster Jul 26, 2020
d2c1858
adding additional changed to syslog messages
e-shuster Jul 26, 2020
f76b943
Merge pull request #26 from twistlock/CNAF/dev_review_commits
e-shuster Jul 26, 2020
b1b276e
additional small fixed to syslog
e-shuster Jul 26, 2020
eb60bd1
Merge pull request #27 from twistlock/CNAF/dev_review_commits
e-shuster Jul 26, 2020
f680492
Remove systemd article.
Jul 28, 2020
1db5151
Document cluster-awareness. (#25)
iansk Jul 29, 2020
cbc616f
CNNF updates (#29)
iansk Jul 29, 2020
10d4911
Doc shared creds (SaaS) (#30)
iansk Jul 29, 2020
da66764
Small fixes to wording in CNNF article.
Jul 29, 2020
df35579
Incorporate Aqsa's review comments. (#31)
iansk Jul 29, 2020
7929454
Remove outdated CNNF screenshot.
Jul 29, 2020
e67d469
api protection changes
e-shuster Jul 30, 2020
adf4805
Merge pull request #33 from twistlock/CNAF/api_protection
e-shuster Jul 30, 2020
627d06d
Fix broken links (contextual help from Console UI).
Jul 31, 2020
925dcf3
Restructure. (#35)
iansk Aug 1, 2020
bb1b0e2
Incorporate review comments for git repo scanning. (#36)
iansk Aug 1, 2020
471bdf0
Document new PCF Defender (#32)
iansk Aug 1, 2020
78deb80
Remove article on zero-day vulns.
Aug 1, 2020
c24e953
Add Defender install methods. (#37)
iansk Aug 2, 2020
ca17cc9
Remove multi-AZ HA article.
Aug 3, 2020
2c704f5
Fix DITA XML build issues.
Aug 3, 2020
64db4d0
Remove perf planning article.
Aug 3, 2020
de4ef17
Doc how to get token (#126)
Aqsaxvv092 Aug 5, 2020
77cf380
Fix syntax error
iansk Aug 5, 2020
6272511
Explain Jenkins failure return result (#125)
grevach Aug 5, 2020
c8a25e2
Update workloads consumed for Container Defenders.
Aug 6, 2020
97f211c
Use the term "credits" instead of "workloads" for licensing.
Aug 6, 2020
dd96318
ecs install updates (#95)
joshfalgout Aug 13, 2020
cf29490
Update Defender to Console port in k8s doc (#108)
solalraveh Aug 13, 2020
5684c37
Add Podman version to system requirements (#110)
joshfalgout Aug 13, 2020
cc14cab
Fix error: Functions are scanned by Console (#111)
sgordon46 Aug 13, 2020
c4f76f4
Action limitation for Windows containers. (#133)
tomspivak Aug 17, 2020
d7b5e58
Doc limitations in collections (#130)
grevach Aug 17, 2020
664ba45
Adding new screenshots and networklist notes
e-shuster Aug 24, 2020
63da751
Changing filenames cnaf -> waas and topic maps accordingly
e-shuster Aug 25, 2020
903a417
Changing filenames cnaf -> waas and topic maps accordingly
e-shuster Aug 25, 2020
b361e12
Update Kubernetes support policy.
Aug 26, 2020
1eb6b56
Update Kubernetes support policy. (#40)
iansk Aug 26, 2020
cc36c88
Incorporate dev feedback on TAS support. (#41)
iansk Aug 31, 2020
49b3646
Merge pull request #39 from twistlock/WAAS/rebrand_and_h2
e-shuster Sep 2, 2020
405963f
Rename CNAF to WAAS. (#42)
iansk Sep 11, 2020
12585e0
Add a SaaS upgrade announcements section to the doc site. (#151)
iansk Sep 14, 2020
0410653
Fix rn link
iansk Sep 14, 2020
0e45843
Fix prod build.
Sep 15, 2020
6238301
Merge remote-tracking branch 'origin/master'
Sep 15, 2020
ddf089d
Fix broken links in 20-09 release.
Sep 16, 2020
fdecc73
Address all issues with the "docs" label (#44)
iansk Sep 16, 2020
6e3199e
Update note on RBAC (#153)
Aqsaxvv092 Sep 16, 2020
f8eebd7
Update TAS/PAS support policy (#43)
avish9 Sep 16, 2020
133b4ff
Review comments (#46)
iansk Sep 16, 2020
970399c
Additional system requirement changes (#28)
avish9 Sep 17, 2020
edccb77
Update system requirements (#45)
iansk Sep 17, 2020
43400ae
Fermat release notes (#34)
iansk Sep 17, 2020
bfdf094
Prep for Fermat release (#47)
iansk Sep 17, 2020
8aef97c
Fix DITA XML validation issues.
Sep 17, 2020
98f2399
Merge remote-tracking branch 'docs/master' into test-merge
Sep 17, 2020
b0728f8
Fix DITA XML validation issue.
Sep 17, 2020
d6366c8
Fix 20.04 to 20.09 strings in static site.
Sep 18, 2020
4bbf614
Clean up
iansk Sep 18, 2020
1f0f0ca
Fix error in runtime host protection article
iansk Sep 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions _build/rn_details.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
import argparse
import pathlib
import re
import shutil
import string
import sys
import tempfile
import yaml

template = string.Template("""
[cols="1,4"]
|===
|Download link
|$Link

|Type
|$Type

|Build
|$Build

|Date
|$Date

|SHA256 Digest
|$Digest
|===
""")

# Record that holds all command line params.
# topic_map_path - Path to topic map.
# topic_map_yaml - Topic map YAML.
# input_dir - Path to top of output dir.
# release_info - Path to release info
class Config:
pass


def parse_doc_tree(config):
"""
Constructs a directory that holds all converted files, graphics, and the topic_map.
"""
# Fix up each ADOC file in the topic map.
print('Populating release notes info')
for chapter in config.topic_map_yaml:
directory = pathlib.Path(config.input_dir) / pathlib.Path(chapter['Dir'])
walk_segment(config, chapter, directory)


def walk_segment(config, segment, directory, depth=1):

for article in segment['Topics']:
if 'Topics' in article:
nested_dir = pathlib.Path(directory) / pathlib.Path(article['Dir'])
walk_segment(config, article, nested_dir, depth+1)
else:
src_file = pathlib.Path(directory).joinpath(article['File'])
src_file = src_file.with_suffix('.adoc')
populate_release_info(config, src_file)


def populate_release_info(config, src_file):

global template

for release in config.release_info_yaml:
if release['File'] == str(pathlib.PurePath(src_file).name):
sed_inplace(src_file, r'^// STATIC_SITE_RELEASE_PARTICULARS', template.substitute(release))


def sed_inplace(filename, pattern, repl):
'''
Perform the pure-Python equivalent of in-place `sed` substitution: e.g.,
`sed -i -e 's/'${pattern}'/'${repl}' "${filename}"`.

See: https://stackoverflow.com/questions/4427542/how-to-do-sed-like-text-replace-with-python
'''
# For efficiency, precompile the passed regular expression.
pattern_compiled = re.compile(pattern)

# For portability, NamedTemporaryFile() defaults to mode "w+b" (i.e., binary
# writing with updating). This is usually a good thing. In this case,
# however, binary writing imposes non-trivial encoding constraints trivially
# resolved by switching to text writing. Let's do that.
with tempfile.NamedTemporaryFile(mode='w', delete=False) as tmp_file:
with filename.open() as f:
for line in f:
tmp_file.write(pattern_compiled.sub(repl, line))

# Overwrite the original file with the munged temporary file in a
# manner preserving file attributes (e.g., permissions).
shutil.copystat(filename, tmp_file.name)
shutil.move(tmp_file.name, filename)


def validate_file_path(file_path):
"""
Validate the input path is a directory that contains a _topic_map.yml file.
"""
path = pathlib.Path(file_path)

# Check if file exists in the file system at the specified path
if path.exists():
return True
else:
print(f'Cannot find {file_path}')
sys.exit(1)


def main():
"""
"""
parser = argparse.ArgumentParser(description='Populate release particulars (i.e CDN download link) in the release notes.')
parser.add_argument('topic_map', type=str, help='Path to _topic_map.yml')
parser.add_argument('release_info', type=str, help='Path to release_info.yml')
args = parser.parse_args()

# FIX: The Config class should have methods to parse and save config options.
config = Config()

if validate_file_path(args.topic_map):
config.topic_map_path = pathlib.Path(args.topic_map)
config.input_dir = config.topic_map_path.parent

# Open and read the topic map. If the file cannot be parsed,
# exit the program and return 1.
with config.topic_map_path.open(mode='r') as stream:
try:
config.topic_map_yaml = list(yaml.full_load_all(stream))
except yaml.YAMLError as e:
print(f'Error: Invalid YAML in _topic_map.yml: {e}')
sys.exit(1)

if validate_file_path(args.release_info):
config.release_info_path = pathlib.Path(args.release_info)

# Open and read the topic map. If the file cannot be parsed,
# exit the program and return 1.
with config.release_info_path.open(mode='r') as stream:
try:
config.release_info_yaml = yaml.full_load(stream)
except yaml.YAMLError as e:
print(f'Error: Invalid YAML in _topic_map.yml: {e}')
sys.exit(1)

parse_doc_tree(config)

print('OK')


if __name__ == '__main__':
main()
5 changes: 4 additions & 1 deletion _files/_distro_map.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ compute_edition:
site_url: https://docs.twistlock.com/docs/
branches:
master:
name: 'Compute Edition 20.04 (Self-Hosted)'
name: 'Compute Edition 20.09 (Self-Hosted)'
dir: 'compute_edition'
ref_arch:
name: 'Reference Architecture'
Expand All @@ -24,6 +24,9 @@ compute_edition:
historical:
name: 'Historical documentation'
dir: 'historical'
saas_upgrades:
name: 'SaaS upgrade announcements'
dir: 'saas_upgrades'
prisma_cloud:
name: Prisma Cloud Enterprise Edition
author: Prisma Cloud community
Expand Down
4 changes: 3 additions & 1 deletion _files/_templates/_topnav.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
<!-- Dropdown list -->
<div class="dropdown-menu dropdown-menu-right">
<ul class="header-main-subnav">
<li><a class="dropdown-item" href="../../compute_edition/welcome/welcome.html">Compute Edition 20.04 (Self-Hosted)</a></li>
<li><a class="dropdown-item" href="../../compute_edition/welcome/welcome.html">Compute Edition 20.09 (Self-Hosted)</a></li>
<li><a class="dropdown-item" href="../../enterprise_edition/welcome/welcome.html">Enterprise Edition (SaaS)</a></li>
<li><a class="dropdown-item" href="../../ref_arch/objectives/objectives.html">Reference Architecture</a></li>
<li><a class="dropdown-item" href="../../ops_guide/getting_started/getting_started.html">Operationalize Guide</a></li>
<li><a class="dropdown-item" href="../../troubleshooting/troubleshooting/collect_debug_data.html">Troubleshooting</a></li>
<li><a class="dropdown-item" href="https://cdn.twistlock.com/docs/attachments/performance_planning.pdf">Performance Planning</a></li>
<li><a class="dropdown-item" href="../../historical/historical/historical.html">Historical Documentation</a></li>
<li><a class="dropdown-item" href="../../saas_upgrades/announcements/announcements.html">SaaS Upgrade Announcements</a></li>
</ul>
</div>
</li>
Expand Down
4 changes: 3 additions & 1 deletion _files/index-main.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,14 @@
<!-- Dropdown list -->
<div class="dropdown-menu dropdown-menu-right">
<ul class="header-main-subnav">
<li><a class="dropdown-item" href="compute_edition/welcome/welcome.html">Compute Edition 20.04 (Self-Hosted)</a></li>
<li><a class="dropdown-item" href="compute_edition/welcome/welcome.html">Compute Edition 20.09 (Self-Hosted)</a></li>
<li><a class="dropdown-item" href="enterprise_edition/welcome/welcome.html">Enterprise Edition (SaaS)</a></li>
<li><a class="dropdown-item" href="ref_arch/objectives/objectives.html">Reference Architecture</a></li>
<li><a class="dropdown-item" href="ops_guide/getting_started/getting_started.html">Operationalize Guide</a></li>
<li><a class="dropdown-item" href="troubleshooting/troubleshooting/collect_debug_data.html">Troubleshooting</a></li>
<li><a class="dropdown-item" href="https://cdn.twistlock.com/docs/attachments/performance_planning.pdf">Performance Planning</a></li>
<li><a class="dropdown-item" href="historical/historical/historical.html">Historical Documentation</a></li>
<li><a class="dropdown-item" href="saas_upgrades/announcements/announcements.html">SaaS Upgrade Announcements</a></li>
</ul>
</div>
</li>
Expand Down
Loading