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 OIDC or SAML. A cluster takes several auth sources side by side, with at most one SAML source and one OIDC source offered on Dashboards.

You'll need your cluster's OpenSearch Dashboards hostname before registering the app. Set dashboards_custom_hostname so you know it upfront, or create the cluster first without an auth source and note the generated opensearch_dashboards_url output before adding it.

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 add an OIDC source under Authentication. Choose a Name (it becomes the text of the Dashboards button, "Login with" followed by this name), tick Offer on OpenSearch Dashboards, 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.