diff options
Diffstat (limited to '')
| -rw-r--r-- | AGENTS.md | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -74,6 +74,12 @@ | |||
| 74 | ## TLS / TOFU | 74 | ## TLS / TOFU |
| 75 | - See `src/tofu.rs` for the trust model. The fingerprint is over the | 75 | - See `src/tofu.rs` for the trust model. The fingerprint is over the |
| 76 | certificate's SPKI, not the whole certificate. | 76 | certificate's SPKI, not the whole certificate. |
| 77 | - Credentials are keyed by the SPKI fingerprint, not by address: one login | ||
| 78 | covers every address that presents the same key. Never look credentials up | ||
| 79 | by host. | ||
| 80 | - `forget_host` removes one address. Drop the credential only when no address | ||
| 81 | with that fingerprint remains, or two addresses for one server would stop | ||
| 82 | sharing a login. | ||
| 77 | - `save_host` must not wipe the fingerprint column. Use `ON CONFLICT ... | 83 | - `save_host` must not wipe the fingerprint column. Use `ON CONFLICT ... |
| 78 | DO UPDATE SET last_used` — never `INSERT OR REPLACE`. | 84 | DO UPDATE SET last_used` — never `INSERT OR REPLACE`. |
| 79 | 85 | ||
