fix(security): redact raw SQL in MCP tools and R2 config in uploads #118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/77-mcp-sql-leak"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #77
create_purchase,update_purchase,delete_purchase,create_order,upload_receipt), while preserving safeServiceRejectionandZodErrormessages and logging unexpected errors server-side.r2.ts, distinguish client-actionable errors (R2ClientError, e.g. unsupported MIME, file size limit) from infrastructure errors (missing env vars, S3 connection failure).uploads.ts, return 422 for client-actionable rejections and redact infrastructure errors to generic 500 without leaking Cloudflare account IDs, bucket names, or R2 endpoint domains.VERDICT: approve
purchases.ts,orders.ts,images.ts) to generic server errors while preservingServiceRejectionandZodError.R2ClientErrordistinguishes client-actionable errors from infrastructure faults; upload routes no longer leak account IDs, bucket names, orr2.cloudflarestorage.com.fix(security): redact raw SQL in MCP tools and R2 config in uploads (#77)to fix(security): redact raw SQL in MCP tools and R2 config in uploads