fix: harden workspace skill path containment

This commit is contained in:
Peter Steinberger
2026-03-07 18:56:09 +00:00
parent 5effa6043e
commit 253e159700
5 changed files with 214 additions and 4 deletions

View File

@@ -70,6 +70,7 @@ that up as `<workspace>/skills` on the next session.
- Treat third-party skills as **untrusted code**. Read them before enabling.
- Prefer sandboxed runs for untrusted inputs and risky tools. See [Sandboxing](/gateway/sandboxing).
- Workspace and extra-dir skill discovery only accepts skill roots and `SKILL.md` files whose resolved realpath stays inside the configured root.
- `skills.entries.*.env` and `skills.entries.*.apiKey` inject secrets into the **host** process
for that agent turn (not the sandbox). Keep secrets out of prompts and logs.
- For a broader threat model and checklists, see [Security](/gateway/security).