This project contains default credentials and keys that must be changed before deploying to production:
-
API Key: The default API key is
secret12345- Change with environment variable:
LPS2_API_KEY=your_secure_key_here
- Change with environment variable:
-
Admin Password: The default admin password is
admin123- Change with environment variable:
LPS2_ADMIN_PASSWORD=your_secure_password_here
- Change with environment variable:
-
Secret Key: The default Flask secret key is
dev-insecure-secret-key- Change with environment variable:
LPS2_SECRET_KEY=your_random_secret_key_here
- Change with environment variable:
Deploying with default credentials poses a significant security risk. Generate strong, unique values for all these settings in production.
-
TLS Encryption: Always enable TLS in production
- Set
LPS2_ENABLE_TLS=1and provide valid certificates
- Set
-
Secure Storage: Consider encrypting
memory_store.jsonandknowledge_store.jsonfiles if they contain sensitive data -
Rate Limiting: Adjust rate limit settings based on your deployment needs
- Modify
LPS2_RATE_*environment variables
- Modify
-
Audit Logging: Monitor
audit.logfor suspicious activities -
Regular Updates: Keep dependencies updated to address security vulnerabilities
-
Login-First & Session Timeouts: The application enforces a login page before accessing the UI and supports configurable session timeouts:
LPS2_SESSION_IDLE_SECONDS(default 1800s) – expires idle sessionsLPS2_SESSION_ABSOLUTE_SECONDS(default 28800s) – maximum session lifetime- API requests receive
401 {"error":"session_expired"}; the client automatically redirects to/loginwith a toast.
For more detailed security information, see the ARCHITECTURE.md file.