Skip to content

Commit b6435ea

Browse files
committed
Deploy/security: added OIDC config for OpenSearch.
1 parent 58e4fb8 commit b6435ea

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

deploy/elasticsearch.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ ELASTICSEARCH_BOOTSTRAP_MEMORY_LOCK=true
112112
# system_call_filter | https://en.wikipedia.org/wiki/Seccomp
113113
ELASTICSEARCH_SYSTEM_CALL_FILTER=false
114114

115+
####### OpenID Connect (OpenSearch Security) #######
116+
# Values used by: security/es_roles/opensearch/config.yml (openid_auth_domain)
117+
ELASTICSEARCH_OPENID_CONNECT_URL="https://keycloak.example.com:8080/auth/realms/master/.well-known/openid-configuration"
118+
ELASTICSEARCH_OPENID_REQUIRED_AUDIENCE="your-openid-client-id"
119+
ELASTICSEARCH_OPENID_SUBJECT_KEY="preferred_username"
120+
ELASTICSEARCH_OPENID_ROLES_KEY="roles"
121+
115122
####### This section is for AD user authentication #######
116123

117124
# example: network.xyz.uk

security/es_roles/opensearch/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@ config:
8585
###### and here https://tools.ietf.org/html/rfc7239
8686
###### and https://tomcat.apache.org/tomcat-8.0-doc/config/valve.html#Remote_IP_Valve
8787
authc:
88+
openid_auth_domain:
89+
http_enabled: true
90+
transport_enabled: true
91+
order: 0
92+
http_authenticator:
93+
type: openid
94+
challenge: false
95+
config:
96+
subject_key: preferred_username
97+
roles_key: roles
98+
openid_connect_url: https://keycloak.example.com:8080/auth/realms/master/.well-known/openid-configuration
99+
required_audience: your-openid-client-id
100+
authentication_backend:
101+
type: noop
88102
kerberos_auth_domain:
89103
http_enabled: false
90104
transport_enabled: false

0 commit comments

Comments
 (0)