Bug: Remove unnecessary permissions in Helm Charts #6475
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/needs-triage
Indicates that an issue needs to be triaged by a project contributor.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Hi community!
I just found that the Deployment
contour
in the charts has bothlist
andget
verbs for thesecrets
resource (contour.yaml). However, after reading the source code of contour, I didn't find any Kubernetes API usages that requirelist secrets
permissions. If a malicious user gets the service account token, they can list all the names of the secrets, and with the name, they can get the details of all the secrets objects (since this is declared in a ClusterRole). Therefore, for security reasons, I suggest checking this permission to determine if it is truly unnecessary. If it is, the issue should be fixed by removing the unnecessary permission or by other feasible methods.The text was updated successfully, but these errors were encountered: