From 031aaa065bf001099deea946a3ff6bb87766fb7a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 20 Oct 2024 01:57:07 +0200 Subject: [PATCH] queue-runner: don't decode base64 hostkey in hydra Nix expects a base64 encoded hostkey in SSHMaster, so make sure we don't decode this prematurely in hydra. Reported-By: Puck Meerburg --- src/hydra-queue-runner/hydra-queue-runner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/hydra-queue-runner.cc b/src/hydra-queue-runner/hydra-queue-runner.cc index 3b2694d1a..9ad3bc292 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -193,7 +193,7 @@ void State::parseMachines(const std::string & contents) std::move(mandatoryFeatures), // `sshPublicHostKey` tokens[7] != "" && tokens[7] != "-" - ? base64Decode(tokens[7]) + ? tokens[7] : "", });