fix: remove explicit access token from helm-git urls (take 3)

This commit is contained in:
2025-06-22 10:32:01 +02:00
parent 490e8d373f
commit e80973755e
4 changed files with 10 additions and 11 deletions
+1 -5
View File
@@ -3,11 +3,7 @@ bases:
repositories: repositories:
- name: oceanbox - name: oceanbox
{{- if env "MANIFESTS_ACCESS_TOKEN" }} url: "git+https://git:{{ requiredEnv "HELM_GIT_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
url: "git+https://git:{{ requiredEnv "MANIFESTS_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
{{- else }}
url: "git+https://gitlab.com/oceanbox/manifests@charts?ref=main"
{{- end }}
commonLabels: commonLabels:
tier: system tier: system
+1 -5
View File
@@ -3,11 +3,7 @@ bases:
repositories: repositories:
- name: oceanbox - name: oceanbox
{{- if env "MANIFESTS_ACCESS_TOKEN" }} url: "git+https://git:{{ requiredEnv "HELM_GIT_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
url: "git+https://git:{{ requiredEnv "MANIFESTS_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
{{- else }}
url: "git+https://gitlab.com/oceanbox/manifests@charts?ref=main"
{{- end }}
commonLabels: commonLabels:
tier: system tier: system
+1 -1
View File
@@ -37,5 +37,5 @@ pkgs.mkShellNoCC {
]; ];
ARGOCD_ENV_CLUSTER_NAME = "oceanbox"; ARGOCD_ENV_CLUSTER_NAME = "oceanbox";
MANIFESTS_ACCESS_TOKEN = "glpat-xxx"; HELM_GIT_ACCESS_TOKEN = "glpat-xxx";
} }
+7
View File
@@ -178,6 +178,13 @@ repoServer:
- command: - command:
- /var/run/argocd/argocd-cmp-server - /var/run/argocd/argocd-cmp-server
image: registry.gitlab.com/oceanbox/manifests/helmfile-cmp:latest image: registry.gitlab.com/oceanbox/manifests/helmfile-cmp:latest
env:
- name: HELM_GIT_ACCESS_TOKEN
valueFrom:
secretKeyRef:
key: password
name: oceanbox-gitops-repo
optional: false
imagePullPolicy: Always imagePullPolicy: Always
name: helmfile-cmp name: helmfile-cmp
securityContext: securityContext: