Repository navigation
What's Changed
- ci: run tests with the race detector by @peteski22 in #344
- chore(ci): bump the github-actions group with 2 updates by @dependabot[bot] in #345
- fix(release): migrate the Homebrew cask install hook by @peteski22 in #346
- fix(daemon)!: validate the request host for every client by @peteski22 in #347
- chore: require Go 1.27.4 by @peteski22 in #349
- chore(deps): bump the go-minor-patch group with 2 updates by @dependabot[bot] in #352
- chore(ci): bump the github-actions group with 3 updates by @dependabot[bot] in #351
- fix(plugin): deliver a plugin's result and enforce what it may change by @peteski22 in #353
- docs(plugin): say which kind of distrust the plugin design answers by @peteski22 in #359
- fix!: preserve server and tool name case by @peteski22 in #362
Upgrade notes
Plugin sockets moved into a private directory
Each plugin used to listen on a predictable path like /tmp/plugin-jwt-auth-1.sock, which another local user could claim first. Every plugin in a run now gets its socket inside one directory that only the user running mcpd can open, such as /tmp/mcpd-plugins-1234567890/jwt-auth-1.sock. mcpd removes the directory when the plugins stop.
A plugin still receives its socket path in --address, so a plugin that listens on the path it is given needs no change. A plugin that built a path of its own must use --address.
A socket path can be at most 103 bytes. mcpd shortens the plugin name in the file name to make the path fit. A path that still does not fit stops that plugin from starting, with plugin socket path is too long. Set TMPDIR to a shorter directory.
mcpd checks which process is listening
On each connection to a plugin socket, mcpd closes the connection unless the listening process runs as the user running mcpd.
On a platform without POSIX file permissions, mcpd can check neither the directory nor the peer. It logs a warning and starts the plugins anyway. On such a machine, treat a plugin socket as reachable by anything else running there.
Neither the directory nor the check separates one plugin from another, because every plugin runs as the same user as mcpd. Install only plugins you trust to run as yourself.
Security
This release fixes a vulnerability that allowed another local user to take a plugin's place through its predictable socket path. See [GHSA-9hch-4w24-xxcw](GHSA-9hch-4w24-xxcw) for details and credits.
Full Changelog: v0.7.0...v0.8.0