-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Normalize Risks and stop using Priority while creating tickets #43
Open
pasiechnay
wants to merge
10
commits into
dowjones:dev
Choose a base branch
from
pasiechnay:feature/risk-normalization
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1e42629
Normalize Risks and stop using Priority while creating tickets
811cf6d
Merge branch 'dev' of https://github.com/dowjones/hammer into dev
pasiechnay 2d6ee59
Normalize Risks and stop using Priority while creating tickets
pasiechnay 7b5872d
Normalize Risks and stop using Priority while creating tickets
pasiechnay b4c143c
Merge pull request #69 from pasiechnay/feature/risk-normalization
oleksii-dowjones a30bcc2
Merge branch 'dev' of https://github.com/dowjones/hammer into dev
pasiechnay 1f5c8cf
Normalize Risks and stop using Priority while creating tickets
pasiechnay cb959e4
Merge branch 'normalize_risk_rating' into feature/risk-normalization
pasiechnay 3b31acb
Normalize "Risks" and stop using Priority while creating tickets
pasiechnay 2eea0d4
Merge branch 'feature/risk-normalization' of https://github.com/pasie…
pasiechnay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
|
@@ -297,7 +297,9 @@ def create_tickets_securitygroups(self): | |
|
||
open_port_details = self.build_open_ports_table_jira(issue.issue_details.perms) | ||
|
||
account_details = (f"*Risk*: High\n\n" | ||
issue_risk = "High" | ||
|
||
account_details = (f"*Risk*: {issue_risk}\n\n" | ||
f"*Account Name*: {account_name}\n" | ||
f"*Account ID*: {account_id}\n" | ||
f"*SG Name*: {group_name}\n" | ||
|
@@ -360,7 +362,6 @@ def create_tickets_securitygroups(self): | |
source_description = "allows access from some definite public ip addresses or networks" | ||
|
||
if sg_public: | ||
priority = "Critical" | ||
summary_status = "Internet" | ||
issue_description = (f"Security group has EC2 instances in public subnets " | ||
f"with public IP address attached and " | ||
|
@@ -379,7 +380,6 @@ def create_tickets_securitygroups(self): | |
f"critical services.\n" | ||
) | ||
elif sg_blind_public: | ||
priority = "Critical" | ||
summary_status = "Internet" | ||
issue_description = (f"Security group has EC2 instances in private subnets " | ||
f"with public IP address attached and " | ||
|
@@ -393,7 +393,6 @@ def create_tickets_securitygroups(self): | |
f"instances when someone is probing the public IP of the instances. " | ||
f"However, there will be no return traffic due to the lack of an IGW.\n") | ||
elif not sg_in_use: | ||
priority = "Minor" | ||
summary_status = "Unused" | ||
issue_description = (f"Security group has no EC2 instances attached and " | ||
f"{source_description} " | ||
|
@@ -404,7 +403,6 @@ def create_tickets_securitygroups(self): | |
f"opportunities for malicious activity (hacking, denial-of-service attacks, " | ||
f"loss of data).\n") | ||
else: | ||
priority = "Major" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue_risk = Medium |
||
summary_status = "Intranet" | ||
issue_description = ( | ||
f"Security group has EC2 instances in in private subnets and " | ||
|
@@ -455,7 +453,7 @@ def create_tickets_securitygroups(self): | |
try: | ||
response = jira.add_issue( | ||
issue_summary=issue_summary, issue_description=issue_description, | ||
priority=priority, labels=["insecure-services"], | ||
risk=issue_risk, labels=["insecure-services"], | ||
owner=owner, | ||
account_id=account_id, | ||
bu=bu, product=product, | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue_risk
should be Low here.