From 4e2c06ec2c74e0387825e8025ee8eb2121b8433b 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 5ffa7fe62..bc2974b28 100644 --- a/src/hydra-queue-runner/hydra-queue-runner.cc +++ b/src/hydra-queue-runner/hydra-queue-runner.cc @@ -171,7 +171,7 @@ void State::parseMachines(const std::string & contents) std::move(mandatoryFeatures), // `sshPublicHostKey` tokens[7] != "" && tokens[7] != "-" - ? base64Decode(tokens[7]) + ? tokens[7] : "", });