Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[prometheus] Allow turning off automountServiceAccountToken #3909

Closed
OmarHawk opened this issue Oct 17, 2023 · 1 comment · Fixed by #3911
Closed

[prometheus] Allow turning off automountServiceAccountToken #3909

OmarHawk opened this issue Oct 17, 2023 · 1 comment · Fixed by #3911
Labels
enhancement New feature or request

Comments

@OmarHawk
Copy link

OmarHawk commented Oct 17, 2023

Is your feature request related to a problem ?

For security reasons, we are currently turning off automounting serviceAccountTokens by default in our deployments and if the Deployment really requires that, we put the corresponding mount manually into the requiring containers again. Unfortunately, this is not possible, as there is no option to provide this as part of the config values.

Describe the solution you'd like.

Allow providing automountServiceAccountToken as config value for the ServiceAccount / Pod, while allowing to provide the necessary mounts / volumes manually (that 2nd part would be possible already)

Describe alternatives you've considered.

NONE

Additional context.

This is part of fixing a MS Defender for Cloud recommendation. "Kubernetes clusters should disable automounting API credentials"

@OmarHawk OmarHawk added the enhancement New feature or request label Oct 17, 2023
@DrFaust92
Copy link
Contributor

ill take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants