-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(terraform): setting namespace check for CKV_AWS_312 #6027
feat(terraform): setting namespace check for CKV_AWS_312 #6027
Conversation
Would it be possible to get a review/adjustments to get it merged? This error forces me to issue a custom security report and come back to this PR regularly to see if I can adjust my audit to go back to normal. |
hey @avazula your fix doesn't fit the intention of the check, it should be setting {
namespace = "aws:elasticbeanstalk:healthreporting:system"
name = "SystemType"
value = "enhanced"
} and you laos need to adjust the tests https://github.com/bridgecrewio/checkov/blob/main/tests/terraform/checks/resource/aws/example_ElasticBeanstalkUseEnhancedHealthChecks/main.tf |
Hi @gruebel If healthreporting should be modified instead of cloudwatch:logs:health, doesn't it mean that we should also have EnhancedHealthAuthEnabled set to true? Pending your answer I will adjust to match your suggested change. I will also try to update the tests. |
Could someone please approve the workflow? I'm not fluent in GitHub but I assume this means running the tests. |
Hey @avazula, Thanks for your contributing! |
Hi @pazbechor thanks for checking out this PR. |
User description
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
CKV_AWS_312 setting for checking that HealthStreaming is enabled does not exist in the AWS docs. It is instead found in the
aws:elasticbeanstalk:cloudwatch:logs:health
namespace.Fixes # 6007
New/Edited policies (Delete if not relevant)
Description
Edited check to focus on the new property instead of the obsolete one from the healthreporting namespace.
Fix
Checklist:
Updated the docs here
Generated description
Dear maintainer, below is a concise technical summary of the changes proposed in this PR:
Update the
ElasticBeanstalkUseEnhancedHealthChecks
class to check for theSystemType
setting in theaws:elasticbeanstalk:healthreporting:system
namespace, ensuring it is set toenhanced
. Modify test cases to reflect this change by removing obsolete settings and adjusting expected values.ElasticBeanstalkUseEnhancedHealthChecks
class to check for theSystemType
setting in theaws:elasticbeanstalk:healthreporting:system
namespace, ensuring it is set toenhanced
.Modified files (1)
Latest Contributors(1)
Modified files (1)
Latest Contributors(1)