Skip to content

kit: Switch reqwest from rustls to native-tls - #322

Merged
gursewak1997 merged 2 commits into
mainfrom
fix-aws-lc-build-failure
Aug 18, 2026
Merged

kit: Switch reqwest from rustls to native-tls#322
gursewak1997 merged 2 commits into
mainfrom
fix-aws-lc-build-failure

Conversation

@gursewak1997

Copy link
Copy Markdown
Collaborator

reqwest 0.13 changed its default TLS backend from native-tls (OpenSSL) to rustls backed by aws-lc-rs. The aws-lc-sys build system does not pass -fPIE when compiling its test binaries, which is incompatible with Fedora/CentOS hardened RPM linker specs that require PIE — breaking all packit builds.

Switch to native-tls explicitly. The RPM spec already requires openssl-devel, so no new build dependencies are needed.

Closes: #321

reqwest 0.13 changed its default TLS backend from native-tls (OpenSSL)
to rustls backed by aws-lc-rs. The aws-lc-sys build system does not
pass -fPIE when compiling its test binaries, which is incompatible with
Fedora/CentOS hardened RPM linker specs that require PIE — breaking all
packit builds.

Switch to native-tls explicitly. The RPM spec already requires
openssl-devel, so no new build dependencies are needed.

Closes: #321

Assisted-by: AI
Signed-off-by: gursewak1997 <gursmangat@gmail.com>
cgwalters
cgwalters previously approved these changes Aug 17, 2026

@cgwalters cgwalters left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The aws-lc-sys build system does not pass -fPIE when compiling its test binaries

How does this relate to "test binaries"? Hmm, like something being built from build.rs?

reqwest 0.13 changed its default TLS backend from native-tls (OpenSSL) to rustls backed by aws-lc-rs.

Ah. That's a big change. Right now we need openssl for FIPS, which is its own side thread. In theory...perhaps we need to make this configurable too via a feature flag on our side, but for now this looks right.

@gursewak1997

Copy link
Copy Markdown
Collaborator Author

Yeah, aws-lc-sys's build.rs compiles small C probe programs via cc to test compiler features; those get linked without -fPIE, which the Fedora hardened linker specs require.
Agreed on making the TLS backend configurable as a follow-up.

The kernel detection rewrite (ac5d74a) changed the error from
"Failed to read kernel modules directory" to "No kernel found",
but the broken image cleanup test was not updated. Depending on
timing, the test can hit this path and fail the assertion.

Assisted-by: AI
Signed-off-by: gursewak1997 <gursmangat@gmail.com>
@gursewak1997
gursewak1997 force-pushed the fix-aws-lc-build-failure branch from 1b4a634 to 4550cf1 Compare August 18, 2026 01:25
@gursewak1997
gursewak1997 merged commit d406568 into main Aug 18, 2026
26 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

all packit builds are failing

2 participants