Skip to content

Commit 3d911a8

Browse files
committed
Remove kid from test config and config generation
1 parent dc4854f commit 3d911a8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/config/src/sections/secrets.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ impl SecretsConfig {
339339
.await
340340
.context("could not join blocking task")?;
341341
let rsa_key = KeyConfig {
342-
kid: Some(Alphanumeric.sample_string(&mut rng, 10)),
342+
kid: None,
343343
password: None,
344344
key: Key::Value(rsa_key.to_pem(pem_rfc7468::LineEnding::LF)?.to_string()),
345345
};
@@ -355,7 +355,7 @@ impl SecretsConfig {
355355
.await
356356
.context("could not join blocking task")?;
357357
let ec_p256_key = KeyConfig {
358-
kid: Some(Alphanumeric.sample_string(&mut rng, 10)),
358+
kid: None,
359359
password: None,
360360
key: Key::Value(ec_p256_key.to_pem(pem_rfc7468::LineEnding::LF)?.to_string()),
361361
};
@@ -371,7 +371,7 @@ impl SecretsConfig {
371371
.await
372372
.context("could not join blocking task")?;
373373
let ec_p384_key = KeyConfig {
374-
kid: Some(Alphanumeric.sample_string(&mut rng, 10)),
374+
kid: None,
375375
password: None,
376376
key: Key::Value(ec_p384_key.to_pem(pem_rfc7468::LineEnding::LF)?.to_string()),
377377
};
@@ -387,7 +387,7 @@ impl SecretsConfig {
387387
.await
388388
.context("could not join blocking task")?;
389389
let ec_k256_key = KeyConfig {
390-
kid: Some(Alphanumeric.sample_string(&mut rng, 10)),
390+
kid: None,
391391
password: None,
392392
key: Key::Value(ec_k256_key.to_pem(pem_rfc7468::LineEnding::LF)?.to_string()),
393393
};
@@ -400,7 +400,7 @@ impl SecretsConfig {
400400

401401
pub(crate) fn test() -> Self {
402402
let rsa_key = KeyConfig {
403-
kid: Some("abcdef".to_owned()),
403+
kid: None,
404404
password: None,
405405
key: Key::Value(
406406
indoc::indoc! {r"
@@ -419,7 +419,7 @@ impl SecretsConfig {
419419
),
420420
};
421421
let ecdsa_key = KeyConfig {
422-
kid: Some("ghijkl".to_owned()),
422+
kid: None,
423423
password: None,
424424
key: Key::Value(
425425
indoc::indoc! {r"

0 commit comments

Comments
 (0)