Skip to content

Enable signature checks in the package downloader#25395

Merged
joeloff merged 3 commits into
dotnet:release/6.0.3xxfrom
joeloff:signcheck2
May 16, 2022
Merged

Enable signature checks in the package downloader#25395
joeloff merged 3 commits into
dotnet:release/6.0.3xxfrom
joeloff:signcheck2

Conversation

@joeloff

@joeloff joeloff commented May 13, 2022

Copy link
Copy Markdown
Member

Fixes #25377

The simple fix is to just pass VerifySignatures whenever a workload command instantiates NuGetPackageDownloader. That still leaves the risk of adding a new command and not passing it through in the future. Instead, all of that code was moved to the WorkloadCommandBase so that commands don't duplicate this.

In doing so I uncovered a number of other inconsistencies around the package download folders that vary significantly between commands and because the downloader depends on these values, it also needed to be refactored.

@joeloff joeloff requested review from baronfel, dsplaisted and gkulin May 13, 2022 04:21
@ghost ghost added the Area-Workloads label May 13, 2022
@joeloff

joeloff commented May 13, 2022

Copy link
Copy Markdown
Member Author

Some additional tests are pending until dotnet/runtime-assets#242 makes its way through the official CI build and we have a new test asset package available. Most of the testing remains manual because it requires a properly signed copy of dotnet.

@joeloff joeloff merged commit 94c3deb into dotnet:release/6.0.3xx May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants