GeezerVison is showing github.com — fix(desktop): browser passkey builds no longer require a Clerk domain by rynorris · Pull Request #32207 · pingdotgg/t3code
Conversation
rynorris
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before this PR
Signed macOS builds always claim com.apple.developer.associated-domains. To fill it in, the build needs a Clerk RP domain (T3CODE_CLERK_PUBLISHABLE_KEY or T3CODE_CLERK_PASSKEY_RP_DOMAINS), and it throws MissingMacPasskeyDomainConfigurationError if it has none. Those domains only serve T3 Connect passkey sign-in. The in-app browser passkey bridge from #16952 doesn't use them. It needs com.apple.developer.web-browser.public-key-credential and nothing else.
As a result, a build that has T3 Connect off but holds a profile with the browser passkey entitlement can't enable browser passkeys. We hit this in an internal fork that turns off T3 Connect: we want the bridge so security keys work in the in-app browser (the problem in #30599). Today our only option is a placeholder Clerk domain.
After this PR
The packager claims Associated Domains only when the provisioning profile grants it. It already works this way for the Touch ID keychain group and the browser passkey entitlement. A Clerk domain is required only in that case. A profile without Associated Domains now signs with just the entitlements it grants.
Why no prior issue
This is a small, focused fix under CONTRIBUTING's exception for obvious bugs. The defect: signed builds demand a Clerk domain for an entitlement the profile may not grant, which blocks browser passkeys. Profiles that grant Associated Domains, like upstream's, behave the same, and no product behavior changes.
Notes
- Upstream releases should behave the same. Their profile grants Associated Domains, so a missing Clerk config still fails the build loudly, which avoids the problem raised about fix(desktop): require passkey signing material only when Clerk is configured #8136. The build log line now also lists the associated domains.
- This assumes Developer ID profiles that grant Associated Domains include
com.apple.developer.associated-domains (usually *) in their Entitlements. Please check the log line on the next signed release.
- This also fixes a smaller case: a profile without Associated Domains plus a Clerk domain used to produce an app that macOS refuses to launch.
MissingMacPasskeyRpDomainError could no longer be reached, so it's removed.
- Evidence: the updated cases in
scripts/build-desktop-artifact.test.ts fail on main with MissingMacPasskeyDomainConfigurationError and pass with this change. I didn't run a signed build with a real Apple profile.
🤖 Generated by Claude Code (Claude Opus 5.5)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Signed macOS builds always claimed Associated Domains, so they required a
Clerk RP domain even when the provisioning profile only grants the
in-app browser passkey entitlement. Claim Associated Domains only when the
profile grants it, as the packager already does for Touch ID and browser
passkeys, and require a Clerk domain only then.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Approved at d036a20
Macroscope's review found this PR approvable — Signed macOS builds can omit Clerk domains when their provisioning profile does not grant Associated Domains. Profiles that grant the capability still require domains, keeping the change limited to profile-compatible packaging.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
macOS passkey signing no longer requires RP domains when the provisioning profile does not grant Associated Domains. When the profile grants that entitlement, signing requires configured RP domains and includes them in the generated WebAuthn entitlements.
Changes: macOS passkey signing
| Layer / File(s) |
Summary |
Optional RP-domain configuration scripts/build-desktop-artifact.ts, scripts/build-desktop-artifact.test.ts |
Configuration resolution can return an empty RP-domain list when no domain source is configured. It deduplicates configured domains and removes the error for an empty list. Tests cover empty configuration and revised error messages. |
Profile-driven entitlement generation scripts/build-desktop-artifact.ts, scripts/build-desktop-artifact.test.ts, .env.example, docs/operations/release.md |
Entitlement resolution reads the Associated Domains grant from the provisioning profile. It returns configured domains only when the profile grants them, and the plist includes webcredentials: entries only when domains are present. Tests and signing notes cover profiles without the grant. |
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Sequence Diagram(s)
sequenceDiagram
participant Build as DesktopArtifactBuild
participant Profile as ProvisioningProfile
participant Resolver as resolveMacWebAuthnEntitlements
participant Renderer as renderMacPasskeyEntitlements
Build->>Profile: Read provisioning profile
Build->>Resolver: Pass profile and configuration with RP domains
Resolver-->>Build: Return resolved Associated Domains
Build->>Renderer: Pass app and team IDs with resolved entitlements
Loading
Possibly related issues
pingdotgg/t3code#30599 — This change permits signed builds with the browser passkey entitlement without Associated Domains. It does not add the PIN handling described in the issue.
Suggested labels: bugfix
Suggested reviewers: t3dotgg
Merge Risk: Minimal · up to d036a
-
No actionable merge-blocking issue is established; proceed with normal build and signing checks.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title describes the change. A Clerk domain is still required when the profile grants Associated Domains. |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
| Description check |
 |
The description covers the problem, change, scope, verification results, and verification limits. Its headings differ from the repository template. |
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Tip
🎯 Customize your risk assessments
-
Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.
✅ Automatic approvals, with your rules
-
Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between b90e554 and d036a20.
Files selected for processing: 4
-
.env.example
docs/operations/release.md
scripts/build-desktop-artifact.test.ts
scripts/build-desktop-artifact.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Reviewers
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
needs-rebase
Conflicts with its base branch. Closes after 7 days with no activity.
size:M
30-99 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|