rsnarsna
feat(security): implement server-side SSRF validator and fail-closed Docker sandbox
fedbe97 Download security/__init__.py from Rsnarsna/auto: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/Rsnarsna/auto/resolve/main/security/__init__.py
- Command line
-
hf download hf://spaces/Rsnarsna/auto/security/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Rsnarsna/auto/resolve/main/security/__init__.py
397 Bytes
| """ | |
| ALLI Backend Security Module. | |
| Provides centralized cryptographic verification, SSRF defense, and sandboxing utilities. | |
| """ | |
| from .ssrf_validator import ( | |
| validate_target_url, | |
| is_private_or_restricted_ip, | |
| SsrfValidationResult, | |
| SsrfSecurityError, | |
| ) | |
| __all__ = [ | |
| "validate_target_url", | |
| "is_private_or_restricted_ip", | |
| "SsrfValidationResult", | |
| "SsrfSecurityError", | |
| ] | |