-
Notifications
You must be signed in to change notification settings - Fork 3
Allow source url rewriting #99
Comments
Kluctl already supports HTTP basic auth for Git. You'd have to setup https://git-scm.com/docs/git-credential-store on your machine and Kluctl will respect it. On the controller side, you'd then have to setup a secret with basic auth credentials. Edit: Just realised that Git auth via the Kluctl CLI is not documented at all. |
And i thought i missed something. Should've used more ag and grep. Edit: Source url rewriting would also allow using a different git mirror. For example if you mirror all you gitops/infrastructure related repos to another destination for some reason. |
Hmm, url rewriting doesn't feel "right" tbh, but I can't fully express why it doesn't feel right :D What about a new type of Git Urls instead? Something like |
It feels a bit wrong but that's the world we are living in... We also have a contextOverwrite cause there are differences between the local setup and the cluster setup. |
Hmm ok, I agree. Let me think about this a bit more but I now also prefer the rewrite way. Whatever the solution will be, I most likely won't find time for it in the near future. I assume you can for now continue with either the http basic auth solution? Another option would be to use "Deploy Keys" in Gitlab for now, which can however only be configured on project level, meaning that you'd have to do the deploy key configuration multiple times. |
Controller
Who are you?
No response
What do you want to do?
I am using Gitlab Enterprise, where pricing is dependend from active seats. That's why i created a group access token for the flux-kluctl-controller. Group Access tokens only support http basic auth, no ssh key auth.
If i use git source urls for kluctl everything works fine on my local machine (automatic ssh key auth). If i use http source urls the flux-kluctl-controller works. However i see no way to keep both working with kluctls current apis.
Possible solutions:
Current (ugly) mitigation: I just use
--local-git-group-override
for all local kluctl commands. But this requires me to keep all those repos up2date on my machine.Why do you need that?
No response
The text was updated successfully, but these errors were encountered: