Skip to content

Commit 9619def

Browse files
committed
fix(libnmxm): stop deriving Debug for endpoint types
Remove `Debug` derives from `Endpoint`, `NmxmApiClient`, and `NmxmApi` to avoid accidentally logging credentials contained in endpoint data. Also bump `libredfish` from `v0.43.7` to `v0.43.8` Signed-off-by: Dmitry Porokh <dporokh@nvidia.com>
1 parent 5048e53 commit 9619def

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ authors = ["NVIDIA Carbide Engineering <carbide-dev@exchange.nvidia.com>"]
2626

2727
[workspace.dependencies]
2828
clap = { version = "4", features = ["derive", "env"] }
29-
libredfish = { git = "https://github.com/NVIDIA/libredfish.git", tag = "v0.43.7" }
29+
libredfish = { git = "https://github.com/NVIDIA/libredfish.git", tag = "v0.43.8" }
3030
librms = { git = "https://github.com/NVIDIA/nv-rms-client.git", tag = "v0.0.5" }
3131
ansi-to-html = "0.2.2"
3232

crates/libnmxm/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub enum NmxmApiError {
8787
InvalidArguments,
8888
}
8989

90-
#[derive(Debug, Clone, PartialEq, Eq)]
90+
#[derive(Clone, PartialEq, Eq)] // WARN: Do not derive Debug: Endpoint may contain credentials and must not be logged accidentally.
9191
pub struct Endpoint {
9292
pub host: String,
9393
pub username: Option<String>,
@@ -147,7 +147,7 @@ impl NmxmClientPool {
147147
}
148148
}
149149

150-
#[derive(Debug, Clone)]
150+
#[derive(Clone)]
151151
pub struct NmxmApiClient {
152152
endpoint: Endpoint,
153153
client: HttpClient,

crates/libnmxm/src/nmxm_api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ macro_rules! async_operation {
6565
}};
6666
}
6767

68-
#[derive(Clone, Debug)]
68+
#[derive(Clone)]
6969
pub struct NmxmApi {
7070
pub client: NmxmApiClient,
7171
}

0 commit comments

Comments
 (0)