-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Using https protocol not require ssh config #2438
Using https protocol not require ssh config #2438
Conversation
* this argument and logics makes possible to use https transport for git remote. If git-apikey argument is supplied - ssh private/public key generation will be skipped (as key auth is no longer in use) * added logics forces not to use username:password in git-url argument, as apikey better keep separate and treat is as secret, instead of simple configmap added example for git-url, that https transport also can be used
At the moment i am testing the following with https for connecting to github by configuring the values.yaml for the flux helm chart
I also see that the API Key is displayed in the flux-helm-operator pod logs My Questions:
Appreciate your feedback. |
@linuxbsdfreak with a build from this PR, you would provide the HTTPS address to the To make use of this in the chart, it would require changes to the chart to make it easy to use as it does not know about this flag at the moment. For the time being, it is however possible to supply it manually by utilizing the |
@linuxbsdfreak, @hiddeco is right, provide
despite that, you need to provide
I am not using helm charts, therefore simply forgot to tackle that part. Will try to align that too. |
} | ||
|
||
if parsedGitURL.User.Username() != "" { | ||
logger.Log("err", "Set git username not in git-url, but use git-user argument instead") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The --git-user
is not used in the way you think it is used, or at least, this implementation does not take into account that it is used as the full name of the user (i.e. John Doe <[email protected]>
) during commit. While I think GitHub does some behind-the-scene parsing to still get this information presented in their UI based on the GitHub username, the data in git will be off.
However, given that we want this feature in in a short timeframe, I will volunteer to make the required changes.
Is it possible to interpolate an env entry into the |
Closing this as it has been superseded by above PR. I have added you in as a co-author in my version @vyckou, as it is a rework of your work, hope this softens the pain of me closing this. 🌷 |
Following changes would allow: