From 00699d86a2119f4bd919e24d84312d3c93f4a4c8 Mon Sep 17 00:00:00 2001 From: Vlad Lazar Date: Thu, 24 Jul 2025 13:31:07 +0100 Subject: [PATCH] fixup: bring back the SK peer jwt token --- control_plane/src/safekeeper.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/control_plane/src/safekeeper.rs b/control_plane/src/safekeeper.rs index c375fa8277..93b551711e 100644 --- a/control_plane/src/safekeeper.rs +++ b/control_plane/src/safekeeper.rs @@ -210,6 +210,15 @@ impl SafekeeperNode { "--http-auth-public-key-path".to_owned(), key_path_string.clone(), ]); + + let token_path = self.datadir_path().join("peer_jwt_token"); + let token_path_str = token_path + .to_str() + .with_context(|| { + format!("Token path {token_path:?} cannot be represented as a unicode string") + })? + .to_owned(); + args.extend(["--auth-token-path".to_owned(), token_path_str]); } if let Some(https_port) = self.conf.https_port {