terraform-aws-modules / terraform-aws-rds-aurora

Terraform module to create AWS RDS Aurora resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/rds-aurora/aws
Apache License 2.0
382 stars 551 forks source link

enabled KMS key rotation for the code present inside /examples folder tf files - tfsec failure #434

Closed gankamat closed 4 months ago

gankamat commented 4 months ago

Description

enabled KMS key rotation for the code present inside /examples folder tf files - tfsec failure

Motivation and Context

When we are using this module, we are seeing tfsec failures with error

.terraform/modules/rds_provisioned/examples/global-cluster/main.tf:195-200 resource "aws_kms_key" "secondary" { provider = aws.secondary policy = data.aws_iam_policy_document.rds.json tags = local.tags } See https://aquasecurity.github.io/tfsec/v1.28.5/checks/aws/kms/auto-rotate-keys/

Breaking Changes

How Has This Been Tested?

bryantbiggs commented 4 months ago

if your security scanner is highlighting an issue thats completely outside of any code path (its an example, its not in the module source code), then there is something amiss with either how you are consuming the module or the scanner itself

github-actions[bot] commented 3 months ago

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.