feat(CodeSigningPlugin): auto-embed public key into native project files#1381
Open
bartekkrok wants to merge 2 commits intocallstack:mainfrom
Open
feat(CodeSigningPlugin): auto-embed public key into native project files#1381bartekkrok wants to merge 2 commits intocallstack:mainfrom
bartekkrok wants to merge 2 commits intocallstack:mainfrom
Conversation
Add publicKeyPath and nativeProjectPaths options to CodeSigningPlugin. When publicKeyPath is set, the plugin automatically embeds the public key into iOS Info.plist and Android strings.xml during compilation, removing the need for manual setup. Also exports embedPublicKey as a standalone utility.
|
@bartekkrok is attempting to deploy a commit to the Callstack Team on Vercel. A member of the Team first needs to authorize it. |
🦋 Changeset detectedLatest commit: dda6146 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked to: #1323
Summary
Setting up code signing with
CodeSigningPluginrequired users to manually add the RSA public key to native projectfiles (
Info.pliston iOS andstrings.xmlon Android). This is error-prone, easy to forget, and creates amaintenance burden every time the key is rotated.
This PR adds two new optional config options —
publicKeyPathandnativeProjectPaths— that automate public keyembedding during the build:
When publicKeyPath is set the plugin:
The embedding logic lives in the new embedPublicKey.ts module, also exported publicly for standalone use.
Both platforms are idempotent — re-running the build updates the existing entry rather than duplicating it.
Test plan
Live demo iOS
Changes were tested on: https://github.com/callstack/super-app-showcase
Screen.Recording.2026-04-16.at.15.mp4