Skip to content
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

Allow to specify consul scheme (only HTTP is allowed at the moment) #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mcapuccini
Copy link

Hello! This fixes #151.

This line https://github.com/docker/libkv/blob/master/store/consul/consul.go#L77 overwrites the setting that I am trying to pass via the environment variable CONSUL_HTTP_SSL to the hashicorp API. This makes impossible to connect to a consul server with HTTPS, and it is causing an issue in Traefik: traefik/traefik#1275.

Fixing the scheme to "https" shouldn't be necessary, as the hashicorp API does it by default (https://github.com/hashicorp/consul/blob/8a5164e14aa5464f807eed493c2fb70329ef2135/api/api.go#L216), so I guess you could remove that line.

Signed-off-by: Marco Capuccini <[email protected]>
@mcapuccini
Copy link
Author

@GordonTheTurtle done... now I have to understand why the CI fails. From the log it seems like it can't download the consul binary. Any suggestion?

@mcapuccini
Copy link
Author

@GordonTheTurtle ... just noticed that you are bot haha

@mcapuccini
Copy link
Author

This is going to pass after #154 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting HTTP scheme in store/consul/consul.go overwrites CONSUL_HTTP_SSL
2 participants