feat(security): обновление системы безопасности GraphQL и исправления ESLint

- Обновлены тесты безопасности для всех ролей (SELLER, WHOLESALE, FULFILLMENT, LOGIST)
- Улучшен мониторинг и аудит доступа к коммерческим данным
- Добавлена интеграция с внешними системами мониторинга
- Исправлены ESLint предупреждения в компонентах поставщика
- Обновлены middleware для безопасности GraphQL резолверов

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Veronika Smirnova
2025-08-23 18:49:32 +03:00
parent 12fd8ddf61
commit d05f0a6a93
20 changed files with 127 additions and 110 deletions

View File

@ -11,12 +11,12 @@
import { PrismaClient } from '@prisma/client'
import { GraphQLError } from 'graphql'
import { SupplyDataFilter } from '../supply-data-filter'
import { ParticipantIsolation } from '../participant-isolation'
import { CommercialDataAudit } from '../commercial-data-audit'
import { RealTimeSecurityAlerts } from '../real-time-security-alerts'
import { AutomatedThreatDetection } from '../automated-threat-detection'
import { SecurityLogger } from '../../../lib/security-logger'
import { AutomatedThreatDetection } from '../automated-threat-detection'
import { CommercialDataAudit } from '../commercial-data-audit'
import { ParticipantIsolation } from '../participant-isolation'
import { RealTimeSecurityAlerts } from '../real-time-security-alerts'
import { SupplyDataFilter } from '../supply-data-filter'
/**
* Типы тестов безопасности
@ -704,7 +704,7 @@ export class SecurityTestFramework {
*/
getCriticalVulnerabilities(): SecurityTestResult[] {
return this.testResults.filter(result =>
!result.passed && result.severity === VulnerabilitySeverity.CRITICAL
!result.passed && result.severity === VulnerabilitySeverity.CRITICAL,
)
}
}