projectconfig

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPath = ".gait/config.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Gate      GateDefaults      `yaml:"gate"`
	MCPServe  MCPServeDefaults  `yaml:"mcp_serve"`
	Retention RetentionDefaults `yaml:"retention"`
}

func Load

func Load(path string, allowMissing bool) (Config, error)

type GateDefaults

type GateDefaults struct {
	Policy                 string `yaml:"policy"`
	Profile                string `yaml:"profile"`
	KeyMode                string `yaml:"key_mode"`
	PrivateKey             string `yaml:"private_key"` // #nosec G117 -- config key name documents expected secret input.
	PrivateKeyEnv          string `yaml:"private_key_env"`
	ApprovalPublicKey      string `yaml:"approval_public_key"`
	ApprovalPublicKeyEnv   string `yaml:"approval_public_key_env"`
	ApprovalPrivateKey     string `yaml:"approval_private_key"`
	ApprovalPrivateKeyEnv  string `yaml:"approval_private_key_env"`
	RateLimitState         string `yaml:"rate_limit_state"`
	CredentialBroker       string `yaml:"credential_broker"`
	CredentialEnvPrefix    string `yaml:"credential_env_prefix"`
	CredentialRef          string `yaml:"credential_ref"`
	CredentialScopes       string `yaml:"credential_scopes"`
	CredentialCommand      string `yaml:"credential_command"`
	CredentialCommandArgs  string `yaml:"credential_command_args"`
	CredentialEvidencePath string `yaml:"credential_evidence_path"`
	TracePath              string `yaml:"trace_path"`
	WrkrInventoryPath      string `yaml:"wrkr_inventory_path"`
}

type MCPServeDefaults

type MCPServeDefaults struct {
	Enabled                  bool   `yaml:"enabled"`
	Listen                   string `yaml:"listen"`
	AuthMode                 string `yaml:"auth_mode"`
	AuthTokenEnv             string `yaml:"auth_token_env"`
	MaxRequestBytes          int64  `yaml:"max_request_bytes"`
	HTTPVerdictStatus        string `yaml:"http_verdict_status"`
	AllowClientArtifactPaths bool   `yaml:"allow_client_artifact_paths"`
}

type RetentionDefaults

type RetentionDefaults struct {
	TraceTTL   string `yaml:"trace_ttl"`
	SessionTTL string `yaml:"session_ttl"`
	ExportTTL  string `yaml:"export_ttl"`
}

Jump to

Keyboard shortcuts

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