-
Notifications
You must be signed in to change notification settings - Fork 239
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
[BUG][opensearch] How can I disable SSL and keep the authentication? #470
Comments
Take a look at the options here: https://opensearch.org/docs/2.9/security/configuration/tls/#rest-layer-tls |
Thanks @smlx , I have read this, and I tried something like this (by the way, I am using tilt here)
The initial arguments |
I changed the approach to use a
Now if I hit http://localhost:9200, it asks for user and password However, when I try to connect from my application using:
I get this error:
|
And I am trying to use the other chart (
But it fails:
|
[Untriage] |
Thank you for tagging me. May I ask if I can work on this issue? Thank you @prudhvigodithi |
Thanks @tranngocsongtruc I have assigned this issue to you. |
Thank you! |
Did you ever manage to get a singlenode cluster working with the helm chart? |
Guys, is it so big deal to fix it? |
I managed to get this working, so thought i would share for anyone else that runs into this problem. The problem here is due to how the DEMO_CONFIG is initialised for the security plugin. Unless the environment variable "DISABLE_INSTALL_DEMO_CONFIG" is set to 'true', the install_demo_configuration.sh script is run. This script looks at the opensearch.yaml config file for any lines that start with The problem here is that the demo_config scripts seem to expect the opensearch.yml to have a flat structure, eg
However the helm chart encourages a hierarchal structure, eg
So if you configure the security settings via a hierarchal layout in the config file, the settings are overridden by the demo_config scripts which append their values to the end of the opensearch.yaml file. Disabling the demo_config script from running is not an option as it is still needed for adding the demo certificates for TRANSPORT (ssl is required) and populating the internal_users.yml file. The solution to all of this is to override the
|
This workaround does not work for me with the latest version of the chart (2.27.1), I get the error:
|
This works for me with latest chart version :
|
I confirm it works with the quotes around |
Thanks everyone, closing this issue, please feel free to re-open or add comments if required. |
Describe the bug
It is more like a lack of documentation I guess. It is a common scenario, I want to spin-up this Helm chart locally, for testing purposes and I don't want to deal with certificates. However, I wouldn't like to disable security completely, as I would like to test aspects related to users, roles, etc.
However, I can't find a precise documentation about this. I thought that there would be a flag like
ssl.enabled=false
for theopensearch
chart, but there isn't.The problem about using SSL is that when I run my Java code (Spring Boot) that is deployed in the same Kubernetes I get the following error:
And I don't want to implement any workaround in the Java side because in production this app actually is going to use valid certificates.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A section describing how to do this in the docs.
Chart Name
opensearch
Screenshots
N/A
Host/Environment (please complete the following information):
Additional context
Just thank you for reading this and helping a distressed developer 😄
The text was updated successfully, but these errors were encountered: