Open Greeley opened 1 year ago
Hi @Greeley ,
Here is some documentation on how to add TLS certificates https://opensearch.org/docs/latest/security/configuration/tls/ You can disable security plugin as mentioned here https://opensearch.org/docs/latest/security/configuration/disable/
@prudhvigodithi Can add more from helm side of things! Thanks!
I am facing the same issue, I want to disable HTTPS and keep the authentication (I am using this chart for local development and local testing). I can't find that information anywhere.
Hey @Greeley and @campidelli-wcq did you explore the environment value"plugins.security.ssl.http.enabled=false"
?, this should disable https but still should have the authentication, example http://admin:admin@127.0.0.1:9200
. Is this what you are looking for? Please test and let me know.
Thank you
@prudhvigodithi Here is my config but i still cant access with http, only https works
plugins:
security:
ssl:
transport:
pemcert_filepath: certs/tls.crt
pemkey_filepath: certs/tls.key
pemtrustedcas_filepath: certs/tls.crt
enforce_hostname_verification: false
http:
enabled: false
pemcert_filepath: certs/tls.crt
pemkey_filepath: certs/tls.key
pemtrustedcas_filepath: certs/tls.crt
@prudhvigodithi I am also facing the same issue. When using Opensearch 2.13.0 with
plugins.security.http.enabled: false
The application still won't accept http requests. Logs :
[o.o.s.s.DefaultSecurityKeyStore] [opensearch-cluster-manager-0] Enabled TLS protocols for HTTP layer
When using any version < 2.12.1 this does not happen.
Describe the bug Documentation seems incomplete, quite a few things are missing, like why vm.max_map_count causes issues. Almost all of the options in the documentation are left for the user to guess how to set them up, or how they are formatted.
To Reproduce Steps to reproduce the behavior:
Set optimal sysctl's through privileged initContainer.
sysctlInit: enabled: false
ingress: enabled: true
For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
ingressClassName: alb
annotations: alb.ingress.kubernetes.io/ip-address-type: dualstack alb.ingress.kubernetes.io/target-type: instance alb.ingress.kubernetes.io/scheme: internal alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 9200}]' path: / hosts:
sysctl -n vm.max_map_count
; DESIRED="262144"; if [ "$DESIRED" -gt "$CURRENT" ]; then sysctl -w vm.max_map_count=262144; fi; CURRENT=sysctl -n fs.file-max
; DESIRED="65536"; if [ "$DESIRED" -gt "$CURRENT" ]; then sysctl -w fs.file-max=65536; fi; securityContext: runAsUser: 0 privileged: trueprotocol: http httpPort: 9200 transportPort: 9300 metricsPort: 9600 httpHostPort: "" transportHostPort: ""
Expected behavior opensearch starts and runs with http and is only internal to the vpc
Chart Name opensearch
Screenshots If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context the error that is given:
I see the error and that it's asking for a pem but there's two things.