Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Basic Auth Error #20

Open
Nassiel opened this issue Apr 19, 2020 · 3 comments
Open

Basic Auth Error #20

Nassiel opened this issue Apr 19, 2020 · 3 comments

Comments

@Nassiel
Copy link

Nassiel commented Apr 19, 2020

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!

@fjgsanandres
Copy link

There are no solution for this? :(

@Nassiel
Copy link
Author

Nassiel commented Aug 8, 2022

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
Copy link
Author

Nassiel commented Jun 4, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants