Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

Saved passwords: document the accepted DevTools autofill gap; fix the Vaultwarden test command

Lin (kwant bot)0550060cdc6f
diff --git a/docs/saved-passwords.md b/docs/saved-passwords.md
index 614769cc..c552beab 100644
--- a/docs/saved-passwords.md
+++ b/docs/saved-passwords.md
@@ -26,7 +26,7 @@ The built-in store protects against copies of the data folder. It does **not** p
- Showing a password needs the master password, not only the API token. The token sits in kwnt's data folder, where a bot with approvals off can read it. Five wrong master passwords in a row lock the vault.
- Every vault route is person-only. A bot's turn token gets 403; no token gets 401.
-**Known gap (open):** Chrome's DevTools port listens on loopback without authentication. A bot with a shell can attach to it and read a field kwnt has filled. Bitwarden can't close this. Closing it needs either `--remote-debugging-pipe` or no autofill while approvals are off.
+**Known gap (open, accepted 2026-10-20):** autofill stays on while approvals are off; Oleks decided this. Chrome's DevTools port listens on loopback without authentication, so with approvals off a bot with a shell can attach to it and read a field kwnt has just filled. This holds for both the built-in store and Bitwarden, because the leak is in the browser, not the store. Planned fix, on its own branch: start Chrome with `--remote-debugging-pipe` so there is no port to attach to.
## HTTP API (person only)
@@ -73,7 +73,8 @@ Vault:
```sh
docker run -d --rm --name kwnt-bwtest -p 127.0.0.1:18990:80 \
- -e SIGNUPS_ALLOWED=true -e SIGNUPS_VERIFY=false vaultwarden/server:latest
+ -e SIGNUPS_ALLOWED=true -e SIGNUPS_VERIFY=false -e I_REALLY_WANT_VOLATILE_STORAGE=true \
+ vaultwarden/server:latest
KWNT_TEST_VAULTWARDEN=http://127.0.0.1:18990 cargo test --test bitwarden_test
docker rm -f kwnt-bwtest
```
diff --git a/tests/bitwarden_test.rs b/tests/bitwarden_test.rs
index 52fe1d55..2db80a73 100644
--- a/tests/bitwarden_test.rs
+++ b/tests/bitwarden_test.rs
@@ -5,7 +5,8 @@
//! throwaway Vaultwarden with signups open:
//!
//! ```sh
-//! docker run -d --rm --name kwnt-bwtest -p 127.0.0.1:18990:80 -e SIGNUPS_ALLOWED=true vaultwarden/server
+//! docker run -d --rm --name kwnt-bwtest -p 127.0.0.1:18990:80 -e SIGNUPS_ALLOWED=true \
+//! -e I_REALLY_WANT_VOLATILE_STORAGE=true vaultwarden/server
//! KWNT_TEST_VAULTWARDEN=http://127.0.0.1:18990 cargo test --test bitwarden_test
//! ```
//!