Skip to content

Conversation

@jannfis
Copy link
Contributor

@jannfis jannfis commented Jun 7, 2024

Introduce the Git askpass helper that Argo CD's Git client uses in the meanwhile.

This PR includes some dirty workaounds that should be temporary (see code comments).

Fixes #735
Fixes #728

case strings.HasPrefix(os.Args[1], "Username"):
fmt.Println(creds.Username)
case strings.HasPrefix(os.Args[1], "Password"):
fmt.Println(creds.Password)

Check failure

Code scanning / CodeQL

Clear-text logging of sensitive information

[Sensitive data returned by an access to Password](1) flows to a logging call.
Signed-off-by: jannfis <[email protected]>
@jannfis jannfis requested a review from pasha-codefresh June 7, 2024 19:58
@pasha-codefresh
Copy link
Collaborator

@jannfis will go over it tomorrow

@jannfis jannfis merged commit a309127 into argoproj-labs:master Jun 14, 2024
sribiere-jellysmack pushed a commit to sribiere-jellysmack/argocd-image-updater that referenced this pull request Aug 13, 2024
* fix: Make Git credentials work again

Signed-off-by: jannfis <[email protected]>

* Update

Signed-off-by: jannfis <[email protected]>

---------

Signed-off-by: jannfis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image Updater not able to connect to Gitlab Repo terminal prompts disabled

3 participants