[Security] Enforce ocr_json_safety validators on all image_base64 inputs#2885
[Security] Enforce ocr_json_safety validators on all image_base64 inputs#2885sanrishi wants to merge 1 commit into
Conversation
- Add _safe_image_base64() helper that delegates to sanitize_and_validate_base64_image() - Apply validation before OCR extraction in analyze_ticket - Apply validation before Gemini vision in analyze_only and analyze_stream - Log warnings on validation failures instead of silently passing raw base64 Fixes ritesh-1918#2872
|
Someone is attempting to deploy a commit to the ritesh Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Validates base64 image input before passing to OCR/Gemini services. Fixes #2872