From 408d76f8419fd9eb231ca7e52c5bf55b2f0c6825 Mon Sep 17 00:00:00 2001 From: core Date: Sat, 24 Jun 2023 12:04:20 -0400 Subject: [PATCH] static api signing keys per-host because dealing with them is turning out to be an absolute nightmare --- Cargo.lock | 2 +- trifid-api/Cargo.toml | 2 +- trifid-api/src/routes/v1/dnclient.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7013956..aba578a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3633,7 +3633,7 @@ dependencies = [ [[package]] name = "trifid-api" -version = "0.1.2" +version = "0.1.3" dependencies = [ "actix-cors", "actix-request-identifier", diff --git a/trifid-api/Cargo.toml b/trifid-api/Cargo.toml index 60e8d89..48723ea 100644 --- a/trifid-api/Cargo.toml +++ b/trifid-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "trifid-api" -version = "0.1.3" +version = "0.1.4" edition = "2021" description = "Pure-rust Defined Networking compatible management server" license = "GPL-3.0-or-later" diff --git a/trifid-api/src/routes/v1/dnclient.rs b/trifid-api/src/routes/v1/dnclient.rs index 1af1773..87cea0b 100644 --- a/trifid-api/src/routes/v1/dnclient.rs +++ b/trifid-api/src/routes/v1/dnclient.rs @@ -266,7 +266,7 @@ pub async fn dnclient( ks.signing_keys.push(KSSigningKey { id: ks.current_signing_key + 1, - key: SigningKey::generate(&mut OsRng), + key: ks.signing_keys[0].key.clone(), }); ks.current_signing_key += 1;