-
Notifications
You must be signed in to change notification settings - Fork 107
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(deps): Replace openssl with rustls in tests and experimental features #7047
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #7047 +/- ##
=======================================
Coverage 77.43% 77.44%
=======================================
Files 310 310
Lines 41694 41694
=======================================
+ Hits 32287 32289 +2
+ Misses 9407 9405 -2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think I'm following up why we would require a new feature name (default-docker) shouldn't default sentry have the same behavior? It might be confusing as why Docker needs a "special" flag.
At the moment we're repeating the So if we change our set of default features in released binaries, we'll need to remember to update all those locations. But we'll probably forget one! Would it be clearer if I renamed it to something like:
We should be using the same features for all our released binaries. Even if we're only releasing Docker binaries at the moment. |
Understood! I think both of this options should be good:
I'd vote for the former: |
Done, and merge conflicts resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Motivation
OpenSSL continues to have memory safety vulnerabilities:
GHSA-xcf7-rvmh-g6q4
zebrad
isn't impacted by this one in production, because openssl is only a dependency of our tests and experimental features. But it could accidentally become a production dependency when we stabilise features or add new dependencies.Reference
GitHub Actions ternary expressions:
https://docs.github.com/en/actions/learn-github-actions/expressions#example
Complex Code or Requirements
--all-features
activates the openssl dependency, because it's an optional dependency of some of Zebra's dependencies. So I changed the CI check to ignore banned crates for--all-features
. (And ignore missing dependencies for default features.)Solution
openssl
as a Zebra dependencyRelated fixes:
default-release-binaries
feature tozebrad
and use it in Docker files and production/prod test workflowsdefault-release-binaries
Review
This is a low priority security fix.
Reviewer Checklist
Follow Up Work
It would be good to automate keeping the duplicate dependency exception list up to date.