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
htpasswd
identity provider in OpenShift - Content
- Creating the
htpasswd
file - Creating the
htpasswd
secret - Adding the
htpasswd
identity 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
htpasswd
utility. On Red Hat Enterprise Linux this is available by installing thehttpd-tools
package.
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
htpasswd
file.
Procedure
-
Create a
Secret
object that contains thehtpasswd
users 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.