tftsr-devops_investigation/src
Shaun Arman cd26801a39
Some checks failed
Test / rust-fmt-check (pull_request) Failing after 1m31s
Test / frontend-tests (pull_request) Successful in 1m34s
Test / frontend-typecheck (pull_request) Successful in 1m36s
Test / rust-clippy (pull_request) Successful in 3m5s
PR Review Automation / review (pull_request) Successful in 4m31s
Test / rust-tests (pull_request) Successful in 4m27s
fix(security): block PII in chat attachments and typed messages
File attachments were embedded into AI messages without any PII
scanning, allowing credentials, tokens, and other sensitive data
to be forwarded to AI providers in plaintext.

Typed chat messages had the same gap: a user could type a password
or API key directly and it would be sent unscanned.

Changes:
- chat_message (Rust): defence-in-depth scan of all attachment body
  content (between --- Attached: markers); hard rejects if PII found
- detect_pii (Rust): fix return type from pii::PiiDetectionResult
  (spans/original_text) to db::models::PiiDetectionResult
  (detections/total_pii_found) to match the TypeScript contract; the
  LogUpload PII review workflow was receiving undefined for detections
- scan_text_for_pii (Rust): new command — scans arbitrary text for PII
  without creating DB records; used for typed message warnings
- Triage/index.tsx: PendingFile now carries logFileId; handleSend gates
  each text attachment through detectPiiCmd (hard block on PII found);
  typed message text scanned via scanTextForPiiCmd with a one-time
  warning — second send of same message proceeds as acknowledgment
2026-05-31 19:05:51 -05:00
..
components fix: lint fixes and formatting cleanup 2026-04-09 20:42:40 -05:00
lib fix(security): block PII in chat attachments and typed messages 2026-05-31 19:05:51 -05:00
pages fix(security): block PII in chat attachments and typed messages 2026-05-31 19:05:51 -05:00
stores feat: attachment DB storage and cross-incident recall 2026-05-31 17:55:47 -05:00
styles fix: dropdown text invisible on macOS + correct codesign order for DMG 2026-03-30 16:43:00 -05:00
App.tsx feat(mcp): add MCP Server Support with TDD implementation 2026-05-23 16:23:48 -05:00
main.tsx feat: initial implementation of TFTSR IT Triage & RCA application 2026-03-14 22:36:25 -05:00