Skip to content

fix: scope Azure DevOps guest git credentials to the host - #56

Merged
wcgomes merged 3 commits into
mainfrom
fix/azure-devops-git-usehttppath
Oct 2, 2026
Merged

wcgomes merged 3 commits into
mainfrom
fix/azure-devops-git-usehttppath

Conversation

@wcgomes

@wcgomes wcgomes commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • In-container git fetch against https://dev.azure.com/... failed with "Cannot determine the organization name" because the guest credential query was pathless while host Git Credential Manager requires the organization in the path.
  • Guest seeding no longer replaces the global credential.helper list. dev.azure.com gets a URL-scoped helper override (empty credential.https://dev.azure.com.helper, then the product helper) and credential.https://dev.azure.com.useHttpPath true. The product helper matches protocol and host and ignores path.
  • GitHub and other non-Azure HTTPS hosts are unchanged. Clone still uses local credential.helper store plus a pathless approve. Up and rebuild only append the product helper.

Verification

  • swift run adevcontainerTests: 1163 passed, 0 failed, 5 skipped.
  • ADEVCONTAINER_ALLOW_BUILD_ROSETTA_DISABLE=1 swift run --skip-update adevcontainer rebuild --name plantsuite --json --skip-pull kept volume adev-plantsuite-efe596f5d495-ws.
  • In-container git fetch -p exited 0 with no organization-name fatal.

In-container fetch against dev.azure.com failed with "Cannot determine
the organization name" because the guest query was pathless while host
Git Credential Manager requires the organization in the path.

Seeding no longer replaces the global credential.helper list.
dev.azure.com gets a URL-scoped helper override and useHttpPath.
GitHub and other HTTPS hosts keep local store on clone and append-only
helper on up/rebuild.
adevcontainerTests passed 1163.
Non-Azure HTTPS is unchanged. Only dev.azure.com gets a URL-scoped
helper and useHttpPath, so a pathless query is not proxied to host GCM.
@wcgomes
wcgomes merged commit 4fa71f9 into main Oct 2, 2026
1 check passed
@wcgomes
wcgomes deleted the fix/azure-devops-git-usehttppath branch October 2, 2026 03:28
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

Successfully merging this pull request may close these issues.

1 participant