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: cargo audit failures #1475

Merged
merged 2 commits into from
Dec 8, 2023
Merged

fix: cargo audit failures #1475

merged 2 commits into from
Dec 8, 2023

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Dec 7, 2023

Description of change

This PR removes updates our dependencies using cargo update, this resolves one of the cargo warnings, with pertains to the yanked wasm-bindegen version 0.2.88.

The other warning is for https://rustsec.org/advisories/RUSTSEC-2023-0071.html, which is pulled in by sqlx/mysql, which we don't use, but it is pulled in due to a bug in cargo, see launchbadge/sqlx#2911 and rust-lang/cargo#10801. We should be safe to ignore the warning for rsa. A fix for the vulnerability is also underway, but we'd need to wait for it to be finished and pulled into sqlx. I am following the rsa PR, so I will be notified when it is merged, we can then remove this ignore (when sqlx updates their rsa dependency).

How has this been tested? (if applicable)

CI.

@iulianbarbu
Copy link
Contributor

One quick question before approving: will the fix here RustCrypto/RSA#394 need to be followed by PR(s) in cargo, and a PR on our side, where we upgrade the rust version (including cargo), used to build the Shuttle crates that depend on sqlx? Just trying to understand the dependencies we'll need to get sorted out before removing the whitelisting of the advisory.

@oddgrd
Copy link
Contributor Author

oddgrd commented Dec 7, 2023

One quick question before approving: will the fix here RustCrypto/RSA#394 need to be followed by PR(s) in cargo, and a PR on our side, where we upgrade the rust version (including cargo), used to build the Shuttle crates that depend on sqlx? Just trying to understand the dependencies we'll need to get sorted out before removing the whitelisting of the advisory.

If a fix was released for cargo we would not rely on the rsa fix, since we would no longer depend on it via sqlx/mysql. But, I don't expect the cargo fix any time soon. The first fix we are likely to get is sqlx updating to a fixed version of rsa.

Copy link
Member

@jonaro00 jonaro00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding the bug.

@oddgrd oddgrd merged commit f558b40 into main Dec 8, 2023
35 checks passed
@oddgrd oddgrd deleted the fix/cargo-audit-failures branch December 8, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants