Open fabio-s-franco opened 4 months ago
It seems the problem is that I can't have client-id, client-secret and cookie-secret being loaded separately from a secret. It's either alphaconfig from values file, from a configmap our from a secret in its entirety.
I find it a bit strange that it is not possible to use a secret directly. I will try to set it up in extraEnv as it seems to be set as a template so I can make secretkeyref and load it as environment variables. It may also be useful to have it as an example in README, and perhaps some clarification on the behavior of existingSecret. It is a bit confusing.
@fabio-s-franco
The configFile inside the values.yaml
file has been the same for five years, so that's certainly not the problem.
https://github.com/oauth2-proxy/manifests/blame/main/helm/oauth2-proxy/values.yaml#L49
I confirm that proxyVarsAsSecrets
works like this: a single secret with all three values.
https://github.com/oauth2-proxy/manifests/blob/main/helm/oauth2-proxy/templates/deployment.yaml#L176C24-L192
You can try to use envFrom
.
https://github.com/oauth2-proxy/manifests/blob/main/helm/oauth2-proxy/values.yaml#L97-L108
I hope I helped you in some way.
In AKS, Pod fails to start with the error mention in the tittle:
It is installed via terraform, but should work the same with helm command as I use a custom values file for override:
values file:
This started to happen after I upgraded from 6.23.1 to the more recent 7.6.0 I have also ensured it is using the latest chart version (7.7.9) and verified the structure of values.yaml to match with the latest chart version.
If I omit configFile from config section, I get:
So,
config.configFile.upstreams = [ "file:///dev/null" ]
seems to be invalid. It breaks when configFile is not overriden.I am still unable to upgrade oauth2-proxy to use latest chart and image versions. But still investigating if I can workaround the issue. I suspect this has something to do with how newer versions treat multiple provider configurations that may not be reflected in the chart, even though I am only using a single provider in alphaConfiguration.