-
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): add CKV NCP rules about NKSPublicAccess #3822
Conversation
tests/terraform/checks/resource/ncp/example_NksPublicAccess/main.tf
Outdated
Show resolved
Hide resolved
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck | ||
|
||
|
||
class NKSPublicAccess(BaseResourceCheck): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you actually want to use negative resource value check here. Here is an example of how it looks like https://github.com/bridgecrewio/checkov/blob/master/checkov/terraform/checks/resource/aws/DMSReplicationInstancePubliclyAccessible.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work 💯
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Description
Add terraform scan rules about provider Naver Cloud Platform.
CKV_NCP_19 is associated with NKSPublicAccess
Description
https://registry.terraform.io/providers/NaverCloudPlatform/ncloud/latest/docs/resources/nks_cluster
Checklist: