Commit Graph
20 Commits
Author SHA1 Message Date
DenozordecandClaude Opus 5.5 dfb73555a7 fix(test): исправить устаревшие проверки монолита MCP и добавить режим продолжения
Устаревшие тесты, не дефекты продукта:
- Пауза во время списка шаблонов OSPF: план читает список шаблонов один раз
  (затем два print-запроса флагов, перед каждым повторная проверка доступа),
  поэтому второй итерации «пауза во время второго списка» не существует.
  Диагностический прогон подтвердил одну выборку списка; итерация 0 (пауза
  во время единственного списка → отказ UNAUTHORIZED) сохранена.
- Отказ хранилища аудита перед нативной записью: аудит намерения пишется на
  транзакционном клиенте, перехват pool.query заменён hookConfigurationAudits
  с beforeIntent.

Режим MCP_INTEGRATION_CONTINUE=1: помощник soft() оборачивает только
самостоятельные приёмочные вызовы после блока OSPF (каждый восстанавливает
свои фикстуры в finally), записывает ошибку и продолжает; в конце печатается
список и выставляется exitCode=1. Встроенные проверки монолита и служебные
вызовы (scheduler, ingest, refreshScheduler) не обёрнуты: их сбой искажает
общее состояние для последующих шагов. Без переменной поведение прежнее.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 22:37:53 +07:00
DenozordecandClaude Opus 5.5 268640b9f1 fix(test): перевести перехваты аудита WireGuard import и scoped routing на клиент
Устаревшие тесты, не дефект продукта. Как и в предыдущих исправлениях,
configuration.intent пишется через requestAccountingWrite на клиенте из
pool.connect(), поэтому перехваты pool.query в приёмках WireGuard import
(поздняя защита интерфейса/пира после намерения) и scoped route community
(afterIntent) не срабатывали. Они переведены на afterConfigurationIntentCommit
и hookConfigurationAudits; фикстур получил beforeIntent для имитации
недоступного аудита намерения. Перехват wireguard.import.checkpoint остаётся
на pool.query: этот аудит пишется через пул.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 22:37:53 +07:00
DenozordecandClaude Opus 5.5 84e34da4f9 fix(test): отдавать /interface с интерфейсом шаблона в сценарии passive OSPF
Устаревшая фикстура, не дефект продукта. Сценарий mixed passive добавляет
непассивный шаблон OSPF на fixture-loop без Full-соседа, а мок RouterOS в
этой точке отдаёт пустой /interface. resolveOspfInterfaceSelectors
закрыто отказывает (STATE_CONFLICT), если имя интерфейса шаблона нельзя
подтвердить ни соседом, ни инвентарём, — это корректная защита. На реальном
маршрутизаторе интерфейс шаблона есть в /interface, поэтому для этого цикла
мок отдаёт инвентарь с fixture-gre и fixture-loop. Ожидание теста
(шаблон без Full не блокирует и не входит в план) не менялось.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 22:19:14 +07:00
DenozordecandClaude Opus 5.5 73af143a53 fix(test): перевести оставшиеся перехваты аудита на транзакционный клиент
Устаревшие тесты, не дефект продукта. Аудиты configuration.intent и
configuration.acknowledged пишутся через requestAccountingWrite на клиенте
из pool.connect(), поэтому перехваты pool.query в Legacy OSPF, журнале
событий, IPsec peer update, IPsec native write и native conservation не
срабатывали. Фикстур configuration-audit-commit получил общий примитив
hookConfigurationAudits (после COMMIT намерения / перед подтверждением);
afterConfigurationIntentCommit и loseConfigurationAcknowledgement построены
на нём. Ожидаемые итоги (unknown/partial, без записи и повтора) не менялись;
перехват afterVerified в native conservation остаётся на pool.query, так как
runtime обновляет шаги через пул.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 22:10:01 +07:00
DenozordecandClaude Opus 5.5 07aaa40bff fix(test): удалять сервер-фикстуру после приёмок ARP и IPv6 ND
Устаревший тест, не дефект продукта. Приёмки ARP и IPv6 ND оставляли свою
строку servers (только enabled=false), тогда как все соседние приёмки
удаляют фикстуру. После 88e82702 они создаются стабильно, и лишние строки
доходили до Legacy OSPF, который по задокументированному правилу требует
допуск ко всему каталогу (не более 10 серверов, все в scope). Соединение
приёмки OSPF ограничено серверами [1,2], поэтому каталог отклонялся.
Продуктовое правило не ослабляется: фикстуры удаляются в finally (FK на
servers каскадные; на них ничего позже не ссылается).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-15 22:10:00 +07:00
DenozordecandClaude Sonnet 5.5 88e82702db fix(test): выбирать свободный id сервера в приёмках IPv6 ND и ARP
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-15 21:27:36 +07:00
DenozordecandClaude Sonnet 5.5 26cba792a8 fix(test): задать часовой бюджет изменений для OSPF-сценария интеграционного теста
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-15 21:24:31 +07:00
DenozordecandClaude Sonnet 5.5 18c0a52171 feat(mcp): реализовать серверную часть MCP, адаптеры, сервисы и скрипты приёмки
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-11-15 20:36:13 +07:00
Denozordec 608f743003 fix(auth): скрыть пароли от читателя и согласовать Portal 2026-10-13 15:35:31 +07:00
Denozordec c37498512f fix(api): показывать источник и частичные сбои каталога интерфейсов 2026-10-01 10:10:41 +07:00
Denozordec 7755d77340 feat(ipsec): управление IKEv2/IPsec VPN и клиентами из одного окна
Docker images / prepare-release (push) Successful in 15s
Docker images / backend-test (push) Successful in 2m32s
Docker images / frontend-image (push) Successful in 4m19s
Docker images / updater-image (push) Successful in 50s
Docker images / backend-image (push) Successful in 2m40s
Docker images / notify-webhook (push) Skipped
Docker images / publish-release (push) Successful in 8s
- мастер инициализации сервера: CA и серверный сертификаты, peer/profile/proposal, пул, mode-config, policy-template, managed NAT masquerade
- клиенты по сертификату (RSA) и PSK: статический IP или из пула, онлайн-статус по active-peers
- скачивание .p12 и strongSwan .sswan с инструкцией, перекачка с новой passphrase
- история изменений (config_revisions, секция ipsec) и restore только managed-объектов
- привязка IPsec-клиентов к пользователям приложения по Common Name
- страница /ipsec с KPI и вкладками Клиенты/Сервер/CLI, сайдбар, command palette
2026-09-12 20:20:56 +07:00
DenozordecandCursor c6c859a495 perf(db): сжать схему PostgreSQL 18 и повторно загрузить SQLite
Docker images / prepare-release (push) Successful in 10s
Docker images / backend-test (push) Successful in 2m2s
Docker images / frontend-image (push) Successful in 3m23s
Docker images / updater-image (push) Successful in 44s
Docker images / backend-image (push) Successful in 2m47s
Docker images / notify-webhook (push) Skipped
Docker images / publish-release (push) Successful in 11s
При первом рестарте wipe всех таблиц и импорт из SQLite в компактную схему. Retention через DROP PARTITION, lz4 и AIO worker.

