mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-30 01:32:25 +01:00
Merge current dev and refresh PR #6739 from the 7011 integration
This commit is contained in:
@@ -79,6 +79,22 @@ NON_ADMIN_BLOCKED_TOOLS = BUILTIN_EMAIL_TOOLS | {
|
||||
"stop_served_model",
|
||||
"cancel_download",
|
||||
"adopt_served_model",
|
||||
# Read-only Cookbook inspection tools. They look harmless, but every one
|
||||
# of them calls a require_admin route over the internal loopback with the
|
||||
# process-wide INTERNAL_TOOL_TOKEN and never checks the session owner, so
|
||||
# a non-admin agent would inherit admin reach through them:
|
||||
# list_cached_models forwards a caller-chosen `host` into
|
||||
# /api/model/cached, which SSHes to that host with the app user's keys and
|
||||
# walks caller-chosen `model_dir`s; list_served_models / tail_serve_output
|
||||
# expose serve/download logs and running process command lines. Model
|
||||
# serving is admin-only in THREAT_MODEL.md, so block the read side too.
|
||||
"list_served_models",
|
||||
"tail_serve_output",
|
||||
"list_downloads",
|
||||
"search_hf_models",
|
||||
"list_cached_models",
|
||||
"list_serve_presets",
|
||||
"list_cookbook_servers",
|
||||
}
|
||||
|
||||
|
||||
@@ -127,6 +143,7 @@ PLAN_MODE_READONLY_TOOLS = {
|
||||
"resolve_contact",
|
||||
"chat_with_model",
|
||||
"ask_teacher",
|
||||
"get_editor_screenshot",
|
||||
}
|
||||
|
||||
|
||||
@@ -163,6 +180,7 @@ _PLAN_MODE_KNOWN_MUTATORS = {
|
||||
"download_model", "serve_model",
|
||||
"stop_served_model", "cancel_download", "adopt_served_model", "serve_preset",
|
||||
"generate_image", "edit_image", "trigger_research", "manage_research",
|
||||
"plan_edit", "run_editor_command", "ai_edit_image",
|
||||
# Shell is never read-only-safe; block it explicitly so it stays out of plan
|
||||
# mode even if the schema list fails to load.
|
||||
"bash", "python",
|
||||
|
||||
Reference in New Issue
Block a user