S010: note on leftover keyring items

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-11-25 05:58:56 -06:00
commit e2f80d74e8

View file

@ -113,7 +113,7 @@ Verified: `--test auth` green (21: redirect leaks, store, logs and arguments sea
- `Site` (in `settings.sites`): `pattern`, `secret`, `max_connections`, `speed_limit`, `user_agent`, `proxy`, `folder`, `certificate`. `sites.rules(&url)` is what counts for a link: `folder` is for the Add dialog, `speed_limit` for S009.
- `secrets.save(name, host label, &Secret{home, login, cookies, headers}) -> Kept`; show `Kept::words()` when there are any. Put `name` in `Site::secret` or `Task::secret`; a task's secret needs `home` = its link. `auth::take_login(link)` takes a login out of a link before it is stored. `sites.save_proxy_login(proxy, login)`.
- A proxy is `system`, `direct`, `http://…`, `https://…` or `socks5://…`. `sites.trust.refused(host)` is the certificate to put in `Site::certificate` when the user says so.
Not done: the exception shows a fingerprint only (no issuer or dates); proxies that ask for anything but a plain login; FTP logins; connections of a host are still first come, first served. Never tried against the real keyring, portal, servers or proxies.
Not done: the exception shows a fingerprint only (no issuer or dates); proxies that ask for anything but a plain login; FTP logins; connections of a host are still first come, first served; nothing deletes a task's keyring item yet, when the task goes for good or gets another `secret` (Edit, `Command::Continue`): whoever first saves task secrets (the connector) must add that, and keep items another task shares (KeepBoth). Never tried against the real keyring, portal, servers or proxies.
Seen: until fixed, a test's `dbus-daemon --session` started real services from the system's list (gnome-keyring's starter found the running one and ended; portal, gvfs). No secret was read or written, nothing was left over. `auth.rs` has a bus without services; `recover.rs` still has the old one, but asks for no such names. Boxes were ticked together at the end, against rule 3.
## Later