Creating Platform administrators

1. Overview

A Platform administrator is a user responsible for managing and maintaining the infrastructure of the Platform.

This role is required to deploy the Platform, create registries, and install updates. Platform administrators may also collaborate with other teams, such as equipment administrators, to assess the resources necessary to ensure the Platform’s reliability and efficient functioning.

For details on the Platform’s roles and functional responsibilities, see:

After deploying the Platform on target environments, the system automatically creates a single administrator user: kube:admin. This user is needed to add the first Platform administrator, who, in turn, can add other administrators and create registries.

Platform administrators are created in the Control Plane admin console.

2. Adding administrators

To add the first administrator, perform these steps:

  1. Sign in to the OpenShift web console as a kube:admin user.

    To obtain kube:admin credentials, contact the Platform’s support team.

    cp platform admins 1

  2. Go to Home > Projects, find and open the control-plane project.

  3. Go to Networking > Routes and open the link to the control-plane-console component from the Location column.

    cp deploy consent data 1

  4. Sign in to the Control Plane admin console as kube:admin using the same credentials as in OpenShift.

    update cluster mgmt 01

    cp platform admins 1

  5. Open the Platform management section and click Edit in the upper-right corner.

    update cluster mgmt 1

  6. Open the Administrators section and add one or more administrators that need access to Platform management.

    cp platform admins 19

    Click the + (Add) button and provide the following details for each administrator:

    • First name

    • Last name

    • Email address

    • Temporary password

    cp platform admins 19 1

    To add several administrators, repeat this step for each user separately (click + > provide details > Confirm).

    Use lower case for email addresses.

    Allowed characters are: digits (0-9), Latin letters (a-z), underscores (_), hyphens (-), at sign (@), dots (.), and commas (,).

    cp platform admins 19 2

  7. Click Confirm to save your changes.

    You can also remove an administrator by clicking the delete icon (🗑) next to their username.

    As a result, the system generates a Platform administrators update request with a New status. You can view request details in the Platform management > Update requests section.

    cp platform admins 20

  8. In the Update requests section, click the view icon (👁) to open your request.

  9. Compare the changes between the two versions that open in a new window and make sure the data you entered is correct. Click Approve.

    The proposed changes are applied to the deploy-templates/values.yaml configuration file of the cluster-mgmt component upon confirmation.

    cp platform admins 20 1

    After the approval, the changes are applied to the master branch of a corresponding repository, which starts the MASTER-Build-cluster-mgmt build process.

    After the build is completed, the system creates a Platform administrator account with the necessary access rights.

    You can verify access within a couple of minutes.

    A Platform administrator automatically gets the necessary access rights, including Cluster-admins and cluster-mgmt-admin groups and the cp-cluster-mgmt-admin role in the Keycloak service.

    Platform administrators have full access to OpenShift and Control Plane.

    They can add other Platform administrators, create registries, and assign registry administrators.

    For details on creating registry administrators, see Creating registry administrators.

  10. You can now sign in to Control Plane as a Platform administrator. To do this, sign out of the kube:admin account and sign in via the Log in with > keycloak option using your Platform administrator credentials.

    cp platform admins 21

    From now on, you can add or remove Platform administrators using the same steps you performed under the kube:admin account.

An alternative way to approve the changes via Gerrit

When you sign in using your Platform administrator account, not kube:admin, you can approve update requests in the Gerrit service in addition to the Control Plane interface. You can also monitor the cluster-mgmt code build process in the Jenkins service. To do this, perform these steps:

  1. Find your update request and click the View in Gerrit icon.

    cp platform admins 20

  2. Approve the changes using Code Review +2 > Submit.

    cp platform admins 22

    After the changes are merged to the master branch of the corresponding repository, the MASTER-Build-cluster-mgmt build starts in Jenkins.

  3. Use the link at the bottom of the Gerrit page to monitor the build status (CI Jenkins > Build Started > Jenkins > cluster-mgmt > Master-Build-cluster-mgmt).

    cp platform admins 24

    cp platform admins 25

3. Managing access to the administrator portal

The Platform administrator in the openshift realm of the Keycloak service can provide access rights to the regulations administrator portal.

Perform these steps:

  1. Sign in to the OpenShift web console.

    To obtain the credentials, contact the Platform’s support team.
  2. Go to Projects > user-management.

    cp platform admins 3

  3. Open the Networking section and click the keycloak service link.

    cp platform admins 4

  4. Sign in to the Keycloak Administration Console using the Keycloak secret (username and password).

    cp platform admins 4 1

    cp platform admins 7

    You can obtain the credentials in the Keycloak service’s secrets.

    To do this, copy the secrets from the Workloads > Secrets > keycloak section.

    cp platform admins 5

    cp platform admins 6

  5. Go to the openshift realm > Users and select the user you wish to grant access to.

    cp platform admins 26

  6. Open the Role Mappings tab and select the cp-registry-admin-<registry-name> role in the Available Roles list, where <registry-name> is the name of the registry where the administrative portal is deployed.

  7. Click Add selected to move the role to the Assigned Roles list. This grants access to the user.

As a Platform administrator, you can create and update infrastructure and registry components configurations and add other Platform and registry administrators.