feat(agent-sdk): authenticate Azure CLI with Entra token - #15840
Merged
Conversation
Install a sandbox-local az wrapper that reads the latest Azure DevOps credential at command launch and exports only AZURE_DEVOPS_EXT_PAT. Co-authored-by: Warp <agent@warp.dev>
Contributor
Author
|
This PR was generated with Warp. Comment |
Co-authored-by: Warp <agent@warp.dev>
captainsafia
marked this pull request as ready for review
September 6, 2026 20:09
captainsafia
approved these changes
Sep 6, 2026
captainsafia
left a comment
Contributor
There was a problem hiding this comment.
@warp-staging-factory Looks good overall. Left one small comment inline.
Co-authored-by: Warp <agent@warp.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Authenticate Azure CLI commands in Oz sandboxes with the current Azure DevOps Entra access token. A sandbox-local
azwrapper reads an owner-only token file at each launch and exports onlyAZURE_DEVOPS_EXT_PAT.Initial writes and refreshes use unique temporary files created in the auth directory with mode
0600. The file is synced before an atomic rename. The auth directory cannot be a symlink. Concurrent refreshes do not share a predictable temporary path.The token is not placed in argv, logs, command output, or the long-lived child environment. Git HTTPS credentials continue to use
~/.git-credentials. If wrapper PATH setup fails, the sandbox still launches and records a credential-safe warning.Companion server PR: https://github.com/warpdotdev/warp-server/pull/16905
Linked Issue
REMOTE-3144
ready-to-specorready-to-implement. Tracking uses Linear, so this GitHub label does not apply.Testing
./script/format --checkcargo clippy --workspace --exclude warp_completer --all-targets --tests -- -D warningscargo clippy -p warp --all-targets --tests -- -D warningscargo nextest run -p warp -E 'test(git_credentials)'(21 passed)./script/run. This sandbox credential path is covered by command-launch unit tests instead.Agent Mode
CHANGELOG-OZ: Oz agents can use refreshed Entra credentials to write to Azure DevOps.