Skip to content

feat: windows network isolated cluster support anonymous-disabled bootstrap acr#8039

Merged
fseldow merged 5 commits intomainfrom
xinhl/ninwinlogin
Mar 16, 2026
Merged

feat: windows network isolated cluster support anonymous-disabled bootstrap acr#8039
fseldow merged 5 commits intomainfrom
xinhl/ninwinlogin

Conversation

@fseldow
Copy link
Contributor

@fseldow fseldow commented Mar 8, 2026

What this PR does / why we need it:
feat: windows network isolated cluster support anonymous-disabled bootstrap acr

Which issue(s) this PR fixes:
oras login via kubelet identity.
Flow: try to ls repo first to identity if anonymous access enabled. If not, call imds to get token to login

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds Windows network-isolated cluster support for bootstrapping from a non-anonymous ACR by attempting an anonymous oras repo ls first, then falling back to managed-identity IMDS token exchange + oras login when anonymous access is disabled.

Changes:

  • Update Windows CSE network-isolated cluster logic to perform oras login via IMDS + ACR token exchange when needed.
  • Add Pester coverage for the new Invoke-OrasLogin flow and Get-BootstrapRegistryDomainName.
  • Extend Windows network-isolated e2e scenario to enable managed identity + set credential provider flags/URL based on orchestrator version.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
staging/cse/windows/networkisolatedclusterfunc.ps1 Adds Invoke-OrasLogin and helpers; wires login into Initialize-Oras.
staging/cse/windows/networkisolatedclusterfunc.tests.ps1 Adds Pester tests for the new login and registry-domain helper logic.
e2e/scenario_win_test.go Updates the Windows network-isolated scenario to configure MI + credential provider URL selection.

Copilot AI review requested due to automatic review settings March 9, 2026 00:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

@fseldow fseldow enabled auto-merge (squash) March 16, 2026 02:31
Copilot AI review requested due to automatic review settings March 16, 2026 04:34
@fseldow fseldow force-pushed the xinhl/ninwinlogin branch from 078bea2 to ae867e2 Compare March 16, 2026 04:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

Copilot AI review requested due to automatic review settings March 16, 2026 07:35
@fseldow fseldow force-pushed the xinhl/ninwinlogin branch from 9586a40 to 006265e Compare March 16, 2026 07:35
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

Copy link
Contributor

@jiashun0011 jiashun0011 left a comment

Choose a reason for hiding this comment

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

lgtm

@fseldow fseldow merged commit 5acac0e into main Mar 16, 2026
31 checks passed
@fseldow fseldow deleted the xinhl/ninwinlogin branch March 16, 2026 09:24
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.

4 participants