-
Notifications
You must be signed in to change notification settings - Fork 0
Production Security
Ahmed edited this page Mar 16, 2026
·
2 revisions
When moving EventLens to production, you should lock down its read access and user endpoints.
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;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO eventlens_ro;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO eventlens_ro;If deploying in a shared environment, enable Basic Auth in your eventlens.yaml:
server:
auth:
enabled: true
username: admin
password: changemeBasic 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.
For production, update server.allowed-origins to explicitly match your environment domain instead of a default or wildcard.