Documentation
¶
Overview ¶
Package leash implements the Orthrus agent's reverse WebSocket tunnel.
The Leash maintains a persistent connection from the agent to the Charon server, multiplexing Docker socket streams over a single WebSocket connection using yamux.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
ServerURL string
AuthKey string
AgentID string
DockerSock string
Log *logrus.Logger
InitialDelay time.Duration // 0 = use default 5s; exposed for testing
}
Config holds the configuration for a Leash connection.
type Leash ¶
type Leash struct {
// contains filtered or unexported fields
}
Leash manages the reverse WebSocket tunnel to the Charon server.
Leash intentionally holds no *muzzle.Filter field: the filter is connection-scoped, not process-scoped (see connect), so a mid-connection write-mode toggle on the operator's side can't retroactively change an already-negotiated session. Each call to connect constructs a fresh Filter and closes over it for the lifetime of that one connection.