Ikoma's Blog
|
  • Japanese
  • Posts
  • Learn
  • About
  • Search
Home Tags

unix-socket

Rejecting control requests from processes that can read the token, with SO_PEERCRED on a Unix socket

Inside a container, a tool the agent calls can read the engine token and tell its internal API that work was saved, and unsaved work is deleted. Tokens and file modes cannot stop a tool running as the same UID. The fix reads SO_PEERCRED per connection in Go ConnContext and returns 403 before the token is checked when the peer UID is wrong.

October 23, 2026 | 4 min
© 2026 Ikoma's Blog