1.5 KiB
1.5 KiB
Model Supply-Chain Policy
Policy defaults
- Downloaded model repositories are untrusted.
- Exact revisions must be resolved and pinned.
- Safe tensor formats are preferred where supported.
- Pickle-derived artifacts require stricter handling and may be prohibited by policy.
trust_remote_code=falseby default.- Upstream security scanner results are evidence, not absolute proof of safety.
- License metadata must be captured and evaluated before production approval.
- Inference workers receive approved artifacts read-only.
- Internet egress is disabled for inference workers by default.
- Tokens used for model acquisition remain downloader/control-plane secrets only.
Candidate admission sequence
- register upstream source;
- snapshot upstream metadata;
- resolve exact revision;
- download to quarantine/cache;
- inventory all files;
- calculate/record digests;
- collect upstream scanner/security metadata;
- evaluate serialization/custom-code requirements;
- evaluate license/gating restrictions;
- run local static/security checks;
- mark verified or blocked;
- only verified artifacts can enter runtime compatibility testing.
Remote code exception
If an artifact requires custom repository code:
- default state: production blocked;
- optional lab execution requires explicit operator approval;
- sandbox restrictions must be stricter than normal approved models;
- exception reason and review evidence are audited;
- promotion to stable requires a separate production security decision.