Repository navigation
Commit e170b0a
feat(security): lock package-declared permission sets at the save door; clone to customize (#11702)
Maintainer ruling 2026-08-24 (verbatim, untranslated):
「同意 第一步(创业阶段,Salesforce 式)」 — step 1: lock the base, clone to
customize.
A Studio/API save targeting a package-declared permission set is refused at the
server, with a message that names the sanctioned path. Previously the data door
translated the write and left the refusal to the metadata protocol's ADR-0005
tier gate — which is exactly what the documented OS_METADATA_WRITABLE=permission
operator hatch switches off, so with the hatch open there was no refusal at all
and the save minted a sys_metadata overlay of a packaged set that boot
reconciliation then re-projected on every boot, forever.
Provenance is decided from the engine SchemaRegistry — the one source this
plugin already calls "package-declared" — never from a name-keyed page over
sys_permission_set, whose unscoped cap truncates into a false "absent" (#11518,
untouched here). Fail-closed: a read that cannot answer refuses the save.
Not narrowed: ordinary org-owned sets, the activate/deactivate column writes,
and a managed_by:'package' row with no artifact behind it (ADR-0094 D5-R's
surviving allowRuntimeCreate neighbour). Each is pinned as a control.
Existing forks get a detection READING at boot — count and names, warned loudly,
reaping nothing. It reads sys_metadata directly rather than `customized`, which
is forced false on the exact confounded shape the field report measured.
Claude-Session: https://claude.ai/code/session_01APWX2AwT3a4xDcjPCe8bk4
Co-authored-by: Claude <noreply@anthropic.com>1 parent b040ed3 commit e170b0a
9 files changed
Lines changed: 1619 additions & 13 deletions
File tree
- .changeset
- packages/plugins/plugin-security/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
0 commit comments