Skip to content

Revert "Add networkIsolationPolicy to 1ES pipeline templates for SFI-ES4.2.4 compliance"#15193

Merged
radical merged 1 commit intorelease/13.2from
revert-14696-sfi-es424-network-isolation-policy
Mar 12, 2026
Merged

Revert "Add networkIsolationPolicy to 1ES pipeline templates for SFI-ES4.2.4 compliance"#15193
radical merged 1 commit intorelease/13.2from
revert-14696-sfi-es424-network-isolation-policy

Conversation

@joperezr
Copy link
Copy Markdown
Member

Reverts #14696

Reverting temporarily as this broke our installation of winget. @radical let's figure this out after 13.2 since these changes were trying to fix some s360 alerts.

Copilot AI review requested due to automatic review settings March 12, 2026 22:09
@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/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15193

Or

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

@radical radical enabled auto-merge (squash) March 12, 2026 22:10
Copy link
Copy Markdown
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

Temporarily reverts the previously-added networkIsolationPolicy settings in 1ES official/unofficial Azure Pipelines templates to unblock winget installation.

Changes:

  • Removed settings.networkIsolationPolicy from the official 1ES pipeline template parameters.
  • Removed settings.networkIsolationPolicy from the unofficial 1ES pipeline template parameters.

Reviewed changes

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

File Description
eng/pipelines/azure-pipelines.yml Removes networkIsolationPolicy from official pipeline template parameters to avoid the winget break.
eng/pipelines/azure-pipelines-unofficial.yml Removes networkIsolationPolicy from unofficial pipeline template parameters for parity and to avoid the same break.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 105 to 110
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
settings:
networkIsolationPolicy: Permissive,CFSClean2
featureFlags:
autoEnablePREfastWithNewRuleset: false
autoEnableRoslynWithNewRuleset: false
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

Removing networkIsolationPolicy entirely likely reverts the pipeline to a less-controlled default and may re-open the SFI-ES4.2.4 / s360 findings that the reverted PR was addressing. If the issue is specifically winget access, consider re-introducing networkIsolationPolicy with a narrower exception (e.g., avoid the specific enforcement mode that breaks winget, or isolate the winget acquisition by using a pre-baked image/internal artifact so the overall pipeline can keep the stricter policy).

Copilot uses AI. Check for mistakes.
@@ -39,8 +39,6 @@ resources:
extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

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

Since this is described as a temporary revert, consider adding an inline comment/TODO near parameters: documenting the rollback reason (winget break) and a tracking link (issue/PR) for re-introducing the policy after 13.2. This makes it less likely the compliance setting is forgotten and helps future maintainers understand why the policy is absent.

Suggested change
parameters:
parameters:
# TODO: Temporary rollback of Roslyn auto-enable ruleset due to winget break.
# Re-enable after 13.2 once the policy can be safely applied.
# Tracking: ISSUE-XXXX (replace with real issue/PR link).

Copilot uses AI. Check for mistakes.
@radical radical merged commit 8fd5dff into release/13.2 Mar 12, 2026
14 of 15 checks passed
@radical radical deleted the revert-14696-sfi-es424-network-isolation-policy branch March 12, 2026 22:34
@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Mar 12, 2026
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.

3 participants