microsoft / microsoft/devcenter-catalog

git-clone task doesn't honor Key Vault PAT

Open
#114 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
52
Forks
194
Avg merge
16h 53m
Merged PRs (30d)
1

Description

When using the git-clone task the pat parameter expects the actual PAT and not the Key Vault Secret Identifier as described in the blog post here: https://techcommunity.microsoft.com/blog/azuredevcommunityblog/accelerate-developer-onboarding-with-the-configuration-as-code-customization-in-/4062416

To Reproduce
Create a template with a task to perform a git-clone

Use this template as the customization file when creating a new Dev Box.

Expected behavior
The git-clone process should get the PAT from the key vault using the identity of the Dev Center Project managed identity

Dev Box VM Details (please complete the following information):

  • OS version: Windows 11
  • Image: microsoftvisualstudio_visualstudioplustools_vs-2022-ent-general-win11-m365-gen2

Additional context
Key Vault exists and is not protected by a firewall.
Dev Center and Project managed identities given RBAC roles to Key Vault

When providing the actual PAT as the value of the parameter, the git-clone works without issue.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the git-clone task's handling of the pat parameter in a Dev Box customization template, then reproduce the example with the Key Vault Secret Identifier and the project managed identity. Compare that behavior with supplying the actual PAT; done means the task retrieves the PAT from Key Vault while preserving the working direct-PAT case.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, git, powershell
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.