Configuring an htpasswd identity provider in OpenShift
Configure the htpasswd identity provider to allow users to log in to OpenShift Container Platform with credentials from an htpasswd file.
Content
- Configuring an
htpasswdidentity provider in OpenShift - Content
- Creating the
htpasswdfile - Creating the
htpasswdsecret - Adding the
htpasswdidentity provider to your cluster
Creating the htpasswd file
To use the htpasswd identity provider, you must generate a flat file that contains the user names and passwords for your cluster by using htpasswd.
Prerequisites
- Have access to the
htpasswdutility. On Red Hat Enterprise Linux this is available by installing thehttpd-toolspackage.
Procedure
-
Create or update your flat file with a user name and hashed password:
-
Continue to add or update credentials to the file:
Creating the htpasswd secret
To use the htpasswd identity provider, you must define a secret that contains the htpasswd user file.
Prerequisites
- Create an
htpasswdfile.
Procedure
-
Create a
Secretobject that contains thehtpasswdusers file:
Adding the htpasswd identity provider to your cluster
The following custom resource (CR) shows the parameters and acceptable values for an htpasswd identity provider.