Hide Forgot
Description of problem: When using a proxy without authentication with Satellite, it is not possible to sync repositories from sources that require authentication Version-Release number of selected component (if applicable): When using the default settings in /etc/pulp/server/plugins.conf.d/yum_importer.json as generated by katello_install (containing "proxy_username": ""), the authentication gets stripped of new http(s) requests due to a bug in pulp-nectar. This error does not manifest if there is no "proxy_username" defined in the file. When proxy_username is empty in the config file, it gets set to an empty unicode string (u'') as opposed when it is not set at all (then it is set to None). In the code there is a workaround for another bug (bugzilla 1021662), but this workaround only gets triggered when the proxy_username is None, not when it is an empty string. Since None and u'' both evaluate to false, it was a one line code change. Note that this problem only gets triggered when proxy_username is unset but present (as per the default Satellite 6.1 install). How reproducible: Always Steps to Reproduce: 1. Configure a proxy server without authentication in Satellite6. 2. then try to synchronise an external non-redhat product that does require authentication (so using http://user:password@repourl.org) 3. the username and password get stripped from the url so the authentication fails. Actual results: Fails to download the repository from the source which requires the authentication Expected results: Should download the repository from the given source. Additional info: Fix proposed by the customer- https://github.com/pulp/nectar/pull/47
That commit has not been included in any nectar releases yet: $ git branch --contains 1cd4eedb82fda41935e2596bd99e2839df0e8a0d * master I assume that Satellite has not cherry picked this commit into Nectar either, so the answer is probably no. All we need to do with upstream Pulp is to make a new Nectar release. I filed an upstream ticket to track this issue, and assigned it to Pulp 2.8 https://pulp.plan.io/issues/1820
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
Moving 6.2 bugs out to sat-backlog.
The upstream pulp fix is completed; therefore, moving this bug to POST.
available in pulp 2.8.5 or later.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. > > > > For information on the advisory, and where to find the updated files, follow the link below. > > > > If the solution does not work for you, open a new bug report. > > > > https://access.redhat.com/errata/RHSA-2018:0336