From 5d36385eb9a1b931c6b2a992bd28b9d417140301 Mon Sep 17 00:00:00 2001 From: Jack Leightcap Date: Mon, 13 Nov 2023 12:34:29 -0500 Subject: [PATCH] cosign/tuf: PR feedback Signed-off-by: Jack Leightcap --- Cargo.toml | 2 +- src/cosign/client_builder.rs | 1 - src/tuf/mod.rs | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b91f598203..704975e0b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -118,7 +118,7 @@ tokio = { version = "1.17.0", features = ["rt"] } tough = { version = "0.14", features = ["http"], optional = true } tracing = "0.1.31" url = "2.2.2" -x509-cert = { version = "0.2.2", features = ["builder", "pem", "std"] } +x509-cert = { version = "0.2.2", features = ["pem", "std"] } crypto_secretbox = "0.1.1" zeroize = "1.5.7" rustls-webpki = { version = "0.102.0-alpha.4", features = ["alloc"] } diff --git a/src/cosign/client_builder.rs b/src/cosign/client_builder.rs index 4bfae89e2d..91f0f5d622 100644 --- a/src/cosign/client_builder.rs +++ b/src/cosign/client_builder.rs @@ -56,7 +56,6 @@ pub struct ClientBuilder<'a> { oci_client_config: ClientConfig, rekor_pub_key: Option<&'a [u8]>, fulcio_certs: Vec>, - // repo: Repository #[cfg(feature = "cached-client")] enable_registry_caching: bool, } diff --git a/src/tuf/mod.rs b/src/tuf/mod.rs index a0f7a84c80..9402071313 100644 --- a/src/tuf/mod.rs +++ b/src/tuf/mod.rs @@ -43,6 +43,7 @@ mod trustroot; use rustls_pki_types::CertificateDer; use sha2::{Digest, Sha256}; use tough::TargetName; +use tracing::debug; use self::trustroot::{CertificateAuthority, TimeRange, TransparencyLogInstance, TrustedRoot}; @@ -120,7 +121,7 @@ impl SigstoreRepository { local_path.as_ref(), )?; - println!("data:\n{}", String::from_utf8_lossy(&data)); + debug!("data:\n{}", String::from_utf8_lossy(&data)); Ok(serde_json::from_slice(&data[..])?) }