Skip to content

Conversation

@gilbsgilbs
Copy link
Contributor

@gilbsgilbs gilbsgilbs commented Nov 21, 2025

When downloading files, src.fedoraproject.org now requires the Accept header to be present. If the header is missing, it returns an HTML page instead of the requested file, causing a checksum mismatch.

This change adds the Accept: */* and User-Agent: BLDR/<version> headers to all HTTP downloads to prevent this issue.

This was discovered when glibc and libtirpc packages started to fail recently in the extensions repository[1].

[1] https://github.com/siderolabs/extensions/

@talos-bot talos-bot moved this to In Review in Planning Nov 21, 2025
@gilbsgilbs gilbsgilbs changed the title fix(download): always send User-Agent and Accept headers fix(download): always send User-Agent and Accept headers (fix glibc and libtirpc build) Nov 21, 2025
@frezbo
Copy link
Member

frezbo commented Nov 22, 2025

Thanks for the fix. Extensions now use ubuntu mirrors since fedora project uses shasums in url which makes it not at all possible to update via automation

@gilbsgilbs
Copy link
Contributor Author

I needed to build glibc for v1.11 which still use fedora mirrors, unfortunately. I guess sending UA and Accept header is good practice regardless?

@frezbo
Copy link
Member

frezbo commented Nov 22, 2025

I needed to build glibc for v1.11 which still use fedora mirrors, unfortunately. I guess sending UA and Accept header is good practice regardless?

Yes, I was just pointing out the change we made

@smira smira force-pushed the http-send-headers branch from bde0fae to 5d6ff9a Compare November 26, 2025 13:19
When downloading files, src.fedoraproject.org now requires the Accept
header to be present. If the header is missing, it returns an HTML page
instead of the requested file, causing a checksum mismatch.

This change adds the "Accept: */*" and "User-Agent: BLDR/<version>"
headers to all HTTP downloads to prevent this issue.

This was discovered when glibc and libtirpc packages started to fail
recently in the extensions repository[1].

[1] https://github.com/siderolabs/extensions/

Signed-off-by: Gilbert Gilb's <[email protected]>
Signed-off-by: Andrey Smirnov <[email protected]>
@smira smira force-pushed the http-send-headers branch from 5d6ff9a to 33e25e2 Compare November 26, 2025 13:29
Copy link
Member

@smira smira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@github-project-automation github-project-automation bot moved this from In Review to Approved in Planning Nov 26, 2025
@smira
Copy link
Member

smira commented Nov 26, 2025

/m

@talos-bot talos-bot merged commit 33e25e2 into siderolabs:main Nov 26, 2025
17 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in Planning Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants