https protocol for git support #2280
Description
For now, flux does support HTTPS protocol for gitops repository only partially. There are lots of code and functionality, which would not be required to execute, if git-url would be https:// and not ssh://
As you are using git CLI client and invoking git commands to deal with gitops repo, passing url https://apikey@github.com/org/repo.git works, but everything which is linked about SSH keypairs are not required and adds additional overhead for the setup and runtime
If using HTTPS protocol instead of SSH would not require:
- creation of the SSH keypair on flux deployment in K8s
- usage of the ssh generator
- k8s secret with private key
On the git SCM side, that would bring pluses as:
- adding flux git user to the gitops repo(s) with r/w access, instead of putting public keys on the repos
this behaviour would enable to run flux in Openshift environments without granting flux a priv mode. - creation of the dockerfile with USER directive is not working, as often hardened Openshift setups expects userid with custom ranges.
Activity