Community-Owned package repositories fail with 403 if no user-agent set #3261
Labels
area/release-eng
Issues or PRs related to the Release Engineering subproject
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
sig/release
Categorizes an issue or PR as relevant to SIG Release.
What happened:
When attempting to install from new Community-Owned Package Repositories using tdnf from Photon the following error is returned:
This then blocks being able to install any packages.
What you expected to happen:
tdnf
should successfully refresh its metadata and allow installing packages.How to reproduce it (as minimally and precisely as possible):
Inside the container
Output:
(Taken from kubernetes-sigs/image-builder#1280 (comment))
Anything else we need to know?:
The problem is due to
tdnf
not setting theUser-Agent
header and can be reproduced with Curl using the following:Related:
Environment:
cat /etc/os-release
): Photonuname -a
):The text was updated successfully, but these errors were encountered: