feat: add SHA256 model integrity check before joblib.load()
Add verify_model_checksum() that validates model files against a models/checksums.sha256 manifest before loading. Fails open when manifest is missing or file not listed (backward compat), raises HTTP 500 on hash mismatch. Created empty manifest placeholder. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b7f9b2e04d
commit
ff15adc847
3 changed files with 71 additions and 2 deletions
0
models/checksums.sha256
Normal file
0
models/checksums.sha256
Normal file
Loading…
Add table
Add a link
Reference in a new issue