summaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-10-29 22:22:27 +0100
committersalmonik <salmonik@tuta.io>2026-10-29 22:22:27 +0100
commitf30b1a519771ac49e2b03640e742fdb0a246bd81 (patch)
treeb9a78039ba55a364e73df5dc174320dc8222f5c3 /AGENTS.md
parentformatting (diff)
downloadzagan-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.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 3f96b7b..2a70ba2 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -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