Repository navigation
Commit 20560da
committed
test(stack-encrypt): a keyset scope refuses a target value from another keyset
Review of #1095: the resolver opens a target value through the client,
which opens every keyset's values, and the lowering's `confine` is the only
thing that holds it to the scope's keyset. No test used a second keyset on
a target field, so removing `scoped_to` there would have let one tenant's
cipher open another's column with every test green. The new test seals a
plan of one target field under acme and opens it under globex: ForeignKeyset
before any key is retrieved; acme's own scope still opens it.
Claude-Session: https://claude.ai/code/session_01V3WFXwax4J3uecpFEJ6yHc1 parent 2d5daee commit 20560da
1 file changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4416 | 4416 | | |
4417 | 4417 | | |
4418 | 4418 | | |
| 4419 | + | |
| 4420 | + | |
| 4421 | + | |
| 4422 | + | |
| 4423 | + | |
| 4424 | + | |
| 4425 | + | |
| 4426 | + | |
| 4427 | + | |
| 4428 | + | |
| 4429 | + | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
| 4433 | + | |
| 4434 | + | |
| 4435 | + | |
| 4436 | + | |
| 4437 | + | |
| 4438 | + | |
| 4439 | + | |
| 4440 | + | |
| 4441 | + | |
| 4442 | + | |
| 4443 | + | |
| 4444 | + | |
| 4445 | + | |
| 4446 | + | |
| 4447 | + | |
| 4448 | + | |
| 4449 | + | |
| 4450 | + | |
| 4451 | + | |
| 4452 | + | |
| 4453 | + | |
| 4454 | + | |
| 4455 | + | |
| 4456 | + | |
| 4457 | + | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
| 4461 | + | |
| 4462 | + | |
| 4463 | + | |
4419 | 4464 | | |
4420 | 4465 | | |
4421 | 4466 | | |
| |||
0 commit comments