Is the `automountServiceAccountToken: false` necessary with SCC

Solution Unverified - Updated -

Issue

The violation of

"Protect pod default service account tokens from compromise by minimizing the mounting of the default service account token to only those pods whose application requires interaction with the Kubernetes API."

has a suggested remediation of

"Add `automountServiceAccountToken: false` or a value distinct from 'default' for the `serviceAccountName` key to the deployment's Pod configuration."

Is this necessary, given that SecurityContextConstraints limit access to the kubernetes API and the default account has a restricted SCC?

Environment

  • Red Hat Advanced Cluster Security (RHACS)
    • 4.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content