|
Download SECURITY.md from OVRLab/granite-jev-1b-sampling: direct link, hf CLI and curl.
- Browser
- Download file 3.05 kB
-
https://huggingface.co/OVRLab/granite-jev-1b-sampling/resolve/main/SECURITY.md
- Command line
-
hf download hf://OVRLab/granite-jev-1b-sampling/SECURITY.md
-
curl -L -o SECURITY.md https://huggingface.co/OVRLab/granite-jev-1b-sampling/resolve/main/SECURITY.md
3.05 kB
| # Runtime and security boundaries | |
| ## Credentials and submitted data | |
| Supply your own TypeSafe credential through a private key file or runtime secret. | |
| Never put keys in prompts or outputs. On text disagreement, live verification | |
| sends the visible prompt and both answers to | |
| `https://api.typesafe.ai/v1/systemone`. The client rejects redirects and makes | |
| at most one paid attempt. An interrupted or failed request can have unknown | |
| usage; do not blindly rerun it. Native mode and `--verify` need no credential. | |
| ## Dependencies and trusted inputs | |
| This maintenance release requires **certifi >= 2026.10.19** and | |
| **filelock >= 4.2.1** to exclude the affected trust-store and filesystem-lock | |
| versions identified in the November dependency review. Install the new | |
| requirements into a fresh environment; old environments do not update themselves. | |
| The trust-store fix affects HTTPS transport, including Jev API calls. | |
| Torch 2.8.0 and Transformers 4.57.1 remain pinned for the evaluated inference | |
| path and have known advisories; this is not a blanket security upgrade. The | |
| runner loads only the fixed, inspected IBM model revision, explicitly uses SDPA, | |
| disables remote model code and loads safetensors. It does not accept arbitrary | |
| model identifiers, execute generated code, load custom generation modules or | |
| use Trainer. These restrictions narrow exposure but do not prove all transitive | |
| vulnerabilities unreachable. Consult the | |
| [advisory-by-advisory review](https://github.com/OVRLab/jev-guided-decoding/blob/5eeaacd09033362823d014773067dc900a696906/docs/dependency-security.md) | |
| for affected interfaces and upstream fixes; its maintained-environment discussion | |
| precedes this HF maintenance release. | |
| Use private model/cache directories and an unprivileged account or isolated | |
| container without unrelated credentials. A Python virtual environment does not | |
| restrict filesystem access. Do not expose the pinned runtime as a general | |
| arbitrary-model service. Updating the numerical inference libraries requires | |
| separate model/token-parity validation. | |
| ## Integrity and result handling | |
| Review source before execution. `--verify` checks local digests, not publisher | |
| authenticity; pin the repository commit. Results contain candidate text and token | |
| IDs, so treat them as potentially sensitive. Save inputs and release revisions | |
| with outputs for provenance. | |
| The CLI reserves a new output path before costly work and atomically journals | |
| input/payload identity, generated candidates and known usage. An `in_progress` | |
| record is not a completed answer. Partial usage counters remain explicitly | |
| incomplete. If final persistence fails after inference, an available fallback | |
| record with `inference_complete: true` retains the answer and must not trigger | |
| another paid request. A failed pre-dispatch journal write causes zero attempts. | |
| These safeguards are not a transactional service or automatic recovery system. | |
| The synchronous API must run outside an active asyncio event loop. Linux and | |
| macOS durable writes are supported; native Windows is rejected before inference. | |