Repository navigation
Commit e3f7d2d
committed
docs(agents): add signature and certificate verification rules
Three rules a patch author cannot recover from the code alone, all three
found by review rounds on #224 and #236:
Anchor the verifying key outside the artifact. Deriving it from a field of
the object under verification proves self-consistency, not authenticity,
and identities here are permissionless. Found on #236 in the gl client and
again on #224 in the server-side twin, where a self-signed certificate
verified against an unauthenticated route.
Drive the accepting verdict in a test. #224's verify endpoint shipped with
sixteen tests, every one asserting the invalid path, which left it unable
to observe a forged artifact being accepted.
Treat a signed payload's field set as a versioned format. #224 grew it from
seven fields to thirteen with no discriminator and no fallback, so every
certificate issued before it now reports as tampered.1 parent 8397a4a commit e3f7d2d
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
0 commit comments