This document covers the LocalChat AI orchestration backend (src/*, API, infrastructure, and contracts).
This project is under active development. Treat the latest mainline code as the supported baseline unless your team defines tagged release branches.
If you discover a security issue:
- Do not open a public issue with exploit details.
- Report privately to the maintainers through your designated security channel.
- Include reproduction steps, impact, and suggested mitigations when possible.
- API authentication/authorization middleware is not enabled by default.
- Admin and maintenance endpoints are available on the same API surface.
- Deploy only in trusted networks or behind a secure gateway until auth controls are added.
- Never commit real provider keys/tokens to git history.
- Configure secrets via environment variables or a secrets manager.
- Rotate keys immediately if they are exposed in source, logs, or artifacts.
- Terminate TLS at a trusted edge proxy.
- Add request throttling/rate limits at gateway level.
- Restrict access to
/api/admin*endpoints. - Enforce backup encryption and least-privilege filesystem access.
- Monitor
/healthand error rates for anomaly detection.