Security Features
NOMOS provides comprehensive security features to protect your AI agents in production environments. These features can be configured individually based on your security requirements.Key Security Features
Authentication
JWT and API key authentication methods
Rate Limiting
Prevent abuse with configurable rate limits
CSRF Protection
Cross-site request forgery protection
CORS Configuration
Cross-origin resource sharing controls
Quick Start
Enable basic security features in your configuration:Security Endpoints
- Health Check:
GET /health
- No authentication required - Configuration:
GET /config
- Optional authentication - Token Generation:
POST /auth/token
- Generate test JWT tokens - Protected Endpoints: All session and chat endpoints require authentication when enabled
Environment Variables
Essential security environment variables:Variable | Description |
---|---|
JWT_SECRET_KEY | Secret key for JWT token signing |
CSRF_SECRET_KEY | Secret key for CSRF protection |
API_KEY_VALIDATION_URL | Endpoint URL for API key validation |
REDIS_URL | Redis connection URL for rate limiting |
Best Practices
- Use environment variables for all secret keys
- Enable HTTPS in production
- Limit CORS origins to trusted domains
- Monitor rate limiting patterns
- Regularly rotate secret keys
- Use strong, unique secret keys (32+ characters)