Skip to content

Commit

Permalink
queue-runner: don't decode base64 hostkey in hydra
Browse files Browse the repository at this point in the history
Nix expects a base64 encoded hostkey in SSHMaster, so make sure we don't
decode this prematurely in hydra.

Reported-By: Puck Meerburg <[email protected]>
  • Loading branch information
mweinelt authored and Ericson2314 committed Oct 21, 2024
1 parent 21044bc commit 4e2c06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hydra-queue-runner/hydra-queue-runner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void State::parseMachines(const std::string & contents)
std::move(mandatoryFeatures),
// `sshPublicHostKey`
tokens[7] != "" && tokens[7] != "-"
? base64Decode(tokens[7])
? tokens[7]
: "",
});

Expand Down

0 comments on commit 4e2c06e

Please sign in to comment.