-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: If an attachments upload encounters a 429 then the connection is closed resulting in a zero length file. Solution: Make sure that Verify is True which will enable keep-alive. Additionally upgrade all dependencies and reformat code to latest standard. Signed-off-by: Paul Hewlett <[email protected]>
- Loading branch information
Showing
11 changed files
with
44 additions
and
53 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
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
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 |
---|---|---|
|
@@ -47,7 +47,12 @@ def demo_flow(ac, asset_id, asset_type, tw, wait): | |
input("Press to enact White Hat Hacker") | ||
|
||
cve_id = "CVE2020-deadbeef" | ||
MyAsset(ac, asset_id, tw, "[email protected]",).report_vulnerability( | ||
MyAsset( | ||
ac, | ||
asset_id, | ||
tw, | ||
"[email protected]", | ||
).report_vulnerability( | ||
( | ||
f"Synsation Industries {asset_type}s are vulnerable " | ||
f"to {cve_id}. Upgrade as soon as possible." | ||
|
@@ -63,7 +68,12 @@ def demo_flow(ac, asset_id, asset_type, tw, wait): | |
else: | ||
input("Press to enact OEM issue patch") | ||
|
||
MyAsset(ac, asset_id, tw, "[email protected]",).patch_vulnerability( | ||
MyAsset( | ||
ac, | ||
asset_id, | ||
tw, | ||
"[email protected]", | ||
).patch_vulnerability( | ||
f"Patch for critical vulnerability '{cve_id}' released in version 1.6", | ||
( | ||
"SHA256-sum for official 1.6 release: " | ||
|
@@ -84,7 +94,12 @@ def demo_flow(ac, asset_id, asset_type, tw, wait): | |
ac, "trafficlightconformance.pdf", "application/pdf" | ||
) | ||
|
||
MyAsset(ac, asset_id, tw, "[email protected]",).certify_patch( | ||
MyAsset( | ||
ac, | ||
asset_id, | ||
tw, | ||
"[email protected]", | ||
).certify_patch( | ||
"Safety conformance approved for version 1.6. See attached conformance report", | ||
"DVA Conformance Report attached", | ||
{ | ||
|
@@ -112,7 +127,12 @@ def demo_flow(ac, asset_id, asset_type, tw, wait): | |
else: | ||
input("Press to enact Owner approves") | ||
|
||
MyAsset(ac, asset_id, tw, "[email protected]",).service_required( | ||
MyAsset( | ||
ac, | ||
asset_id, | ||
tw, | ||
"[email protected]", | ||
).service_required( | ||
"Version 1.6 accepted. Please install ASAP", | ||
job_corval, | ||
) | ||
|
@@ -124,12 +144,22 @@ def demo_flow(ac, asset_id, asset_type, tw, wait): | |
else: | ||
input("Press to enact Maintenance") | ||
|
||
MyAsset(ac, asset_id, tw, "[email protected]",).service( | ||
MyAsset( | ||
ac, | ||
asset_id, | ||
tw, | ||
"[email protected]", | ||
).service( | ||
f"Upgraded and restarted {asset_type} during safe downtime window", | ||
job_corval, | ||
) | ||
|
||
MyAsset(ac, asset_id, tw, "[email protected]",).update_firmware( | ||
MyAsset( | ||
ac, | ||
asset_id, | ||
tw, | ||
"[email protected]", | ||
).update_firmware( | ||
"Responding to vulnerability 'CVE2020-deadbeef' with patch 'v1.6'", | ||
"1.6", | ||
cve_corval, | ||
|
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
Oops, something went wrong.