Project

General

Profile

Bug #31001

Pulp3 can't sync from password protected repos

Added by Mate Mikulic over 1 year ago. Updated over 1 year ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

I use a repo which requires authentication. http://updateinfo-origin.cefs.steve-meier.de/7-sync/updates/x86_64/repodata/ All the files are public except "somehash-updateinfo.xml.gz" which is hidden and password protected. Since upgrade to Foreman 2.1 this has stopped working. Error is "file not found", however, file is there as I see it from my browser when I authenticate and can download it with wget when passing credentials in request.

From tests I've done this is my conclusion:

When repo contains a hidden password protected file, while syncing, pulp3 gets info that this file exists from repomd.xml list, it seem it will try to download it without passing credentials, which will end in "404 Not found".

On pulp2 on the other hand, this will work without issues. As it tries to download files, for each file mentioned in repomd.xml, while downloading it will pass credentials and thus hidden password protected files will be downloaded successfully.

Workaround until this is fixed is: Clone that public repo locally somewhere in your private network and remove hide/password protection from files. And point Foreman to sync from there.

More details on this in this thread: https://community.theforeman.org/t/pulp-3-cant-work-with-yum-repo-requiring-auth-foreman-2-1-2/20510

History

#1 Updated by Jonathon Turel over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.16.2
  • Category set to Repositories

#2 Updated by Ian Ballou over 1 year ago

  • Target version changed from Katello 3.16.2 to 1341

#3 Updated by Ian Ballou over 1 year ago

  • Target version changed from 1341 to Katello 3.17.2

#4 Updated by Mate Mikulic over 1 year ago

Issue is no longer present since 3.17.0 This can be closed.

#5 Updated by Chris Roberts over 1 year ago

  • Target version changed from Katello 3.17.2 to Katello Recycle Bin
  • Status changed from New to Rejected

Also available in: Atom PDF