-
Notifications
You must be signed in to change notification settings - Fork 11
fix: isolate relay workers by desktop keyring session #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c900c4f
c4e206c
1e70125
8f6f7e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "grok-bot-cli": patch | ||
| --- | ||
|
|
||
| Isolate relay workers by their desktop keyring environment so headless MCP callers cannot replace the authenticated worker used by desktop CLI callers. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,9 @@ export function relayProfile(env = process.env) { | |
| "GROK_BOT_ALLOW_ANY_GATEWAY", | ||
| "GROK_BOT_TEST", | ||
| "NODE_ENV", | ||
| // Secret Service credentials depend on the caller's desktop session. | ||
| "DBUS_SESSION_BUS_ADDRESS", | ||
| "DISPLAY", | ||
|
Comment on lines
+34
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
These variables are hashed on macOS too, although Useful? React with 👍 / 👎. |
||
| ]; | ||
| return digest( | ||
| JSON.stringify([ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding these entries changes the serialized profile input even when both variables are unset, so every existing 0.6.0 relay receives a new profile after upgrading. With the default location, commands start against an empty directory while the old detached worker and its routes, checkpoints, and pending records remain active but inaccessible; with
GROK_BOT_RELAY_DIR, startup instead permanently rejects the existing ledger withRelay profile mismatch. Preserve or migrate the previous profile/state so upgrades continue existing durable routes rather than stranding them.Useful? React with 👍 / 👎.