Repository navigation
ci: grant allow-dyld-environment-variables in the macOS signing profile (tebako#1117) - #110
Merged
Merged
Conversation
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
had a problem deploying
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Failure
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 07:43 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:14 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:14 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:14 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:14 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:14 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:14 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:14 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:14 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
temporarily deployed
to
windows-signing
November 25, 2026 08:16 — with
GitHub Actions
Inactive
ronaldtse
marked this pull request as ready for review
November 25, 2026 09:12
This branch was previously deployed
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.
macOS entitlements: the allow-dyld-environment-variables grant (tebako#1117 — the python cell)
The audit verdict
tebako#1117's per-factory question: does the runtime exe (a) re-exec with
DYLD_INSERT_LIBRARIESarmed AND (b) need the shim for core IO visibility? For this factory both answers are YES — the shape is tebako-runtime-r#5's exactly:build/resources/tebako_python_main.c(the fs TU) boots the driver in-process, then re-execs the exe with the driver-armed env —DYLD_INSERT_LIBRARIESnaming the materialized in-imagelibtfs_preload.dylib(README's two-incarnation composition).So the sign profile must carry
com.apple.security.cs.allow-dyld-environment-variables, and today it does not.Why the omission never fired (the issue's "works on darwin-23" cell)
Every python runtime published to date ships unsigned — verified on the published v0.3.5
macos-arm64exe:flags=0x20002 (adhoc,linker-signed), no TeamIdentifier;APPLE_SIGNING_ENABLEDhas never been armed in this repo. dyld stripsDYLD_INSERT_LIBRARIESonly for hardened-runtime targets, so an adhoc exe keeps the insertion on every macOS generation. That — and nothing else — is why the pydata demo ran green on darwin-23 (native extensions reading in-image data). This is the "DYLD not stripped for this profile shape" answer the issue names as fragile: the day the signing gate arms, the same bytes take the hardened runtime and the R#5 class fires on macOS 14. The grant therefore lands now, while the legs still ship unsigned — ahead of the gate.The evidence (darwin-23 = macOS 14.1.1, 23B81, arm64)
TEBAKO_RUNTIME_IMAGE=… exe -c 'import json,zlib,ssl; open(sys.prefix+"/lib/python3.14/json/__init__.py","rb").read()'--options runtimewith the CURRENT two-key profile, same probeModuleNotFoundError: No module named 'encodings'(the stripping, reproduced — python's analog of R's "unable to open the base package")allow-dyld-environment-variablesThe change
ci/runtime.entitlementsgainscom.apple.security.cs.allow-dyld-environment-variableswith the load-bearing rationale (why the re-exec needs it, whydisable-library-validationnever covered it, why it lands ahead of the signing gate).ci/macos-sign-notarize-runtime.sh— the embedded-profile check now requires three<true/>values AND greps each key by name (r#6's hardening: no macos-15 runner can police a missing grant at exec time — its dyld tolerates the omission — so the profile is asserted statically, in-leg)..github/workflows/_build-platform.yml— the sign step's comment stops re-spelling the pair (the enumeration lives in the profile, asserted by the script).docs/build-chain.md(new) — the audit's required mechanism record: the shape, the unsigned-shipping explanation, the A/B evidence table, the policing rationale.README.md— the re-exec section names the entitlement plane and points at the record.A macOS-14 exec canary leg in the publish acceptance (the R factory's
publish.ymlshape) is the named follow-up — the boot smoke'sbootscenario already carries the shim-service probe (stdlib imports off the mount), so the canary is a runner pin, not new probe code.Verification
plutil -lint ci/runtime.entitlements— OK.bash -n ci/macos-sign-notarize-runtime.sh— OK.bundle exec rspec— 95 examples, 0 failures.bundle exec scripts/check_contract.rb— validates.Draft — per the ecosystem rule, nothing merges without the owner's explicit go-ahead.