-
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 Load Balancer Exposed to Internet #3819
Conversation
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 work, just two minor things
[22.11.10][fix]CKV_NCP_16 Co-authored-by: Anton Grübel <[email protected]>
[22.11.10][fix]CKV_NCP_16 Co-authored-by: Anton Grübel <[email protected]>
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.
🍻
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.
👑
072e6d5
to
74715cb
Compare
def get_expected_values(self) -> List[Any]: | ||
return ["PRIVATE"] |
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.
def get_expected_values(self) -> List[Any]: | |
return ["PRIVATE"] | |
def get_expected_value(self) -> Any: | |
return "PRIVATE" |
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.
okay
Co-authored-by: Anton Grübel <[email protected]>
Co-authored-by: Anton Grübel <[email protected]>
…ernet (bridgecrewio#3819) * [22.10.27][add]LBListenerUsesSecureProtocols * [22.11.05][add]NCP_LBTargetGroupUsingHTTPS * [22.11.05][delete]ncp_13_rule * [22.11.06][addNCP_LBNetworkPrivate * Delete LBTargetGroupUsingHTTPS.py [22.11.08][delete]NCP_CKV_15 * Delete tests/terraform/checks/resource/ncp/example_LBTargetGroupUsingHTTPS directory [22.11.08][delete]CKV_NCP_15 * Delete test_LBTargetGroupUsingHTTPS.py [22.11.08][delete]CVK_NCP_15 * [22.11.08][add]ncp_ckv_16 example tf code * [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. * Update checkov/terraform/checks/resource/ncp/LBNetworkPrivate.py [22.11.10][fix]CKV_NCP_16 Co-authored-by: Anton Grübel <[email protected]> * Update checkov/terraform/checks/resource/ncp/LBNetworkPrivate.py [22.11.10][fix]CKV_NCP_16 Co-authored-by: Anton Grübel <[email protected]> * Revert "[22.11.12][fix]NCP_CKV_16" This reverts commit 25d3a6e. * [22.11.12][fix]CKV_NCP_16 * [22.11.12][fix]CKV_NCP_16 * [22.11.13][fix]CKV_NCP_16 * Update checkov/terraform/checks/resource/ncp/LBNetworkPrivate.py Co-authored-by: Anton Grübel <[email protected]> * Update checkov/terraform/checks/resource/ncp/LBNetworkPrivate.py Co-authored-by: Anton Grübel <[email protected]> Co-authored-by: Kuemjong Jeong <[email protected]> Co-authored-by: Anton Grübel <[email protected]>
…ernet (bridgecrewio#3819) * [22.10.27][add]LBListenerUsesSecureProtocols * [22.11.05][add]NCP_LBTargetGroupUsingHTTPS * [22.11.05][delete]ncp_13_rule * [22.11.06][addNCP_LBNetworkPrivate * Delete LBTargetGroupUsingHTTPS.py [22.11.08][delete]NCP_CKV_15 * Delete tests/terraform/checks/resource/ncp/example_LBTargetGroupUsingHTTPS directory [22.11.08][delete]CKV_NCP_15 * Delete test_LBTargetGroupUsingHTTPS.py [22.11.08][delete]CVK_NCP_15 * [22.11.08][add]ncp_ckv_16 example tf code * [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. * Update checkov/terraform/checks/resource/ncp/LBNetworkPrivate.py [22.11.10][fix]CKV_NCP_16 Co-authored-by: Anton Grübel <[email protected]> * Update checkov/terraform/checks/resource/ncp/LBNetworkPrivate.py [22.11.10][fix]CKV_NCP_16 Co-authored-by: Anton Grübel <[email protected]> * Revert "[22.11.12][fix]NCP_CKV_16" This reverts commit 25d3a6e. * [22.11.12][fix]CKV_NCP_16 * [22.11.12][fix]CKV_NCP_16 * [22.11.13][fix]CKV_NCP_16 * Update checkov/terraform/checks/resource/ncp/LBNetworkPrivate.py Co-authored-by: Anton Grübel <[email protected]> * Update checkov/terraform/checks/resource/ncp/LBNetworkPrivate.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_16 is associated with Load Balancer Exposed to Internet
Description
https://registry.terraform.io/providers/NaverCloudPlatform/ncloud/latest/docs/resources/lb
Checklist: