-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Warnings at startup when running with --client-cert-auth and --client-cert-allowed-hostname #15755
Comments
Could you disable gRPC gateway and try again? See command below,
|
Also please try command below in two cases: (1) with gRPC gateway enabled, (2) with gRPC gateway disabled.
|
Thank you for looking into this! With
The requested curl commands, first with gRPC enabled, starting the server:
The curl fails:
Any time I run the failing curl the server logs this, so it seems like it might be triggering the same problem:
Restarting the server with gRPC gateway disabled:
The curl now results in a
The server logs nothing for those |
Thanks for the feedback. @eest The gRPC gateway is used to support REST requests, the rough workflow is something like below. The etcd server's server side certificate is also used by the gRPC gateway when connecting to the backend gRPC server. Most likely the gRPC gateway uses a different hostname (e.g. the output of
It only affects the gRPC gateway. If you don't need to submit any REST requests, then it's fine. Regarding how to fix it, could you just remove the |
I could remove Since I only use I did notice that |
It isn't a priority for now. We might also change the behavior in future.
Please read #15402 (comment). etcd supports specifying separate endpoint for http starting from 3.5.8. Can we close this ticket? |
Thanks for taking some time to explain the details of what is going on! I'll close this ticket now. |
What happened?
When setting up etcd with client certificate authentication there is a warning logged at startup, initially this can be seen:
After some web crawling I found this issue was related to not having
TLS Web Client Authentication
on the server certificate: #9785 (comment). However, after fixing this error by updating the server cert I then proceeded to add--client-cert-allowed-hostname=localhost
and this resulted in a new warning:What did you expect to happen?
No errors should be logged during normal operation. At least it should be documented what extensions are expected on the server cert.
How can we reproduce it (as minimally and precisely as possible)?
I will start with reproducing the initial problem, and then updating things to get the second warning.
--client-cert-allowed-hostname=localhost
:... so the filter seems to work as expected for external clients, but for some reason the server always logs that warning message on startup and it is unclear how bad it is, or how I should fix it.
Anything else we need to know?
No response
Etcd version (please run commands below)
Etcd configuration (command line flags or environment variables)
No response
Etcd debug information (please run commands below, feel free to obfuscate the IP address or FQDN in the output)
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: