Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion THREAT_MODEL.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ These are open, acknowledged, and contributor help is welcome:

3. **`src/search/` partial consolidation.** `src.search.core` and `src.search.providers` correctly alias `services.search` via `sys.modules` replacement. `analytics`, `cache`, `content`, `query`, and `ranking` are still independent copies that can drift. The SSRF regression tests in `tests/test_webhook_ssrf_resilience.py` test `src.webhook_manager` directly (separate from search), so the safety net there is intact. See #1058.

4. **Token scopes are coarse.** There is no way to grant a session a subset of the owning user's privileges. Companion/mobile tokens carry either `chat` or `admin` scope with no per-capability granularity.
4. **API-token capability checks must stay explicit.** Generic API tokens can carry one or more allowlisted scopes for chat, todos, documents, email, calendar, memory, or Cookbook. Bearer access must enforce the required scope and token owner without inheriting browser-session or administrator privileges.
3 changes: 0 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,9 +859,6 @@ async def _stop_background():
from routes.contacts.contacts_routes import setup_contacts_routes
app.include_router(setup_contacts_routes())

from companion import setup_companion_routes
app.include_router(setup_companion_routes())

# ========= ROUTES (kept in app.py) =========

@app.get("/")
Expand Down
28 changes: 0 additions & 28 deletions companion/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions companion/__init__.py

This file was deleted.

128 changes: 0 additions & 128 deletions companion/pairing.py

This file was deleted.

Loading
Loading