ok, supplying my configuration files i add to the relevant values.yml for my helm charts:
opensearch.yml:
cluster.name: opensearch-cluster
network.host: 0.0.0.0
plugins:
security:
ssl:
transport:
pemcert_filepath: cert/<my-full-ca-chain>.pem
pemkey_filepath: key/key.pem
pemtrustedcas_filepath: root-ca/root-ca.pem # my root certificate of CA chain
enforce_hostname_verification: false
http:
pemcert_filepath: cert/<my-full-ca-chain>.pem
pemkey_filepath: key/key.pem
pemtrustedcas_filepath: root-ca/root-ca.pem # my root certificate of CA chain
allow_unsafe_democertificates: true
allow_default_init_securityindex: true
authcz:
admin_dn:
- CN=XX,OU=XX,O=XX,C=XX
- CN=kirk,OU=client,O=client,L=test,C=de
nodes_dn:
- CN=XX,OU=XX,O=XX,C=XX
audit.type: internal_opensearch
enable_snapshot_restore_privilege: true
check_snapshot_restore_write_privileges: true
restapi:
roles_enabled: ["all_access", "security_rest_api_access"]
system_indices:
enabled: true
indices:
[
".opendistro-alerting-config",
".opendistro-alerting-alert*",
".opendistro-anomaly-results*",
".opendistro-anomaly-detector*",
".opendistro-anomaly-checkpoints",
".opendistro-anomaly-detection-state",
".opendistro-reports-*",
".opendistro-notifications-*",
".opendistro-notebooks",
".opendistro-asynchronous-search-response*",
]
config.yml for security plugin:
config:
openid_connect_idp:
enable_ssl: true
pemtrustedcas_filepath: /usr/share/opensearch/config/root-ca/root-ca.pem
pemcert_filepath: /usr/share/opensearch/config/cert/<my-full-ca-chain>.pem
pemkey_filepath: /usr/share/opensearch/config/key/key.pem
dynamic:
basic_internal_auth_domain:
description: "Authenticate via HTTP Basic against internal users database"
http_enabled: true
transport_enabled: true
order: 0
http_authenticator:
type: basic
challenge: true
authentication_backend:
type: intern
openid_auth_domain:
http_enabled: true
enabled: true
transport_enabled: true
order: 1
http_authenticator:
type: "openid"
challenge: false
config:
enable_ssl: true
subject_key: preferred_username
roles_key: roles
openid_connect_url: "https://<keycloak_address>/realms/master/.well-known/openid-configuration"
openid_connect_idp:
enable_ssl: true
pemtrustedcas_filepath: /usr/share/opensearch/config/root-ca/root-ca.pem
authentication_backend:
type: noop
opensearch_dashboards.yml:
opensearch:
hosts: ["https://opensearch-cluster.master.opensearch.svc:9200"]
ssl:
verificationMode: none
certificateAuthorities: /usr/share/opensearch-dashboards/config/certs/cert/<my-full-ca-chain>.pem
opensearch_security:
auth:
type: ["basicauth","openid"]
multiple_auth_enabled: true
openid:
connect_url: "https://<keycloak_address>/realms/master/.well-known/openid-configuration"
client_id: <id>
client_secret: <secret>
scope: "openid profile email"
server:
ssl:
enabled: true
certificate: /usr/share/opensearch-dashboards/config/certs/cert/>my-full-ca-chain>.pem
key: /usr/share/opensearch-dashboards/config/certs/key/key.pem
just adding that im using singleNode , and the dashboards and the opensearch are residing on different namespaces in my k3s cluster.