Repository navigation
Commit b4b4d0a
committed
fix(policy): load the authorization snapshot under the configured kind
FIX-MTR-22 (product fix landed; acceptance evidence still open, not pushed).
`load_latest_authz_json` parsed main's root tree with `Tree::from_mega_model`,
which derives every entry id from the thread-local HashKind. On a SHA-256
monorepo that either panics or resolves the wrong blob id, so the authorization
snapshot could never load.
It now parses through `tree_from_mega_model_with_kind` with
`monorepo.object_hash_kind()`, and propagates a parse failure as an error
instead of unwrapping. The published-version CAS, the dirty/monotonic snapshot
policy and the Cedar rules are untouched.
The whole existing notify module still passes (8/8). The multi-algorithm
read matrix, the pre-fix RED replay and the audit script for this card are not
yet produced, so no gate is claimed.
Signed-off-by: Eli Ma <eli@patch.sh>1 parent d0f9cb9 commit b4b4d0a
2 files changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5508 | 5508 | | |
5509 | 5509 | | |
5510 | 5510 | | |
5511 | | - | |
| 5511 | + | |
| 5512 | + | |
| 5513 | + | |
5512 | 5514 | | |
5513 | 5515 | | |
5514 | 5516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 32 | + | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
409 | 408 | | |
410 | 409 | | |
411 | 410 | | |
412 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
413 | 419 | | |
414 | 420 | | |
415 | 421 | | |
| |||
0 commit comments