Skip to content

Security: base-head/babel

Security

SECURITY.md

Security

Features

  • Localhost-only - Binds to 127.0.0.1
  • Input validation - 500 char max, null byte sanitization
  • Rate limiting - 30 req/min per IP
  • Optional auth - API key via X-API-Key header
  • CORS - Restricted to localhost:3200-3202
  • Safe execution - No shell injection, eval, or exec

Configuration

Enable Authentication

export TTS_API_KEY=$(openssl rand -base64 32)
python3 -m app.api_server

Use with Auth

curl -H "X-API-Key: your-key" http://localhost:5003/api/tts?text=Hello

Production Deployment

⚠️ Do NOT expose to internet without:

  1. Enable authentication (TTS_API_KEY)
  2. Use HTTPS reverse proxy
  3. Configure firewall
  4. Update CORS origins
  5. Monitor rate limits

Security Status

Protection Status
Command injection ✅ Safe subprocess
Path traversal ✅ Hardcoded paths
DoS ✅ Rate limiting
XSS ✅ No HTML rendering
CSRF ✅ CORS + localhost

Reporting Issues

Email maintainer directly - do not create public issues.

There aren't any published security advisories