From 1077725153557cced22ee2d818a9961f9cff2c6d Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Wed, 17 Jul 2024 16:49:03 +0200 Subject: [PATCH] fix(gerrit): make buildbot able to read the priv ssh key Signed-off-by: Raito Bezarius --- nix/coordinator.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/coordinator.nix b/nix/coordinator.nix index 06cd0c2..0510c0b 100644 --- a/nix/coordinator.nix +++ b/nix/coordinator.nix @@ -209,7 +209,7 @@ in "${cfg.gerrit.domain}", "${cfg.gerrit.username}", "${toString cfg.gerrit.port}", - "${cfg.gerrit.privateKeyFile}", + read_secret_file('buildbot-service-private-key'), projects=${builtins.toJSON cfg.gerrit.projects}, allowed_origins=${builtins.toJSON cfg.allowedOrigins}, url=${builtins.toJSON config.services.buildbot-master.buildbotUrl}, @@ -269,6 +269,7 @@ in LoadCredential = [ "buildbot-nix-workers:${cfg.workersFile}" "buildbot-oauth2-secret:${cfg.oauth2.clientSecretFile}" + "buildbot-service-private-key:${cfg.gerrit.privateKeyFile}" ]; }; };