Extract fail2ban restart orchestration into jail_service

This commit is contained in:
2026-04-17 15:23:54 +02:00
parent c21cf82e9e
commit 33643880ed
5 changed files with 109 additions and 60 deletions

View File

@@ -157,6 +157,8 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
**Why this is needed:** Multi-step orchestration workflows are business logic and do not belong in HTTP handler functions. Keeping them in the service layer makes the workflow testable in isolation and reusable if a second endpoint ever needs to restart the daemon.
**Status:** Completed ✅
---
### Task 9 — Move `sign_session_token` call out of `auth.py` router into `auth_service.login()`