-
Notifications
You must be signed in to change notification settings - Fork 745
[release/13.0] Remove .py and .js files from being signed (#13005) #13032
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
* Remove .py files from being signed Our python starter template has an Authenitcode signature block in its .py files. These aren't wanted because users are meant to change these templates. Fix dotnet#13004 * PR feedback
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13032Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 13032" |
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 prevents Python (.py) files in the Python starter template from being Authenticode-signed during the build process. These template files are intended to be modified by users, so signing them is inappropriate and causes issues when users make changes.
Key changes:
- Added exclusion for .py files from the signing configuration
We have .js files in our templates that are currently getting signed in our official builds. We don't want this, nor signing .py files. Exclude them both the same way - Update + CertificateName=None.
|
I was able to confirm that the packages produced from build https://dev.azure.com/dnceng/internal/_build/results?buildId=2844589 no longer have the signing blocks in the .py or .js files in our template package, but other files were signed. |
Backport of #13005 to release/13.0
Customer Impact
Our python starter template has an Authenitcode signature block in its .py and .js files. These aren't wanted because users are meant to change these templates.
We were also signing .js files in our aspire-starter template as well. Removing that as dotnet/aspnetcore doesn't sign its .js files either. This is only needed in the Windows Script Host.
Fix #13004
Testing
None yet. I need an official branch to test it, I guess.
Risk
Low. We don't have other .py files in our product. And the .js files are only loaded in a browser which doesn't verify the signature.
Regression?
No