Spaces:
Paused
Paused
Commit History
-
security: fix SSRF, add URL validation, fail2ban, and body size limitβ
Peng Ding- Add url_validator.py: scheme whitelist (http/https only), DNS resolution with private IP blocking (loopback, RFC1918, link-local, metadata endpoint), prevents file://, data:, javascript:// URLs - Add fail2ban-style IP rate limiting to auth: 3 failures in 5min window β 10min ban, with X-Forwarded-For support - Reduce max_body_size from 10MB to 64KB - Promote filter blocked-request log from DEBUG to INFO573cdfc
-
feat: add two-tier render cache with S3-compatible storageβ
Peng DingL1 in-memory TTLCache (vendor) + L2 S3-compatible persistent storage via minio client. Supports Cloudflare R2, Oracle Object Storage, AWS S3, or any S3-compatible backend. Cached render results survive container restarts. Disabled by default; enable with env vars.f8b5624
-
add stats dashboard at GET / and restrict deploy-hf triggersβ
Peng Ding- New stats module: per-endpoint counters, avg/p95 latency, rolling deque(maxlen=1000) - Instrument render and screenshot handlers with timing - Add active_pages/is_browser_alive properties to BrowserManager - New dashboard route: auto-refreshing HTML page with uptime, browser status, request stats table - deploy-hf.yml: trigger only on workflow_dispatch and tagsaefeb84
-
initial release v0.1.0: headless browser rendering APIβ
Peng DingVeilRender is a self-hostable headless browser rendering API built with zerodep modules and CloakBrowser (stealth Chromium). Accepts a URL, renders it with the browser, and returns content as HTML, Markdown, or readability-extracted text. Features: - POST /render β URL to rendered HTML/Markdown/readability - POST /screenshot β URL to PNG screenshot - GET /health β liveness check - CDP WebSocket proxy on /cdp for direct browser control - Token-based authentication via Bearer header or query param - Per-request browser context isolation with concurrency control - CloakBrowser with 58 source-level anti-fingerprint patches - 13 vendored zerodep modules, only external dep is cloakbrowser - Docker image based on python:3.12-slim - GitHub CI: pre-commit (ruff + ty), multi-arch Docker (amd64/arm64) - Auto-deploy to HF Spaces and Docker Hub/GHCR - Bilingual README (en/zh)1293e20