Skip to content

feat: detect PII in JSON-embedded strings #25

Description

@byapparov

Context

PR #23 review flagged that PII inside escaped JSON strings isn't redacted.

Example: "metadata": "{\"email\":\"x@y.com\"}" — the email won't be caught because the redactor processes the outer string which contains escaped quotes, not parsed JSON.

Location: src/middleware/redactor.ts:78-129

Proposal

Add optional recursive JSON string inspection — when a string value looks like JSON (starts with { or [), attempt to parse and redact recursively.

Priority

Low — this is an edge case. Most tool outputs use proper nested objects, not stringified JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions