Skip to content

Web assets should default to using the OS's TLS certificates #20803

Description

@jf908

ureq uses webpki-roots as the default list of trusted https certificates to reduce the number of dependencies that ureq relies on by default.

The rustls discord suggested that bevy instead makes use of rustls-platform-verifier which uses the OS's list of trusted TLS certificated. This is the default behaviour of most applications because relying on a static list of root certificates puts the onus on the application developer to regularly keep the certificates up to date otherwise the app can become insecure and incompatible with the internet. See here for more info on rustls-platform-verifier vs webpki-roots.

Implementing this would be very straightforward but making it customisable would require more design (if its enabled by default then how would someone exclude rustls-platform-verifier as a feature and how would this fit in with exposing more of ureq's options in a cross-platform compatible way).

Additional context

This only applies to ureq so this issue doesn't affect wasm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-FeatureA new feature, making something new possibleS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions