Skip to content

Conversation

@cx-ricardo-jesus
Copy link
Contributor

@cx-ricardo-jesus cx-ricardo-jesus commented Nov 25, 2025

Reason for Proposed Changes

  • Currently, no query covers the case when the Kubernetes Web UI (Dashboard) is not disabled for Terraform/GCP.

Proposed Changes

  • The query only has one simple policy, which only checks if the field addons_config.kubernetes_dashboard.disabled is defined to false.
  • If this kubernetes_dashboard is not defined, the default behaviour is to disable de dashboard, which should not be flagged.
  • Important note is that this field was removed in version 3.0.0 of Terraform/GCP google_container_cluster resource, which was released approximately 6 years ago.
  • Taking into account that this field is just flagged if it's defined to false, and its absence does not return any result, it will not return any positive result on the most recent versions of this resource.

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 25, 2025 15:22
@github-actions github-actions bot added feature New feature query New query feature terraform Terraform query gcp PR related with GCP Cloud kubernetes Kubernetes query labels Nov 25, 2025
@github-actions
Copy link
Contributor

kics-logo

KICS version: v2.1.13

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

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 kubernetes Kubernetes query query New query feature terraform Terraform query

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant