fix: high-priority security issues from repo-health audit (#112, #95, #117, #62, #98) - #122
Merged
Merged
Conversation
- IngestStep now calls provider.authenticate() before fetch() and fails with a clear PermissionError on missing credentials (#112) - LLMRouter no longer silently falls back to a different cloud provider; only the on-device 'local' provider may be substituted, with a warning, otherwise selection fails loudly (#95) - LocalProvider._scan_zip() hardened: is_relative_to() traversal check, symlink members rejected, ZIP-bomb guards (member count, total uncompressed size, compression ratio) (#117, #62) - New --deidentify CLI flag replaces patient name/ID/birth date with a stable SHA-256 pseudonym in JSON/PDF/HTML reports; report files are written with owner-only 0600 permissions; SECURITY.md documents the PHI handling of the output directory (#98, #89) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014ywk8AWq5mgbeERmvuhcJy
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
🔥 Files not summarized due to errors (12)
📝 Walkthrough
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
This was referenced Jul 2, 2026
Liohtml
pushed a commit
that referenced
this pull request
Jul 2, 2026
- CHANGELOG: fold Unreleased into 0.3.0 with all changes since v0.2.1 (security batches #122-#125, dependabot action bumps #79-#83) - Bump version to 0.3.0 in pyproject.toml and __init__.py - README: document --deidentify, MEDCHECK_RATE_LIMIT and the no-silent-fallback LLM routing guarantee Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014ywk8AWq5mgbeERmvuhcJy
Liohtml
added a commit
that referenced
this pull request
Jul 2, 2026
- CHANGELOG: fold Unreleased into 0.3.0 with all changes since v0.2.1 (security batches #122-#125, dependabot action bumps #79-#83) - Bump version to 0.3.0 in pyproject.toml and __init__.py - README: document --deidentify, MEDCHECK_RATE_LIMIT and the no-silent-fallback LLM routing guarantee Claude-Session: https://claude.ai/code/session_014ywk8AWq5mgbeERmvuhcJy Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the four open High-severity repo-health/security issues plus two related Medium findings:
IngestStepnow callsprovider.authenticate()beforefetch()and raises a clearPermissionErrorwhen credentials are missing.LLMRouterno longer silently falls back to a different cloud provider. Only the on-devicelocalprovider may be substituted (with a warning); otherwise selection fails loudly with a descriptive error. This prevents PHI from being transmitted to an unintended third party.LocalProvider._scan_zip(); the traversal check now usesPath.is_relative_to()instead ofstartswith().--deidentifyCLI flag replaces patient name/ID/birth date with a stable SHA-256 pseudonym in JSON/PDF/HTML reports ("deidentified"marker in JSON). All report files are written with owner-only0600permissions. SECURITY.md now documents that the output directory must be treated as PHI.Tests: 9 new unit tests (auth gate, symlink/traversal/zip-bomb rejection, normal ZIP still accepted, de-identified report, file permissions). Router tests updated to the new no-silent-cloud-fallback contract. 154 unit tests pass, ruff + mypy clean.
Closes #112, closes #95, closes #117, closes #62, closes #98.
🤖 Generated with Claude Code
https://claude.ai/code/session_014ywk8AWq5mgbeERmvuhcJy
Generated by Claude Code