Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch-dashboards 2.11.0
helm charts 2.14.0
Describe the issue:
We’re deploying Opensearch-dashboards with Helm charts, and I want to add configuration for LDAP authentication.
I found instructions for setting up LDAP authentication
where it says to update the file config/opensearch-security/config.yml
And in this other thread I found how to specify/modify yaml files within the helm values.yaml
However, the config.yaml I manage to generate is in the wrong(?) directory
config/config.yml
Is there a way via Helm to create the opensearch-security
folder and put he config.yaml there?
An extra question, the config.yaml includes the LDAP bind_dn and the password. I rather not put the clear text password in the file. What will be a way to refer to an ENV var that is loaded from a K8s secret?
Configuration:
Helm values.yaml, including
config:
config.yaml: |-
---
config:
dynamic:
http:
anonymous_auth_enabled: false
authc:
basic_internal_auth_domain:
description: "Authenticate via HTTP Basic against internal users database"
http_enabled: true
transport_enabled: true
order: 4
http_authenticator:
type: basic
challenge: true
authentication_backend:
type: intern
ldap:
description: "Authenticate via LDAP or Active Directory"
http_enabled: false
....
hosts:
- ldaps://ad.example.com
bind_dn: 'CN=service-account,,OU=Users,DC=example,DC=com'
password: 'doNotPutClearTextPasswordHere'
Relevant Logs or Screenshots:
I tried to access the AD LDAP logs, but I could not find them. It seems as a separate question how to activate these logs for opensearch-dashboard.