Skip to Content

Azure Entra ID

Authentication Setup

Azure Configuration

  1. Create a Web Application Integration: In the Azure Entra ID Console under Applications click on App Registrations  and click on + New registration.
  2. Give it a name: e.g. ScaleOps
  3. Choose the Supported account types: Preferably choose Accounts in this organizational directory only, this would allow only users from your organization to login.
  4. Configure Redirect URI:
  • Choose Web as the platform.
  • For ingress setup: Use your ScaleOps dashboard URL followed by /auth/callback (e.g., https://<YOUR-SCALEOPS-DASHBOARD-URL>/auth/callback).
  • For port forwarding without ingress: Use http://localhost:8080/auth/callback.

Create Application 5. Save the Client ID and Tenant ID: Record the Application (client) ID we are going to refer to it as CLIENT-ID in this doc and the Directory (tenant) ID we are going to refer to it as TENANT-ID in this doc.

Save The Client ID 6. Save the Client Secret: Click on Certificates & secrets and click on + New client secret, give it a description and click Add. We are going to refer to it as CLIENT-SECRET.

  • Note: that the secret will be shown only once, so make sure to save it somewhere safe.
  • Note: that when creating the secret you can choose when it will expire, make sure to ether choose Never or save in the calendar when you would need to replace it.

Create The Client Secret Save The Client Secret

Workload identity

Available in v1.35.12+ Workload identity works only on an AKS cluster that has the workload identity webhook. The dashboard sends the service account token that webhook mounts instead of a client secret. On any other cluster, set clientSecret.

  • On the app registration, open Certificates & secrets, open Federated credentials, and click Add credential.

    Federated credentials tab

  • Set Federated credential scenario to Kubernetes accessing Azure resources.

    Kubernetes accessing Azure resources

  • Cluster issuer URL: the AKS OIDC issuer. Keep the trailing slash.

    az aks show --resource-group <RESOURCE-GROUP> --name <CLUSTER-NAME> --query oidcIssuerProfile.issuerUrl --output tsv
  • Namespace: scaleops-system, unless ScaleOps is installed in another namespace.

  • Service account name: scaleops-dashboards.

  • Leave Subject identifier as the generated value, system:serviceaccount:scaleops-system:scaleops-dashboards.

  • Leave Audience as api://AzureADTokenExchange.

    Federated credential defaults

ℹ️
  • Set the pod label and service account annotation below, and leave clientSecret empty. All three are required for workload identity.
  • Without the label the webhook does not inject a token, like documented here .
  • Without azure.workload.identity/client-id the webhook rejects the pod, like documented here .
  • A non-empty clientSecret makes the dashboard send that secret instead.
global: podLabels: azure.workload.identity/use: "true" serviceAccount: annotations: azure.workload.identity/client-id: <CLIENT-ID>

azure.workload.identity/client-id is required. Use the same value as CLIENT-ID. azure.workload.identity/tenant-id is optional. When it is omitted, the webhook uses the tenant it was installed with. Set it only when the app registration is in a different tenant, like documented here .

ScaleOps Configuration

Add the following helm values to your helm values.yml file:

authProvider: provider: azure azure: clientID: <CLIENT-ID> tenantID: <TENANT-ID> clientSecret: <CLIENT-SECRET> # empty uses workload identity

An empty clientSecret makes the dashboard send the token from AZURE_FEDERATED_TOKEN_FILE. That file exists only on an AKS cluster with the workload identity webhook. A non-empty secret keeps the client secret flow.

Groups Setup

Azure Configuration

  1. Configure the application we just created to pass groups with the JWT token.
    • Go to the Azure Portal  and click on App Registrations.

    • Click on the application we just created.

    • Click on Token configuration.

    • Under Token configuration click on Add groups claim.

    • Choose the group types you want to use (or all) and click Add.

    • Click Save. Add Groups Claim

    • Note that it might take a few minutes for the changes to take effect.

      ⚠️

      For large enterprises with many group memberships, selecting All groups may cause Azure to exceed the token group limit (200 groups for OIDC/OAuth2, 150 for SAML). When exceeded, the groups claim is replaced with an overage indicator, breaking group-based authorization. To avoid this, select Groups assigned to the application instead, and assign the relevant groups to the Enterprise App. See Microsoft’s documentation  for details.

      ScaleOps also stores those groups in the authentication cookie and supports at most 200 groups per user. More groups can make the cookie exceed the browser size limit and break login. Selecting Groups assigned to the application keeps both Azure’s token limit and ScaleOps’ cookie limit from being exceeded.

      ℹ️

      ScaleOps does not import Entra groups. Add each group in the Helm lists below, or under Users & Groups, pick a role, and ScaleOps matches it the next time that user signs in.

      Self-hosted matches the group Object ID. Copy that value from Entra and use it as the group name in ScaleOps. The display name does not match. ScaleOps Cloud matches the Entra display name.

      For example, add the Object IDs of your viewer, operator, and admin groups, and assign Viewer, Operator, and Admin.

  2. Get the group id you want to use as admin.
    • Go to the Azure Portal  and click on Azure Active Directory.
    • Click on Groups.
    • Click on the group you want to use as admin.
    • Copy the Object ID value, we will refer to it as GROUP-ID. Get Group ID

ScaleOps Configuration

Add the following helm values to your helm values.yml file:

authProvider: provider: azure authorization: enabled: true azure: clientID: <CLIENT-ID> tenantID: <TENANT-ID> clientSecret: <CLIENT-SECRET> # empty uses workload identity groupsClaim: groups

Leave clientSecret empty in that block to use workload identity. The pod label and service account annotation above are required too.


Save The Client ID
Create The Client Secret
Create Application