about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-18T20·17+0000
committerVincent Ambo <tazjin@google.com>2019-12-18T20·20+0000
commit5894d521b9fcc0d8f9eba9cf6b08544b8770dc7e (patch)
tree4146d6a28e214c372a8df5e011a252970b60139f
parentd6a653d7a3d67c87b086686069e91d44546862eb (diff)
fix(cgit-taz): Clone depot via SSH r/191
Keys are provided in a Kubernetes secret.
-rw-r--r--services/cgit-taz/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/cgit-taz/default.nix b/services/cgit-taz/default.nix
index 425c136ec4..6f075dc64d 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}