Security Configuration
Authentication & Player Security
Enable online mode
Configure forwarding mode
velocity- Modern, secure (recommended)bungeeguard- Token-based securitylegacy- BungeeCord compatibility (less secure)none- No forwarding (not recommended)
Generate strong secrets
Enable force key authentication
Require permissions for commands
Disable untrusted plugin channels
Network Security
Enable rate limiting
Configure proxy protocol (if behind load balancer)
Secure API endpoint
Configure backend server addresses
Disable backend server online mode
Performance Optimization
Optimize compression settings
- High bandwidth, limited CPU:
level: 0(no compression) - Limited bandwidth:
level: 6(higher compression) - Balanced:
level: -1(default)
Configure timeouts
Enable automatic reconnection
Optimize server try list
Monitoring & Observability
Enable health checks
Enable OpenTelemetry
Configure logging
Set up alerting
- Player connection failures
- Backend server availability
- High latency or packet loss
- Resource usage (CPU, memory)
- Error rates
High Availability
Deploy multiple instances
Configure load balancer health checks
Set up resource limits
Configure pod disruption budgets
Enable graceful shutdown
Configuration Validation
Test configuration locally
Verify server connectivity
Test player authentication
- Connect with a real Minecraft account
- Verify UUID is correct on backend
- Check player skin loads properly
- Test server switching
Load testing
Backup & Disaster Recovery
Backup configuration
Document secrets
Create rollback plan
- Keep previous Docker image tags
- Maintain config backups
- Test rollback procedure
Monitor deployment
Pre-Launch Checklist
Before going live, verify:- Online mode is enabled
- Forwarding mode is configured with strong secret
- Rate limiting is enabled
- Backend servers are configured correctly
- Health checks are working
- Monitoring and alerting are set up
- Multiple instances are running (HA)
- Load balancer is configured
- Resource limits are set
- Debug mode is disabled
- Configuration is backed up
- Rollback procedure is documented
- Team is trained on operations
- Incident response plan is ready
Post-Deployment
Monitor for 24-48 hours
- Player connection success rate
- Latency and performance
- Error logs
- Resource usage
Gather feedback
- Connection problems
- Performance complaints
- Feature requests
Document operations
- Common issues and fixes
- Scaling procedures
- Update process
- Emergency procedures
Plan regular maintenance
- Weekly: Review metrics and logs
- Monthly: Update to latest Gate version
- Quarterly: Security audit
- Annually: Architecture review
Common Production Issues
Issue: Players can’t connect
Checklist:- Verify Gate is running:
docker psorkubectl get pods - Check port is open:
nc -zv <gate-ip> 25565 - Review logs for errors
- Verify firewall rules
- Check rate limiting hasn’t blocked legitimate players
Issue: Backend server connection failed
Checklist:- Verify backend server is running
- Check server address in config
- Test network connectivity from Gate to backend
- Verify forwarding is configured on backend
- Check backend server logs
Issue: Players have wrong UUIDs
Checklist:- Verify online mode is enabled on Gate
- Check forwarding mode matches backend configuration
- Ensure forwarding secret matches on all servers
- Verify backend server is in offline mode
Issue: High memory usage
Solutions:- Review compression settings
- Check for connection leaks
- Increase resource limits if needed
- Monitor for DDoS attacks
- Review quota settings
Security Incident Response
If you suspect a security breach:-
Immediate actions:
- Review access logs
- Check for unauthorized configuration changes
- Verify forwarding secrets haven’t been compromised
-
Containment:
- Rotate forwarding secrets if compromised
- Update configuration on all servers
- Review and tighten security settings
-
Recovery:
- Restore from known-good configuration
- Verify system integrity
- Monitor for continued suspicious activity
-
Post-incident:
- Document what happened
- Update security procedures
- Train team on new procedures

