diff options
| author | salmonik <salmonik@tuta.io> | 2026-10-29 22:22:27 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-10-29 22:22:27 +0100 |
| commit | f30b1a519771ac49e2b03640e742fdb0a246bd81 (patch) | |
| tree | b9a78039ba55a364e73df5dc174320dc8222f5c3 /AGENTS.md | |
| parent | formatting (diff) | |
| download | zagan-bet-f30b1a519771ac49e2b03640e742fdb0a246bd81.tar.gz zagan-bet-f30b1a519771ac49e2b03640e742fdb0a246bd81.zip | |
v2.4.0: key stored credentials by certificate fingerprint
Diffstat (limited to 'AGENTS.md')
| -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 | ||
