Title: Support custom `rustls` providers by joshuamegnauth54 · Pull Request #7657 · RustPython/RustPython · GitHub
Open Graph Title: Support custom `rustls` providers by joshuamegnauth54 · Pull Request #7657 · RustPython/RustPython
X Title: Support custom `rustls` providers by joshuamegnauth54 · Pull Request #7657 · RustPython/RustPython
Description: rustls's architecture is very clean and trait-driven. There are many providers for rustls including the built-in aws-lc-rs and ring as well as backends for boringssl, graviola, openssl, mbedtls, etc. The new feature, ssl-rustls-no-provider, enables custom rustls providers. By default, aws-lc-rs is enabled which matches the old behavior and keeps backward compatibility. I wrote a new type that abstracts what we need from crypto providers. CryptoExt encapsulates the ticketer as well as cipher suites and KX groups. I wrote fallbacks to help select a reasonable default if a provider is missing features (they all seem to support the same things though). I also wrote an example to show how to actually use custom providers. Closes: #7059 aws-lc-rs is still the default, so this patch should be transparent to all users. I tested with: cargo build target/debug/rustpython Lib/test/test_ssl.py And: (todo, test with example!) Summary by CodeRabbit New Features Pluggable SSL/TLS crypto providers so users can choose custom cryptographic backends. New feature option to run Rustls without a bundled provider. Added an example showing how to select and run with different TLS providers. Chores Updated feature defaults to favor the aws-lc-backed Rustls option. Adjusted build/test workflows and feature wiring to support the new provider options.
Open Graph Description: rustls's architecture is very clean and trait-driven. There are many providers for rustls including the built-in aws-lc-rs and ring as well as backends for boringssl, graviola, openssl, mbedtls...
X Description: rustls's architecture is very clean and trait-driven. There are many providers for rustls including the built-in aws-lc-rs and ring as well as backends for boringssl, graviola, openssl, mbe...
Opengraph URL: https://github.com/RustPython/RustPython/pull/7657
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2e683fff-1285-0d8e-39d5-26c45b9a88db |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 952C:3E383E:406107:540A53:6A5FF1A7 |
| html-safe-nonce | 72160785f050c5e2356c7a54df5574ea929805d778a6358f48b1bfd48a4af260 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTJDOjNFMzgzRTo0MDYxMDc6NTQwQTUzOjZBNUZGMUE3IiwidmlzaXRvcl9pZCI6IjE2Mjk5MTEzMDU3NDU4NTQ4ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 04c419fb0ba63ea72fba8d2bbf45db0e35c151a0bc294d3b14cd4551e7da9975 |
| hovercard-subject-tag | pull_request:3570312706 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/7657/files |
| twitter:image | https://avatars.githubusercontent.com/u/48846352?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/48846352?s=400&v=4 |
| og:image:alt | rustls's architecture is very clean and trait-driven. There are many providers for rustls including the built-in aws-lc-rs and ring as well as backends for boringssl, graviola, openssl, mbedtls... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | ec26f1a08b78b3d576999ee8b45a2abc017c95dbee903a8019940cd2e9bf7b3d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0a29f0b91ade2368fc0b74327c0f64ec1f98f5ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width