decouples webgpu ep version from foundry local version#805
Open
prathikr wants to merge 4 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR decouples the WebGPU Execution Provider version from the Foundry Local SDK version by switching from a custom CDN manifest-based download to pulling the WebGPU EP directly from NuGet.org. This enables the EP to be updated independently, using NuGet's flat-container V3 API for version resolution and package download, with CMS/PKCS#7 author signature verification replacing the previous SHA-256 hash verification.
Changes:
- Replaced the custom manifest-based download flow in
webgpu_ep_bootstrapper.ccwith NuGet V3 flat-container resolution: discovers the package base address from the NuGet service index, resolves the latest stable version, and downloads the.nupkgdirectly. - Introduced OpenSSL-based NuGet author signature verification (
VerifyMicrosoftNuGetAuthorSignature) inep_utils.ccthat checks the CMS signature chain against system trust stores (CryptoAPI on Windows, OpenSSL X509 store on Linux/macOS) and validates the "Microsoft Corporation" signer organization. - Moved the SHA-256 hash verification logic locally into
cuda_ep_bootstrapper.cc(asVerifyCudaPackage) since the sharedVerifyEpPackageutility was removed in favor of the NuGet-specific verification approach.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
sdk_v2/cpp/src/ep_detection/webgpu_ep_bootstrapper.cc |
Replaces CDN manifest with NuGet V3 flat-container resolution; adds version-file based caching and signature verification before extraction |
sdk_v2/cpp/src/ep_detection/ep_utils.h |
Replaces VerifyEpPackage API with ExtractNuGetRuntimePayload and VerifyMicrosoftNuGetAuthorSignature |
sdk_v2/cpp/src/ep_detection/ep_utils.cc |
Full rewrite: implements NuGet runtime payload extraction and CMS signature verification using OpenSSL + CryptoAPI |
sdk_v2/cpp/src/ep_detection/cuda_ep_bootstrapper.cc |
Inlines SHA-256 verification as VerifyCudaPackage since the shared utility was removed |
sdk_v2/cpp/CMakeLists.txt |
Adds find_package(OpenSSL REQUIRED) and links OpenSSL::Crypto |
added 2 commits
June 16, 2026 10:14
…m/microsoft/Foundry-Local into prathikrao/webgpu-plugin-ep-nuget
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
pulls webgpu plugin ep from nuget.org