From 3c5b8a70b1fed4b6c45aa6583723a5410673d222 Mon Sep 17 00:00:00 2001
From: Pierre Delpy
Date: Tue, 14 Oct 2025 08:28:56 +0200
Subject: [PATCH] deactivate secret sync (which never worked for itcc/cce)
---
lib/functions.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/functions.sh b/lib/functions.sh
index 379e122..733d37d 100644
--- a/lib/functions.sh
+++ b/lib/functions.sh
@@ -337,6 +337,9 @@ function sync_secrets() {
}
function secret_sync_gitlab_token() {
+ if [[ "$PROJECT" != "dktk" && "$PROJECT" != "bbmri" ]]; then
+ return
+ fi
# Map the origin of the git repository /etc/bridgehead to the prefix recognized by Secret Sync
local gitlab
case "$(git -C /etc/bridgehead remote get-url origin)" in
@@ -394,7 +397,7 @@ function secret_sync_gitlab_token() {
else
log "WARN" "Secret Sync failed"
# Remove the git credential helper
- git -C /etc/bridgehead config --unset credential.helper
+ git -C /etc/bridgehead config --unset credential.helpera
fi
# In the past the git credential helper was also set for /srv/docker/bridgehead but never used.