Skip to content

Merging internal commits for release/9.0.3xx - #54664

Merged
marcpopMSFT merged 21 commits into
dotnet:release/9.0.3xxfrom
vseanreesermsft:internal-merge-9.0.3xx-2026-06-09-1502
Jun 15, 2026
Merged

marcpopMSFT merged 21 commits into
dotnet:release/9.0.3xxfrom
vseanreesermsft:internal-merge-9.0.3xx-2026-06-09-1502

Conversation

@vseanreesermsft

Copy link
Copy Markdown
Contributor

No description provided.

Mirroring and others added 21 commits May 6, 2026 17:05
--client-temp must be passed because:
1. user process client may have a terminal with a different  TEMP env var or TMP setting
2. sever may try to resolve TEMP to sever TEMP that does not grant reading to client (needed for manifest path)
3. user process under local only privlleges is still is a concern even if SIDs match  after the point in time UAC and consolidating the --client-temp to be included within the UAC time window removes this concern
4. it is not possible to observe client temp from the server process with 100% authenticity
5. log temp resolution may fallback but falling back for the manifest path will cause a failure
6. the client and server should both always know about --client-temp because the same host is used to launch both
 7. confirmed with workloads code author no further risks we could consider adding it as an optional arg to elevate
Restrict Workloads Pipe Access

backport of https://dev.azure.com/dnceng/internal/_git/dotnet-sdk/pullrequest/60602?path=%2Fsrc%2FCli%2Fdotnet%2FInstaller%2FWindows%2FWindowsUtils.cs

file paths are slightly different but code changes should remain identical.

----
#### AI description  (iteration 1)
#### PR Classification
Security enhancement to restrict workload pipe access by implementing user-specific access controls and path validation to prevent unauthorized access and directory traversal attacks.

#### PR Summary
This PR enhances security for the workload installer by restricting IPC pipe access to the specific invoking user and adding comprehensive path validation to prevent traversal attacks.

- `WindowsUtils.cs`: Added `GetPipeClientIdentifier()` and `CreatePipeSecurity()` methods to restrict pipe access to the parent process's user SID instead of all authenticated users, plus added `ValidateLogFilePath()`, `ValidatePackagePath()`, and `ValidatePathComponent()` methods to prevent directory traversal attacks
- `NetSdkMsiInstallerServer.cs`: Updated pipe security configuration to use the new restricted access controls that limit connections to only the parent process's user
- `MsiPackageCache.cs`: Added path component validation for package IDs and versions to prevent path traversal when caching payloads
- `WindowsInstallerTests.cs`: Added 15 new test cases covering pipe security restrictions, path validation against traversal attacks, and sibling-prefix attacks
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
Replace expired PAT `$(dn-bot-dnceng-build-rw-code-rw)` with the federated access token `$(AzdoToken)` already minted by the `VmrSyncPipeline` service connection earlier in the pipeline.\n\nThe `get-federated-access-token.yml` step already runs for all internal builds and produces `$(AzdoToken)` via the `VmrSyncPipeline` WIF service connection. The internal VMR push step was still referencing the expired PAT variable instead of using this token.\n\nFixes: AB#10724

----
#### AI description  (iteration 1)
#### PR Classification
Authentication configuration update to use Workload Identity Federation (WIF) federated token instead of personal access token for internal VMR repository push operations.

#### PR Summary
This pull request updates the authentication mechanism for pushing changes to the internal dotnet-dotnet VMR repository by replacing the static personal access token with a dynamically generated federated token.

- `/eng/pipelines/templates/jobs/vmr-synchronization.yml`: Changed the `--azdev-pat` parameter from `$(dn-bot-dnceng-build-rw-code-rw)` to `$(AzdoToken)` to use WIF federated token for Azure DevOps authentication
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->


Related work items: dotnet#10724
…3 repositories

This pull request updates the following dependencies

[marker]: <> (Begin:Coherency Updates)
## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

[DependencyUpdate]: <> (Begin)

