4.7. Configuring an htpasswd identity provider
Configure an htpasswd identity provider to create a single, static user with cluster administration privileges. You can log in to your cluster as the user to troubleshoot issues.
The htpasswd identity provider option is included only to enable the creation of a single, static administration user. htpasswd is not supported as a general-use identity provider for Red Hat OpenShift Service on AWS classic architecture.
Procedure
- From OpenShift Cluster Manager, navigate to the Cluster List page and select your cluster.
-
Select Access control
Identity providers. - Click Add identity provider.
- Select HTPasswd from the Identity Provider drop-down menu.
- Add a unique name in the Name field for the identity provider.
Use the suggested username and password for the static user, or create your own.
注意The credentials defined in this step are not visible after you select Add in the following step. If you lose the credentials, you must recreate the identity provider and define the credentials again.
- Select Add to create the htpasswd identity provider and the single, static user.
Grant the static user permission to manage the cluster:
-
Under Access control
Cluster Roles and Access, select Add user. - Enter the User ID of the static user that you created in the preceding step.
- Select Add user to grant the administration privileges to the user.
-
Under Access control
Verification
The configured htpasswd identity provider is visible on the Access control
Identity providers page. 注意After creating the identity provider, synchronization usually completes within two minutes. You can log in to the cluster as the user after the htpasswd identity provider becomes available.
-
The single, administrative user is visible on the Access control
Cluster Roles and Access page. The administration group membership of the user is also displayed.