docker-registry-ui
docker-registry-ui copied to clipboard
Basic Auth Error
With the latest versión, when you use a registry that uses basic authentication, I receive the next error:
[4/19/2020] [8:03:15 PM] [Express ] › ⚠warning Error: getaddrinfo ENOTFOUND USER User:443
For <registry_user> you see the real user name. After doing some research, right now the basic auth is doing by concatenating the user:pass inside the calling URL. Despite this could work, the restler parser is failing and takes the user as FQDN for the DNS.
My recommendation is to change how the options of restler are being generated and use the username and password parameters. Something like:
this.getUrlOptions = function (version) {
let options = {
headers: {
'User-Agent': 'Docker Registry UI'
},
username = username,
password = password
};
if (version === 2) {
options.headers.Accept = 'application/vnd.docker.distribution.manifest.v2+json';
}
return options;
};
I tried to debug the solution but it fails with the table-ui so I cannot send you a pull request. Thanks!
There are no solution for this? :(
Hi, @jc21 @jamesdube @huapox. Are you open to allowing more contributors to the project? Many requests, issues and PRs are open without an answer for a long time, and I think it's a shame because the solution is quite good, I'd say, to abandon it. What do you think?
@jc21 @jamesdube @huapox @xvmaatmat any option to be added as a contributor to keep this alive or can I close this PR forever?