Secrets Block

Outbound secret protection for MCP and API responses.

How It Works

Veriova applies secret scanning in two places: MCP outbound tool responses and API-level context/memory responses. Secrets are replaced before content reaches provider APIs.

Tool response
  -> wrapToolResponse()
  -> redact/block/warn/off
  -> return to model

API response
  -> RedactSecrets()
  -> return redacted payload

Modes

ModeBehavior
redactReplace matches with [REDACTED:type].
blockReturn blocked error when any secret is detected.
warnReturn content with a warning prefix.
offBypass secret scanning.

Supported Patterns

AWS access keys, JWTs, private keys, database URLs, OpenAI/GitHub/Stripe/Slack tokens, bearer tokens, and env-style secret assignments.

Configuration

mcp.json
{
  "env": {
    "VERIOVA_SECRETS_MODE": "redact"
  }
}

Checking Status

Call veriova_security_status in your MCP client to see mode, total session redactions, and recent redaction previews.