-
Notifications
You must be signed in to change notification settings - Fork 375
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
Open
chidozieononiwu
wants to merge
3
commits into
microsoft:main
Choose a base branch
from
chidozieononiwu:enforceCFSClean
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+82
−0
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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,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
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 ('$(Build.Repository.Name)' -eq 'Azure/azure-sdk-for-python') { | ||
| # 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' |
17 changes: 17 additions & 0 deletions
17
eng/common/pipelines/templates/steps/maven-authenticate.yml
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'll also probably need all of those for typespec-azure |
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' |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nuget.config