Documentation
¶
Overview ¶
Package boundarylogproxy provides a Unix socket server that receives boundary audit logs and forwards them to coderd via the agent API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSocketPath ¶
func DefaultSocketPath() string
DefaultSocketPath returns the default path for the boundary audit log socket.
Types ¶
type Reporter ¶
type Reporter interface {
ReportBoundaryLogs(ctx context.Context, req *agentproto.ReportBoundaryLogsRequest) (*agentproto.ReportBoundaryLogsResponse, error)
}
Reporter reports boundary logs from workspaces.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server listens on a Unix socket for boundary log messages and buffers them for forwarding to coderd. The socket server and the forwarder are decoupled: - Start() creates the socket and accepts a connection from boundary - RunForwarder() drains the buffer and sends logs to coderd via AgentAPI
func (*Server) Close ¶
Close stops the server and blocks until resources have been cleaned up. It must be called after Start.
func (*Server) RunForwarder ¶
RunForwarder drains the log buffer and forwards logs to coderd. It blocks until ctx is canceled.