wastebin-mcp-go/docs/adr/0004-file-read-allowlist-optional.md
XLion c60f2918d8
docs: document decision to keep file-read allowlist optional
Issue #126 flagged that DefaultConfig() enables file reads without an
explicit allowlist. Decision: close without changes — the built-in
blocklist, existing ALLOWED_PATHS protection, and layered defences
are proportionate for self-hosted MCP deployments.
2026-07-02 22:04:33 +08:00

584 B

File-read allowlist is optional in default configuration

Issue #126 reported that DefaultConfig() enables file reads without an explicit allowlist. We reviewed and decided not to change the behaviour: the built-in blocklist already covers credential and system paths, users who configure ALLOWED_PATHS are fully protected, and adding a mandatory opt-in override would add configuration friction disproportionate to the residual risk. The existing layered defence (blocklist + binary detection + content limits + TOCTOU guards) is proportionate for self-hosted MCP deployments.