Repository navigation
Description
Is your feature request related to a problem? Please describe.
Azure DevOps Services dependencies currently require either ADO_APM_PAT or an active Azure CLI session (az login). When neither is available, APM does not fall back to the native Git credential helper, even when the same repository can be accessed successfully with Git itself:
git clone https://dev.azure.com/org/project/_git/repoThis is inconvenient for users who already authenticate to Azure DevOps through Git Credential Manager or another configured Git credential helper. It also makes ADO behave differently from other supported Git hosts where APM can delegate authentication to Git.
Describe the solution you'd like
When installing a package from Azure DevOps Services (dev.azure.com or a supported *.visualstudio.com URL), APM should use the native Git credential helper as a fallback when:
ADO_APM_PATis not set; and- Azure CLI authentication is unavailable, not installed, or the user is not signed in.
The fallback should invoke Git using the user's existing credential-helper configuration, without requiring APM-specific environment variables or embedding credentials in repository URLs. The behavior should be equivalent to a direct git clone or git ls-remote against the same repository.
The intended authentication order would be:
ADO_APM_PAT;- Azure CLI bearer authentication from
az login; - native Git credential helper;
- an actionable authentication error if all methods fail.
The implementation should remain non-interactive in APM's subprocesses, preserve current credential redaction and isolation guarantees, and avoid changing Azure DevOps Server's existing PAT-only behavior unless explicitly intended. Tests should cover helper-based HTTPS authentication, unavailable az, PAT and bearer precedence, and failure diagnostics.
Describe alternatives you've considered
- Continue requiring
ADO_APM_PAT, which duplicates credentials that users may already have stored in Git Credential Manager. - Require users to run
az login, which is not always available in minimal environments, containers, or setups where Git Credential Manager is the established authentication path. - Use SSH URLs and SSH keys instead of HTTPS, which changes the dependency URL and is not always available for Azure DevOps users.
Additional context
Related authentication behavior is documented in Azure DevOps authentication.
I would be happy to help with reproduction, design feedback, or testing.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
sergio-sisternes-epam commentedon Sep 17, 2026
Thanks for a clear, well-bounded request. You already did the right
first step: opened an issue instead of a PR.
Today Azure DevOps Services auth is
ADO_APM_PAT, thenaz loginbearer, then an error. GitHub-class and GitLab-class hosts already
fall back to the native Git credential helper; ADO Git paths
explicitly do not
(https://microsoft.github.io/apm/getting-started/authentication/).
If
git clone https://dev.azure.com/...works andapm installdoes not, that is a real inconsistency.
Advisory recommendation: needs-design, not acceptance. The direction
fits APM (same Git credentials Git itself would use; Server stays
PAT-only unless we say otherwise). Before code, please freeze:
clone/ls-remote) vs also marketplaceREST and ADO validation preflight, which currently skip helpers.
fail closed with an error that names PAT,
az login, and thehelper.
This comment is not scope approval. Please wait for a maintainer
decision before opening a PR. A short note that
git clonesucceedsand
apm installfails with neitherADO_APM_PATnoraziswelcome if you have one.
Generated by autopilot-issue-triage-worker. This comment is AI-generated and may contain errors.
danielmeppiel commentedon Oct 15, 2026
Thanks for the report and the offer to help test, Benjamin (@bunnu). Closing this request as completed by #2610, merged on October 14.
The Git credential-helper fallback is now in
main: APM preserves PAT and available Azure CLI bearer precedence, then uses repository-scoped helper credentials after a recognized authentication failure. This is controlled credential resolution, not unrestricted use of ambient helpers in every subprocess, and credentials are not embedded in repository URLs.Release limitation: the latest stable release is still v0.33.0, published October 2. It does not contain #2610. This closure records completion in
main; it does not mean that upgrading to today's latest release provides the fix, and it does not promise a release version or date.This supersedes the earlier needs-design advisory for the helper mechanism. Current authentication documentation also describes helper support for Azure DevOps Server, so the report's old Server-PAT-only premise is no longer current. No reversal of that behavior or additional implementation is requested here.
The exact helper-only environment described in this report (no PAT, no usable Azure CLI session, and cached Git credentials) was not freshly reproduced as part of this disposition. Your testing offer remains useful: if the problem persists on a version containing #2610, please follow up with the APM version and a redacted failure description, without credentials.
This explanation was drafted and posted with AI assistance after my explicit confirmation to close the issue as completed with the release limitation disclosed.
bunnu commentedon Oct 15, 2026
Thank you for implementing the native Git credential helper fallback. I appreciate the effort — this will make using APM with ADO much smoother for users who already authenticate via Git Credential Manager. I’m looking forward to the next release.
bunnu commentedon Nov 3, 2026
Hi,
Unfortunately the git credential helper still isn't being used when trying to install an app package from Azure Devops. In my understanding #2610 only implements git credentials helper fallback for marketplace fetches and policy discovery.
Tested with version 0.35.0
bunnu commentedon Nov 16, 2026
Hi Daniel Meppiel (@danielmeppiel)
As mentioned in my last comment,
apm installstill fails to authenticate against Azure DevOps when neither ADO_APM_PAT nor an active Azure CLI session is available, even though Git Credential Manager has valid cached credentials.My understanding is that #2610 implements the Git credential helper fallback for marketplace fetches and policy discovery, but the fallback is still missing from the actual Git clone operation used when installing app packages.
Since this was the core requirement of the original feature request, could you please reopen this issue and reconsider it as not yet fully resolved?
I appreciate the work already done, but closing the issue as completed seems premature while the primary use case remains broken.
Thanks!