Repository navigation
feat(foundry): add shared project access preparation - #10738
Travis Angevine (trangevi) wants to merge 1 commit into
Conversation
Extract probe-first Foundry access and CLI credential helpers for extension consumers. Add optional synchronous progress reporting for grant attempts, propagation waits, and confirmed readiness. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 26 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Summary
Layer 1/3 of the stack splitting #10736. Related to #10718; this foundational layer does not close the issue or change extension behavior.
Adds only
cli/azd/pkg/foundry/access.go,access_test.go, andcredential.go:AccessPreparation.Progress func(string)callback. Synchronous, plain-text notifications describe the grant attempt, propagation wait, and readiness only after a successful post-grant probe. A nil callback is supported. Consumers own terminal formatting and writer selection; core does not print directly. No role-first policy or process-wide attempted-project cache.Stack and release sequencing
This PR targets
main. Layer 2 will contain the issue-targeted toolbox integration; layer 3 will contain broader consumer improvements. Extension consumers are intentionally unchanged here, including the existing toolbox-local credential file. Their core SDK pins remainv1.37.0: adopting these APIs requires a future published core module release before consumer dependency updates can ship. This PR adds no invented versions, local replace directives, or module dependency changes.Validation
Run independently from
cli/azdwithGOWORK=offandGOTOOLCHAIN=go1.26.4:go test ./pkg/foundry/... -count=1go vet ./pkg/foundry/...go fix -diff ./pkg/foundry/...(no changes)golangci-lint run ./pkg/foundry/...(0 issues)git diff --cached --checkFocused callback tests cover stage ordering, immediate/eventual readiness, assignment failures, unconfirmed readiness, propagation exhaustion/cancellation, inherited/existing access, and nil callbacks. No live Azure operations were performed.