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

feat: checks for awscc provider resources #7043

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

quixoticmonk
Copy link
Contributor

@quixoticmonk quixoticmonk commented Mar 7, 2025

User description

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

Description

The PR intends to add support checks for a few resources in the AWSCC resource list

New/Edited policies (Delete if not relevant)

Description

Include a description of what makes it a violation and any relevant external links.

Fix

How does someone fix the issue in code and/or in runtime?

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

Below is a concise technical summary of the changes proposed in this PR:

TopicDetails
Test Coverage Adds comprehensive test cases and example configurations for all new AWSCC checks, ensuring robustness and accuracy
Modified files (16)
  • tests/terraform/checks/resource/awscc/test_KMSKeyIsEnabled.py
  • tests/terraform/checks/resource/awscc/test_KMSRotation.py
  • tests/terraform/checks/resource/awscc/test_CloudtrailLogValidation.py
  • tests/terraform/checks/resource/awscc/test_SubnetPublicIP.py
  • tests/terraform/checks/resource/awscc/test_SNSTopicEncryption.py
  • tests/terraform/checks/resource/awscc/test_BedrockGuardrails.py
  • tests/terraform/checks/resource/awscc/test_BackupVaultEncrypted.py
  • tests/terraform/checks/resource/awscc/test_BedrockAgentEncrypted.py
  • tests/terraform/checks/resource/awscc/example_SubnetPublicIp/main.tf
  • tests/terraform/checks/resource/awscc/example_BackupVaultEncrypted/main.tf
  • tests/terraform/checks/resource/awscc/example_KMSRotation/main.tf
  • tests/terraform/checks/resource/awscc/example_BedrockAgentEncrypted/main.tf
  • tests/terraform/checks/resource/awscc/example_CloudtrailLogValidation/main.tf
  • tests/terraform/checks/resource/awscc/example_SNSTopicEncryption/main.tf
  • tests/terraform/checks/resource/awscc/example_KMSKeyIsEnabled/main.tf
  • tests/terraform/checks/resource/awscc/example_BedrockGuardrails/main.tf
Latest Contributors(0)
UserCommitDate
AWSCC Security Checks Implements new security and compliance checks for AWSCC provider resources across multiple AWS services
Modified files (9)
  • checkov/terraform/checks/resource/awscc/BedrockAgentEncrypted.py
  • checkov/terraform/checks/resource/awscc/KMSKeyIsEnabled.py
  • checkov/terraform/checks/resource/awscc/KMSRotation.py
  • checkov/terraform/checks/resource/awscc/CloudtrailLogValidation.py
  • checkov/terraform/checks/resource/awscc/SubnetPublicIP.py
  • checkov/terraform/checks/resource/awscc/SNSTopicEncryption.py
  • checkov/terraform/checks/resource/awscc/BackupVaultEncrypted.py
  • checkov/terraform/checks/resource/awscc/BedrockGuardrails.py
  • checkov/terraform/checks/resource/awscc/__init__.py
Latest Contributors(0)
UserCommitDate
This pull request is reviewed by Baz. Join @quixoticmonk and the rest of your team on (Baz).

Sorry, something went wrong.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.

None yet

1 participant