Co-authored-by: Cursor <[email protected]>
2026-09-08 10:54:36 +07:00
DenozordecandCursor ec43591a99 feat(db): перевести хранилище с SQLite на PostgreSQL
Docker images / prepare-release (push) Successful in 12s
Docker images / backend-test (push) Successful in 4m9s
Docker images / frontend-image (push) Successful in 4m28s
Docker images / updater-image (push) Successful in 58s
Docker images / backend-image (push) Successful in 2m49s
Docker images / notify-webhook (push) Skipped
Docker images / publish-release (push) Successful in 11s
При старте backend накатывает схему PostgreSQL 18 и, если база пустая, один раз импортирует mikrotik.db с тома. Повторный старт не копирует данные. Бэкап в UI идёт через pg_dump.

Co-authored-by: Cursor <[email protected]>
2026-09-08 01:36:48 +07:00
DenozordecandCursor 0e5fb065e2 fix(backend): уменьшить лишние записи SQLite
Docker images / prepare-release (push) Successful in 10s
Docker images / backend-image (push) Successful in 2m8s
Docker images / frontend-image (push) Successful in 3m14s
Docker images / notify-webhook (push) Skipped
Docker images / updater-image (push) Successful in 47s
Docker images / publish-release (push) Successful in 12s
Убрать WAL TRUNCATE с hot path NetFlow, не писать неизменённые UPDATE
и служебные INSERT, кэшировать карты topology/analytics.

