I recently tried upgrading kube-prometheus-stack on my AWS EKS Kubernetes cluster via Helm to chart v56.2.1 using Terraform and it failed while upgrading Grafana with the following error:
Sensitive key ‘auth.generic_oauth.client_secret’ should not be defined explicitly in values. Use variable expansion instead.
I'm not specifying any client_secret via values.yml file for that Helm chart but we are using AzureAD for authentication.
How to fix this?
There are 2 possible solutions to fix this issue:
Set
grafana.assertNoLeakedSecretstofalsein thevalues.ymlfile.If
auth.generic.oauth.client_secretis specified in thevalues.ymlfile, remove it from that file and setGF_AUTH_GENERIC_OAUTH_CLIENT_SECRETas the environment variable for Grafana.References: