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

Add AWS GDPR compliance framework. Closes #266 #267

Merged
merged 19 commits into from
Sep 23, 2021
Merged

Conversation

c0d3r-arnab
Copy link
Contributor

Checklist

  • Issue(s) linked

@c0d3r-arnab c0d3r-arnab self-assigned this Sep 2, 2021
@rajlearner17 rajlearner17 self-requested a review September 8, 2021 12:00
description = "This control checks whether AWS Config is enabled in the account for the local Region and is recording all resources."
sql = query.config_enabled_all_regions.sql

tags = merge(local.conformance_pack_codebuild_common_tags, {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
tags = merge(local.conformance_pack_codebuild_common_tags, {
tags = merge(local. conformance_pack_config_common_tags, {

@rajlearner17 rajlearner17 linked an issue Sep 15, 2021 that may be closed by this pull request
@khushboo9024 khushboo9024 marked this pull request as ready for review September 16, 2021 10:52

control "cloudtrail_bucket_not_public" {
title = "Ensure the S3 bucket CloudTrail logs to is not publicly accessible"
description = "CloudTrail logs a record of every API call made in your account. These log files are stored in an S3 bucket. Security Hub recommends that the S3 bucket policy,or access control list (ACL), applied to the S3 bucket that CloudTrail logs to prevents public access to the CloudTrail logs.."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description = "CloudTrail logs a record of every API call made in your account. These log files are stored in an S3 bucket. Security Hub recommends that the S3 bucket policy,or access control list (ACL), applied to the S3 bucket that CloudTrail logs to prevents public access to the CloudTrail logs.."
description = "CloudTrail logs a record of every API call made in your account. These log files are stored in an S3 bucket. Security Hub recommends that the S3 bucket policy,or access control list (ACL), applied to the S3 bucket that CloudTrail logs to prevents public access to the CloudTrail logs."

Copy link
Contributor

@cbruno10 cbruno10 left a comment

Choose a reason for hiding this comment

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

@c0d3r-arnab Please see comments, thanks!

gdpr/gdpr.sp Outdated
}

benchmark "gdpr" {
title = "AWS General Data Protection Regulation (GDPR)"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need the word "AWS" in here since we're already in the AWS Compliance mod.

Suggested change
title = "AWS General Data Protection Regulation (GDPR)"
title = "General Data Protection Regulation (GDPR)"

In the UI, ideally it'd be great if GDPR is visible on the sidebar too, right now it's cut off, but can you please check if it's visible entirely on the sidebar once we remove "AWS"?

@@ -0,0 +1,40 @@
benchmark "article_32_security_of_processing" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
benchmark "article_32_security_of_processing" {
benchmark "article_32" {

Do we need the full article name in here too? I think we can shorten to just the number instead

@@ -0,0 +1,40 @@
benchmark "article_32_security_of_processing" {
title = "Article 32 Security of processing"
documentation = file("./gdpr/docs/article_32_security_of_processing.md")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
documentation = file("./gdpr/docs/article_32_security_of_processing.md")
documentation = file("./gdpr/docs/article_32.md")

control.wafv2_web_acl_logging_enabled
]

tags = local.gdpr_common_tags
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a tag here, maybe gdpr_article = 32?

@@ -0,0 +1,18 @@
benchmark "article_30_records_of_processing_activities" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
benchmark "article_30_records_of_processing_activities" {
benchmark "article_30" {

docs/index.md Outdated
@@ -4,7 +4,7 @@ repository: "https://github.com/turbot/steampipe-mod-aws-compliance"

# AWS Compliance Mod

Run individual configuration, compliance and security controls or full compliance benchmarks for `AWS Foundational Security Best Practices`, `CIS`, `HIPAA`, `NIST 800-53`, `NIST CSF`, `PCI DSS`, and `RBI Cyber Security Framework` across all your AWS accounts.
Run individual configuration, compliance and security controls or full compliance benchmarks for `AWS Foundational Security Best Practices`, `CIS`, `HIPAA`, `NIST 800-53`, `NIST CSF`, `PCI DSS`, `RBI Cyber Security Framework` and `GDPR` across all your AWS accounts.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Run individual configuration, compliance and security controls or full compliance benchmarks for `AWS Foundational Security Best Practices`, `CIS`, `HIPAA`, `NIST 800-53`, `NIST CSF`, `PCI DSS`, `RBI Cyber Security Framework` and `GDPR` across all your AWS accounts.
Run individual configuration, compliance and security controls or full compliance benchmarks for `AWS Foundational Security Best Practices`, `CIS`, `GDPR`, `HIPAA`, `NIST 800-53`, `NIST CSF`, `PCI DSS`, `RBI Cyber Security Framework` across all your AWS accounts.

nist_800_53_rev_4 = "true"
nist_csf = "true"
rbi_cyber_security = "true"
cis_foundational_item_id = "2.9"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this tag being added here? I'd only expect to see gdpr being added in this PR

@@ -23,7 +23,9 @@ control "kms_cmk_rotation_enabled" {
sql = query.kms_cmk_rotation_enabled.sql

tags = merge(local.conformance_pack_kms_common_tags, {
nist_800_53_rev_4 = "true"
rbi_cyber_security = "true"
cis_foundational_item_id = "2.8"
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we adding this tag in this PR?

})
}

Copy link
Contributor

Choose a reason for hiding this comment

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

Cleanup trailing newlines

README.md Outdated
* [PCI DSS v3.2.1](https://hub.steampipe.io/mods/turbot/aws_compliance/controls/benchmark.pci_v321)
* [AWS Foundational Security Best Practices](https://hub.steampipe.io/mods/turbot/aws_compliance/controls/benchmark.foundational_security)
* [Reserve Bank of India (RBI) Cyber Security Framework](https://hub.steampipe.io/mods/turbot/aws_compliance/controls/benchmark.rbi_cyber_security) 🚀 New!
* [Reserve Bank of India (RBI) Cyber Security Framework](https://hub.steampipe.io/mods/turbot/aws_compliance/controls/benchmark.rbi_cyber_security)
* [General Data Protection Regulation (GDPR)](https://hub.steampipe.io/mods/turbot/aws_compliance/controls/benchmark.gdpr)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should add the "New!" text at the end here

Also, I think we should move this one up to just below HIPAA (I'd consider it more important than those below that mark)

@khushboo9024 khushboo9024 changed the base branch from main to release/v0.14 September 22, 2021 05:44
@khushboo9024 khushboo9024 changed the base branch from release/v0.14 to main September 22, 2021 05:44
@khushboo9024 khushboo9024 changed the base branch from main to release/v0.14 September 22, 2021 05:45
@khushboo9024 khushboo9024 self-requested a review September 22, 2021 11:47
@khushboo9024 khushboo9024 removed their request for review September 22, 2021 11:47
@rajlearner17 rajlearner17 merged commit f46bd7a into release/v0.14 Sep 23, 2021
@rajlearner17 rajlearner17 deleted the issue-266 branch September 23, 2021 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add AWS GDPR compliance framework
4 participants