From 5894d521b9fcc0d8f9eba9cf6b08544b8770dc7e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 18 Dec 2019 20:17:06 +0000 Subject: fix(cgit-taz): Clone depot via SSH Keys are provided in a Kubernetes secret. --- services/cgit-taz/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'services/cgit-taz') diff --git a/services/cgit-taz/default.nix b/services/cgit-taz/default.nix index 425c136ec419..6f075dc64d59 100644 --- a/services/cgit-taz/default.nix +++ b/services/cgit-taz/default.nix @@ -56,12 +56,10 @@ let in writeShellScriptBin "cgit-launch" '' ${coreutils}/bin/mkdir -p /srv/git - # The cookie file is placed in the correct location by Kubernetes, based on - # information stored in a secret. + # The SSH keys are placed in the container by Kubernetes. ${git}/bin/git clone --mirror \ - -c http.cookieFile=/var/cgit/gitcookies \ -c http.sslcainfo=${cacert}/etc/ssl/certs/ca-bundle.crt \ - https://source.developers.google.com/p/tazjins-infrastructure/r/depot \ + ssh://source.developers.google.com:2022/p/tazjins-infrastructure/r/depot \ /srv/git/depot exec ${thttpdCgit}/bin/thttpd -D -C ${thttpdConfig} -- cgit 1.4.1