Expand description
Plugin sandboxing and code-signing for tool execution.
Every tool invocation is mediated through a sandbox that:
- Validates the tool manifest signature before execution.
- Runs external/plugin tools in an isolated subprocess with restricted environment, working directory, and resource limits.
- Records execution results in the audit trail.
Built-in tools (those compiled into the binary) are trusted but still audit-logged. Third-party plugin tools must have a valid manifest signature to execute.
Structs§
- Plugin
Manifest - Manifest describing a plugin tool.
- Plugin
Registry - Plugin registry — tracks registered and verified plugins.
- Sandbox
Policy - Sandbox execution policy for a tool invocation.
- Sandbox
Result - Result of a sandboxed tool execution.
- Signing
Key - The signing key used to verify plugin manifests.
Functions§
- execute_
sandboxed - Execute a tool in a sandboxed subprocess.
- hash_
bytes - Compute SHA-256 hash of byte content.
- hash_
file - Compute SHA-256 hash of file contents.