Skip to content

Commit 5baa3ce

Browse files
authored
Merge pull request #34 from openSVM/copilot/fix-c14937b0-5157-4e32-844b-30e9e4603a63
Fix webpki security vulnerability RUSTSEC-2021-0145 by removing unused dependency
2 parents eea704b + 05adee0 commit 5baa3ce

File tree

14 files changed

+394
-73
lines changed

14 files changed

+394
-73
lines changed

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Install Rust
20-
uses: actions-rs/toolchain@v1
20+
uses: dtolnay/rust-toolchain@stable
2121
with:
2222
toolchain: stable
2323
override: true
2424

2525
- name: Install dependencies
26-
run: sudo apt-get update && sudo apt-get install -y libudev-dev
26+
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config libssl-dev
2727

2828
- name: Set environment variables
2929
run: |

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Install dependencies
20-
run: sudo apt-get update && sudo apt-get install -y libudev-dev
20+
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config libssl-dev
2121

2222
- name: Install Rust
2323
uses: dtolnay/rust-toolchain@stable
@@ -56,13 +56,14 @@ jobs:
5656
- uses: actions/checkout@v4
5757

5858
- name: Install dependencies
59-
run: sudo apt-get update && sudo apt-get install -y libudev-dev
59+
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config libssl-dev
6060

6161
- name: Install Rust
6262
uses: dtolnay/rust-toolchain@stable
6363
with:
6464
profile: minimal
6565
toolchain: stable
66+
6667
- name: Cache dependencies
6768
uses: actions/cache@v4
6869
with:
@@ -97,7 +98,7 @@ jobs:
9798
- uses: actions/checkout@v4
9899

99100
- name: Install dependencies
100-
run: sudo apt-get update && sudo apt-get install -y libudev-dev
101+
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config libssl-dev
101102

102103
- name: Install Rust
103104
uses: dtolnay/rust-toolchain@stable
@@ -143,7 +144,7 @@ jobs:
143144
- uses: actions/checkout@v4
144145

145146
- name: Install dependencies
146-
run: sudo apt-get update && sudo apt-get install -y libudev-dev
147+
run: sudo apt-get update && sudo apt-get install -y libudev-dev pkg-config libssl-dev
147148

148149
- name: Install Rust
149150
uses: dtolnay/rust-toolchain@stable

.github/workflows/cross-platform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
if: runner.os == 'linux'
2525
run: |
2626
sudo apt-get update
27-
sudo apt-get install -y libudev-dev
27+
sudo apt-get install -y libudev-dev pkg-config libssl-dev
2828
2929
- name: Install Rust
3030
uses: dtolnay/rust-toolchain@stable

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818

1919
- name: Install dependencies
20-
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config
20+
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config libssl-dev
2121

2222
- name: Install Rust
2323
uses: dtolnay/rust-toolchain@stable
@@ -163,7 +163,7 @@ jobs:
163163
- uses: actions/checkout@v4
164164

165165
- name: Install dependencies
166-
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config
166+
run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev pkg-config libssl-dev
167167

168168
- name: Install Rust
169169
uses: dtolnay/rust-toolchain@stable

Cargo.toml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,47 +6,48 @@ license = "WTFPL"
66
publish = false
77

