GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@rynorris rynorris commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

All reactions
Ryan Norris @claude
fix(desktop): browser passkey builds no longer require a Clerk domain
d036a20
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]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 6, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 6, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 4

Check name Status Explanation
Title check Passed The title describes the change. A Clerk domain is still required when the profile grants Associated Domains.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed 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)

  • Create a new PR
  • 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

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: b90e554
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 28692e57-d9cf-47fd-ba54-dcd3ffa6fb92
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Wladefant

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the needs-rebase Conflicts with its base branch. Closes after 7 days with no activity. label Nov 24, 2026

This branch has not been deployed

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

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes
+1 more reviewer
@Wladefant Wladefant Wladefant left review comments
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.

Projects

None yet

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.

2 participants

@rynorris @Wladefant
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.