Skip to content

Enforce trust levels on resource reads - #1810

Draft
HT154 wants to merge 1 commit into
apple:mainfrom
HT154:read-trust-levels
Draft

Enforce trust levels on resource reads#1810
HT154 wants to merge 1 commit into
apple:mainfrom
HT154:read-trust-levels

Conversation

@HT154

@HT154 HT154 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor
  • Add pkl.Command#Read class to trigger dynamic reads not subject to trust level checks during command option parsing.
  • Switch pkl.Base#Module to read the pkl.outputFormat property via a local external property since this is otherwise a trust level violation.

TODO:

  • test that untrusted reads fail
  • test that pkl.Command#Read works as expected
  • consider feature flagging and/or warn/enforce strategy/timing for this change
  • address existing problematic (converter) modules in pkl-pantry

Resolves #1645

@HT154
HT154 marked this pull request as draft August 3, 2026 23:45
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.

Apply trust levels to resource reads

1 participant