Security Best Practices
This section covers security best practices for the Keralis system.
Key and Password Management
-
API Key Rotation
- Regularly change the hash server API key
- Schedule rotation every 90 days
-
Strong Passwords
- Use strong passwords for the dashboard
- Minimum 12 characters with uppercase, lowercase, numbers, and special characters
-
Secure Storage
- Back up
.env
files in a secure location - Add a .gitignore to avoid pushing your credentials
- Never share Hedera private keys
- Back up
Network Security
-
Firewall Configuration
- Limit access to necessary ports only
- Client Server: Port 3001 (API)
- Blockchain Server: Port 3000 (Dashboard)
-
HTTPS
- Configure HTTPS for the dashboard and API
- Use Let's Encrypt to obtain free certificates
Updates and Maintenance
-
Dependencies
- Regularly update dependencies
- Use
npm audit
to identify vulnerabilities
-
Operating System
- Apply security updates regularly
- Configure automatic updates
Monitoring and Audits
-
Access Logs
- Monitor access logs for the dashboard and API
- Configure alerts for suspicious access attempts
-
Regular Audit
- Perform a security audit every 6 months
- Verify configuration and permissions