Skip to content

feat(agent-sdk): authenticate Azure CLI with Entra token - #15840

Merged
captainsafia merged 3 commits into
masterfrom
factory/remote-3144-azure-devops-write-auth
Sep 6, 2026
Merged

feat(agent-sdk): authenticate Azure CLI with Entra token#15840
captainsafia merged 3 commits into
masterfrom
factory/remote-3144-azure-devops-write-auth

Conversation

@warp-agent-staging

@warp-agent-staging warp-agent-staging Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Description

Authenticate Azure CLI commands in Oz sandboxes with the current Azure DevOps Entra access token. A sandbox-local az wrapper reads an owner-only token file at each launch and exports only AZURE_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

  • The linked issue is labeled ready-to-spec or ready-to-implement. Tracking uses Linear, so this GitHub label does not apply.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes). This change has no rendered UI.

Testing

  • ./script/format --check
  • cargo clippy --workspace --exclude warp_completer --all-targets --tests -- -D warnings
  • cargo clippy -p warp --all-targets --tests -- -D warnings
  • cargo nextest run -p warp -E 'test(git_credentials)' (21 passed)
  • I have manually tested my changes locally with ./script/run. This sandbox credential path is covered by command-launch unit tests instead.

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

CHANGELOG-OZ: Oz agents can use refreshed Entra credentials to write to Azure DevOps.

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>
@warp-agent-staging

Copy link
Copy Markdown
Contributor Author

This PR was generated with Warp.

Comment @warp-staging-factory on this PR to send it follow-up work.

View run View conversation

Co-authored-by: Warp <agent@warp.dev>
@captainsafia
captainsafia marked this pull request as ready for review September 6, 2026 20:09

@captainsafia captainsafia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@warp-staging-factory Looks good overall. Left one small comment inline.

Comment thread app/src/ai/agent_sdk/driver.rs Outdated
@captainsafia
captainsafia enabled auto-merge (squash) September 6, 2026 21:03
@captainsafia
captainsafia merged commit 4b7798f into master Sep 6, 2026
32 checks passed
@captainsafia
captainsafia deleted the factory/remote-3144-azure-devops-write-auth branch September 6, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant