Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jetsocat): preemptively install crypto provider on start #1105

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

CBenoit
Copy link
Member

@CBenoit CBenoit commented Nov 12, 2024

This is typically not required because we only enable the ring backend, which is then automatically installed by rustls when ClientConfig::builder is called later down the road. However, it may be the case that during development the aws-lc-rs feature of rustls is enabled (especially when building the whole workspace at once), causing rustls to crash the process requesting to install a default crypto provider.
To smoothen the developer experience, we attempt to install the ring crypto provider just before executing the command action. Our CI is already ensuring that we are not shipping both crypto backends by mistake.

Changelog: ignore

@CBenoit CBenoit enabled auto-merge (squash) November 12, 2024 09:05
@CBenoit CBenoit enabled auto-merge (squash) November 12, 2024 09:06
This is typically not required because we only enable the ring
backend, which is then automatically installed by rustls when
`ClientConfig::builder` is called later down the road. However, it may
be the case that during development the aws-lc-rs feature of rustls is
enabled (especially when building the whole workspace at once), causing
rustls to crash the process requesting to install a default crypto
provider. To smoothen the developer experience, we attempt to install
the ring crypto provider just before executing the command action. Our
CI is already ensuring that we are not shipping both crypto backends
by mistake.

Changelog: ignore
@CBenoit CBenoit force-pushed the fix/jetsocat-install-crypto-provider branch from da68b6f to 205e672 Compare November 12, 2024 09:07
@CBenoit CBenoit enabled auto-merge (squash) November 12, 2024 09:08
@CBenoit CBenoit merged commit 63b2ddd into master Nov 12, 2024
30 checks passed
@CBenoit CBenoit deleted the fix/jetsocat-install-crypto-provider branch November 12, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants