docker-registry-ui icon indicating copy to clipboard operation
docker-registry-ui copied to clipboard

Basic Auth Error

Open Nassiel opened this issue 4 years ago • 3 comments

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!

Nassiel avatar Apr 19 '20 20:04 Nassiel

There are no solution for this? :(

fjgsanandres avatar Oct 07 '20 16:10 fjgsanandres

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?

Nassiel avatar Aug 08 '22 12:08 Nassiel

@jc21 @jamesdube @huapox @xvmaatmat any option to be added as a contributor to keep this alive or can I close this PR forever?

Nassiel avatar Jun 04 '23 14:06 Nassiel