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 . The Configuring Authentication page is divided into the following sections:
- LDAP User Directory
- Authentication Method, and
- Role Mapping.
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.
- 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.
-
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.
