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:
@ -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,
|
||||
)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user