From 3d911a8bebe02c584bad73de2a2e55b99f2ec830 Mon Sep 17 00:00:00 2001 From: "Kai A. Hiller" Date: Wed, 20 Aug 2025 18:04:39 +0200 Subject: [PATCH] Remove kid from test config and config generation --- crates/config/src/sections/secrets.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/config/src/sections/secrets.rs b/crates/config/src/sections/secrets.rs index 6df4e63a2..57f4facf5 100644 --- a/crates/config/src/sections/secrets.rs +++ b/crates/config/src/sections/secrets.rs @@ -339,7 +339,7 @@ impl SecretsConfig { .await .context("could not join blocking task")?; let rsa_key = KeyConfig { - kid: Some(Alphanumeric.sample_string(&mut rng, 10)), + kid: None, password: None, key: Key::Value(rsa_key.to_pem(pem_rfc7468::LineEnding::LF)?.to_string()), }; @@ -355,7 +355,7 @@ impl SecretsConfig { .await .context("could not join blocking task")?; let ec_p256_key = KeyConfig { - kid: Some(Alphanumeric.sample_string(&mut rng, 10)), + kid: None, password: None, key: Key::Value(ec_p256_key.to_pem(pem_rfc7468::LineEnding::LF)?.to_string()), }; @@ -371,7 +371,7 @@ impl SecretsConfig { .await .context("could not join blocking task")?; let ec_p384_key = KeyConfig { - kid: Some(Alphanumeric.sample_string(&mut rng, 10)), + kid: None, password: None, key: Key::Value(ec_p384_key.to_pem(pem_rfc7468::LineEnding::LF)?.to_string()), }; @@ -387,7 +387,7 @@ impl SecretsConfig { .await .context("could not join blocking task")?; let ec_k256_key = KeyConfig { - kid: Some(Alphanumeric.sample_string(&mut rng, 10)), + kid: None, password: None, key: Key::Value(ec_k256_key.to_pem(pem_rfc7468::LineEnding::LF)?.to_string()), }; @@ -400,7 +400,7 @@ impl SecretsConfig { pub(crate) fn test() -> Self { let rsa_key = KeyConfig { - kid: Some("abcdef".to_owned()), + kid: None, password: None, key: Key::Value( indoc::indoc! {r" @@ -419,7 +419,7 @@ impl SecretsConfig { ), }; let ecdsa_key = KeyConfig { - kid: Some("ghijkl".to_owned()), + kid: None, password: None, key: Key::Value( indoc::indoc! {r"