-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Secret data not redacted when rendering invalid Secret #16193
Comments
This is leaking secrets in the application controller's logs: and
|
I tracked this down to the diff package of gitops-engine. For some reason the error is not getting raised properly, which breaks logic in ArgoCD like this. |
We have seen the same issue in our argocd (
The error message from argocd also included the |
While this definitely must (and will) be fixed, I just wanted to raise concern about using IMHO, |
Using I just had a look at a secret that uses |
Thanks, I didn't know that yet :)
Yep, makes sense if it's being normalized before. |
ArgoCD versions 2.10 and below have reached EOL. Can you upgrade and let us know if the issue is still present, please? |
This is resolved with GHSA-47g2-qmh2-749v . The patched versions are Argo CD v2.13.4, v2.12.10, v2.11.13. I am closing this issue. Please feel free to reopen if required. |
Describe the bug
When rendering an invalid Secret, ArgoCD will leak the sensitive stringData in both the error message and diff view.
To Reproduce
To reproduce, create a simple secret with arbitrary values, and then set a value as an integer instead of a string. You will get an error like this (with sensitive and identifying info omitted):
Additionally, the resource and app diffs will show unredacted stringData, regardless of whether the original Secret used data or stringData.
Expected behavior
The secret's data should be redacted during a failed sync of an invalid resource in the same way that a successfully synced Secret resource has its data redacted in the Argo UI.
Screenshots


Version
The text was updated successfully, but these errors were encountered: