Skip to content

Conversation

@eerhardt
Copy link
Member

@eerhardt eerhardt commented Nov 18, 2025

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

* 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
Copilot AI review requested due to automatic review settings November 18, 2025 16:49
@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2025

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 13032

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 13032"

Copilot finished reviewing on behalf of eerhardt November 18, 2025 16:49
Copy link
Contributor

Copilot AI left a 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.
@eerhardt eerhardt changed the title [release/13.0] Remove .py files from being signed (#13005) [release/13.0] Remove .py and .js files from being signed (#13005) Nov 18, 2025
@eerhardt eerhardt added the Servicing-consider Issue for next servicing release review label Nov 19, 2025
@eerhardt eerhardt requested a review from joperezr November 19, 2025 16:30
@joperezr joperezr merged commit 9022848 into dotnet:release/13.0 Nov 21, 2025
296 checks passed
@eerhardt
Copy link
Member Author

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.

This was referenced Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Servicing-consider Issue for next servicing release review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants