Document URL: https://docs.openshift.com/container-platform/4.2/authentication/identity_providers/configuring-htpasswd-identity-provider.html Need to add user delete procedure in the htpasswd identity provider section. Describe the issue: There is no explanation available to delete users in the htpasswd identity provider section. Suggestions for improvement: should add a section for deleting a user. the worked solution for me below: Steps to delete user from htpaaswd #oc get secret htpasswd-6qh84 -ojsonpath={.data.htpasswd} -n openshift-config | base64 -d | tee htpasswd Remove the entires from the htpasswd file. $ cat htpasswd labuser:$xxxxxxxxxxxxxx mani:$apxxxxxxxx@ <==== remove the user entry #oc delete user/mani #oc delete identity/quicklab_htpasswd:mani #oc create secret generic htpass-secret --from-file=htpasswd --dry-run -o yaml -n openshift-config | oc replace -f - wait for the oauth pod get restarts then verify. Additional information:
PR to add/delete users from an HTPasswd IDP: https://github.com/openshift/openshift-docs/pull/20508
Hi @Standa, can you review my PR to see whether this approach to updating users is okay and accurate? I have some TODO's in the source for two questions I had, if you can provide any information there. Thanks! PR: https://github.com/openshift/openshift-docs/pull/20508 Preview: https://bz-1778362--ocpdocs.netlify.com/openshift-enterprise/latest/authentication/identity_providers/configuring-htpasswd-identity-provider.html#identity-provider-htpasswd-update-users_configuring-htpasswd-identity-provider
Hi @ShengSheng Cheng, can you or @Xingxing Xia please review this update? Thanks! PR: https://github.com/openshift/openshift-docs/pull/20508 Preview: https://bz-1778362--ocpdocs.netlify.com/openshift-enterprise/latest/authentication/identity_providers/configuring-htpasswd-identity-provider.html#identity-provider-htpasswd-update-users_configuring-htpasswd-identity-provider
PR verified and merged.
Updates are live: https://docs.openshift.com/container-platform/4.3/authentication/identity_providers/configuring-htpasswd-identity-provider.html#identity-provider-htpasswd-update-users_configuring-htpasswd-identity-provider