mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #393] [MERGED] allow ureq to use native certificate store #432
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#432
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/393
Author: @eladyn
Created: 3/9/2023
Status: ✅ Merged
Merged: 3/10/2023
Merged by: @ramsayleung
Base:
master← Head:ureq_native_certs📝 Commits (3)
8f4e694add ureq-rustls-tls-native-certs feature788a654document new feature flag277ba46update changelog📊 Changes
4 files changed (+4 additions, -0 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
Cargo.toml(+1 -0)📝
rspotify-http/Cargo.toml(+1 -0)📝
src/lib.rs(+1 -0)📄 Description
Description
This introduces a passthrough of the
native-certsfeature flag ofureq, which allows the http client to load the OS certificate store.Motivation and Context
Currently,
rspotifyalways uses thewebpki-rootscertificates, when used withureq, which makes it impossible to use e.g. self-signed certificates.Type of change
Please delete options that are not relevant.
How has this been tested?
I ran the non-modifying tests with a proxy sniffing the HTTPS traffic, which failed with
ureq-rustls-tlsand passed withureq-rustls-tls-native-certs(since I added the used cert to the OS store).Is this change properly documented?
I added the feature flag to one place in the documentation. Are there ones that I missed?
Additional notes
In theory, there's also a
native-tlsfeature flag forureq, but that requires creating anative-tls::TlsConnector. This can fail, which I don't know how to handle within theDefaultimplementation, so I didn't do that for now. If you've got ideas how this could be done, I'll happily implement that.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
marketfield to some APIs #452