-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 use TLS with ES basic auth #1388
Conversation
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
I don't follow the use case. If you are using username/password, you only need to talk over https. If you use a cert, your identity is already encoded in it, why pass pwd too? |
I think @jpkrohling can explain this well. The basic header is used for authentication, whereas provided CA cert will enable TLS for secure communication. |
Codecov Report
@@ Coverage Diff @@
## master #1388 +/- ##
======================================
Coverage 100% 100%
======================================
Files 164 164
Lines 7453 7460 +7
======================================
+ Hits 7453 7460 +7
Continue to review full report at Codecov.
|
From what I understand from this PR, this is not about enabling client cert auth, but rather, configuring the client to trust a CA, so that the server's cert is trusted. |
That makes sense. Is my hypothesis correct that it will use TLS and basic auth is used to verify the identity? @jpkrohling so does this PR makes sense. It should resolve #1327 |
It certainly makes sense, especially for platforms like Kubernetes where a CA generates certs for services. The cert for this (root) CA should then be trusted by all services running in the platform, as opposed to trusting each service's cert individually. |
ok. My only concern is that the CLI options are now misleading, since it's natural to expect that -tls- options would only be considered if -tls-enabled flag is set, which is not the case here anymore. |
We allow CA also with token, I will change the flag message. |
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
I have changed flag messages saying that |
Lgtm |
* Allow to use TLS with ES basic auth Signed-off-by: Pavol Loffay <ploffay@redhat.com> * Change flag messages Signed-off-by: Pavol Loffay <ploffay@redhat.com>
Resolves #1327
Signed-off-by: Pavol Loffay ploffay@redhat.com