Security fixes are applied to the latest release on the main branch.
Please do not open public GitHub issues for security vulnerabilities.
Email maintainers privately with:
- A description of the issue and potential impact
- Steps to reproduce
- Affected components (backend, frontend, SDK)
- Suggested fix, if available
We aim to acknowledge reports within 72 hours.
- Set
PROMPTLENS_API_KEYin production. The API rejects unauthenticated requests when this is configured. - Use the root
docker-compose.prod.ymlstack: PostgreSQL, API, frontend, and Caddy with optional automatic HTTPS. - Copy
.env.prod.exampleto.env.prodand run./scripts/prod-up.shfrom the repository root. - Restrict
PROMPTLENS_CORS_ORIGINSto trusted dashboard and SDK client origins. - Prefer same-origin deployment (
VITE_PROMPTLENS_API_URL=/api/v1behind Caddy) so the dashboard does not require cross-origin access. - Do not expose
/docsin production (disabled automatically whenPROMPTLENS_ENVIRONMENT=production). - Treat event metadata as sensitive — it may contain prompts, tool outputs, and RAG context.