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

Outdated check for google_container_cluster binary authorization #3409

Closed
calexandre opened this issue Aug 23, 2022 · 5 comments · Fixed by #3612
Closed

Outdated check for google_container_cluster binary authorization #3409

calexandre opened this issue Aug 23, 2022 · 5 comments · Fixed by #3612
Labels
checks Check additions or changes good first issue Good for newcomers terraform

Comments

@calexandre
Copy link

Describe the issue
Check: CKV_GCP_66: "Ensure use of Binary Authorization" is not checking against the updated property causing the check to fail.

The current property states that the old method enable_binary_authorization is deprecated in favor the new binary_authorization block

Examples

Before:

enable_binary_authorization = true

Now:

  binary_authorization {
    evaluation_mode = "PROJECT_SINGLETON_POLICY_ENFORCE"
  }

Version (please complete the following information):

  • Checkov Version 2.1.149
@calexandre calexandre added the checks Check additions or changes label Aug 23, 2022
@gruebel
Copy link
Contributor

gruebel commented Aug 23, 2022

hey @calexandre thanks for reaching out. Great catch with the deprecation 🚀 are you maybe interested in contributing the needed change?

@gruebel gruebel added good first issue Good for newcomers terraform labels Aug 23, 2022
@JamesWoolfenden
Copy link
Contributor

@gruebel the changes is that that binary auth is now always on so the check isnt needed at all

@gruebel
Copy link
Contributor

gruebel commented Sep 8, 2022

@JamesWoolfenden but as far as I understand, you can set the mode to DISABLED and then it is actually disabled. So it is more like a negative check, as long as you don't set it to DISABLED you are fine, right?

@losisin
Copy link
Contributor

losisin commented Sep 19, 2022

I think what @calexandre is trying to say is how we do the check needs to change. What used to be bool now is moved in module block. Missing block or setting evaluation_mode as DISABLED should still fail though. If @gruebel and @JamesWoolfenden agree I can have a go with this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
checks Check additions or changes good first issue Good for newcomers terraform
Projects
None yet
4 participants