-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Web UI with basic authentication #97
Comments
What is the answer here? I assume some hash based on the htpasswd file I created? what is the best way to get/generate what is needed for docker-registry-web? |
YWRtaW46Y2hhbmdlbWU= is base64 encoded string of user:password, |
Ok, I'm using the base64 encode value for my usr:pw, but I wonder if this is right for the bcrypt encryption that registry:2 now requires? my docker-registry-web log just adds this line when I try and connect: My registry:2 log has this: And yes, my docker login straight to the repository:2 container works. Here is my docker-registry-web ENV vars: Here is my registry config.yml: storage: http: auth: log: |
Wanted to leave an update, I did finally get this working without Basic Auth but with a nginx proxy for the UI frontend. |
I am also troubled by this problem. |
so it cant work with htpasswd? |
Hello,
when I try to use basic authentication in web ui the following error comes up:
status=401 UNAUTHORIZED {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"registry","Class":"","Name":"catalog","Action":"*"}]}]}
I tried these command, described in the documentation:
docker run -it -p 8080:8080 --name registry-web --link registry-srv
-e REGISTRY_URL=https://registry-srv:5000/v2
-e REGISTRY_TRUST_ANY_SSL=true
-e REGISTRY_BASIC_AUTH="YWRtaW46Y2hhbmdlbWU="
-e REGISTRY_NAME=localhost:5000 hyper/docker-registry-web
What have I to put behind REGISTRY_BASIC_AUTH? Is it the password or the hash or somethin else?
Thanks in advance,
Jonas
The text was updated successfully, but these errors were encountered: