Documentation
¶
Overview ¶
Package none provides a no-op sandbox backend that runs commands directly on the host with the same permissions as the current user and no isolation. Use only when agent workloads are fully trusted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory(cfg ...Config) sandboxpkg.Factory
NewFactory returns a Factory for the none backend.
Types ¶
type Config ¶ added in v0.33.0
type Config struct {
// StellaHome is the host path to the stella home directory, used for
// building a PATH that includes $STELLA_HOME/bin.
StellaHome string
}
Config configures the none factory.
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory creates sessions that execute directly on the host with no sandboxing.
func (*Factory) CreateSession ¶
func (f *Factory) CreateSession(_ context.Context, policy sandboxpkg.Policy) (sandboxpkg.Session, error)
CreateSession creates a new noneSession. If a StellaHome was provided via Config, the factory adjusts the policy env with a sandboxed PATH. Network mode is always overridden to AllowAll since the none backend cannot enforce network restrictions.
Click to show internal directories.
Click to hide internal directories.