Bug #31001
closedPulp3 can't sync from password protected repos
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
Updated by Jonathon Turel almost 4 years ago
- Category set to Repositories
- Target version set to Katello 3.16.2
- Triaged changed from No to Yes
Updated by Ian Ballou almost 4 years ago
- Target version changed from Katello 3.16.2 to 1341
Updated by Ian Ballou over 3 years ago
- Target version changed from 1341 to Katello 3.17.2
Updated by Mate Mikulic over 3 years ago
Issue is no longer present since 3.17.0 This can be closed.
Updated by Chris Roberts over 3 years ago
- Status changed from New to Rejected
- Target version changed from Katello 3.17.2 to Katello Recycle Bin