-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Upgrade from v2.11 to 2.12 Breaks Git Secret #19881
Comments
Are you using the same secret across projects? |
I experienced the same issue when upgrading from v2.11.2 to v.2.12.3 using the manifest https://raw.githubusercontent.com/argoproj/argo-cd/v2.12.3/manifests/install.yaml. Everything upgrades fine, but after the upgrade the SSH connection to the repo is broken and gives the errors as seen above and in the linked issue. And yes, we use the same repo & secret for several projects. Modifying the label worked: So indeed it looks like the old value has been deprecated and was removed without mentioning it in the release notes or upgrade documentation. |
Yes, I only have 1 project and 1 secret. Nothing changed but the Argo version. |
Sharing secrets across projects stopped working in 2.12. |
Yeah I know, but our secret is not bound to any project. So all projects use the same repo secret, but the secret itself is not bound to a project (so without project field as described here https://argo-cd.readthedocs.io/en/latest/operator-manual/upgrading/2.11-2.12/). The upgrade breaks the repo connection, until you change |
That is not the case.
I haven't seen that one at least, nor have I heard of this elsewhere. |
We also ran into this issue. Changing the label to repo-creds did solve the issue, but I noticed afterward that the k8s secret does contain a project field, and it was set to I've since changed the label back to just @blakepettersson any chance there is a feature coming where a person can see what projects a repository is scoped to? There are no "view" or "edit" options under Settings->repositories, just a list. |
@CubicFeat do you mean in the UI? Since 2.12 there is a |
Which upgrade notes mention the |
Hmm I guess the upgrade notes have not been propagated to readthedocs: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/upgrading/2.11-2.12.md |
Can you share the secret yaml with masked data, please? Also, the code that references the secret. |
We are seeing these sync errors on one of our apps, since updating from, I believe, 2.10.x, to 2.13.x via the latest helm chart. We don't have a I did note that there are Here's the value of the apiVersion: v1
data:
sshPrivateKey: XXXXX
type: XXXX
url: XXXXXXXXXX
kind: Secret
metadata:
annotations:
meta.helm.sh/release-name: argocd
meta.helm.sh/release-namespace: argocd
creationTimestamp: "2024-02-21T16:43:59Z"
labels:
app.kubernetes.io/managed-by: Helm
argocd.argoproj.io/secret-type: repo-creds
name: github-repo-secret
namespace: argocd
resourceVersion: "393638178"
uid: daca6d32-636f-42f9-bf96-5ef5b2a388be
type: Opaque
Note: the repo, reponame, and path within the repo all exist and are correct. Edit I confirmed that the cred in this secret does not currently work, but each repo has its own repo-specific secret (like |
I've upgraded my Argocd installation via the official chart.
From chart version
7.3.11
(app versionv2.11.7
) to7.4.0
(app versionv2.12.0
).I have a
Secret
resource in my cluster with the following label:Once I upgraded to
v2.12.0
, this repository connection still appears as "Successful" in the user interface, but my applications can no longer sync, complaining of the following error:I've done some digging and found this issue, which suggested modifying the
secret-type
label torepo-creds
. Once I did that, the problem was gone.My question is, is the
secret-type: repository
label deprecated in >v2.12.0
?I haven't seen any deprecation notice in the docs.
The text was updated successfully, but these errors were encountered: