Skip to content

Conversation

@cx-ricardo-jesus
Copy link
Contributor

Closes #

Reason for Proposed Changes

  • Currently, no query for Terraform/GCP that ensures integrity monitoring is enabled for Shielded GKE Nodes.

Proposed Changes

  • According to the Terraform documentation of the resources google_container_node_pool and google_container_cluster, the field node_config.shielded_instance_config.enable_integrity_monitoring defines if the instance has integrity monitoring enabled for both resources, since in the documentation of the google_container_node_pool there is no documentation for the node_config block, and demands to see the information about this field on the google_container_cluster documentation so, I assumed that the node_config have the same configuration for both resources.
  • Also on the documentation, as shown in the screenshot below, it is stated that the default value for the field enable_integrity_monitoring is true.
image
  • Regarding the query, it is composed of only one simple policy that only checks if the field mentioned above is set to true. If that scenario happens, a positive result is returned.

I submit this contribution under the Apache-2.0 license.

@cx-ricardo-jesus cx-ricardo-jesus requested a review from a team as a code owner November 26, 2025 19:19
@github-actions github-actions bot added feature New feature query New query feature terraform Terraform query gcp PR related with GCP Cloud labels Nov 26, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2025

kics-logo

KICS version: v2.1.18

Category Results
CRITICAL CRITICAL 0
HIGH HIGH 0
MEDIUM MEDIUM 0
LOW LOW 0
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 0
Metric Values
Files scanned placeholder 1
Files parsed placeholder 1
Files failed to scan placeholder 0
Total executed queries placeholder 47
Queries failed to execute placeholder 0
Execution time placeholder 0

Copy link
Contributor

@cx-eduardo-semanas cx-eduardo-semanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@cx-eduardo-semanas cx-eduardo-semanas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature gcp PR related with GCP Cloud query New query feature terraform Terraform query

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants