-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix insecure configurations #3235
Comments
It looks like this is in the controller-runtime code base? It would be better to file a bug with them if this is an issue, so the fix can roll out to multiple projects. That being said, it looks like this checker is only used to determine liveness of the server. In a default config, host is "", which means the dial command only reaches out to Ultimately, I think using Here is the flag where Gatekeeper defaults host to empty string: Line 108 in e4853bb
|
Then again, I suppose if a user DID use host, then ignoring that may cause the Dial to fail -- ultimately host should always be a local IP (if not, how would the request be served? If it's not a local IP, the host will not receive the request, if it is a hostname, golang does not recommend that for functional issues):
I think this bug may be moot. |
no longer applicable since fork is removed with #3111 |
What steps did you take and what happened:
[A clear and concise description of what the bug is.]
third_party/sigs.k8s.io/controller-runtime/pkg/webhook/server.go
``
The client uses an insecure configuration of InsecureSkipVerify, and not set MinVersion to VersionTLS12
What did you expect to happen:
use secure tls configurations
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Environment:
The text was updated successfully, but these errors were encountered: