Repository navigation
Enforce CFSClean for Network Isolation #11300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
809dbf7
Enforce CFSClean for Network Isolation
chidozieononiwu 3f9de49
Add Nuget config targeting devOps feed
chidozieononiwu 02d5dd5
Authenticate to Dev Feed for Java and Python
chidozieononiwu 51a68a4
Add maven-authenticate settings.xml
chidozieononiwu 4cd3d1f
Update ExternalTypeReferenceResolverTests does not probe external feeds
chidozieononiwu 1b80f3c
Authenticate to DevOps feed in test-step
chidozieononiwu a3bee3c
Ensure nuget restore runs before tests and nuget config is used
chidozieononiwu 3490f68
Resolve issues raised in PR
chidozieononiwu 7beec19
Rename NuGet.Config to nuget.config
chidozieononiwu ee26ac8
work to get test passing for csharp
chidozieononiwu e09543c
Update nuget.config path
chidozieononiwu 30c8cfd
Enforce CFSClean for Network Isolation
chidozieononiwu 27de14d
Add NugetAuthenticate
chidozieononiwu d592b0b
Order nugetConfigPath
chidozieononiwu 70e5cfe
Make package feed auth language dependent
chidozieononiwu cfda757
Fix failures in CSharp and Python Regen test
chidozieononiwu 2755d02
Document changes with chronus
chidozieononiwu fe1b95c
Remove AppendMsBuildPropertyIfSet helpers
chidozieononiwu 0088b91
Merge branch 'main' into enforceCFSClean
iscai-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| changeKind: fix | ||
| packages: | ||
| - "typespec-vs" | ||
| --- | ||
|
|
||
| Disable NuGet package auditing during cross-platform Visual Studio extension builds so restores do not fail when the vulnerability feed is unavailable. |
7 changes: 7 additions & 0 deletions
7
.chronus/changes/forward-python-package-index-environment-2026-8-7.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| changeKind: fix | ||
| packages: | ||
| - "@typespec/http-client-python" | ||
| --- | ||
|
|
||
| Forward package index and Python mirror environment variables to tox test environments so tests can install dependencies from configured feeds. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -229,6 +229,7 @@ words: | |
| - pylint | ||
| - pylintrc | ||
| - pyodide | ||
| - pypi | ||
| - pyproject | ||
| - pyright | ||
| - pyrightconfig | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
eng/common/pipelines/templates/steps/maven-authenticate.yml
|
iscai-msft marked this conversation as resolved.
Resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| parameters: | ||
| SourceDirectory: $(Build.SourcesDirectory) | ||
|
|
||
| steps: | ||
| # Copy mirror settings to default Maven location so all requests go through CFS | ||
| - pwsh: | | ||
| $m2Dir = if ($env:USERPROFILE) { "$env:USERPROFILE\.m2" } else { "$HOME/.m2" } | ||
| New-Item -ItemType Directory -Force -Path $m2Dir | Out-Null | ||
| Copy-Item -Path "${{ parameters.SourceDirectory }}/eng/settings.xml" -Destination "$m2Dir/settings.xml" | ||
| displayName: "Setup Maven mirror settings" | ||
|
|
||
| # Authenticate with Azure Artifacts feeds | ||
| # MavenAuthenticate adds <server> entries to ~/.m2/settings.xml matching mirror id 'azure-sdk-for-java' | ||
| - task: MavenAuthenticate@0 | ||
| displayName: "Maven Authenticate" | ||
| inputs: | ||
| artifactsFeeds: "azure-sdk-for-java" |
49 changes: 49 additions & 0 deletions
49
eng/common/pipelines/templates/steps/pypi-auth-dev-feed.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| parameters: | ||
| DevFeedName: "public/azure-sdk-for-python" | ||
| EnableTwineAuth: true | ||
| EnablePipAuth: true | ||
| EnableUvAuth: true | ||
|
|
||
| steps: | ||
| - pwsh: | | ||
| # For safety default to publishing to the private feed. | ||
| # Publish to https://dev.azure.com/azure-sdk/internal/_packaging?_a=feed&feed=azure-sdk-for-python-pr | ||
| $devopsFeedName = 'internal/azure-sdk-for-python-pr' | ||
| if (-not ('$(Build.Repository.Name)').EndsWith('-pr')) { | ||
| # Publish to https://dev.azure.com/azure-sdk/public/_packaging?_a=feed&feed=azure-sdk-for-python | ||
| $devopsFeedName = '${{ parameters.DevFeedName }}' | ||
| } | ||
| echo "##vso[task.setvariable variable=DevFeedName]$devopsFeedName" | ||
| echo "Using DevopsFeed = $devopsFeedName" | ||
| displayName: Setup DevOpsFeedName | ||
|
|
||
| - ${{ if eq(parameters.EnableTwineAuth, true) }}: | ||
| - task: TwineAuthenticate@0 | ||
| displayName: "Twine Authenticate to feed" | ||
| inputs: | ||
| artifactFeeds: $(DevFeedName) | ||
|
|
||
| - ${{ if eq(parameters.EnablePipAuth, true) }}: | ||
| - task: PipAuthenticate@1 | ||
| displayName: "Pip Authenticate to feed" | ||
| inputs: | ||
| artifactFeeds: $(DevFeedName) | ||
| onlyAddExtraIndex: false | ||
|
|
||
| - ${{ if eq(parameters.EnableUvAuth, true) }}: | ||
| - pwsh: | | ||
| if ($env:PIP_INDEX_URL) { | ||
| Write-Host "Found pip index URL: $($env:PIP_INDEX_URL)" | ||
| # UV_DEFAULT_INDEX is the canonical replacement for the deprecated UV_INDEX_URL (uv 0.4.23+). | ||
| # PIP_INDEX_URL is set by PipAuthenticate@1 and contains embedded credentials, which uv | ||
| # will use for Basic auth against the ADO feed (and its PyPI upstream) per astral-sh/uv#12651. | ||
| Write-Host "##vso[task.setvariable variable=UV_DEFAULT_INDEX]$($env:PIP_INDEX_URL)" | ||
| # Disable keyring so uv uses the URL-embedded credentials directly. | ||
| Write-Host "##vso[task.setvariable variable=UV_KEYRING_PROVIDER]disabled" | ||
| } else { | ||
| Write-Host "##[warning]PIP_INDEX_URL not set - uv will fall back to public PyPI." | ||
| } | ||
| # Force any managed Python downloads to go directly to GitHub releases | ||
| # rather than the default CDN (releases.astral.sh). | ||
| Write-Host "##vso[task.setvariable variable=UV_PYTHON_INSTALL_MIRROR]https://github.com/astral-sh/python-build-standalone/releases/download" | ||
| displayName: "Configure UV Authentication" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
chidozieononiwu marked this conversation as resolved.
Resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <packageSources> | ||
| <clear /> | ||
| <!-- Do not add any additional feeds if new packages are needed they need to come from our azure-sdk-for-net DevOps feed which has an upstream set to nuget.org --> | ||
| <add key="azure-sdk-for-net" value="https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json" /> | ||
| </packageSources> | ||
| <disabledPackageSources> | ||
| <clear /> | ||
| </disabledPackageSources> | ||
| </configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | ||
| https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
| <mirrors> | ||
| <mirror> | ||
| <id>azure-sdk-for-java</id> | ||
| <name>Azure Artifacts Maven Mirror</name> | ||
| <url>https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-java/maven/v1</url> | ||
| <mirrorOf>external:*</mirrorOf> | ||
| </mirror> | ||
| </mirrors> | ||
| </settings> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.