Skip to content

Sign NativeAOT'd aspnetcore dotnet tools with MacDeveloperHarden - #7217

Merged
akoeplinger merged 1 commit into
mainfrom
fix-signed-build
Jun 25, 2026
Merged

akoeplinger merged 1 commit into
mainfrom
fix-signed-build

Conversation

@akoeplinger

Copy link
Copy Markdown
Member

The dotnet-dev-certs, dotnet-user-secrets, and dotnet-user-jwts tools are NativeAOT-compiled native executables on macOS, but they were not being signed with the MacDeveloperHarden certificate. As a result, Apple notarization failed with errors that the binaries were not signed, the signature did not include a secure timestamp, and the executables did not have the hardened runtime enabled.

Add them to the FileSignInfo list alongside the existing Roslyn (csc/vbc/ VBCSCompiler) and MSBuild apphost entries.

Fixes #7194

The dotnet-dev-certs, dotnet-user-secrets, and dotnet-user-jwts tools are
NativeAOT-compiled native executables on macOS, but they were not being
signed with the MacDeveloperHarden certificate. As a result, Apple
notarization failed with errors that the binaries were not signed, the
signature did not include a secure timestamp, and the executables did not
have the hardened runtime enabled.

Add them to the FileSignInfo list alongside the existing Roslyn (csc/vbc/
VBCSCompiler) and MSBuild apphost entries.

Fixes #7194

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings June 12, 2026 17:28
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team June 12, 2026 17:28
@akoeplinger

akoeplinger commented Jun 12, 2026 •

Copy link
Copy Markdown
Member Author

@baronfel @DamianEdwards let's fix this here to unblock the VMR signed build

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the SDK signing configuration so the macOS NativeAOT-built ASP.NET Core dotnet tools are signed with the hardened runtime certificate, addressing Apple notarization failures for these bundled executables.

Changes:

  • Adds dotnet-dev-certs, dotnet-user-secrets, and dotnet-user-jwts to the macOS FileSignInfo list using the MacDeveloperHarden certificate.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akoeplinger
akoeplinger enabled auto-merge (squash) June 12, 2026 21:02
@DamianEdwards

Copy link
Copy Markdown
Member

@akoeplinger seems this will require updates to #7131 too?

@akoeplinger

akoeplinger commented Jun 15, 2026 •

Copy link
Copy Markdown
Member Author

@DamianEdwards yes any native binary we ship on macOS must be signed. I don't care whether we get this PR in or merge it into #7131 :)

@akoeplinger
akoeplinger merged commit ca95bef into main Jun 25, 2026
12 checks passed
@akoeplinger
akoeplinger deleted the fix-signed-build branch June 25, 2026 08:20
@akoeplinger

Copy link
Copy Markdown
Member Author

/backport to release/11.0.1xx-preview6

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/11.0.1xx-preview6 (link to workflow run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Operational Issue]: NativeAOT'd executables in dotnet sdk need to be signed and have hardened runtime enabled

4 participants