hlxsites / hlxsites/prisma-cloud-docs
Title and content of CKV_K8S_38 is misleading
- Dominant language
- JavaScript
- Stars
- 21
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
The current title reads:
> Service account tokens are not mounted where necessary
Note the phrase "not mounted where necessary". The [code for the check](https://github.com/bridgecrewio/checkov/blob/d0a9936a5985a51f5898fe20cd259e08d13acad7/checkov/kubernetes/checks/resource/k8s/ServiceAccountTokens.py#L13) accurately captures its intent (emphasis mine):
> Ensure that Service Account Tokens are **only** mounted where necessary
Correcting this will aide in clarity of this check.
Please also consider adding context or details behind the purpose of this check. It is warning of a potential issue in which tokens are being mounted into Pods unnecessarily, exposing a larger attack surface than may be necessary. Said another way, this check is alerting for the potential of Pods being issued ServiceAccount tokens when they have no use for them.
Contributor guide
Assessment
This issue has not been assessed yet.