File size: 1,122 Bytes
4655dd2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # Security Policy
## Supported Versions
| Version | Supported |
|---------|-----------|
| 1.x | ✅ |
## Reporting a Vulnerability
Please **do not** open a public issue for security vulnerabilities.
Email: `security@safetensors-studio.local` (or open a private GitHub Security Advisory).
Include:
- Description
- Steps to reproduce (e.g., `POST /api/benchmark/custom/scan` path traversal)
- Impact
We will acknowledge within 48h and patch within 7 days.
## Known Considerations
- `POST /api/model/validate?path=` and `/api/benchmark/custom/scan?folder_path=` accept local filesystem paths — **restrict to trusted users only** or run behind auth proxy in production.
- No authentication by default (local-first). For public deployment, put behind `nginx` + `basic_auth` or `OAuth`.
- `share` tokens are in-memory and not cryptographically signed — do not use for sensitive reports.
## Best Practices for Production
- Run `backend` with `uvicorn --host 127.0.0.1` behind reverse proxy
- Set `NEXT_PUBLIC_API_URL` to HTTPS
- Enable `CORS` allowlist in `backend/app/main.py:17` (replace `"*"` with your domain)
|