-
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
Proxy doesn't respect peer-auto-tls or auto-tls #7930
Comments
It looks to me like part of the problem is in the proxy listener: https://github.com/coreos/etcd/blob/release-3.1/etcdmain/etcd.go#L312-L318. I'd like to take a stab at this, should I make a branch off of the |
This is expected? v2 proxy just forwards request to cluster. And if the cluster enabled client TLS, v2 proxy would require the certs of the cluster, to boot.
Auto TLS was added in v3, and the httpproxy is from v2, so seems like we are missing documentation on this. Try starting the proxy process with cluster's peer certs? |
OK, maybe my understanding is off. I've got a 3-node cluster with It seems to me like there are two issues:
It sounds like the proxy is v2 only, and I'm guessing that v2 requests cannot be upgraded to v3, so the above points are moot? Is there any plan for a v3 proxy? Or do v3 clients have to talk to the master? |
I think this needs something like |
@heyitsanthony Agree. |
@micahhausler would you like to send a pr to get this fixed? |
@xiang90 Yea, based on the previous comment I understood that it was expected behavior. I'd be happy to make v2 requests respect a |
Hey I'm having similar problems.. I'm currently just trying to run a simple single-node cluster with one proxy as a POC. Cluster configuration: THIS_IP="$1" TOKEN=token-02 Proxy Configuration: Trying to run a simple etcdctl command results in the following error: |
I've got a 3-node cluster running with
--auto-tls
and--peer-auto-tls
, but my proxies configured with--auto-tls
and--peer-auto-tls
are still trying to validate the cluster's certs.Environment
Host OS:
Container Linux by CoreOS 1353.7.0
Etcd version: 3.1.7
Cloud: AWS
Peer Setup
/etc/sysconfig/etcd-peers
Logs
Curl response (from the proxy)
The text was updated successfully, but these errors were encountered: