-
Notifications
You must be signed in to change notification settings - Fork 319
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/gcp): Add GKE Shielded Nodes is Disabled query for Terraform. #6248
feat(terraform/gcp): Add GKE Shielded Nodes is Disabled query for Terraform. #6248
Conversation
Hi @bbergstrom, |
You have successfully added a new gosec configuration |
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.
Upon further inspection, I noticed that the terraform docs suggest that by default the value is set to true
. I believe the first policy that detects the default value should be removed.
Let me know what you think.
@cxMiguelSilva The first query detects for the implicit default, which should be a positive because the value could drift if it is changed outside of Terraform. The best practice for these is to explicitly set the default value in Terraform to ensure it catches and corrects drift to the secure value. |
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.
Hi @bbergstrom,
In KICS we do not create policies to cover default values that are not deemed as vulnerable or misconfiguration. We have come across bug reports and issues handling from the community to improve our Security Queries in order to remove those False Positive results from incorrect checks on default values.
I kindly ask you to remove the policy that checks the default value since the Terraform documentation is indicative that it is set to the correct value. If at any time the guidelines change feel free to update the Security Query and add that policy.
Hi @bbergstrom , Would you have time in the near future to do the changes Miguel asked for? |
@kaplanlior Pushed suggested changes. Awaiting approval for test suite. |
@kaplanlior @cxMiguelSilva Could I please get approval on the latest commit to run the test suite? |
@gabriel-cx Tests all passed. 🎉 Would you finish the review or should I wait for @cxMiguelSilva ? |
cce5b84
to
9ac56ee
Compare
Add Terraform query for "GKE Shielded Nodes is Disabled".
Closes #6243
I submit this contribution under the Apache-2.0 license.