-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
'util/git/creds.go' will leak temporary files to '/dev/shm' if proxy URL cannot be parsed, or if write fails #17658
Closed
3 tasks done
Labels
Comments
jgwest
added a commit
to jgwest/argo-cd
that referenced
this issue
Mar 28, 2024
Signed-off-by: Jonathan West <jonwest@redhat.com>
14 tasks
jgwest
added a commit
to jgwest/argo-cd
that referenced
this issue
Mar 28, 2024
Signed-off-by: Jonathan West <jonwest@redhat.com>
jgwest
added a commit
to jgwest/argo-cd
that referenced
this issue
Mar 28, 2024
Signed-off-by: Jonathan West <jonwest@redhat.com>
We are seeing some customer issues regarding the same. Hopefully, this PR fixes the same |
jgwest
added a commit
to jgwest/argo-cd
that referenced
this issue
Apr 11, 2024
Signed-off-by: Jonathan West <jonwest@redhat.com>
jgwest
added a commit
to jgwest/argo-cd
that referenced
this issue
Apr 11, 2024
Signed-off-by: Jonathan West <jonwest@redhat.com>
jannfis
pushed a commit
that referenced
this issue
Apr 11, 2024
mkieweg
pushed a commit
to mkieweg/argo-cd
that referenced
this issue
Jun 11, 2024
… (argoproj#17659) Signed-off-by: Jonathan West <jonwest@redhat.com>
Hariharasuthan99
pushed a commit
to AmadeusITGroup/argo-cd
that referenced
this issue
Jun 16, 2024
… (argoproj#17659) Signed-off-by: Jonathan West <jonwest@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Checklist:
argocd version
.Describe the bug
In
util/git/creds.go
, within(c SSHCreds) Environ()
, there are a couple of corner cases where the temporary file that is created is not being cleaned up:url.Parse
, the function will return without deleting the temporary file.file.WriteString
fails, the temporary file will not be cleaned up (but, admittedly, this would be very rare)We've had customer reports of
/dev/shm
running out of space due to temporary files left hanging around, and I discovered the above issue while auditing Argo CD's use of/dev/shm
.I've submitted a PR which fixes both issues. The solution is the same one used by the other
Environ()
functions increds.go
Version
master
branchThe text was updated successfully, but these errors were encountered: