-
Notifications
You must be signed in to change notification settings - Fork 326
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
consul-k8s Connect inject does not support consul with TLS enabled and HTTP disabled. #79
Comments
Looks like there is a pull request that attempts to solve this issue: #30 |
It isn't just an issue with connect. It also stops the ACL init job from working even if I set CONSUL_HTTP_SSL=true. I believe the issue is with:
I suspect that it might be hard coded else where too. |
I am facing the same issue, I have the following configuration:
but I still see following error from the consul-connect sidecar:
Is #30 going to be merged anytime soon? Is there any alternative solution to the above problem? |
Deal with the sprig library using int for sub and div values
I spent a bunch of time getting TLS set up by modifying the helm chart to suite my needs, and everything seems to be working with consul itself.
I would like to take advantage of connect-inject, because it is a cool feature, and makes my life a lot easier. Just specify an annotation, and get service level TLS without additional config... that's awesome.
However, after getting consul servers and agents talking with TLS, and gossip encryption this fails to work anymore.
Using this config for my clients to enable tls, and disable the HTTP endpoint breaks the connect-inject sidecar.
See error below:
I would like the ability to tell connect inject that it needs to use a cert, key, and ca from a secret, like I can do for the consul servers, and clients. That way, I can set up some certificates that the init container can use when registering the service, without having to enable HTTP connections on my consul agents.
At minimum, it would be more secure if all I had to do was disable "verify_incoming_https" on my consul agents, and specify that I want an HTTPS connection, and which port to use.
Maybe there is a better solution, but I figured I would put this here so it can be discussed.
Edit:
If it was not obvious from above, I am running consul in Kubernetes, using the helm chart to deploy.
I am running - kubernetes 1.11.
Consul 1.4.2
Consul-k8s 0.6
The above init config can be seen hardcoded here : https://github.com/hashicorp/consul-k8s/blob/master/connect-inject/container_init.go
The text was updated successfully, but these errors were encountered: