Managing authentication using API Keys

Learn what API Keys are and how they can secure authentication quickly and easily.

API Keys provide a secure authentication method based on a JSON Web Token (JWT) generated and stored by HCL Universal Orchestrator. This authentication method provides a number of advantages, such as:
  • Central repository for all platforms and for multiple configurations.
  • Improved user experience when setting up the Orchestration CLI.
  • API Keys life cycle completely managed using Orchestration CLI.
  • Easier problem solving when authentication problems occur.

Before you begin

Ensure you have completed the following tasks:
  • You have installed an OpenID Connect (OIDC) provider and configured HCL Universal Orchestrator to work with it. To configure HCL Universal Orchestrator, fill in the relevant properties in the values.yaml file available for HCL Universal Orchestrator deployment. Comments are available in the values.yaml file to explain all properties.
  • After accessing the product for the first time, configure administrative roles based on your requirements. For more information, see Managing security roles.

Issuing API Keys

You can issue API Keys using one of the following methods:

You can view the API Keys using the ocli model list apikey command. For more information, see list.

If an API Key is about to expire or has expired, a warning message is displayed in the command line, together with a link to generate a new API Key.

Revoking agent authorization

To revoke authorization for an agent to register and connect with HCL Universal Orchestrator, perform the following steps:

  1. Remove the REGISTER_AGENT administrative permissions from the ACLs for the user who installed the agent or the user who created the API Key used to register the agent. You can perform this operation from the Dynamic Workload Console, as described in Managing access control list.
  2. Delete the API Key.
You can delete the API Key from the Dynamic Workload Console or from the command line. To delete the API Key from the command line, perform the following steps:
  1. Open a shell session.
  2. Launch the ocli model script.
  3. Run the following command:
    ocli model delete apikey Label
    where
    Label
    is the name of the API Key you want to delete.

For more information about the delete command, see delete.

From the Dynamic Workload Console, you can perform the same operation as follows:
  1. Log in to the Dynamic Workload Console.
  2. Select an engine.
  3. Click on the User icon in the upper right corner.
  4. Select Manage API Keys.
  5. Select the API Key to be deleted.
  6. Click on the Delete icon.

After revoking the agent authorization, you can register the agent again by creating a new API Key, as explained in Issuing API Keys.