Repository navigation
Description
Pre-submission checklist
- I have searched existing issues and confirmed this is not a duplicate.
- I understand that submitting a feature request does not guarantee it will be implemented.
Proposed Feature
Support authentication to Azure DevOps Git repositories using Azure Workload Identity (Microsoft Entra ID).
Similar to the workload identity authentication capabilities discussed in Argo CD (#13334 and #22122), Kargo should be able to authenticate to Azure DevOps Git repositories using the federated identity assigned to its Kubernetes ServiceAccount.
Ideally, Kargo would:
Support using Azure Workload Identity to authenticate to Azure DevOps Git repositories.
Exchange the projected Kubernetes ServiceAccount token for an Azure Entra ID access token through workload identity federation.
Use the resulting access token for Git operations against Azure DevOps.
Avoid requiring Personal Access Tokens (PATs) or other long-lived credentials stored in Kubernetes Secrets.
Motivation and Use Case
When running Kargo on Azure Kubernetes Service (AKS) and using Azure DevOps as the Git repository provider, authentication currently often relies on Personal Access Tokens (PATs).
Managing PATs introduces additional operational overhead and security concerns, including credential rotation, expiration, secret management, and the risk of credential exposure.
By supporting Azure Workload Identity for Azure DevOps Git repositories, Kargo could use the same federated identity mechanism already available in AKS to authenticate without requiring long-lived credentials.
Concrete use case:
An organization runs Kargo on AKS and uses Azure DevOps Git repositories to manage its promotion processes and deployment configuration.
The organization has already configured Azure Workload Identity federation between its AKS cluster and Microsoft Entra ID. It would like Kargo to use this identity to access Azure DevOps repositories, rather than creating and maintaining a dedicated PAT.
This would provide:
Passwordless authentication without long-lived credentials.
Centralized identity and access management through Microsoft Entra ID.
Simplified credential lifecycle management, eliminating manual PAT rotation.
Better alignment with Azure security best practices.
Kargo already supports Azure Workload Identity for Azure Container Registry (ACR). Extending similar capabilities to Azure DevOps Git repository authentication would provide a more consistent authentication experience across Azure services.
Alternatives Considered
No response
Activity
krancour commentedon Nov 28, 2026
This was requested before in #5812, and #6154 implemented it. Both were closed without merging.
What blocks it: Kargo's Azure credential provider can only authenticate as the controller's own identity. Kargo needs write access to Git repositories, so giving one Project access to an Azure DevOps repository would give it to every Project. This comment explains this in more detail.
#6912 proposes letting the provider act as a Project-specific identity, and that has to come first. #6913 is a draft implementation of it.
To set expectations: this is not a high priority for the maintainers. Movement here probably depends on someone volunteering to finish #6913, including testing it end-to-end in a real Azure environment. Until then, PATs are the supported way to authenticate to Azure DevOps.
krancour commentedon Nov 28, 2026
/low
kargo-governance-bot commentedon Nov 28, 2026
Low Priority
A maintainer has determined this issue to be low priority.
The maintainer team has its own priorities, and those cannot be displaced. We respectfully ask for your understanding. Patience will be required, as it may be some time before a maintainer is able to give this issue further attention.