Configuring the identity provider

You must set up an enterprise identity provider to ensure secure authentication for users to Anywhere Cloud Console.

How authentication works

Cloudera Anywhere Cloud supports two authentication methods: SAML 2.0 single sign-on, where users sign in through your organization's identity provider and are redirected back to the Console; and LDAP Direct, where users sign in with their directory credentials, which are checked against your LDAP or Active Directory server.

Both methods require an LDAP or Active Directory connection. Anywhere Cloud uses it to look up users and groups for role assignment and for Data Service workloads. The directory must contain the same users as your SAML identity provider.

Anywhere Cloud reads each user's groups from the directory to assign roles. Users who sign in through SAML but are not found in the directory have no access.

For step-by-step configuration instructions, see Connecting your directory and choosing a sign-in method.

Connecting your directory and choosing a sign-in method

Configure the user directory and choose your sign-in method after accessing the Anywhere Cloud Console.

In the Anywhere Cloud Console, authentication is configured under Admin Center > Security > Identity Provider. The Configuring Authentication page is divided into the following sections:

  1. LDAP User Directory
  2. Authentication Method, and
  3. Role Mapping.
The LDAP or Active Directory connection is required. Then choose an authentication method: LDAP Direct or SAML SSO.

Air-gapped and restricted networks: If the cluster can't reach your identity provider's metadata URL, paste the metadata XML instead. Users' browsers must be able to reach your identity provider to sign in, so in an air-gapped environment the identity provider must also run inside your network.

  • You must have a service account (bind DN and password) with read access to your LDAP or Active Directory user and group directories.
  • If your directory server uses LDAPS, you must have the Certificate Authority (CA) certificate in PEM format.

If you are planning to use the SAML SSO authentication method:

  • You must have the SAML metadata for your identity provider, either as a published URL or as raw XML. When using a URL, it must be reachable from the Cloudera Anywhere Cloud cluster network.
  • If your installation uses a custom gateway address, have that address ready for the Gateway URL field.
  • Username format for SAML SSO: AWC does not support usernames that contain the @ character. Configure your identity provider to send the user's short username (for example, jdoe, not jdoe@example.com) in the SAML NameID.
  1. Select the Admin Center > Security > Identity Provider in case you haven’t configured the Identity Provider yet.
  2. Click Configure Identity Provider.
  3. Connect your LDAP or Active Directory directory, which is required for user and group lookups by filling out the required fields for the LDAP or Active Directory.
    Table 1.
    Property Action Mandatory
    Name Provide a descriptive name for the Identity Provider. Yes
    Directory URL Provide the address of the enterprise user directory server. Yes
    CA Certificate for Secure LDAP Provide the Certificate Authority (CA) certificate in PEM format. Required when the directory server uses secure LDAP (LDAPS). Yes, when the Directory URL uses LDAPS
    LDAP Bind DN Provide the distinguished name (DN) of the service account for directory connections. Yes
    LDAP Bind Password Provide the password for the service account. Yes
    LDAP User Search Base Provide the starting location in the directory tree for user searches. Yes
    LDAP User Search Filter Provide the filter rule that is used to match user records. Yes
    LDAP Group Search Base Provide the starting location in the directory tree for group searches. Yes
    LDAP Group Search Filter Provide the filter rule that is used to match group membership records. Yes
    LDAP User Identifier Attribute Provide the directory attribute used to identify user accounts. No
    LDAP User Object Class Provide the object class used to identify user entries. No
    LDAP Group Object Class Provide the object class used to identify group entries. No
    Use the memberOf attribute for group resolution (recommended for Active Directory) Select the checkbox to resolve group memberships using the memberOf attribute. No
    Email Mapping Attribute Provide the directory attribute containing the user's email address. No
  4. Click Test LDAP/Active Directory Connection.
    Testing the LDAP Connection must be successful before submitting the form.

    If you are choosing LDAP Direct authentication method you can skip to Step 8.

  5. Select SAML SSO as the Authentication Method.
  6. Fill out the required fields.
    Table 2.
    Property Action Mandatory
    Name Provide a name for the authentication setup. Yes
    SAML Metadata Select a method for providing the identity provider configuration data. Yes
    SAML Metadata URL Provide the URL where the identity provider metadata file is published. Yes, when URL is selected as metadata input type.
    SAML Metadata XML Enter the metadata content. Yes, when XML is selected as the metadata input type.
    Gateway URL The gateway URL of Cloudera Anywhere Cloud is automatically filled out. Override only when your installation uses a non-standard gateway address, for example custom DNS compared to the default [**CLUSTER DOMAIN**]. Yes
    Username Attribute Provide the SAML attribute used for username. By default, the Username Attribute is NameID. No
    Groups Attribute Provide the SAML attribute containing group membership. No
    Session Lifetime (seconds) Provide the session duration before reauthentication. By default the session duration is 3600. No
  7. Click Test SAML connection.
    The test connection validates that the metadata is reachable and the identity provider signing certificate uses SHA-256 or stronger format.
  8. Search for users within the Identity Provider directory to assign Platform Administrator user roles for them.
  9. Click Apply Identity Provider.
    After the Identity Provider configuration is completed, Knox restarts and the configuration will be applied. Users or groups of users that you have assigned as administrators will be able to log in to the Anywhere Cloud Console.
