Replace real PHI in fixtures with John Smith USA mock data - #1
Merged
Conversation
Redact patient-identifying fields in test and demo pdf_text fixtures (OMS policy, names, DOB, card numbers, employer, clinic staff). Update PATIENT_PROFILE, docs, and README examples to use mock patient John Smith (1985-06-15, USA). Extend secret-scan CI and pre-push blocklist to catch previously leaked PHI patterns. Co-authored-by: apodobe <apodobe@users.noreply.github.com>
- check_safe_to_push: scan outgoing commit ranges (--push), full tree (--scan-all), added-lines-only diff parsing, broader secret patterns - Pre-push hook now reads stdin refs instead of empty staged diff - Deploy scripts: validate paths/hosts, ssh -- separator, no quoted injection - Apple Health import: zip-slip and zip-bomb validation - CI: scan-all, global .env block, gitleaks config, pip-audit, dependabot - SECURITY.md: threat model, hook install, VPS hardening notes - Tests for guards and zip safety Co-authored-by: apodobe <apodobe@users.noreply.github.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.
Summary
Security fixes (high impact)
git push)--pushmode reads stdin commit ranges--scan-allscans entire tracked treessh "$VPS" "mkdir -p '$DIR'"injection riskvalidate-deploy-path.sh+ssh --medbots/zip_safety.pypip-auditjob + DependabotVerification
python3 -m pytest— 71 passedpython3 scripts/check_safe_to_push.py --public --scan-all— cleanPost-merge (manual)
git config core.hooksPath .githookson all dev machinesgit filter-repoif full purge neededchmod 600 ~/.config/medbot-openclaw.env, restrictTELEGRAM_ALLOWED_USER_IDS