88
[dependencies]
9-
bincode = "1.3.3"
10-
borsh = "1.5.6"
11-
clap = { version = "4.5.32", features = ["derive", "cargo"] }
9+
bincode = "2.0.1"
10+
borsh = "1.5.7"
11+
clap = { version = "4.5.40", features = ["derive", "cargo"] }
1212
lazy_static = "1.5.0"
1313
serde = { version = "1.0.219", features = ["derive"] }
1414
serde_yaml = "0.9.34"
15-
solana-clap-utils = "2.2.3"
16-
solana-cli-config = "2.2.3"
17-
solana-client = "2.2.3"
15+
solana-clap-utils = "2.2.7"
16+
solana-cli-config = "2.2.7"
17+
solana-client = "2.2.7"
1818
solana-logger = "2.3.1"
19-
solana-remote-wallet = { version = "2.2.3", optional = true }
20-
solana-sdk = "2.2.1"
21-
tokio = { version = "1.44.1", features = ["full"] }
19+
solana-remote-wallet = { version = "2.2.7", optional = true }
20+
solana-sdk = "2.2.2"
21+
tokio = { version = "1.45.1", features = ["full"] }
2222
thiserror = "2.0.12"
23-
ssh2 = "0.9.5"
23+
ssh2 = { version = "0.9.5", features = ["vendored-openssl"] }
2424
tabular = "0.2.0"
2525
prettytable-rs = "0.10.0"
26-
ratatui = "0.30.0-alpha.2"
27-
crossterm = "0.28.1"
28-
chrono = "0.4.40"
29-
tui-logger = "0.17.0"
30-
anyhow = "1.0.97"
26+
ratatui = "0.29.0"
27+
crossterm = "0.29.0"
28+
chrono = "0.4.41"
29+
tui-logger = "0.17.3"
30+
anyhow = "1.0.98"
3131
futures = "0.3.31"
32-
rand = "0.9.0"
32+
rand = "0.9.1"
3333
colored = "3.0.0"
3434
url = "2.5.4"
3535
serde_json = "1.0.140"
3636
dirs = "6.0.0"
37-
webpki = "0.22.4"
37+
3838

3939
[dev-dependencies]
40-
assert_cmd = "2.0.16"
40+
assert_cmd = "2.0.17"
4141
predicates = "3.1.3"
42-
tempfile = "3.19.1"
42+
tempfile = "3.20.0"
4343
serial_test = "3.2.0"
4444
mockito = "1.7.0"
45-
criterion = "0.5.1"
45+
criterion = "0.6.0"
4646

4747
[features]
4848
default = []
4949
remote-wallet = ["solana-remote-wallet"]
5050

5151
[patch.crates-io]
5252
curve25519-dalek = { git = "https://github.com/dalek-cryptography/curve25519-dalek", tag = "3.2.0" }
53+
crunchy = { path = "vendor/crunchy" }

rust-toolchain.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[toolchain]
2+
channel = "stable"
3+
components = ["rustfmt", "clippy"]
4+
targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-gnu"]

src/main.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,6 @@ struct Config {
3030
no_color: bool,
3131
}
3232

33-
// Wrapper type for webpki::Error to implement traits
34-
#[derive(Debug)]
35-
struct WebPkiError(webpki::Error);
36-
37-
impl std::fmt::Display for WebPkiError {
38-
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39-
write!(f, "WebPkiError: {:?}", self.0)
40-
}
41-
}
42-
43-
impl std::error::Error for WebPkiError {}
44-
45-
// Convert from webpki::Error to WebPkiError
46-
impl From<webpki::Error> for WebPkiError {
47-
fn from(error: webpki::Error) -> Self {
48-
WebPkiError(error)
49-
}
50-
}
51-
5233
#[tokio::main]
5334
async fn main() -> Result<(), Box<dyn std::error::Error>> {
5435
let app_matches = parse_command_line();

src/prelude.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ pub use crate::utils::dashboard;
1515
pub use crate::utils::examples;
1616
// Color formatting utilities
1717
pub use crate::utils::color;
18-
// WebPKI error wrapper
19-
pub use crate::utils::webpki_error;
2018

2119
/// Type alias for progress callback functions
2220
///

src/utils/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ pub mod ssh_deploy;
2828
pub mod svm_info;
2929

3030
// External dependency wrappers
31-
/// Wrapper for webpki::Error to implement std::error::Error trait
32-
pub mod webpki_error;
3331

3432
/// Loads a YAML configuration file and deserializes it into the specified type
3533
///

src/utils/webpki_error.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)