You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
AuthService cannot connect to OIDC provider through a proxy if a CA_BUNDLE is set.
Error: connection timed out.
HTTPS_PROXY and HTTP_PROXY env vars are set.
How to Reproduce
Steps to reproduce the behavior:
Deploy AuthService with the env var CA_BUNDLE set to a custom CA certificates file.
Container is starting and an error is raised in the log:
OIDC provider setup failed, retrying in 10 seconds: Get \"https://<OIDC PROVIDER>/.well-known/openid-configuration\": dial tcp XXX.XXX.XXX.XXX:443: connect: connection timed out
Expected behavior
The connection should be established
Additional context
I built a custom image from gcr.io/arrikto/kubeflow/oidc-authservice where I put the custom CA certificates into /usr/local/share/ca-certificates/
When I deploy it, i don't set the CA_BUNDLE.
In this case AuthService works well, the connection with OIDC provider is done through proxy as expected.
So it seems when the CA_BUNDLE is set, the HTTP client does not use the PROXY env vars.
On the AuthService container, in the netstat result, we see the connection is done directly without proxy.
~ $ netstat -apn
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 1 192.168.128.47:57590 <OIDC PROVIDER IP>:443 SYN_SENT 1/oidc-authservice
tcp 0 0 :::8080 :::* LISTEN 1/oidc-authservice
tcp 0 0 :::8081 :::* LISTEN 1/oidc-authservice
tcp 0 0 :::8082 :::* LISTEN 1/oidc-authservice
...
~ $
The text was updated successfully, but these errors were encountered:
Is this a bug report or feature request?
Describe the bug
AuthService cannot connect to OIDC provider through a proxy if a CA_BUNDLE is set.
Error: connection timed out.
HTTPS_PROXY and HTTP_PROXY env vars are set.
How to Reproduce
Steps to reproduce the behavior:
Expected behavior
The connection should be established
Config Files
Here the manifest:
Logs
Environment:
Additional context
I built a custom image from gcr.io/arrikto/kubeflow/oidc-authservice where I put the custom CA certificates into /usr/local/share/ca-certificates/
When I deploy it, i don't set the CA_BUNDLE.
In this case AuthService works well, the connection with OIDC provider is done through proxy as expected.
So it seems when the CA_BUNDLE is set, the HTTP client does not use the PROXY env vars.
On the AuthService container, in the netstat result, we see the connection is done directly without proxy.
The text was updated successfully, but these errors were encountered: