Managing users roles and access in Cloudera AI Registry

Access to Cloudera AI Registry is governed through Role-Based Access Control (RBAC) in the Anywhere Cloud console. Administrators assign application roles to users to define their permissions within the registry, and generate API tokens or access keys to enable authentication.

You can assign one of three predefined application roles to a user for the Cloudera AI Registry engine type:

Table 1. Roles and permissions
Role Capabilities and Permissions
cai-registry-user Read and write models, model versions, and tags within Cloudera AI Registry.
cai-registry-operator Includes all User permissions (read and write models, versions, and tags), plus the ability to import models into Cloudera AI Registry.
cai-registry-admin Full administrative access to manage the entire Cloudera AI Registry instance, configurations, and resources.

If a user has more than one role, then the role with the highest level of permissions takes precedence.

Prerequisites

  • You must have administrative privileges in the Anywhere Cloud console to view user directories, assign application roles, and generate access credentials.
  • An Identity Provider (IdP), such as LDAP, must be configured in the Anywhere Cloud console so that users can be created or synced into the directory and associated with roles.
  • The target user account must already exist in the Anywhere Cloud directory.

Assigning a role to a user for Cloudera AI Registry

  1. In the Anywhere Cloud console, select Security > Users and Groups in the left navigation pane.
  2. In the Search users field, search for the target user and select the user in the displayed result.
  3. Click on the Application roles tab.
  4. In the Engine type dropdown list, select Cloudera AI Registry.
  5. Select the appropriate role (cai-registry-user, cai-registry-operator, cai-registry-admin) to grant the required level of access.
  6. Save your changes.

Generating authentication credentials for Cloudera AI Registry access

Once a role is assigned, users require authentication credentials, that is either Access Keys or API Tokens to connect to and interact with Cloudera AI Registry using REST APIs.

Generating Access Keys

  1. In the Anywhere Cloud console, select Security > Users and Groups in the left navigation pane.
  2. In the Search users field, search for the target user and select the user in the displayed result.
  3. Click on the Application roles tab.
  4. In the Engine type dropdown list, select Cloudera AI Registry.
  5. Click on the Access Keys tab.
  6. Click Create new to generate a new key pair for the assigned user.
  7. In the Generate access key pane, enter the name of the user and click Generate access key.
  8. Copy and securely store the generated Access Key ID and Secret Key.

Generating API Tokens

  1. In the Anywhere Cloud console, select Security > Users and Groups in the left navigation pane.
  2. In the Search users field, search for the target user and select the user in the displayed result.
  3. Click on the Application roles tab.
  4. In the Engine type dropdown list, select Cloudera AI Registry.
  5. Click on the API Tokens tab.
  6. Click Create new to issue a new API token for the user.
  7. In the Create API key token pane, enter the name of the user and click Create API key token.
  8. Copy and store the token securely before closing the pane, as it will not be displayed again.