-
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 check about NKS(kubernetes) logging #3855
Conversation
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceCheck | ||
|
||
|
||
class NKSControlPlaneLogging(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.
would be great if you can change it to a BaseResourceValueCheck
, makes it much easier 🙂
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.
thank your advice. I fixed my code.
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.
nice, thanks for the change, one more improvement suggested
checkov/terraform/checks/resource/ncp/NKSControlPlaneLogging.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Anton Grübel <[email protected]>
hey @pj991207 can you commit something in and out again, somehow the workflow was not triggered. |
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.
🍻
…dgecrewio#3855) * [22.10.27][add]LBListenerUsesSecureProtocols * [22.11.01][add]NksPublicAccess * [22.11.01][delete]ncp-13 rule * [22.11.01][fix]NksPublicAccess Description fix * [22.11.01][fix] test_NksPublicAccess.py * [22.11.05][add]NCP_LBTargetGroupUsingHTTPS * [22.11.05][delete]ncp_13_rule * [22.11.06][addNCP_LBNetworkPrivate * [22.11.08][add]CKV_NCP_18 * [22.11.08][add]NCP_CKV_39 * [22.11.08][fix]CKV_NCP_21 * [22.11.08][delete]CKVP_NCP_15 * [22.11.08]CKV_NCP_32 * Revert "[22.11.08]CKV_NCP_32" This reverts commit c3aa017. * [22.11.08][add]CKV_NCP_32 * Revert "[22.11.08][add]CKV_NCP_32" This reverts commit b7341f7. * [22.11.12][fix]CKV_NCP_27 * [22.11.12][fix]CKV_NCP_27 * [22.11.14][fix]NCP_CKV_19 * [22.11.16]CKV_NCP_19 BaseResourceNegativeValueCheck * [22.11.16][delet]CKV_NCP_27 * [22.11.21][fix]CKV_NCP_21 * Update checkov/terraform/checks/resource/ncp/NKSControlPlaneLogging.py Co-authored-by: Anton Grübel <[email protected]> Co-authored-by: Kuemjong Jeong <[email protected]> Co-authored-by: Anton Grübel <[email protected]>
…dgecrewio#3855) * [22.10.27][add]LBListenerUsesSecureProtocols * [22.11.01][add]NksPublicAccess * [22.11.01][delete]ncp-13 rule * [22.11.01][fix]NksPublicAccess Description fix * [22.11.01][fix] test_NksPublicAccess.py * [22.11.05][add]NCP_LBTargetGroupUsingHTTPS * [22.11.05][delete]ncp_13_rule * [22.11.06][addNCP_LBNetworkPrivate * [22.11.08][add]CKV_NCP_18 * [22.11.08][add]NCP_CKV_39 * [22.11.08][fix]CKV_NCP_21 * [22.11.08][delete]CKVP_NCP_15 * [22.11.08]CKV_NCP_32 * Revert "[22.11.08]CKV_NCP_32" This reverts commit c3aa017. * [22.11.08][add]CKV_NCP_32 * Revert "[22.11.08][add]CKV_NCP_32" This reverts commit b7341f7. * [22.11.12][fix]CKV_NCP_27 * [22.11.12][fix]CKV_NCP_27 * [22.11.14][fix]NCP_CKV_19 * [22.11.16]CKV_NCP_19 BaseResourceNegativeValueCheck * [22.11.16][delet]CKV_NCP_27 * [22.11.21][fix]CKV_NCP_21 * Update checkov/terraform/checks/resource/ncp/NKSControlPlaneLogging.py Co-authored-by: Anton Grübel <[email protected]> Co-authored-by: Kuemjong Jeong <[email protected]> Co-authored-by: Anton Grübel <[email protected]>
…dgecrewio#3855) * [22.10.27][add]LBListenerUsesSecureProtocols * [22.11.01][add]NksPublicAccess * [22.11.01][delete]ncp-13 rule * [22.11.01][fix]NksPublicAccess Description fix * [22.11.01][fix] test_NksPublicAccess.py * [22.11.05][add]NCP_LBTargetGroupUsingHTTPS * [22.11.05][delete]ncp_13_rule * [22.11.06][addNCP_LBNetworkPrivate * [22.11.08][add]CKV_NCP_18 * [22.11.08][add]NCP_CKV_39 * [22.11.08][fix]CKV_NCP_21 * [22.11.08][delete]CKVP_NCP_15 * [22.11.08]CKV_NCP_32 * Revert "[22.11.08]CKV_NCP_32" This reverts commit c3aa017. * [22.11.08][add]CKV_NCP_32 * Revert "[22.11.08][add]CKV_NCP_32" This reverts commit b7341f7. * [22.11.12][fix]CKV_NCP_27 * [22.11.12][fix]CKV_NCP_27 * [22.11.14][fix]NCP_CKV_19 * [22.11.16]CKV_NCP_19 BaseResourceNegativeValueCheck * [22.11.16][delet]CKV_NCP_27 * [22.11.21][fix]CKV_NCP_21 * Update checkov/terraform/checks/resource/ncp/NKSControlPlaneLogging.py Co-authored-by: Anton Grübel <[email protected]> Co-authored-by: Kuemjong Jeong <[email protected]> Co-authored-by: Anton Grübel <[email protected]>
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_21 is associated with "NKS control plane logging enabled for all log types"
Description
https://registry.terraform.io/providers/NaverCloudPlatform/ncloud/latest/docs/resources/nks_cluster
Checklist: