Skip to content

Conversation

@zedkipp
Copy link
Contributor

@zedkipp zedkipp commented Dec 19, 2025

Add SocketAuditor that sends audit logs to the Coder workspace agent via a Unix socket. This enables boundary audit events to be forwarded to coderd for centralized logging.

Features:

  • Batching: 10 logs or 5 seconds, whichever comes first
  • Wire format: length-prefixed protobuf (proto imported from AgentAPI) to make boundary -> agent -> coderd simple to start

RFC: https://www.notion.so/coderhq/Agent-Boundary-Logs-2afd579be59280f29629fc9823ac41ba?pvs=23
coder/coder#21280

@zedkipp zedkipp force-pushed the zedkipp/socket-auditor branch 2 times, most recently from 43d87db to fac8048 Compare December 19, 2025 21:22
Add SocketAuditor that sends audit logs to the Coder workspace agent
via a Unix socket. This enables boundary audit events to be forwarded
to coderd for centralized logging.

Implementation notes:
- Batching: 10 logs or 5 seconds, whichever comes first
- Wire format: tag & length prefixed protobuf. proto imported from AgentAPI to
  simplify boundary -> agent -> coderd forwarding to start.
- CLI and config flag to disable sending of audit logs to workspace agent
  as an escape hatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant