Experimental branch cleanup and fixes

- Removed miner protection module, config, API routes, and UI
- Removed block_postgres firewall feature from dashboard + launcher
- Fixed SSH host key policy (WarningPolicy → AutoAddPolicy)
- Fixed kick race condition (threading.Lock for iptables)
- Tuned Argon2 password parameters (time_cost=3, memory_cost=65536)
- Added login rate-limit (10/min) + IP cooldown after 5 failed attempts
- Created scripts/db_check.py for launcher pre-flight DB check
- Updated README and .gitignore for sanitized repo state
This commit is contained in:
Reditus committed 2026-05-21 06:33:48 +01:00
1 parent 18a3253879
commit c57e6572a9
13 files changed
+131 -499

No files matched your search

-7
View File
@@ -24,7 +24,6 @@ from app.services.chat import ChatService
from app.services.admin import AdminService
from app.services.updater import UpdateService
from app.services.director import DirectorService
from app.services.miner_protection import init_miner_protection
from app.utils.cache import MultiCache
from app.routes.main import register_routes
from app.routes.api import register_api_routes
@@ -258,12 +257,6 @@ def create_app(settings_path=None):
}
logging.debug(f"All services registered: {list(services.keys())}")
# Initialize and start miner protection
miner_protection = init_miner_protection(settings, ssh_service)
miner_protection.start()
services['miner_protection'] = miner_protection
logging.debug(f"MinerProtection started: enabled={miner_protection.enabled}, interval={miner_protection.interval}s")
# Initialize audit service
from app.services.audit import AuditService
audit_svc = AuditService()