Skip to main content

Configure OpenSearch SSO with Microsoft Entra ID

ClusterNest Managed OpenSearch can delegate Dashboards login to Microsoft Entra ID (Azure AD) over either OIDC or SAML. Pick one - auth_type accepts only a single mode per cluster.

You'll need your cluster's OpenSearch Dashboards hostname before registering the app. Set opensearch_dashboards_custom_hostname so you know it upfront, or create the cluster first with auth_type = "internal" and note the generated opensearch_dashboards_url output before switching it over.

OIDC

Set roles_key to "roles" if you use App roles, or "groups" if you use a group claim (and are prepared to map by object ID - Azure's default group claim emits object IDs, not names). Drop it to skip role mapping entirely.

  1. In the Entra admin center, go to App registrations > New registration.
    • Redirect URI: platform Web, https://<dashboards-hostname>/auth/openid/login
  2. Go to Certificates & secrets > New client secret, note the value (it's only shown once).
  3. Note the app's Application (client) ID and your Directory (tenant) ID, both on the app's Overview page.
  4. For role mapping, either add App roles (App registration > App roles, then assign users/groups under Enterprise applications > Users and groups) so they land in a roles claim, or go to Token configuration > Add groups claim to emit group membership instead.

In the ClusterNest console, open the cluster's create/edit form and set Authentication Type to OIDC, then fill in:

  • Connect URL: https://login.microsoftonline.com/<tenant-id>/v2.0/.well-known/openid-configuration
  • Client ID / Client Secret: from the app's Overview / Certificates & secrets pages
  • Roles Key: roles (or groups; leave blank to skip role mapping)

See the Terraform resource reference for the full field list.