You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When moving EventLens to production, you should lock down its read access and user endpoints.
1. Database Read-Only Access
Never grant EventLens write or owner permissions. Create a tight, read-only PostgreSQL role for the view schemas:
CREATE ROLE eventlens_ro LOGIN PASSWORD 'strong_password';
GRANT CONNECT ON DATABASE eventlens_dev TO eventlens_ro;
GRANT USAGE ON SCHEMA public TO eventlens_ro;
GRANTSELECTON ALL TABLES IN SCHEMA public TO eventlens_ro;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANTSELECTON TABLES TO eventlens_ro;
2. API Authentication
If deploying in a shared environment, enable Basic Auth in your eventlens.yaml:
Basic authentication transmits credentials in plain Base64. You must deploy EventLens behind a reverse proxy (like Nginx, Traefik, or Caddy) that serves as your TLS/HTTPS termination point.
4. Lock Down CORS
For production, update server.allowed-origins to explicitly match your environment domain instead of a default or wildcard.