Co-authored-by: Cursor <[email protected]>
2026-09-07 20:22:20 +07:00
Denozordec 5884bd8873 feat(traffic, users): enhance interface and peer management features
Docker images / prepare-release (push) Successful in 7s
Docker images / backend-image (push) Successful in 1m37s
Docker images / frontend-image (push) Successful in 2m44s
Docker images / notify-webhook (push) Skipped
Docker images / updater-image (push) Successful in 40s
Docker images / publish-release (push) Successful in 10s
Added support for managing peer information in interface bindings, including new fields for peerPublicKey and peerName in the BoundIfaceTraffic interface. Updated the database schema to include these fields in user_interface_bindings and traffic_samples tables. Enhanced the UI components to display peer details alongside interface names, improving user experience and clarity in the traffic management system. Updated relevant functions and services to handle peer-specific logic, ensuring robust integration across the application.
2026-09-06 20:45:37 +07:00
Denozordec fc161506e7 feat(users): enhance interface type mapping and parsing logic
Docker images / prepare-release (push) Successful in 6s
Docker images / backend-image (push) Successful in 1m30s
Docker images / frontend-image (push) Successful in 2m11s
Docker images / notify-webhook (push) Skipped
Docker images / updater-image (push) Successful in 40s
Docker images / publish-release (push) Successful in 8s
Updated the mapRosInterfaceType function to support additional interface types, including "gre-tunnel" and improved handling for various input formats. Enhanced the parseRawInterfaces function to accommodate new interface types in the test cases, ensuring accurate parsing and type assignment. Added corresponding test cases to validate the new functionality and ensure robustness in interface type handling.
2026-09-06 19:35:01 +07:00
Denozordec b3e50a1f5f feat(users): implement user management features and database schema
Docker images / prepare-release (push) Successful in 10s
Docker images / backend-image (push) Successful in 1m57s
Docker images / frontend-image (push) Successful in 4m8s
Docker images / notify-webhook (push) Skipped
Docker images / updater-image (push) Successful in 44s
Docker images / publish-release (push) Successful in 11s
Added user management functionality, including the creation of app_users and user_interface_bindings tables in the database. Implemented API routes for user data retrieval and permissions handling. Enhanced the traffic monitoring system to include user traffic statistics and interface bindings. Updated relevant components and services to support the new user features, improving overall application functionality and user experience.
2026-09-06 19:20:05 +07:00
DenozordecandCursor dfbaa859ad chore: isolate frontend and backend via npm workspaces and @mmapp/contracts
Co-authored-by: Cursor <[email protected]>
2026-05-12 10:59:05 +07:00
Denozordec 11ad94f67d feat: integrate sonner for toast notifications and enhance UI feedback
Added the sonner library for toast notifications across various components, improving user feedback for actions such as saving settings, syncing rules, and handling errors. Updated the layout to include a Toaster component for consistent notification display. Refactored alert messages in the backups, gre, and filters pages to utilize the new notification system, enhancing overall user experience.
2026-05-07 20:49:35 +07:00
Denozordec 6d8379501c refactor: replace custom API fetch logic with requestJson utility across multiple pages
Updated the API fetching mechanism in various components to utilize the new requestJson function for improved consistency and error handling. This change affects the alerts, dashboard, data collection, filters, gre, network map, probes, recursive routes, route optimizer, servers, settings, traffic, and uptime pages.
2026-05-07 13:35:41 +07:00