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(terraform): Add opensearch to CKV2_AWS_5 #6807

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsmithv11
Copy link
Collaborator

@tsmithv11 tsmithv11 commented Nov 1, 2024

User description

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

Fixes #6760

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes

Generated description

Dear maintainer, below is a concise technical summary of the changes proposed in this PR:

Add support for aws_opensearch_domain and aws_opensearch_vpc_endpoint to the CKV2_AWS_5 check by updating the SGAttachedToResource.yaml file. Implement corresponding test cases in main.tf and expected.yaml to ensure the security group configurations for OpenSearch resources are correctly validated.

TopicDetails
OpenSearch Support Add support for aws_opensearch_domain and aws_opensearch_vpc_endpoint in the CKV2_AWS_5 check.
Modified files (3)
  • checkov/terraform/checks/graph_checks/aws/SGAttachedToResource.yaml
  • tests/terraform/graph/checks/resources/SGAttachedToResource/expected.yaml
  • tests/terraform/graph/checks/resources/SGAttachedToResource/main.tf
Latest Contributors(2)
EmailCommitDate
2151130+uroshercog@use...fix-terraform-Security...October 30, 2024
[email protected]...fix-terraform-Security...September 19, 2024
This pull request is reviewed by Baz. Join @tsmithv11 and the rest of your team on (Baz).

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.

CKV2_AWS_5 fails to identify opensearch attachment
1 participant