Repository navigation
We've added a new optional feature - credential redaction.
What this does is look for credentials, either known credentials that we see being passed through to a container, or patterns that look like credentials, in the output of all of the tools. These are then redacted so they appear to the agent as [REDACTED:]. Each substitution has a unique token, even if the credential is the same in order to avoid exposing exploitable issues like credential re-use.
For some tools, we can also un-redact a credential on the way back to the docker host so that the agent cannot see the credential, but the tools continue to operate. The server will never write a redacted token to a file.
It's impossible to make this redaction filter catch 100% of credentials, so you should not look at this as a security feature, but it should help reduce the risk of accidental credential exposure. We would always recommend that this feature be used in conjunction with read-only mode as otherwise it's trivial for the agent to read a credential in a way that we cannot filter using tools like container_exec. We'd also recommend that this is used with an agent that does not have access to a shell or the docker CLI as then it could trivially bypass the filter.
We've tried to document the feature fully, including how it works and what its limitations are. See https://github.com/L337-org/docker-mcp/blob/main/REDACTION.md for a full description of this feature.
This feature is opt-in, and can be enabled either globally or per host.
What's Changed
Dependencies
- Build(deps): Bump the actions group with 4 updates by @dependabot[bot] in #306
Changes
- Refresh the parameter count and two ratio sentences in MCP_VS_SKILLS.md by @claudeleet in #302
- Opt-in redaction of credentials in everything the server returns by @GavinLucas in #312
Full Changelog: v2.2.10...v2.3.0