1Panel-dev / webkubectl

Run kubectl command in Web Browser.
Apache License 2.0
854 stars 117 forks source link

Support for multiple username and password for login #27

Open jainpratik163 opened 2 years ago

jainpratik163 commented 2 years ago

is there any way we can define multiple usernames and passwords for diff people as I can see with basic authentication we can only provide one username and password.

or can we get integration with LDAP. can we have such a feature?

liqiang-fit2cloud commented 2 years ago

I think adding a new environment variable GOTTY_CREDENTIAL_FILE that specifies a password file which contains multiple usernames and passwords in lines will be ok.

Integration with LDAP is a little bit complex for now...

liqiang-fit2cloud commented 2 years ago

Hi, v2.11.0 has just been released to support multi username and password. Usage: docker run --name="webkubectl" -p 8080:8080 -v /tmp/webkubectl.passwd:/opt/webkubectl.passwd -e GOTTY_CREDENTIAL_FILE=/opt/webkubectl.passwd -d --privileged kubeoperator/webkubectl image You can have a try.