Commit 9e9f03a
fix(plugin-auth): refuse a self-registration grant on a malformed permission-set row, and remove the 14 dead find() envelope limbs behind it (#15827)
* wip(plugin-auth): remove the dead {records}/{data} envelope limbs, refuse on a malformed permission-set row
14 union-normalizer blocks (13 `records`-limb, 1 `data`-limb), all reading the
same concrete engine: the ObjectQL instance registered as the `objectql`/`data`
kernel service. Driven rather than inferred — every read answers a bare array.
The `settleSelfRegistrationGrant` block is the opposite defect (#15092's DROP
shape) and is fixed in the opposite direction: its trailing filter no longer
silently drops a malformed row.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XpTx2tbq3pZRYAdoGt6E6Y
* wip(plugin-auth): pin the concrete find() shape per block, and the DROP fix's direction
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XpTx2tbq3pZRYAdoGt6E6Y
* wip(plugin-auth): changeset, ablation record, unused import
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XpTx2tbq3pZRYAdoGt6E6Y
* fix(plugin-auth): state the Case D refusal cost, pin the org-stamped wrong grant, correct two counts
- changeset: name the family that now gets a refusal where it previously got a
grant (an active, correctly-named row with a missing/blank id — including a
malformed GLOBAL row beside a well-formed org-scoped one), what it now sees,
and that repairing or deleting the row restores the grant with no code change.
- the wrong-GRANT pin now RESOLVES an organization via `getTenancy`, so it drives
the shape that actually bit: `ps_global` stamped `organization_id: 'org_1'`.
Asserted by column, not only by row count.
- counts corrected: four guard-clause spellings (not five — the fifth match was
`member-role-canonical`'s `raw.join(',')`, a different helper); and this
package has 47 `.find(` sites in non-test source, a count that already
includes `Array#find` (the earlier "~140" was unmeasured). Also "four local
engine ports" -> "three", which is what that sentence names.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XpTx2tbq3pZRYAdoGt6E6Y
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 384a573 commit 9e9f03a
12 files changed
Lines changed: 613 additions & 77 deletions
File tree
- .changeset
- packages/plugins/plugin-auth/src
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4180 | 4180 | | |
4181 | 4181 | | |
4182 | 4182 | | |
4183 | | - | |
| 4183 | + | |
4184 | 4184 | | |
4185 | 4185 | | |
4186 | | - | |
4187 | 4186 | | |
4188 | 4187 | | |
4189 | 4188 | | |
| |||
4256 | 4255 | | |
4257 | 4256 | | |
4258 | 4257 | | |
4259 | | - | |
| 4258 | + | |
4260 | 4259 | | |
4261 | 4260 | | |
4262 | 4261 | | |
4263 | 4262 | | |
4264 | 4263 | | |
4265 | 4264 | | |
4266 | | - | |
4267 | 4265 | | |
4268 | 4266 | | |
4269 | 4267 | | |
| |||
4340 | 4338 | | |
4341 | 4339 | | |
4342 | 4340 | | |
4343 | | - | |
| 4341 | + | |
4344 | 4342 | | |
4345 | 4343 | | |
4346 | 4344 | | |
4347 | | - | |
4348 | 4345 | | |
4349 | 4346 | | |
4350 | 4347 | | |
| |||
4382 | 4379 | | |
4383 | 4380 | | |
4384 | 4381 | | |
4385 | | - | |
4386 | | - | |
| 4382 | + | |
4387 | 4383 | | |
4388 | 4384 | | |
4389 | 4385 | | |
| |||
4606 | 4602 | | |
4607 | 4603 | | |
4608 | 4604 | | |
4609 | | - | |
4610 | | - | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
4611 | 4622 | | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
4612 | 4635 | | |
4613 | 4636 | | |
4614 | 4637 | | |
| |||
4623 | 4646 | | |
4624 | 4647 | | |
4625 | 4648 | | |
4626 | | - | |
| 4649 | + | |
4627 | 4650 | | |
4628 | 4651 | | |
4629 | 4652 | | |
4630 | | - | |
4631 | | - | |
4632 | | - | |
4633 | | - | |
4634 | | - | |
4635 | 4653 | | |
4636 | 4654 | | |
4637 | 4655 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
| |||
179 | 183 | | |
180 | 184 | | |
181 | 185 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
| |||
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
206 | | - | |
207 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 101 | | |
104 | 102 | | |
105 | 103 | | |
| |||
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
133 | 129 | | |
134 | 130 | | |
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
144 | 138 | | |
145 | 139 | | |
146 | 140 | | |
147 | 141 | | |
148 | 142 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
155 | 147 | | |
156 | 148 | | |
157 | 149 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
146 | 145 | | |
147 | 146 | | |
148 | 147 | | |
| |||
0 commit comments