-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.20
-
Quality / Stability / Reliability
-
False
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Hi!
We found an interesting bug:
- Valid certificate for the frontend ocp.foo.com
- Invalid certificate/chain for the oauth endpoint (oauth-openshift.apps.ocp.foo.com)
Setting insecure-skip-tls-verify inkubeconfig does not skip the verification of certs from the oauth endpoint.
This is because setting the config to insecure happens inside this conditional: https://github.com/openshift/oc/blob/main/pkg/cli/login/loginoptions.go#L190. Note that it does work with the command line option, since that code path is different.
If that makes sense, I can submit a PR in github to move the code outside of the initial dialToServer() call.