feat(bird): read X cookies from Brave only
Bird 0.8.0 asks Keychain for Chrome Safe Storage, but Brave stores its key under Brave Safe Storage, so the reader fails before it can use Brave. Manage the Bird config in Nix and add a wrapper at ~/.pi/agent/bin/bird. The wrapper decrypts auth_token and ct0 from Brave cookie database with the Brave Safe Storage key and passes them to bird as env vars. It has no browser fallback, writes no Keychain item, and never opens the credentials file. Add an end-to-end shell check with a fake Brave cookie source and keychain. The check fails before the wrapper exists and passes after implementation.
This commit is contained in:
1 parent
fd96dc6dc0
commit
aae4dfd6d0
8 files changed
+413
-9
No files matched your search
@@ -0,0 +1,9 @@
|
||||
{
|
||||
// Bird calls its Chromium cookie reader "chrome". This profile path points
|
||||
// that reader at Brave only. Do not add Safari or Firefox sources.
|
||||
// The ~/.pi/agent/bin/bird wrapper supplies the cookies itself from Brave
|
||||
// Safe Storage, so bird never asks Keychain for Chrome Safe Storage.
|
||||
cookieSource: "chrome",
|
||||
chromeProfileDir: "/Users/laptran/Library/Application Support/BraveSoftware/Brave-Browser/Default/Cookies",
|
||||
cookieTimeoutMs: 30000
|
||||
}
|
||||
Reference in new issue
Block a user