- **Coherency Updates**:
    - **Microsoft.NET.Workload.Emscripten.Current.Manifest-9.0.100**: from 9.0.16 to 9.0.17 (parent: Microsoft.NETCore.App.Runtime.win-x64)
    - **Microsoft.SourceBuild.Intermediate.emsdk**: from 9.0.16-servicing.26221.3 to 9.0.17-servicing.26258.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)

[DependencyUpdate]: <> (End)

[marker]: <> (End:Coherency Updates)


[marker]: <> (Begin:fc735b81-9fd6-4d18-b1be-525bf9fe3d19)
## From https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop
- **Subscription**: [fc735b81-9fd6-4d18-b1be-525bf9fe3d19](https://maestro.dot.net/subscriptions?search=fc735b81-9fd6-4d18-b1be-525bf9fe3d19)
- **Build**: [20260514.1](https://dev.azure.com/dnceng/internal/_build/results?buildId=2975597) ([314473](https://maestro.dot.net/channel/5128/azdo:dnceng:internal:dotnet-windowsdesktop/build/314473))
- **Date Produced**: May 15, 2026 6:29:00 AM UTC
- **Commit**: [9d53c54d7228c41da31238e1e2442d67c486cb39](https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop?_a=history&version=GC9d53c54d7228c41da31238e1e2442d67c486cb39)
- **Branch**: [refs/heads/internal/release/9.0](https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop?version=GBrefs/heads/internal/release/9.0)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [9.0.16 to 9.0.17][1]
     - Microsoft.WindowsDesktop.App.Ref
     - Microsoft.WindowsDesktop.App.Runtime.win-x64
  - From [9.0.16-servicing.26230.2 to 9.0.17-servicing.26264.1][1]
     - VS.Redist.Common.WindowsDesktop.SharedFramework.x64.9.0
     - VS.Redist.Common.WindowsDesktop.TargetingPack.x64.9.0

[1]: https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop/branches?baseVersion=GC7bad09c6a7b024bc98987a9fe2c66a79332bf8c5&targetVersion=GC9d53c54d7228c41da31238e1e2442d67c486cb39&_a=files

[DependencyUpdate]: <> (End)


[marker]: <> (End:fc735b81-9fd6-4d18-b1be-525bf9fe3d19)




[marker]: <> (Begin:8e22721a-e9f6-419b-9c3b-fbb0f0641e55)
## From https://dev.azure.com/dnceng/internal/_git/dotnet-runtime
- **Subscription**: [8e22721a-e9f6-419b-9c3b-fbb0f0641e55](https://maestro.dot.net/subscriptions?search=8e22721a-e9f6-419b-9c3b-fbb0f0641e55)
- **Build**: [20260514.16](https://dev.azure.com/dnceng/internal/_build/results?buildId=2975171) ([314446](https://maestro.dot.net/channel/5128/azdo:dnceng:internal:dotnet-runtime/build/314446))
- **Date Produced**: May 15, 2026 12:09:10 AM UTC
- **Commit**: [f2c8152eed158e72950025393fde498c90a57a6b](https://dev.azure.com/dnceng/internal/...
…dnceng/internal/dotnet-windowsdesktop

This pull request updates the following dependencies

[marker]: <> (Begin:Coherency Updates)
## Coherency Updates

The following updates ensure that dependencies with a *CoherentParentDependency*
attribute were produced in a build used as input to the parent dependency's build.
See [Dependency Description Format](https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#dependency-description-overview)

[DependencyUpdate]: <> (Begin)

- **Coherency Updates**:
    - **Microsoft.NET.Sdk.WindowsDesktop**: from 9.0.17-rtm.26264.8 to 9.0.17-rtm.26267.1 (parent: Microsoft.WindowsDesktop.App.Ref)
    - **Microsoft.Dotnet.WinForms.ProjectTemplates**: from 9.0.17-servicing.26264.2 to 9.0.17-servicing.26265.1 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64)
    - **Microsoft.DotNet.Wpf.ProjectTemplates**: from 9.0.17-rtm.26264.8 to 9.0.17-rtm.26267.1 (parent: Microsoft.WindowsDesktop.App.Runtime.win-x64)

[DependencyUpdate]: <> (End)

[marker]: <> (End:Coherency Updates)

[marker]: <> (Begin:fc735b81-9fd6-4d18-b1be-525bf9fe3d19)
## From https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop
- **Subscription**: [fc735b81-9fd6-4d18-b1be-525bf9fe3d19](https://maestro.dot.net/subscriptions?search=fc735b81-9fd6-4d18-b1be-525bf9fe3d19)
- **Build**: [20260518.1](https://dev.azure.com/dnceng/internal/_build/results?buildId=2978264) ([314888](https://maestro.dot.net/channel/5128/azdo:dnceng:internal:dotnet-windowsdesktop/build/314888))
- **Date Produced**: May 18, 2026 11:19:48 PM UTC
- **Commit**: [9c74c8784a90d64bcc5c5c552d5420eafb60fa4f](https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop?_a=history&version=GC9c74c8784a90d64bcc5c5c552d5420eafb60fa4f)
- **Branch**: [refs/heads/internal/release/9.0](https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop?version=GBrefs/heads/internal/release/9.0)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [9.0.17 to 9.0.17][1]
     - Microsoft.WindowsDesktop.App.Ref
     - Microsoft.WindowsDesktop.App.Runtime.win-x64
  - From [9.0.17-servicing.26264.1 to 9.0.17-servicing.26268.1][1]
     - VS.Redist.Common.WindowsDesktop.SharedFramework.x64.9.0
     - VS.Redist.Common.WindowsDesktop.TargetingPack.x64.9.0

[1]: https://dev.azure.com/dnceng/internal/_git/dotnet-windowsdesktop/branches?baseVersion=GC9d53c54d7228c41da31238e1e2442d67c486cb39&targetVersion=GC9c74c8784a90d64bcc5c5c552d5420eafb60fa4f&_a=files

[DependencyUpdate]: <> (End)


[marker]: <> (End:fc735b81-9fd6-4d18-b1be-525bf9fe3d19)
…dnceng/internal/dotnet-aspnetcore

This pull request updates the following dependencies

[marker]: <> (Begin:fccb84dc-5ab4-47fa-89b4-a043eabf59b7)
## From https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore
- **Subscription**: [fccb84dc-5ab4-47fa-89b4-a043eabf59b7](https://maestro.dot.net/subscriptions?search=fccb84dc-5ab4-47fa-89b4-a043eabf59b7)
- **Build**: [20260519.7](https://dev.azure.com/dnceng/internal/_build/results?buildId=2979108) ([315055](https://maestro.dot.net/channel/5128/azdo:dnceng:internal:dotnet-aspnetcore/build/315055))
- **Date Produced**: May 19, 2026 9:31:40 PM UTC
- **Commit**: [5edf41b9c09952f18e404ad38e25670991c1b513](https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore?_a=history&version=GC5edf41b9c09952f18e404ad38e25670991c1b513)
- **Branch**: [refs/heads/internal/release/9.0](https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore?version=GBrefs/heads/internal/release/9.0)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [9.0.17-servicing.26268.2 to 9.0.17-servicing.26269.7][1]
     - dotnet-dev-certs
     - dotnet-user-jwts
     - dotnet-user-secrets
     - Microsoft.AspNetCore.Analyzers
     - Microsoft.AspNetCore.App.Ref.Internal
     - Microsoft.AspNetCore.Components.SdkAnalyzers
     - Microsoft.AspNetCore.DeveloperCertificates.XPlat
     - Microsoft.AspNetCore.Mvc.Analyzers
     - Microsoft.AspNetCore.Mvc.Api.Analyzers
     - VS.Redist.Common.AspNetCore.SharedFramework.x64.9.0
     - Microsoft.SourceBuild.Intermediate.aspnetcore
  - From [9.0.17 to 9.0.17][1]
     - Microsoft.AspNetCore.App.Ref
     - Microsoft.AspNetCore.App.Runtime.win-x64
     - Microsoft.AspNetCore.Authorization
     - Microsoft.AspNetCore.Components.Web
     - Microsoft.AspNetCore.TestHost
     - Microsoft.Extensions.FileProviders.Embedded
     - Microsoft.Extensions.ObjectPool
     - Microsoft.JSInterop

[1]: https://dev.azure.com/dnceng/internal/_git/dotnet-aspnetcore/branches?baseVersion=GC5d6e3342e5d3b1d82f5ac41a027c00ae56f31ea2&targetVersion=GC5edf41b9c09952f18e404ad38e25670991c1b513&_a=files

[DependencyUpdate]: <> (End)


[marker]: <> (End:fccb84dc-5ab4-47fa-89b4-a043eabf59b7)
Copilot AI review requested due to automatic review settings June 9, 2026 22:02
@vseanreesermsft
vseanreesermsft requested review from a team as code owners June 9, 2026 22:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 merges servicing changes for the release/9.0.3xx train, combining dependency updates with Windows workload installer hardening (named-pipe ACL tightening and path validation) plus corresponding tests.

Changes:

  • Harden Windows workload MSI elevation IPC by restricting named-pipe access to the parent process user SID and adding safer path validation for manifests/packages/logs.
  • Pass the unelevated client temp directory to the elevated server (--client-temp) to support secure validation when client/server temp roots differ.
  • Flow updated dependency versions/feeds and adjust internal VMR sync pipeline auth variable.

Reviewed changes

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

Show a summary per file
File Description
test/dotnet.Tests/WindowsInstallerTests.cs Adds Windows-only tests covering pipe ACLs and path validation scenarios (traversal/sibling-prefix/system paths).
src/Cli/dotnet/Installer/Windows/WindowsUtils.cs Introduces Windows security/path utility helpers (pipe security, user SID lookup, manifest/log/package path validation).
src/Cli/dotnet/Installer/Windows/NativeMethods.cs Adds P/Invoke for OpenProcessToken to support resolving process user SIDs.
src/Cli/dotnet/Installer/Windows/MsiPackageCache.cs Validates package ID/version components and constrains manifest paths to allowed temp roots before caching.
src/Cli/dotnet/Installer/Windows/InstallerBase.cs Adds TrustedClientTempDirectory to share client temp root with validators.
src/Cli/dotnet/Installer/Windows/InstallClientElevationContext.cs Passes --client-temp to the elevated server process on UAC elevation.
src/Cli/dotnet/commands/dotnet-workload/install/NetSdkMsiInstallerServer.cs Replaces “Authenticated Users” pipe access with parent-user SID restricted ACLs via WindowsUtils.
src/Cli/dotnet/commands/dotnet-workload/install/MsiInstallerBase.cs Uses new validators for MSI log file location and cached package path checks.
src/Cli/dotnet/commands/dotnet-workload/elevate/WorkloadElevateCommandParser.cs Adds hidden --client-temp option to the elevate command.
src/Cli/dotnet/commands/dotnet-workload/elevate/WorkloadElevateCommand.cs Captures --client-temp (if provided) into InstallerBase.TrustedClientTempDirectory.
NuGet.config Adds/updates darc-managed internal/public feeds and disabled source entries.
eng/Versions.props Bumps multiple runtime/aspnetcore/windowsdesktop/wpf/winforms dependency versions to 9.0.17 servicing.
eng/Version.Details.xml Updates dependency versions and SHAs to match the new servicing builds.
eng/pipelines/templates/jobs/vmr-synchronization.yml Switches internal push PAT variable from dn-bot-dnceng-build-rw-code-rw to AzdoToken.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marcpopMSFT
marcpopMSFT enabled auto-merge June 9, 2026 23:57
@marcpopMSFT

Copy link
Copy Markdown
Member

/ba-g one unrelated test timeout

@marcpopMSFT
marcpopMSFT disabled auto-merge June 15, 2026 18:55
@marcpopMSFT
marcpopMSFT merged commit df11f85 into dotnet:release/9.0.3xx Jun 15, 2026
34 of 36 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Aug 7, 2026
@wtgodbe wtgodbe removed this from the 11.0-rc1 milestone Sep 2, 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.

5 participants