srt_sandbox_config
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| SandboxConfig exxec_config.srt_sandbox_config Configuration for sandbox-runtime restrictions. |
🛈 DocStrings¶
Configuration for sandbox restrictions.
SandboxConfig
¶
Bases: BaseModel
Configuration for sandbox-runtime restrictions.
Source code in src/exxec_config/srt_sandbox_config.py
allow_all_unix_sockets
class-attribute
instance-attribute
¶
Allow all Unix sockets (less secure).
allow_local_binding
class-attribute
instance-attribute
¶
Allow binding to localhost ports.
allow_unix_sockets
class-attribute
instance-attribute
¶
allow_unix_sockets: list[str] = Field(
default_factory=list, title="Allowed Unix Sockets", examples=[["/var/run/docker.sock"]]
)
Specific Unix socket paths to allow (e.g., Docker socket).
allow_write
class-attribute
instance-attribute
¶
allow_write: list[str] = Field(
default_factory=lambda: ["."], title="Allow Write Paths", examples=[["."], [".", "/tmp"]]
)
Paths where writes are permitted. Empty = no write access.
allowed_domains
class-attribute
instance-attribute
¶
allowed_domains: list[str] = Field(
default_factory=list,
title="Allowed Domains",
examples=[["github.com", "*.github.com", "pypi.org"]],
)
Domains that can be accessed. Empty = no network access.
denied_domains
class-attribute
instance-attribute
¶
denied_domains: list[str] = Field(
default_factory=list, title="Denied Domains", examples=[["malicious.com"]]
)
Domains explicitly blocked (checked before allowed_domains).
deny_read
class-attribute
instance-attribute
¶
deny_read: list[str] = Field(
default_factory=lambda: ["~/.ssh", "~/.aws", "~/.gnupg"],
title="Deny Read Paths",
examples=[["~/.ssh", "~/.aws"]],
)
Paths blocked from reading. Empty = full read access.
deny_write
class-attribute
instance-attribute
¶
deny_write: list[str] = Field(
default_factory=list, title="Deny Write Paths", examples=[[".env", "secrets/"]]
)
Paths denied within allowed write paths.
to_srt_settings
¶
Convert to srt-settings.json format.