Skip to content
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

Support Workload Identity in git source controller for Azure DevOps Repos #1284

Open
miqm opened this issue Nov 17, 2023 · 4 comments
Open

Comments

@miqm
Copy link

miqm commented Nov 17, 2023

Is there option to use workload identity token as password for git source controller? If not, that would be very helpful. Recently Azure DevOps Repos introduced ability to use Service Principal and Azure Managed Identities to access source code in Azure Repos. However Flux seems not to have ability to work with this, or this is not documented.

Here's doc how to access Repos with Token: https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/service-principal-managed-identity?view=azure-devops#q-can-i-use-a-service-principal-to-do-git-operations-like-clone-a-repo

@souleb
Copy link
Member

souleb commented Feb 22, 2024

this is work in progress here fluxcd/pkg#664

@hatfarm
Copy link

hatfarm commented Apr 15, 2024

For those who came here and saw the above message, unfortunately, there has been no more work on this since February, and it looks like it's kind of dead. I may try to put together a PR for this, as it's the biggest blocker for using flux for my team.

@dineshkumar181094
Copy link

I have a working solution, you can create a cron job that generates the token, create secret bearerToken out of generated token.
Use this secret as secret in gitRepo object it will work.

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

No branches or pull requests

5 participants