-
Notifications
You must be signed in to change notification settings - Fork 43
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
Error with secured etcd #13
Comments
Hi, Here you can read more about TLS Cert Chains: https://www.sysorchestra.com/ssltls-certificate-chain-challenges/ Feel free to ask here, if something is unclear. |
Hi, I'm stil wondering how vip-manager will know what key it should use to communicate with etcd ? |
Hi, |
I have the same problem. I've already added my ca to the trust store, but the missing part (in the documentation) is how vip-manager get to know about the certificates it should use.
|
Most likely this is something the etcd client does and not vip-manager. One has to check the etc client code and check where it performs the TLS stuff. vip-manager has to be updated at some point because when i'm right, the etcd client has moved to https://github.com/etcd-io/etcd/tree/master/client. @Wolfsrudel you may want to check the code there to see how it does TLS verifying? |
Sorry, but I'm not a developer. :) |
Now I see: you are using the older client version. Maybe it is working with APIv2. |
Same error using |
I'm also not a programmer, but we could go through the source code step by step. The problem also is that 'we' use consul as a backend and not etcd. |
Secured with tls? If true i'll give it a try. |
It's working with a secured consul. It's fine for me. |
@Wolfsrudel nice to hear that ;) At least you know, that i can help you when you have some consul related questions. Our PG Cluster (3-node) now works perfectly fine since November 2017 with patroni/consul/vip-manager :) |
Hey guys, since I added options to specify etcd username and password, it should be fairly easy to extend the yaml config reader and the etcd checker (same applies to consul checker...) to use user-specified cert, key, and ca files. I may get around to do this at some point, but the demand seems to be low currently. (Please complain loudly if you disagree.) |
@markwort I've resolved the issue creating a I'm using this set of environment variables to enable the TLS connection:
I can create a PR whenever you want. |
@gandalfmagic so you're using Environment variables to influence the behaviour of vip-manager in respect to the etcd client? If you'd like to create a pull request, I can check how we can make it work with a configuration that is consistent with the rest of the code. |
Hi @markwort,
In this case I wanted to avoid a different behaviour of etcd compared to consul.
Can we support both? flags/parameters and env variables? Is it fine for you? I'm testing the new code right now, if you tell me you prefer the solution without env variables, I'll simply drop the support to them, no problem :) |
For people having the same problem (me for example), @gandalfmagic 's code is here: https://github.com/gandalfmagic/vip-manager @markwort - please check @gandalmagic 's repository. It implements both passing of parameters via environment and as command line options. His repository has other nice improvements too, such as gitlab-ci and test, better distribution packaging etc. I have extracted a few "single issue" patches from @gandalmagic 's repository, that you should be able to merge easily: Mind you, if you have a look at @gandalfmagic 's work and you think you would like to pull all of it, then it's better to pull directly from him, because there's slight chance of merge conflicts if you ull the stuff I picked from @gandalfmagic 's repository first. Note that when building from a forked repository, you (whoever is trying to build the thing) will get plenty on build errors like this:
because there's plenty of places where:
which need all to be changed to a repo that contains the modified
See d58b948 for reference. I think that's also something that @gandalfmagic has addressed by switching to a different dependency/vendoring mechanism in his repo. |
Hello @gandalfmagic. I've checked your fork and found it very useful. I saw you switched to go modules, but why you still have |
Hi @pashagolub, I simply never removed it after the migration. You can do it any time. |
Would be great if you can drop it. It will ease merging :) Thanks in advance |
Done. |
Hi @pashagolub
I've the same problem with certificates :
Using etcdctl client it's working well with the same certificates :
In the yml config file I added the certificates :
What should I do to correct this certificates problem ? |
We didn't merge this, nor release it. Am I right @markwort? |
ahhh my bad ! |
@pashagolub right... |
why not 👍 |
I've created a new prerelease: I'm closing this thread now, TLS connections to etcd are supported as of vip.-manager v1.0 . |
Hi @markwort
|
Hey, I'm sorry for the confusion, my workstation apparently is too up to date 😬 . |
Hi,
after having successfully tested etcd, patroni and vip-manager on a 3 nodes cluster, I got some issue with vip-manager when etcd is secured.
etcd error: client: etcd cluster is unavailable or misconfigured; error #0: x509: certificate signed by unknown authority
Patroni is configured to use the certificates and is working well.
Could you tell me if vip-manager need some additional configuration to support certificates with etcd ?
And thank you for the tool, very usefull.
Regards,
Henri Chapelle
The text was updated successfully, but these errors were encountered: