-
Notifications
You must be signed in to change notification settings - Fork 670
Enabling TLS removes proxy from weave status
output
#876
Comments
I'm not really sure the best way to fix this. We could: |
I'm leaning towards having a unix socket for status queries. |
Let's just ditch the proxy from |
Umm. how does |
There are two problems with obtaining the proxy status via the normal proxy endpoint... 1. when TLS is enabled, this requires using TLS at the client end 2. the status URL is mixed in with the docker remote API, which is rather unclean There is limited value to having some status output from the proxy, since all the output is constant. So instead we log the version and command line args. We still want a way to wait for the proxy to start up, and log a nice error if it dies. We do this by polling the docker logs for a startup message. Fixes weaveworks#877. Fixes weaveworks#876. Undoes weaveworks#756, weaveworks#800, weaveworks#854.
I'm guessing it 'works' because it can establish a connection, post something, and receive some tls nonsense.
Speaking to unix sockets from the command line is a pain. There is no single, widely installed command for it. And We could listen on 127.0.0.1:some_port, but listening on a fixed port is problematic, and making it configurable is a pain. |
There are two problems with obtaining the proxy status via the normal proxy endpoint... 1. when TLS is enabled, this requires using TLS at the client end 2. the status URL is mixed in with the docker remote API, which is rather unclean There is limited value to having some status output from the proxy, since all the output is constant. So instead we log the version and command line args. We still want a way to wait for the proxy to start up, and log a nice error if it dies. We do this by polling the docker logs for a startup message. Fixes weaveworks#877. Fixes weaveworks#876. Undoes weaveworks#756, weaveworks#800, weaveworks#854.
There are two problems with obtaining the proxy status via the normal proxy endpoint... 1. when TLS is enabled, this requires using TLS at the client end 2. the status URL is mixed in with the docker remote API, which is rather unclean There is limited value to having some status output from the proxy, since all the output is constant. So instead we log the version and command line args. We still want a way to wait for the proxy to start up, and log a nice error if it dies. We do this by polling the docker logs for a startup message. Fixes weaveworks#877. Fixes weaveworks#876. Undoes weaveworks#756, weaveworks#800, weaveworks#854.
Yep. The http_call_ip doesn't care what the response says, just that it can connect. |
There are two problems with obtaining the proxy status via the normal proxy endpoint... 1. when TLS is enabled, this requires using TLS at the client end 2. the status URL is mixed in with the docker remote API, which is rather unclean There is limited value to having some status output from the proxy, since all the output is constant. So instead we log the version and command line args. We still want a way to wait for the proxy to start up, and log a nice error if it dies. We do this by polling the docker logs for a startup message. Fixes weaveworks#877. Fixes weaveworks#876. Undoes weaveworks#756, weaveworks#800, weaveworks#854.
There are two problems with obtaining the proxy status via the normal proxy endpoint... 1. when TLS is enabled, this requires using TLS at the client end 2. the status URL is mixed in with the docker remote API, which is rather unclean There is limited value to having some status output from the proxy, since all the output is constant. So instead we log the version and command line args, and in `weave status` only report whether the proxy is running. We still want a way to wait for the proxy to start up, and log a nice error if it dies. We do this by polling the docker logs for a startup message. Fixes weaveworks#877. Fixes weaveworks#876. Undoes most of weaveworks#756, weaveworks#800, weaveworks#854.
There are two problems with obtaining the proxy status via the normal proxy endpoint... 1. when TLS is enabled, this requires using TLS at the client end 2. the status URL is mixed in with the docker remote API, which is rather unclean There is limited value to having some status output from the proxy, since all the output is constant. So instead we log the version and command line args, and in `weave status` only report whether the proxy is running. We still want a way to wait for the proxy to start up, and log a nice error if it dies. We do this by polling the docker logs for a startup message. Fixes weaveworks#877. Fixes weaveworks#876. Undoes most of weaveworks#756, weaveworks#800, weaveworks#854.
Because curl cannot connect to the proxy over TLS.
The text was updated successfully, but these errors were encountered: