From 45a99486827f392fddcd5b629d0ae4c59b91a1b9 Mon Sep 17 00:00:00 2001 From: Hermes Platform Engineer Date: Sun, 19 Jul 2026 16:13:45 +0000 Subject: [PATCH] fix(myorg-assistant): normalize GIT_REPO_URL host to git.rogi.casa in git-sync PR #26 added the git-clone initContainer but still trusted the GIT_REPO_URL secret verbatim. That secret historically contains gitea.rogi.casa, which 526s through Cloudflare, so the clone still fails with 'Not a git repository'. Normalize the host to git.rogi.casa at runtime (sed) so the clone works regardless of the secret's stale host. Directly addresses the subdomain bug. --- myorg-assistant/cronjobs/git-sync.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/myorg-assistant/cronjobs/git-sync.yaml b/myorg-assistant/cronjobs/git-sync.yaml index 1078e57..58a3a8f 100644 --- a/myorg-assistant/cronjobs/git-sync.yaml +++ b/myorg-assistant/cronjobs/git-sync.yaml @@ -31,6 +31,10 @@ spec: - sh - -c - | + # Normalize the repo URL host to the correct Gitea subdomain. + # The GIT_REPO_URL secret historically contained gitea.rogi.casa, + # which 526s through Cloudflare; the working subdomain is git.rogi.casa. + export GIT_REPO_URL="$(echo "${GIT_REPO_URL}" | sed -E 's#https?://[^/@]+@?gitea\.rogi\.casa#https://'"${GIT_USERNAME}"':'"${GIT_TOKEN}"'@git.rogi.casa#')" if [ ! -d /data/myorg/.git ]; then echo "Cloning repository..." git clone ${GIT_REPO_URL} /data/myorg