feat: HTML Telegram templates for RDP/SSH events (notif-30)
Agent-style messages from event details, parse_mode HTML, templates for login/sudo/RDG and problems; unit tests. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -68,6 +68,8 @@ TELEGRAM_CHAT_ID=<chat>
|
||||
|
||||
Events и problems используют **одно** глобальное правило (`notification_policy` в БД, миграция `007`).
|
||||
|
||||
Telegram из SAC отправляется с **`parse_mode=HTML`** (как у RDP-login-monitor): для `rdp.login.*` — пользователь, IP, `logon_type`, рабочая станция, Event ID Windows; для `ssh.login.*` и `privilege.sudo.command` — поля из `details`.
|
||||
|
||||
UI **Настройки** (`/settings`) — правило + параметры каналов (JWT admin). После деплоя: `alembic upgrade head`.
|
||||
|
||||
### 1.4. Версии и доставка обновлений
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
|
||||
| ID | Задача |
|
||||
|----|--------|
|
||||
| `notif-30` | Шаблон TG ближе к агенту (HTML, поля user/ip/logon_type из `details`) |
|
||||
| `notif-30` | Шаблон TG ближе к агенту (HTML, поля user/ip/logon_type из `details`) | ✅ `telegram_templates.py`, `parse_mode=HTML` |
|
||||
| `notif-31` | Cooldown/dedup на уровне SAC (F-NOT-03) — не дублировать problem при burst |
|
||||
| `notif-32` | F-NOT-05: daily report из SAC при exclusive (отдельный эпик) |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user