After saving the configuration, you must register Cloudera Anywhere Cloud as a service provider in your identity provider. Knox is used in the URLs as it is the authentication gateway endpoint that the identity provider posts assertions to:
  • Single Sign-On URL (ACS URL): https://knox.[***CLUSTER DOMAIN***]/gateway/knox-cdpsso/api/v1/websso?pac4jCallback=true&client_name=SAML2Client
  • Audience URI (SP Entity ID): https://knox.[***CLUSTER DOMAIN***]/gateway/awc-saml/api/v1/websso

The [***CLUSTER DOMAIN***] is the DNS domain configured during your Cloudera Anywhere Cloud cluster installation. You can find the domain of your cluster in the Anywhere Cloud Console URL. For example, if your console is accessible at https://console.mycluster.example.com, then your cluster domain is mycluster.example.com.

Changing your directory or sign-in method

Update the identity provider configuration after the initial setup, for example to rotate the bind password, replace a certificate, change the user directory, or switch between LDAP Direct and SAML SSO.

You can change any setting in the identity provider configuration. Some changes affect who can sign in:

  • Rotating the bind password or replacing the CA certificate does not affect users or role assignments.
  • Changing the search bases or filters can stop users outside the new settings from signing in, even if they have roles assigned.
  • Changing the user directory, or switching between LDAP Direct and SAML SSO, can stop existing role assignments from matching your users.
  • When you apply changes, the authentication service restarts and all active sessions end. Users, including you, must sign in again.

Existing role assignments are kept after a change, but they might not match users in the new configuration. To keep administrator access, the form asks for a fail-safe administrator: one user from the new configuration who is given the Platform-admin role when you apply the changes.

  • You must have the Platform-admin role.
  • Have the new connection details ready, for example the new bind password, CA certificate, or directory details.
  • If you are switching to SAML SSO, register Cloudera Anywhere Cloud as a service provider in your identity provider first, and have the SAML metadata ready. See Connecting your directory and choosing a sign-in method.
  • Identify the user you will enter as the fail-safe administrator. The user must exist in the new directory, and the username must match exactly. It is not checked before the changes are applied.
  1. Select the Admin Center > Security > Identity Provider in case you haven’t configured the Identity Provider yet.
  2. Click Edit Settings.
  3. Update the directory connection fields that you want to change.
  4. Click Test LDAP/Active Directory Connection.
    The test must succeed before you can apply the changes.
  5. If you are changing the authentication method, select LDAP Direct or SAML SSO.
    For SAML SSO, update the SAML fields and click Test SAML connection.
  6. Under Role Mapping, enter the fail-safe administrator. This is required when you switch between LDAP Direct and SAML SSO, or change the user directory, and optional for other changes.
  7. Click Apply.
  • Sign in as the fail-safe administrator, or as another administrator, to confirm that you still have access.

  • Check that users can sign in and that their roles are as expected. Reassign roles to users and groups in the new directory as needed. See Assigning roles to users and groups.

.