host

package
v0.0.0-...-b0b31a8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 48 Imported by: 0

Documentation

Overview

Package host assembles the private-proof sessions host from public packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, c Config, logger *slog.Logger) error

Run owns both loopback listeners and all host resources until cancellation.

Types

type AgentConfig

type AgentConfig struct {
	Namespace, HTTPRegistry, CredentialsFile string
	Repositories                             []string
	// Trusted in-process boundary injectors, never CLI or resource input.
	Source            agentcontroller.Source `json:"-"`
	RegistryTransport http.RoundTripper      `json:"-"`
}

AgentConfig opts into namespace-scoped Agents; zero preserves static hosting.

type Config

type Config struct {
	Addr, HealthAddr, Journal string
	Mode                      authn.Mode
	TLSCert, TLSKey           string
	Identity                  entraauth.Config
	Approvers                 []api.CallerIdentity
	Harnesses                 map[string]string
	Substrate                 *SubstrateConfig
	Agents                    AgentConfig
	ToolExecutors             string
	// HarnessService is an explicit exact in-cluster Service FQDN:port exception.
	// It does not relax the loopback Sessions or health listeners.
	HarnessService string
	// HarnessServices adds exact exceptions; HarnessService remains the first/legacy entry.
	HarnessServices                       []string
	PeerNodeFile, NodeName                string
	ModelPolicy                           string
	ModelEndpoint, Deployment, ModelScope string
	// ModelTransport and ModelCredential are trusted in-process host settings,
	// never CLI, environment, or auth-config input. Nil credential preserves
	// the production workload-identity-only behavior.
	ModelTransport  *http.Transport
	ModelCredential azcore.TokenCredential `json:"-"`
}

Config is immutable operator configuration. Required enforces host-RPC permissions, not durable journal-wide policy activation.

type SubstrateConfig

type SubstrateConfig struct {
	Harness, ActorAtespace, TemplateAtespace, Template            string
	ControlAddr, ControlServerName, CAFile, TokenFile, RouterAddr string
	PlacementFile                                                 string
}

SubstrateConfig selects one stateless-replay harness instead of remote fixtures. The control API uses verified TLS; RouterAddr is private, trusted-network h2c.

Jump to

Keyboard shortcuts

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