Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Unable to set auth.oauth_auto_login via environment variable #14435
What Grafana version are you using?
What OS are you running grafana on?
Official Docker image on Kubernetes
What did you do?
Set environment variable
What was the expected result?
What happened instead?
We are configuring all other settings with environment variables as well and it works, e.g. for SMTP from address:
~ $ kubectl exec -it grafana-55c76cbf79-lhj6r -- sh -c 'echo $GF_SMTP_FROM_ADDRESS' firstname.lastname@example.org ~ $ kubectl exec -it grafana-55c76cbf79-lhj6r -- sh -c 'echo $GF_AUTH_OAUTH_AUTO_LOGIN' true
Judging from the code in #12029 I don't see a reason why this would not work (because it's using the standard settings constructor) and no reason why the code should switch the setting to