platform-test-models / SECURITY.md
ISLAM-PO's picture
Upload 861 files
4655dd2 verified
|
Raw
History Blame Contribute Delete
1.12 kB
# 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)