f7b5fff04e
Add synthetic ingest curl steps, update prod next steps for migration 004. Co-authored-by: Cursor <cursoragent@cursor.com>
66 lines
2.5 KiB
Markdown
66 lines
2.5 KiB
Markdown
# SAC production — текущий статус (KalinaMall)
|
|
|
|
Ориентир для продолжения работ. Обновляйте при смене этапа.
|
|
|
|
**Сервер:** Ubuntu 24.04, FQDN `sac.kalinamall.ru`
|
|
**Каталог:** `/opt/security-alert-center`
|
|
**Пользователь сервиса:** `sac` (git, venv, npm — только от него)
|
|
**Конфиг:** `/opt/security-alert-center/config/sac-api.env`
|
|
|
|
---
|
|
|
|
## Что уже работает (2026-05-26)
|
|
|
|
| Компонент | Статус |
|
|
|-----------|--------|
|
|
| PostgreSQL + Alembic | ✅ |
|
|
| `POST /api/v1/events` (ingest 202) | ✅ |
|
|
| `GET /health` | ✅ |
|
|
| nginx + wildcard TLS (`/etc/ssl/sac/`) | ✅ |
|
|
| JWT UI: Events, Hosts, **Problems** | ✅ (Problems после деплоя) |
|
|
| `SAC_ADMIN_PASSWORD` + вход в браузере | ✅ |
|
|
|
|
---
|
|
|
|
## Деплой обновлений
|
|
|
|
```bash
|
|
sudo /opt/sac-deploy.sh
|
|
```
|
|
|
|
См. `deploy/sac-deploy.sh`, [install-ubuntu-24.04-native.md §13](install-ubuntu-24.04-native.md#13-обновление-sac-деплой).
|
|
|
|
**Не делать:** `sudo git pull` в каталоге приложения (ломает права `.git` для `sac`).
|
|
|
|
---
|
|
|
|
## Тестовый агент (ubabuba, 10.10.36.9)
|
|
|
|
| Параметр | Значение |
|
|
|----------|----------|
|
|
| Хост | `ubabuba` / `10.10.36.9` |
|
|
| Репозиторий | `git.kalinamall.ru/PapaTramp/ssh-monitor` (`main`, есть `sac-client.sh`) |
|
|
| `UseSAC` | пилот **exclusive** — см. [pilot-2.1-exclusive.md](pilot-2.1-exclusive.md) |
|
|
| Сервис | `ssh-monitor.service` — **active** |
|
|
| `--check-sac` | OK (health + ingest `agent.test` 202) |
|
|
|
|
Переключить на `dual` после настройки Telegram в `/etc/ssh-monitor.conf`.
|
|
|
|
---
|
|
|
|
## Следующие шаги (2026-05-29)
|
|
|
|
1. **Деплой SAC v0.5.0** — `sudo /opt/sac-deploy.sh` (включает `alembic upgrade head`, миграция **`004_notification_channels`**)
|
|
2. **notif-02** — прогон [testing-e2e-checklist.md](testing-e2e-checklist.md) § «SAC Telegram» на prod
|
|
3. **Настройки UI** — `/settings`: Telegram `warning+`, кнопка «Проверить Telegram»
|
|
4. **RDP 1.2.20-SAC** — NETLOGON + `Deploy-LoginMonitor.ps1` на пилотных хостах
|
|
5. Пилот **UseSAC=exclusive** на Windows — ~16.06 (см. [todo-2026-05-29.md](todo-2026-05-29.md))
|
|
|
|
---
|
|
|
|
## Ссылки
|
|
|
|
- [agent-integration.md](agent-integration.md)
|
|
- [ssl-certificate.md](ssl-certificate.md)
|
|
- [work-plan.md](work-plan.md)
|