Skip to content

feat: add per-bot privacy redaction controls - #51

Merged
li4nee merged 1 commit into
mainfrom
feat/m27-privacy-controls
Nov 28, 2026
Merged

li4nee merged 1 commit into
mainfrom
feat/m27-privacy-controls

Conversation

@li4nee

@li4nee li4nee commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add per-bot opt-in redaction for email, phone, Luhn-valid payment cards, and common credentials.
  • Redact selected values from new visitor/agent transcript writes and previews, all chat/rewrite/verification/agent-assist/CRM-summary model inputs, configured tool arguments/results, and persisted provider snapshots.
  • Hold generated output until selected values are redacted, preventing sensitive values split across stream chunks from reaching visitors.
  • Add admin controls, migration, privacy documentation, and M27 plan.

Validation

  • Shared tests: 42 passed.
  • API unit tests: 778 passed, 7 todo, 1 skipped.
  • Admin tests: 152 passed.
  • Chat privacy integration tests: 23 passed against disposable PostgreSQL.
  • API/admin/shared typechecks and lint passed; API build and docs build passed.
  • Database migration applied locally; db:check reported no schema changes.
  • API dependency-cruiser and git diff --check passed.

Privacy behavior

  • Empty category selection is the default for compatibility.
  • Existing transcript rows are not rewritten; selected categories are redacted before they are sent to AI or tools.
  • Knowledge-source indexing and contact identity fields explicitly selected for CRM sync are unchanged.

Signed-off-by: li4nee <nishantpokharel9@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3087df85-977a-4443-a645-1f7b0ba837f1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@li4nee
li4nee merged commit 9e18c18 into main Nov 28, 2026
19 checks passed
@li4nee
li4nee deleted the feat/m27-privacy-controls branch November 28, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant