diff --git a/attestation-agent/lib/src/token.rs b/attestation-agent/lib/src/token.rs index 85ab06a06..0001c57ea 100644 --- a/attestation-agent/lib/src/token.rs +++ b/attestation-agent/lib/src/token.rs @@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize}; use std::path::Path; use tokio::fs; -const PEER_POD_CONFIG_PATH: &str = "/peerpod/daemon.json"; +const PEER_POD_CONFIG_PATH: &str = "/run/peerpod/daemon.json"; #[derive(Serialize)] struct Message { @@ -20,7 +20,7 @@ struct Message { pub(crate) async fn get_kbs_token() -> Result> { let evidence_provider = Box::new(NativeEvidenceProvider::new()?); - // Check for /peerpod/daemon.json to see if we are in a peer pod + // Check for /run/peerpod/daemon.json to see if we are in a peer pod // If so we need to read from the agent-config file, not /proc/cmdline let kbc_params = match Path::new(PEER_POD_CONFIG_PATH).exists() { true => get_kbc_params_from_config_file().await?, diff --git a/confidential-data-hub/kms/src/plugins/kbs/mod.rs b/confidential-data-hub/kms/src/plugins/kbs/mod.rs index 3d20c3c9b..3c7c5e9ec 100644 --- a/confidential-data-hub/kms/src/plugins/kbs/mod.rs +++ b/confidential-data-hub/kms/src/plugins/kbs/mod.rs @@ -25,7 +25,7 @@ use tokio::sync::Mutex; use crate::{Annotations, Error, Getter, Result}; -const PEER_POD_CONFIG_PATH: &str = "/peerpod/daemon.json"; +const PEER_POD_CONFIG_PATH: &str = "/run/peerpod/daemon.json"; enum RealClient { #[cfg(feature = "kbs")] @@ -37,7 +37,7 @@ enum RealClient { impl RealClient { async fn new() -> Result { - // Check for /peerpod/daemon.json to see if we are in a peer pod + // Check for /run/peerpod/daemon.json to see if we are in a peer pod // If so we need to read from the agent-config file, not /proc/cmdline let (kbc, _kbs_host) = match Path::new(PEER_POD_CONFIG_PATH).exists() { true => get_aa_params_from_config_file().await?,