none

package
v0.50.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

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) Available

func (f *Factory) Available() bool

Available returns true on all platforms except Windows.

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.

func (*Factory) Name

func (f *Factory) Name() string

Name returns the backend name.

func (*Factory) Supported

func (f *Factory) Supported(_ sandboxpkg.Policy) error

Supported accepts any policy; the none backend imposes no restrictions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL