Logging is disabled on Kubernetes engine clusters Affecting Kubernetes (Container) Engine service in Google


Severity

0.0
high
0
10
Severity Framework
Snyk CCSS
Rule category
Containers/ Audit

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CIS-ControlsHIPAAISO-27001NIST-800-53SOC-2
  • Snyk IDSNYK-CC-00414
  • creditSnyk Research Team

Description

Logs are useful for investigating suspicious API requests, for collecting statistics, or for creating monitoring alerts for unwanted API calls.

How to fix?

Ensure logging_service field is set to logging.googleapis.com/kubernetes.

Example Configuration

resource "google_container_cluster" "allowed_stackdriver" {
  name                     = "gke-cluster-414-b"
  location                 = "us-central1-b"
  logging_service          = "logging.googleapis.com/kubernetes"
  project                  = "my-project"
  remove_default_node_pool = true
  initial_node_count       = 1
}