Skip to content

Commit 6dd74ed

Browse files
docs: describe the no-stored-bearer session model PR pingdotgg#26 shipped
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 9e3e817 commit 6dd74ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/tr3x-design.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Target: about **4–5k non-test lines** for the view, against 25k for the abando
184184

185185
**Security.**
186186

187-
- The daemon holds the only long-lived bearer. For each tab it issues a scoped session (`orchestration:read orchestration:operate`, `providers:manage` only if the view does provider auth) through `EnvironmentAuth.issueSession`, the same call `t3 auth session issue` makes [V `v2:apps/server/src/cli/auth.ts:159`].
187+
- No long-lived bearer is stored (PR #26). The daemon doesn't exchange the desktop bootstrap credential, and `daemon.json` holds no secret. Each client mints its own short-lived, scoped session with `t3 auth session issue --base-dir … --scope … --ttl …` against the tr3x base dir; the token comes back on stdout. Doctor uses a 2-minute `orchestration:read` session. Each tab will get `orchestration:read orchestration:operate`, plus `providers:manage` only if the view does provider auth [V `v2:apps/server/src/cli/auth.ts:159`].
188188
- It writes `{server, threadId, bearer}` to a one-shot launch file: mode 0600, in a 0700 directory, opened with `wx`, deleted by the view on read, and expired by the daemon after 60 s. This is `threadWindowLaunch.ts` as it exists today [V].
189189
- Only the file path goes in argv. Rex can't pass env [V], so tokens would otherwise end up in `ps`.
190190
- The daemon revokes the session on `window_closed` or `block_closed`.

0 commit comments

Comments
 (0)