Skip to content

Conversation

@raych1
Copy link
Member

@raych1 raych1 commented Jan 6, 2026

We're seeing 1es pipeline template blocks the maven feed access in the pipeline runs.

Failed run

##[INFO] Successfully completed 'Enforce' command.
Summary of policies applied to this build:
Policy=[Permissive] AllowRulesCount=[65] DenyRulesCount=[1] Description=[The least secure policy. Only blocks well established malicious endpoints and allows all other connections to the internet. Teams should refrain from using this policy.]
Policy=[CFSClean] AllowRulesCount=[0] DenyRulesCount=[6] Description=[NI policy to block access to public package feeds and enforce CFS (Centralized Feed Service) for package management.]
##[DEBUG] StartupNITool: PolicySummary executed in 00:00:00.0000753

Override the network isolation policy to preferred. See the linked doc for more details.

Copilot AI review requested due to automatic review settings January 6, 2026 00:51
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

This PR updates the Azure DevOps pipeline configuration to enable access to public Maven repositories during builds by setting the network isolation policy to Preferred. This change is necessary to allow builds to download dependencies from Maven Central and other public package repositories.

Key Changes

  • Added networkIsolationPolicy: Preferred setting to the 1ES pipeline template configuration
  • Included explanatory comment with link to Microsoft documentation about network isolation policies

@raych1 raych1 self-assigned this Jan 6, 2026
@raych1 raych1 moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 📆🎇 Jan 6, 2026
@raych1
Copy link
Member Author

raych1 commented Jan 6, 2026

@weshaggard the preferred policy is still too strict, and the java sdk repo is blocked. I lowered down the policy.
image

@hallipr
Copy link
Member

hallipr commented Jan 6, 2026

the preferred policy is still too strict, and the java sdk repo is blocked.

The failure says that it couldn't connect to github.com. I wouldn't think that that the "preferred" policy should block being able to clone the repo.

@raych1
Copy link
Member Author

raych1 commented Jan 6, 2026

The failure says that it couldn't connect to github.com. I wouldn't think that that the "preferred" policy should block being able to clone the repo.

I was surprised but seems that the github is blocked by the policy.

@raych1 raych1 merged commit ac066c9 into main Jan 6, 2026
26 checks passed
@raych1 raych1 deleted the users/raych1/override-network-policy branch January 6, 2026 17:41
@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 📆🎇 Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎊 Closed

Development

Successfully merging this pull request may close these issues.

5 participants