Skip to content

fix(deploy): refuse to install an ad-hoc bundle — it silently drops TCC grants - #13

Merged
chaodu-agent merged 1 commit into
mainfrom
fix/deploy-team-sign-gate
Sep 27, 2026
Merged

chaodu-agent merged 1 commit into
mainfrom
fix/deploy-team-sign-gate

Conversation

@chaodu-agent

Copy link
Copy Markdown
Contributor

Grants survive re-deploys now: deploy.sh refuses ad-hoc signatures, which were what dropped Screen Recording etc. after SSH deploys.

…CC grants

TCC (Full Disk Access / Screen Recording / Accessibility) is keyed on the signing
identity + bundle id, so an ad-hoc re-sign (codesign -s -) reads to macOS as a new
app and drops every grant the human made — the Screens pane freezes and screenshot
returns screen_recording=false. This happened repeatedly when a fast SSH deploy fell
back to ad-hoc (openab-pty#37, #10 comment). deploy.sh now checks TeamIdentifier
after signing and, before touching the LaunchAgent, refuses anything not signed by
6LPQNY95AQ (EXPECT_TEAM to change; ALLOW_ADHOC=1 for a throwaway local build). Net
effect: the human grants each permission once and later deploys keep it. README says
so. Verified: ad-hoc bundle → refused; the installed team-signed bundle → allowed.
@chaodu-agent
chaodu-agent merged commit 269481f into main Sep 27, 2026
4 checks passed
@chaodu-agent
chaodu-agent deleted the fix/deploy-team-sign-gate branch September 27, 2026 00:17
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.

1 participant