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
Corresponding PR in coder/coder coder/coder#21345
coder/coder#21280

@zedkipp zedkipp force-pushed the zedkipp/socket-auditor branch 3 times, most recently from fac8048 to a2ea4f9 Compare December 19, 2025 21:37
@zedkipp zedkipp marked this pull request as ready for review December 23, 2025 21:39
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
@zedkipp zedkipp force-pushed the zedkipp/socket-auditor branch from a2ea4f9 to 2365931 Compare December 24, 2025 00:13
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