Service account spec 'automountServiceAccountToken' should be set to 'false' Affecting Authorization service in Kubernetes


Severity

0.0
low
0
10
Severity Framework
Snyk CCSS
Rule category
Containers/ Best Practices

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-Kubernetes
  • Snyk IDSNYK-CC-00654
  • creditSnyk Research Team

Description

Avoid auto mounting tokens for the default service account. The default service account should not be used and its ability to provide API credentials should be disabled.

How to fix?

Set the automountServiceAccountToken attribute to false.

Example configuration:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: valid-serviceaccount
automountServiceAccountToken: false

Kubernetes