-
Notifications
You must be signed in to change notification settings - Fork 317
[6.1] AKV Provider Strong Name Signing #3573
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
Conversation
* Make signing key path an argument to build and roslyn analyzers steps * Enable strong name signing on buddy (unofficial) builds * Add akv official job to solution file
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.
Pull Request Overview
This PR addresses a critical issue where official builds of the Azure Key Vault (AKV) provider were not being strong name signed due to a missing signing key path in the Roslyn analyzer step. The fix ensures that both the main build and Roslyn analyzer steps use the same signing configuration to maintain strong name signatures throughout the build process.
- Factors out the signing key path as a parameter to both build and Roslyn analyzer steps
- Updates the AKV provider project to enable signing for both Official and Buddy builds
- Adds diagnostics to help troubleshoot signing issues
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj | Extends signing configuration to include Buddy builds and reorganizes PropertyGroup structure |
Microsoft.Data.SqlClient.sln | Adds build job YAML file to solution items for better visibility |
roslyn-analyzers-akv-step.yml | Adds signingKeyPath parameter and passes it to MSBuild to ensure analyzer step maintains signing |
compound-build-akv-step.yml | Parameterizes signing key path and adds temporary diagnostic file copying |
build-akv-official-job.yml | Passes signing key path parameter to both build and analyzer steps |
... thought I removed that already 🤦♂️
Reminder to also update AKV NuGet package version alongside. |
4a6e656
Description
Addressing a high-priority issue where official builds of AKV provider are not strong name signed. This was a mistake in the new official pipeline, where the signing key path was not being provided to the Roslyn analyzer step of the official build job. Because the Roslyn analyzer step rebuilds the project (and replaces the build output), if this step does not perform signing, it will replace the strong name signed binaries with unsigned binaries.
This PR fixes this by 1) adding the signing key path variable to the Roslyn analyzer build arguments, and 2) factors out the signing key path to an argument to the main build and Roslyn analyzer steps.
Issues
Not sure if there is an issue that can be linked. But there's definitely an IcM about it.
Testing
See this build: https://sqlclientdrivers.visualstudio.com/ADO.Net/_build/results?buildId=123216&view=results
CI will still need to pass since it tweaks the signing behavior on non-official builds.