Skip to content
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

fix(query): align queries #5999

Merged
merged 1 commit into from
Nov 14, 2022
Merged

Conversation

roi-orca
Copy link
Contributor

align queries cross different platforms

Proposed Changes
align queries cross different platforms

Queries:
COS Node Image Not Used
ElastiCache Nodes Not Created Across Multi AZ
IAM Database Auth Not Enabled
CloudFront Logging Disabled
SQS With SSE Disabled
CloudTrail Log Files Not Encrypted With KMS
Serial Ports Are Enabled For VM Instances

I submit this contribution under the Apache-2.0 license.

@roi-orca roi-orca force-pushed the align_queries_new branch 2 times, most recently from 2d826c4 to 49e4dc4 Compare November 13, 2022 08:57
@rafaela-soares rafaela-soares added community Community contribution query New query feature labels Nov 14, 2022
cxMiguelSilva
cxMiguelSilva previously approved these changes Nov 14, 2022
Copy link
Collaborator

@cxMiguelSilva cxMiguelSilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@rafaela-soares rafaela-soares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @roi-orca,

Thank you so much for continuing to improve KICS 🚀

I only have minor suggestions:

@@ -3,7 +3,7 @@
"queryName": "ElastiCache Nodes Not Created Across Multi AZ",
"severity": "MEDIUM",
"category": "Availability",
"descriptionText": "ElastiCache Nodes should have 'AZMode' set to 'cross-az' in in multi nodes cluster",
"descriptionText": "ElastiCache Nodes should be created across multi az, which means 'AZMode' should be set to 'cross-az' in in multi nodes cluster",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you delete one of the double "in", please? (The same applies for assets/queries/terraform/aws/elasticache_nodes_not_created_across_multi_az and assets/queries/pulumi/aws/elasticache_nodes_not_created_across_multi_az)

Suggested change
"descriptionText": "ElastiCache Nodes should be created across multi az, which means 'AZMode' should be set to 'cross-az' in in multi nodes cluster",
"descriptionText": "ElastiCache Nodes should be created across multi az, which means 'AZMode' should be set to 'cross-az' in multi nodes cluster",

@@ -1,9 +1,9 @@
{
"id": "9fcd0a0a-9b6f-4670-a215-d94e6bf3f184",
"queryName": "RDS DB Instance With IAM Auth Disabled",
"queryName": "IAM Database Auth Not Enabled",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change the query folder name, please?

Copy link
Contributor

@rafaela-soares rafaela-soares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Copy link
Collaborator

@cxMiguelSilva cxMiguelSilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thank you so much @roi-orca for another amazing contribution!!

@cxMiguelSilva cxMiguelSilva merged commit 846040f into Checkmarx:master Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution query New query feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants