-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Watch doesn't work, when Consul use only SSL #4076
Comments
@1Ricardo The environment variables you have set are they set for the sql8b-stg-1 agent, or the servers? I have identified a potential place in the code where we should force the watch to use https instead of http. However if the env vars are set when the watch is started it should take those into account when determine to use encryption or not. |
Fix #4076 - Agent configured Watches now work with HTTPS only agents
Hi @mkeeler Thank You for your involve in that case and Yes, the variables were declared on both nodes (server and client) |
@1Ricardo I managed to reproduce at least one instance of this and I think it should fix your particular case as well. If for some reason it doesn't fix it for your particular use case please reopen this issue. |
I also had this issue and it's corrected now with the new version (1.2.0). However, now I get this error when I trigger the watch:
It looks like there's an extra colon at the end of the address. The configuration of the agent is the following:
OS info:
Consul version:
|
@mkeeler I have the same issue, now the watch cannot be triggered Jul 9 11:44:42 sql198a-prd-1 consulID: 2018/07/09 11:44:42 [ERR] agent: Failed to run watch: Failed to connect to agent: address https://0.0.0.0:8500: too many colons in address |
I am not able to re-open this issue, because it was not closed by me,
|
Thanks for opening a new issue @1Ricardo |
@mkeeler funny enough: I'm burned by the opposite now: I use http with local client comm since it's the same host, but https with client => server comm. Now that https is forced if enabled, my watches arent working. Should this have never worked in the first place? Happy to open another ticket, too, but it is related to this code change. |
Description of the Issue (and unexpected/desired result)
After switching Consul to HTTPS protocol, the watch service is not able to connect to the Consul anymore. Looks like that the watch service still expect only HTTP service.
When I remove config for SSL than all works fine.
In configuration of Consul I disabled the http and use only https.
Reproduction steps
Environment Variables
Watche config
Client config
consul version
for both Client and ServerClient:
Consul v1.0.7 Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
Server:
Consul v1.0.7 Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
consul info
for both Client and ServerClient:
Server:
Operating system and Environment details
Log Fragments or Link to gist
TIP: Use
-log-level=TRACE
on the client and server to capture the maximum log detail.The text was updated successfully, but these errors were encountered: