OpenShift Authentication & Authorization, htpasswd (OpenShift Administration Part-4) RedHat Ex280
OpenShift Users and Groups
- User
- Service Account
- Group
- Role
OpenShift Identity Providers (OpenShift OAuth server)
- HTPasswd
- OpenStack Keystone
- LDAP
- GitHub or GitHub Enterprise
- OpenID Connect
Lab: Create users 'admin' and 'developer' and assign role
** If new to Docker, Podman, Kubernetes and Openshift then first see -- kzread.info/head/PLnFCwVWiQz4kASpMbCXRmAu6nKtPOBE4Q
** For detail about OpenShift development --
kzread.info/head/PLnFCwVWiQz4lrK7s1S409fsfm59qdFVOX
commands--
htpasswd -c -B -b htpasswd-file admin redhat
htpasswd -b htpasswd-file developer developer
oc create secret generic localusers --from-file htpasswd=htpasswd-file -n openshift-config
oc adm policy add-cluster-role-to-user cluster-admin admin
oc get oauth cluster -o yaml gt oauth1.yaml
spec:
identityProviders:
- htpasswd:
fileData:
name: localusers
mappingMethod: claim
name: myusers
type: HTPasswd
oc replace -f oauth.yaml
oc get pods -n openshift-authentication
oc login -u admin -p redhat
oc get nodes
oc get users
oc get identity
oc login -u developer -p developer
oc get nodes
Пікірлер: 12
Valuable and informative demo. Your effort highly appreciated
@techtejendra4782
Жыл бұрын
Thanks ..
Thank you so much tejendra
I appreciate your efforts and thanks for sharing your knowledge Tejendra
@techtejendra4782
Жыл бұрын
Thanks 🙂
Muito bom. Me ajudou muito.
I want to migrate Virtual machine to Openshift. Pls make a video on it.
@techtejendra4782
11 күн бұрын
Sure I will make soon. You can opt OSV (OpenShift Virtualization) for your VM migration.
Please share the word doc
How to do htpasswd password installation step. Not to able install on openshift local on my laptop. Could you please share the step I'm stuck in here
@chinthayadav4719
7 ай бұрын
Did you solve your problem, let me know how to install
I am getting this error ==> [root@bastion identity-provider]# oc login -u user1 -p HP1nvent error: x509: certificate signed by unknown authority