Skip to content

[release/13.2] Enable CFSClean policies and use dotnet-public feed for winget CLI - #15541

Merged
Jose Perez Rodriguez (joperezr) merged 3 commits into
release/13.2from
backport/pr-15442-to-release/13.2
Mar 25, 2026
Merged

Jose Perez Rodriguez (joperezr) merged 3 commits into
release/13.2from
backport/pr-15442-to-release/13.2

Conversation

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Backport of #15442 to release/13.2

/cc Ankit Jain (@radical) Matt Mitchell (@mmitche)

Customer Impact

Testing

Risk

Regression?

Matt Mitchell (mmitche) and others added 3 commits March 24, 2026 19:43
- Add networkIsolationPolicy: Permissive, CFSClean, CFSClean2 to
  the 1ES official pipeline template parameters
- Switch winget CLI installation from PSGallery to dotnet-public
  Azure Artifacts feed to comply with CFSClean network restrictions

Co-authored-by: Copilot <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15541

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15541"

- pwsh: |
Write-Host "Installing Microsoft.WinGet.Client from PSGallery..."
Install-PSResource -Name Microsoft.WinGet.Client -Repository PSGallery -TrustRepository
$repoName = 'dotnet-public'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be microsoft-public now

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Actually, maybe not, sorry. What is that for?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is feed we are using to get winget cli.

template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
settings:
networkIsolationPolicy: Permissive,CFSClean,CFSClean2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Help me understand why we need CFSClean, CFSClean2? What's the difference? Also, why do we need permisive, and do we need an exclusion list to get the gallery?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a backport of the PR we meged for main.
Matt Mitchell (@mmitche) ^^

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

IIUC, Permissive -> CFSClean -> CFSClean2 - they are building upon the previous one to establish the restrictions, and allowances. Permissive is the base one allowing most outbound connections.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

CFSClean and Clean2 are separate policies and we require both of them.

@joperezr
Jose Perez Rodriguez (joperezr) merged commit 4961db2 into release/13.2 Mar 25, 2026
6 checks passed
@joperezr
Jose Perez Rodriguez (joperezr) deleted the backport/pr-15442-to-release/13.2 branch March 25, 2026 17:19
@github-actions github-actions Bot locked and limited conversation to collaborators May 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants