From 2bd97c8838c0757ad88cdf0f43d61a0658f2b0d1 Mon Sep 17 00:00:00 2001 From: Danil01042005 Date: Fri, 27 Nov 2026 22:04:42 +0300 Subject: [PATCH] Implement lab7 security and compromised worker recovery evidence --- .editorconfig | 16 + .gitattributes | 4 + .github/workflows/application.yml | 25 + .gitignore | 2 + Dockerfile | 19 + REPORT.md | 143 +- build.gradle | 76 + compose.test.yaml | 17 + contracts/trust-matrix.md | 48 +- docker-compose.yml | 851 + evidence/accepted-jobs.json | 25 + evidence/backpressure.json | 20 + evidence/bao-policy.txt | 34 + evidence/bao-upgrade.json | 11 + evidence/broker-recovery.json | 17 + evidence/broker-recovery.txt | 22 + evidence/broker-repair.json | 7 + evidence/failover-1.txt | 8 + evidence/failover-2.txt | 8 + evidence/failover-containers.json | 1242 ++ evidence/failover-other.json | 11 + evidence/failover-other.txt | 16 + evidence/fenced-pending.json | 7 + evidence/final-audit.txt | 6 + evidence/junit.txt | 20 + evidence/load-resources.json | 1805 ++ evidence/load.json | 17 + evidence/load.txt | 22 + evidence/make-check.txt | 7 + evidence/make-security.txt | 7 + evidence/make-test.txt | 7 + evidence/make-validate.txt | 7 + evidence/metric-inventory.json | 127 + evidence/observe.txt | 6 + evidence/persistence.txt | 7 + evidence/pipeline-faults.json | 67 + evidence/pipeline_ack_guard.txt | 6 + evidence/pipeline_boundaries.txt | 7 + evidence/pipeline_core.txt | 10 + evidence/pipeline_faults.txt | 21 + evidence/pipeline_filename.txt | 6 + evidence/pipeline_history_capacity.txt | 6 + evidence/pipeline_retention.txt | 10 + evidence/pipeline_upload_crash.txt | 6 + evidence/restart-containers.json | 248 + evidence/scan-summary.json | 14459 ++++++++++++++++ evidence/security-auth.json | 37 + evidence/security-auth.txt | 42 + evidence/security-baseline.txt | 61 + evidence/security-inventory.json | 551 + evidence/security-inventory.txt | 6 + evidence/security-lifecycle.json | 30 + evidence/security-lifecycle.txt | 40 + evidence/signal-link.json | 126 + evidence/source-manifest.json | 986 ++ evidence/start.txt | 299 + evidence/style.txt | 9 + evidence/tls-matrix.txt | 72 + evidence/worker-compromise.json | 56 + gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 46175 bytes gradle/wrapper/gradle-wrapper.properties | 7 + gradlew | 248 + gradlew.bat | 93 + infra/otel/alerts.yaml | 45 + infra/otel/collector.yaml | 77 + infra/otel/grafana/dashboards/messenger.json | 501 + .../provisioning/dashboards/provider.yaml | 6 + .../provisioning/datasources/datasources.yaml | 45 + infra/otel/loki.yaml | 31 + infra/otel/prometheus.yaml | 22 + infra/otel/runbook.md | 22 + infra/otel/tempo.yaml | 23 + infra/security/api-start.sh | 5 + infra/security/bao-migrate.hcl | 6 + infra/security/bao.hcl | 14 + infra/security/gateway.conf | 42 + infra/security/grafana-start.sh | 5 + infra/security/pg_hba.conf | 3 + infra/security/policies/api-s3.json | 1 + infra/security/policies/api.hcl | 2 + infra/security/policies/dispatcher-s3.json | 1 + infra/security/policies/dispatcher.hcl | 2 + infra/security/policies/worker-s3.json | 1 + infra/security/policies/worker.hcl | 2 + infra/security/postgres-start.sh | 7 + nginx.conf | 42 + pyproject.toml | 3 + requirements-tools.txt | 7 + scripts/bootstrap.py | 239 + scripts/capture.py | 64 + scripts/final_audit.py | 56 + scripts/provision.py | 220 + scripts/restart.cmd | 3 + scripts/restart.sh | 4 + scripts/scan.py | 168 + scripts/stack_operator.py | 108 + scripts/start.ps1 | 22 + scripts/start.sh | 14 + scripts/stop-one.cmd | 3 + scripts/stop-one.sh | 4 + scripts/style.py | 88 + scripts/verify_pipeline.py | 58 + scripts/verify_security.py | 27 + security/SCAN_TRIAGE.md | 37 + security/THREAT_MODEL.md | 25 +- settings.gradle | 8 + .../messenger/MessengerLab1Application.java | 17 + .../messenger/cache/CacheHealthTracker.java | 19 + .../mtusi/messenger/config/JacksonConfig.java | 31 + .../mtusi/messenger/config/MinioConfig.java | 32 + .../mtusi/messenger/config/OpenApiConfig.java | 15 + .../messenger/config/RateLimitConfig.java | 29 + .../mtusi/messenger/config/RedisConfig.java | 132 + .../messenger/config/SecurityConfig.java | 86 + .../config/properties/AppProperties.java | 6 + .../properties/IdempotencyProperties.java | 6 + .../config/properties/InstanceProperties.java | 6 + .../properties/RateLimitProperties.java | 6 + .../config/properties/RedisProperties.java | 17 + .../config/properties/S3Properties.java | 40 + .../config/properties/SessionProperties.java | 8 + .../config/properties/UploadProperties.java | 12 + .../controller/AttachmentController.java | 43 + .../messenger/controller/AttachmentsApi.java | 314 + .../mtusi/messenger/controller/AuthApi.java | 138 + .../messenger/controller/AuthController.java | 28 + .../messenger/controller/ChatController.java | 37 + .../mtusi/messenger/controller/ChatsApi.java | 298 + .../mtusi/messenger/controller/HealthApi.java | 92 + .../controller/HealthController.java | 24 + .../controller/MessageController.java | 39 + .../messenger/controller/MessagesApi.java | 228 + .../messenger/controller/UserController.java | 27 + .../mtusi/messenger/controller/UsersApi.java | 178 + .../GlobalExceptionHandler.java | 247 + .../ru/mtusi/messenger/dto/AttachmentDTO.java | 417 + .../java/ru/mtusi/messenger/dto/ChatDTO.java | 155 + .../ru/mtusi/messenger/dto/ChatPageDTO.java | 105 + .../ru/mtusi/messenger/dto/CreateChatDTO.java | 107 + .../mtusi/messenger/dto/CreateMessageDTO.java | 60 + .../ru/mtusi/messenger/dto/CreateUserDTO.java | 120 + .../java/ru/mtusi/messenger/dto/ErrorDTO.java | 73 + .../ru/mtusi/messenger/dto/ErrorErrorDTO.java | 156 + .../ru/mtusi/messenger/dto/HealthDTO.java | 103 + .../ru/mtusi/messenger/dto/MessageDTO.java | 197 + .../mtusi/messenger/dto/MessagePageDTO.java | 105 + .../ru/mtusi/messenger/dto/SessionDTO.java | 172 + .../java/ru/mtusi/messenger/dto/UserDTO.java | 140 + .../ru/mtusi/messenger/dto/VariantDTO.java | 258 + .../messenger/exception/ApiErrorFactory.java | 80 + .../exception/ConflictException.java | 7 + .../exception/InvalidRequestException.java | 7 + .../exception/NotFoundException.java | 7 + .../exception/PayloadTooLargeException.java | 7 + .../exception/RateLimitedException.java | 7 + .../ServiceUnavailableException.java | 7 + .../exception/StaleAttachmentException.java | 11 + .../StorageUnavailableException.java | 7 + .../exception/UnauthorizedException.java | 7 + .../UnsupportedMediaTypeException.java | 7 + .../messenger/filter/InstanceIdFilter.java | 33 + .../filter/PasswordBudgetFilter.java | 71 + .../messenger/filter/RateLimitFilter.java | 54 + .../messenger/filter/RequestIdFilter.java | 35 + .../messenger/filter/SecretLeaseFilter.java | 50 + .../filter/ServiceIdentityFilter.java | 52 + .../messenger/filter/TelemetryFilter.java | 122 + .../messenger/mapper/AttachmentMapper.java | 64 + .../ru/mtusi/messenger/mapper/ChatMapper.java | 36 + .../mtusi/messenger/mapper/MessageMapper.java | 31 + .../mtusi/messenger/mapper/SessionMapper.java | 20 + .../ru/mtusi/messenger/mapper/UserMapper.java | 21 + .../ru/mtusi/messenger/model/Attachment.java | 87 + .../messenger/model/AttachmentStatus.java | 10 + .../java/ru/mtusi/messenger/model/Chat.java | 67 + .../mtusi/messenger/model/IdempotencyKey.java | 54 + .../ru/mtusi/messenger/model/Message.java | 63 + .../ru/mtusi/messenger/model/Session.java | 48 + .../java/ru/mtusi/messenger/model/User.java | 60 + .../repository/AttachmentRepository.java | 18 + .../messenger/repository/ChatRepository.java | 52 + .../repository/IdempotencyRepository.java | 46 + .../repository/MessageRepository.java | 42 + .../repository/SessionRepository.java | 12 + .../messenger/repository/UserRepository.java | 33 + .../security/ApiAuthenticationEntryPoint.java | 43 + .../messenger/security/BasicCredentials.java | 29 + .../mtusi/messenger/security/LoginBudget.java | 26 + .../security/RequiredDependenciesHealth.java | 29 + .../mtusi/messenger/security/SecretLease.java | 20 + .../security/SessionAuthenticationFilter.java | 64 + .../SessionAuthenticationProvider.java | 36 + .../security/SessionAuthenticationToken.java | 34 + .../messenger/security/SessionPrincipal.java | 5 + .../messenger/service/AttachmentService.java | 274 + .../service/AttachmentVariantService.java | 57 + .../mtusi/messenger/service/AuthService.java | 38 + .../mtusi/messenger/service/ChatService.java | 135 + .../messenger/service/HealthService.java | 63 + .../messenger/service/IdempotencyService.java | 83 + .../messenger/service/MessageService.java | 165 + .../service/ProcessingJobService.java | 63 + .../service/SessionCacheService.java | 74 + .../messenger/service/SessionService.java | 82 + .../mtusi/messenger/service/UserService.java | 91 + .../mtusi/messenger/telemetry/Telemetry.java | 169 + .../ru/mtusi/messenger/util/CursorCodec.java | 41 + .../mtusi/messenger/util/TokenGenerator.java | 17 + .../ru/mtusi/messenger/util/TokenHasher.java | 37 + .../IdempotencyPayloadConverter.java | 31 + .../validation/AttachmentValidator.java | 81 + .../messenger/validation/ChatValidator.java | 68 + .../validation/IdempotencyValidator.java | 41 + src/main/resources/application.yaml | 147 + src/main/resources/db/migration/V1__init.sql | 185 + .../messenger/AttachmentIntegrationTest.java | 49 + .../MessengerLab1ApplicationTests.java | 23 + student-tests/bao_policy.py | 66 + student-tests/broker_recovery.py | 63 + student-tests/failover_other.py | 104 + student-tests/incidents.py | 314 + student-tests/observe.py | 185 + student-tests/pipeline_ack_guard.py | 15 + student-tests/pipeline_boundaries.py | 133 + student-tests/pipeline_core.py | 142 + student-tests/pipeline_faults.py | 373 + student-tests/pipeline_filename.py | 39 + student-tests/pipeline_history_capacity.py | 53 + student-tests/pipeline_retention.py | 135 + student-tests/pipeline_support.py | 168 + student-tests/pipeline_upload_crash.py | 86 + student-tests/revocation_probe.py | 75 + student-tests/security_auth.py | 135 + student-tests/security_baseline.py | 159 + student-tests/security_inventory.py | 114 + student-tests/security_lifecycle.py | 236 + student-tests/telemetry_support.py | 90 + student-tests/tls_matrix.py | 168 + student-tests/worker_rights.py | 178 + worker/Dockerfile | 8 + worker/pipeline/__init__.py | 0 worker/pipeline/broker.py | 42 + worker/pipeline/cleanup.py | 64 + worker/pipeline/config.py | 31 + worker/pipeline/faults.py | 16 + worker/pipeline/images.py | 63 + worker/pipeline/main.py | 173 + worker/pipeline/operator.py | 104 + worker/pipeline/outbox.py | 61 + worker/pipeline/process.py | 91 + worker/pipeline/repository.py | 174 + worker/pipeline/secret_agent.py | 62 + worker/pipeline/storage.py | 63 + worker/pipeline/telemetry.py | 187 + worker/requirements-resolved.txt | 27 + worker/requirements.txt | 6 + 256 files changed, 36364 insertions(+), 36 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .github/workflows/application.yml create mode 100644 Dockerfile create mode 100644 build.gradle create mode 100644 compose.test.yaml create mode 100644 docker-compose.yml create mode 100644 evidence/accepted-jobs.json create mode 100644 evidence/backpressure.json create mode 100644 evidence/bao-policy.txt create mode 100644 evidence/bao-upgrade.json create mode 100644 evidence/broker-recovery.json create mode 100644 evidence/broker-recovery.txt create mode 100644 evidence/broker-repair.json create mode 100644 evidence/failover-1.txt create mode 100644 evidence/failover-2.txt create mode 100644 evidence/failover-containers.json create mode 100644 evidence/failover-other.json create mode 100644 evidence/failover-other.txt create mode 100644 evidence/fenced-pending.json create mode 100644 evidence/final-audit.txt create mode 100644 evidence/junit.txt create mode 100644 evidence/load-resources.json create mode 100644 evidence/load.json create mode 100644 evidence/load.txt create mode 100644 evidence/make-check.txt create mode 100644 evidence/make-security.txt create mode 100644 evidence/make-test.txt create mode 100644 evidence/make-validate.txt create mode 100644 evidence/metric-inventory.json create mode 100644 evidence/observe.txt create mode 100644 evidence/persistence.txt create mode 100644 evidence/pipeline-faults.json create mode 100644 evidence/pipeline_ack_guard.txt create mode 100644 evidence/pipeline_boundaries.txt create mode 100644 evidence/pipeline_core.txt create mode 100644 evidence/pipeline_faults.txt create mode 100644 evidence/pipeline_filename.txt create mode 100644 evidence/pipeline_history_capacity.txt create mode 100644 evidence/pipeline_retention.txt create mode 100644 evidence/pipeline_upload_crash.txt create mode 100644 evidence/restart-containers.json create mode 100644 evidence/scan-summary.json create mode 100644 evidence/security-auth.json create mode 100644 evidence/security-auth.txt create mode 100644 evidence/security-baseline.txt create mode 100644 evidence/security-inventory.json create mode 100644 evidence/security-inventory.txt create mode 100644 evidence/security-lifecycle.json create mode 100644 evidence/security-lifecycle.txt create mode 100644 evidence/signal-link.json create mode 100644 evidence/source-manifest.json create mode 100644 evidence/start.txt create mode 100644 evidence/style.txt create mode 100644 evidence/tls-matrix.txt create mode 100644 evidence/worker-compromise.json create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100755 gradlew create mode 100644 gradlew.bat create mode 100644 infra/otel/alerts.yaml create mode 100644 infra/otel/collector.yaml create mode 100644 infra/otel/grafana/dashboards/messenger.json create mode 100644 infra/otel/grafana/provisioning/dashboards/provider.yaml create mode 100644 infra/otel/grafana/provisioning/datasources/datasources.yaml create mode 100644 infra/otel/loki.yaml create mode 100644 infra/otel/prometheus.yaml create mode 100644 infra/otel/runbook.md create mode 100644 infra/otel/tempo.yaml create mode 100755 infra/security/api-start.sh create mode 100644 infra/security/bao-migrate.hcl create mode 100644 infra/security/bao.hcl create mode 100644 infra/security/gateway.conf create mode 100644 infra/security/grafana-start.sh create mode 100644 infra/security/pg_hba.conf create mode 100644 infra/security/policies/api-s3.json create mode 100644 infra/security/policies/api.hcl create mode 100644 infra/security/policies/dispatcher-s3.json create mode 100644 infra/security/policies/dispatcher.hcl create mode 100644 infra/security/policies/worker-s3.json create mode 100644 infra/security/policies/worker.hcl create mode 100644 infra/security/postgres-start.sh create mode 100644 nginx.conf create mode 100644 pyproject.toml create mode 100644 requirements-tools.txt create mode 100644 scripts/bootstrap.py create mode 100644 scripts/capture.py create mode 100644 scripts/final_audit.py create mode 100644 scripts/provision.py create mode 100644 scripts/restart.cmd create mode 100755 scripts/restart.sh create mode 100644 scripts/scan.py create mode 100644 scripts/stack_operator.py create mode 100644 scripts/start.ps1 create mode 100755 scripts/start.sh create mode 100644 scripts/stop-one.cmd create mode 100755 scripts/stop-one.sh create mode 100644 scripts/style.py create mode 100644 scripts/verify_pipeline.py create mode 100644 scripts/verify_security.py create mode 100644 security/SCAN_TRIAGE.md create mode 100644 settings.gradle create mode 100644 src/main/java/ru/mtusi/messenger/MessengerLab1Application.java create mode 100644 src/main/java/ru/mtusi/messenger/cache/CacheHealthTracker.java create mode 100644 src/main/java/ru/mtusi/messenger/config/JacksonConfig.java create mode 100644 src/main/java/ru/mtusi/messenger/config/MinioConfig.java create mode 100644 src/main/java/ru/mtusi/messenger/config/OpenApiConfig.java create mode 100644 src/main/java/ru/mtusi/messenger/config/RateLimitConfig.java create mode 100644 src/main/java/ru/mtusi/messenger/config/RedisConfig.java create mode 100644 src/main/java/ru/mtusi/messenger/config/SecurityConfig.java create mode 100644 src/main/java/ru/mtusi/messenger/config/properties/AppProperties.java create mode 100644 src/main/java/ru/mtusi/messenger/config/properties/IdempotencyProperties.java create mode 100644 src/main/java/ru/mtusi/messenger/config/properties/InstanceProperties.java create mode 100644 src/main/java/ru/mtusi/messenger/config/properties/RateLimitProperties.java create mode 100644 src/main/java/ru/mtusi/messenger/config/properties/RedisProperties.java create mode 100644 src/main/java/ru/mtusi/messenger/config/properties/S3Properties.java create mode 100644 src/main/java/ru/mtusi/messenger/config/properties/SessionProperties.java create mode 100644 src/main/java/ru/mtusi/messenger/config/properties/UploadProperties.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/AttachmentController.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/AttachmentsApi.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/AuthApi.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/AuthController.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/ChatController.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/ChatsApi.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/HealthApi.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/HealthController.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/MessageController.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/MessagesApi.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/UserController.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/UsersApi.java create mode 100644 src/main/java/ru/mtusi/messenger/controller/controllerAdvice/GlobalExceptionHandler.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/AttachmentDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/ChatDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/ChatPageDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/CreateChatDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/CreateMessageDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/CreateUserDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/ErrorDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/ErrorErrorDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/HealthDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/MessageDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/MessagePageDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/SessionDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/UserDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/dto/VariantDTO.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/ApiErrorFactory.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/ConflictException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/InvalidRequestException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/NotFoundException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/PayloadTooLargeException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/RateLimitedException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/ServiceUnavailableException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/StaleAttachmentException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/StorageUnavailableException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/UnauthorizedException.java create mode 100644 src/main/java/ru/mtusi/messenger/exception/UnsupportedMediaTypeException.java create mode 100644 src/main/java/ru/mtusi/messenger/filter/InstanceIdFilter.java create mode 100644 src/main/java/ru/mtusi/messenger/filter/PasswordBudgetFilter.java create mode 100644 src/main/java/ru/mtusi/messenger/filter/RateLimitFilter.java create mode 100644 src/main/java/ru/mtusi/messenger/filter/RequestIdFilter.java create mode 100644 src/main/java/ru/mtusi/messenger/filter/SecretLeaseFilter.java create mode 100644 src/main/java/ru/mtusi/messenger/filter/ServiceIdentityFilter.java create mode 100644 src/main/java/ru/mtusi/messenger/filter/TelemetryFilter.java create mode 100644 src/main/java/ru/mtusi/messenger/mapper/AttachmentMapper.java create mode 100644 src/main/java/ru/mtusi/messenger/mapper/ChatMapper.java create mode 100644 src/main/java/ru/mtusi/messenger/mapper/MessageMapper.java create mode 100644 src/main/java/ru/mtusi/messenger/mapper/SessionMapper.java create mode 100644 src/main/java/ru/mtusi/messenger/mapper/UserMapper.java create mode 100644 src/main/java/ru/mtusi/messenger/model/Attachment.java create mode 100644 src/main/java/ru/mtusi/messenger/model/AttachmentStatus.java create mode 100644 src/main/java/ru/mtusi/messenger/model/Chat.java create mode 100644 src/main/java/ru/mtusi/messenger/model/IdempotencyKey.java create mode 100644 src/main/java/ru/mtusi/messenger/model/Message.java create mode 100644 src/main/java/ru/mtusi/messenger/model/Session.java create mode 100644 src/main/java/ru/mtusi/messenger/model/User.java create mode 100644 src/main/java/ru/mtusi/messenger/repository/AttachmentRepository.java create mode 100644 src/main/java/ru/mtusi/messenger/repository/ChatRepository.java create mode 100644 src/main/java/ru/mtusi/messenger/repository/IdempotencyRepository.java create mode 100644 src/main/java/ru/mtusi/messenger/repository/MessageRepository.java create mode 100644 src/main/java/ru/mtusi/messenger/repository/SessionRepository.java create mode 100644 src/main/java/ru/mtusi/messenger/repository/UserRepository.java create mode 100644 src/main/java/ru/mtusi/messenger/security/ApiAuthenticationEntryPoint.java create mode 100644 src/main/java/ru/mtusi/messenger/security/BasicCredentials.java create mode 100644 src/main/java/ru/mtusi/messenger/security/LoginBudget.java create mode 100644 src/main/java/ru/mtusi/messenger/security/RequiredDependenciesHealth.java create mode 100644 src/main/java/ru/mtusi/messenger/security/SecretLease.java create mode 100644 src/main/java/ru/mtusi/messenger/security/SessionAuthenticationFilter.java create mode 100644 src/main/java/ru/mtusi/messenger/security/SessionAuthenticationProvider.java create mode 100644 src/main/java/ru/mtusi/messenger/security/SessionAuthenticationToken.java create mode 100644 src/main/java/ru/mtusi/messenger/security/SessionPrincipal.java create mode 100644 src/main/java/ru/mtusi/messenger/service/AttachmentService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/AttachmentVariantService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/AuthService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/ChatService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/HealthService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/IdempotencyService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/MessageService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/ProcessingJobService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/SessionCacheService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/SessionService.java create mode 100644 src/main/java/ru/mtusi/messenger/service/UserService.java create mode 100644 src/main/java/ru/mtusi/messenger/telemetry/Telemetry.java create mode 100644 src/main/java/ru/mtusi/messenger/util/CursorCodec.java create mode 100644 src/main/java/ru/mtusi/messenger/util/TokenGenerator.java create mode 100644 src/main/java/ru/mtusi/messenger/util/TokenHasher.java create mode 100644 src/main/java/ru/mtusi/messenger/util/converter/IdempotencyPayloadConverter.java create mode 100644 src/main/java/ru/mtusi/messenger/validation/AttachmentValidator.java create mode 100644 src/main/java/ru/mtusi/messenger/validation/ChatValidator.java create mode 100644 src/main/java/ru/mtusi/messenger/validation/IdempotencyValidator.java create mode 100644 src/main/resources/application.yaml create mode 100644 src/main/resources/db/migration/V1__init.sql create mode 100644 src/test/java/ru/mtusi/messenger/AttachmentIntegrationTest.java create mode 100644 src/test/java/ru/mtusi/messenger/MessengerLab1ApplicationTests.java create mode 100644 student-tests/bao_policy.py create mode 100644 student-tests/broker_recovery.py create mode 100644 student-tests/failover_other.py create mode 100644 student-tests/incidents.py create mode 100644 student-tests/observe.py create mode 100644 student-tests/pipeline_ack_guard.py create mode 100644 student-tests/pipeline_boundaries.py create mode 100644 student-tests/pipeline_core.py create mode 100644 student-tests/pipeline_faults.py create mode 100644 student-tests/pipeline_filename.py create mode 100644 student-tests/pipeline_history_capacity.py create mode 100644 student-tests/pipeline_retention.py create mode 100644 student-tests/pipeline_support.py create mode 100644 student-tests/pipeline_upload_crash.py create mode 100644 student-tests/revocation_probe.py create mode 100644 student-tests/security_auth.py create mode 100644 student-tests/security_baseline.py create mode 100644 student-tests/security_inventory.py create mode 100644 student-tests/security_lifecycle.py create mode 100644 student-tests/telemetry_support.py create mode 100644 student-tests/tls_matrix.py create mode 100644 student-tests/worker_rights.py create mode 100644 worker/Dockerfile create mode 100644 worker/pipeline/__init__.py create mode 100644 worker/pipeline/broker.py create mode 100644 worker/pipeline/cleanup.py create mode 100644 worker/pipeline/config.py create mode 100644 worker/pipeline/faults.py create mode 100644 worker/pipeline/images.py create mode 100644 worker/pipeline/main.py create mode 100644 worker/pipeline/operator.py create mode 100644 worker/pipeline/outbox.py create mode 100644 worker/pipeline/process.py create mode 100644 worker/pipeline/repository.py create mode 100644 worker/pipeline/secret_agent.py create mode 100644 worker/pipeline/storage.py create mode 100644 worker/pipeline/telemetry.py create mode 100644 worker/requirements-resolved.txt create mode 100644 worker/requirements.txt diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..713ed32 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{java,py}] +indent_style = space +indent_size = 4 +max_line_length = 100 + +[*.java] +ij_java_class_count_to_use_import_on_demand = 999 +ij_java_names_count_to_use_import_on_demand = 999 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b156126 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text=auto eol=lf +*.bat text eol=crlf +*.cmd text eol=crlf +*.jar binary diff --git a/.github/workflows/application.yml b/.github/workflows/application.yml new file mode 100644 index 0000000..7518803 --- /dev/null +++ b/.github/workflows/application.yml @@ -0,0 +1,25 @@ +name: Application +on: [push, pull_request] +permissions: + contents: read +jobs: + application: + runs-on: ubuntu-latest + timeout-minutes: 35 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '21' + - run: python -m venv .venv + - run: .venv/bin/python -m pip install -r requirements-tools.txt + - run: chmod +x gradlew && ./gradlew test --no-daemon + - run: .venv/bin/python scripts/style.py + - run: sh scripts/start.sh + - run: make check validate test test-security PYTHON=.venv/bin/python BASE_URL=https://127.0.0.1:8443 CA_FILE=secrets/public/ca.crt + - if: always() + run: docker compose down diff --git a/.gitignore b/.gitignore index b5a7189..acb5ac8 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ coverage/ .vscode/ # Keep small, sanitized evidence summaries in evidence/ under version control. # Inspect git diff --cached: ignore rules are not a secret scanner. + +.gradle/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a40f74d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM eclipse-temurin:21-jdk-jammy@sha256:432e54724c3e57d1846aeb886f4d339f3b0522931c4e64119c2797013b7cfc3c AS builder +WORKDIR /build +COPY gradle gradle +COPY gradlew settings.gradle build.gradle ./ +COPY src src +RUN --mount=type=cache,target=/root/.gradle,sharing=locked chmod +x gradlew && ./gradlew bootJar -x test --no-daemon + +FROM eclipse-temurin:21-jre-jammy@sha256:a8bff88f760e87e0c8844f8461f807c203fd5e8f78c951c843024647e965eaf5 AS runner +WORKDIR /app +RUN groupadd --system --gid 10001 spring && useradd --system --uid 10001 --gid spring --no-create-home spring +COPY --from=builder /build/build/libs/*.jar app.jar +COPY infra/security/api-start.sh /app/start.sh +RUN chown spring:spring app.jar +USER spring +EXPOSE 8080 +HEALTHCHECK --interval=10s --timeout=3s --start-period=20s --retries=3 \ + CMD wget -qO- http://127.0.0.1:8081/actuator/health/readiness | grep -q UP || exit 1 +ENV JAVA_OPTS="-XX:MaxRAMPercentage=75 -Xss512k" +ENTRYPOINT ["sh", "/app/start.sh"] diff --git a/REPORT.md b/REPORT.md index 9801db4..df65244 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,37 +1,152 @@ # Отчёт — лабораторная 7 -- Автор, группа: TODO -- Целевая оценка; выбранный трек 5, если нужен: TODO -- Commit/PR: TODO после публикации -- Использованные источники, библиотеки и помощь ИИ: TODO +- Автор, группа: **Иванов Данил, БВТ2301**. +- Целевая оценка: **5, трек 1 — компрометация worker**. +- Привязка результатов к исходникам: [SHA-256 manifest](evidence/source-manifest.json); все даты запуска и exit codes сохранены в текстовых capture. +- База: upstream `mtusi2026/mtusi2026lab7`, `20afc2c`; ветка `solution/bvt2301-ivanov`. Доказательства относятся к исходникам и image IDs из `evidence/`. +- Перенесено собственное решение ЛР6 из `mtusi2026lab6` (53183c4), без `.git`, secrets, volumes и замены задания/публичных tests/контракта ЛР7. Использован Codex для реализации, проверки и подготовки отчёта; стороннее студенческое решение не использовалось. Первичные источники перечислены ниже. ## Запуск из чистого clone -TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных. +Проверенная среда — Windows 11, PowerShell, Docker Desktop Linux containers; все project data/caches размещены на D:. Нужны Docker Compose v2, Git, Python 3.12.16 для operator/tests, JDK 21 для локального Gradle/style и GNU Make. Точные hardware, image IDs и limits фиксирует [inventory](evidence/security-inventory.json). Приложение также полностью собирается Dockerfile с JDK 21; внешние БД/S3 не нужны. + +```powershell +git clone https://gitea.privcloud.tech/landcruiser200/mtusi2026lab7.git +cd mtusi2026lab7 +git switch solution/bvt2301-ivanov +$env:UV_CACHE_DIR = 'D:\AppData\uv-cache' +$env:UV_PYTHON_INSTALL_DIR = 'D:\AppData\python-managed' +py -m pip install uv==0.13.10 +py -m uv venv --python 3.12.16 .venv +py -m uv pip install --python .venv/Scripts/python.exe -r requirements-tools.txt +./scripts/start.ps1 +``` + +`start.ps1` останавливается при ошибке шага: локальный PKI/secrets → подготовка ACL → build → одноразовая установка владельцев только собственных volumes → старт gateway/PG/S3/OpenBao → operator init/unseal → одна транзакция миграции `V1__init.sql` и DB grants → private bucket/S3 policies → весь стенд с ожиданием readiness. Миграция принадлежит оператору; Flyway и DDL у runtime API выключены, Hibernate проверяет схему. Повторный запуск сохраняет данные и уже созданные secrets. Для обычного старта существующего стенда: + +```powershell +docker compose up -d gateway db minio openbao +./.venv/Scripts/python.exe scripts/stack_operator.py unseal +docker compose up -d --wait --wait-timeout 180 +``` + +Init/unseal — действие оператора, не auto-unseal сервера. `secrets/operator/bao-init.json` содержит operator material и не монтируется ни в OpenBao, ни в agents/app. Для учебного single-operator окружения выбран один unseal share; вне этой модели нужны раздельные custodians и защищённое external хранение. Bootstrap защищает каталог Windows ACL текущего пользователя и SYSTEM. CA private key хранит только оператор; в Git нет private material. + +API: `https://127.0.0.1:8443`; также работает `https://localhost:8443`. CA: `secrets/public/ca.crt`. Выбран IP endpoint в тестах, чтобы исключить задержки IPv6 fallback Windows. Grafana: `https://127.0.0.1:13007/d/messenger-lab6`, login `admin`, пароль только в `secrets/operator/grafana_password`. OpenBao UI/API: `https://127.0.0.1:18200`; browser должен доверять локальному CA. S3 не опубликован: operator mc запускается одноразово с TLS. Swagger UI в runtime выключен; contract остаётся в `contracts/`. + +```powershell +$env:PATH = 'D:\AppData\Tools;' + $env:PATH +make check PYTHON=.venv/Scripts/python.exe +make validate PYTHON=.venv/Scripts/python.exe +make test PYTHON=.venv/Scripts/python.exe BASE_URL=https://127.0.0.1:8443 CA_FILE=secrets/public/ca.crt +make test-security PYTHON=.venv/Scripts/python.exe BASE_URL=https://127.0.0.1:8443 CA_FILE=secrets/public/ca.crt +$env:PYTHONPATH = 'tests' +$env:BASE_URL = 'https://127.0.0.1:8443' +$env:CA_FILE = (Resolve-Path secrets/public/ca.crt).Path +./.venv/Scripts/python.exe scripts/verify_pipeline.py +./.venv/Scripts/python.exe scripts/verify_security.py +./.venv/Scripts/python.exe student-tests/broker_recovery.py +``` + +Для Linux/CI предусмотрен `sh scripts/start.sh`; workflow `.github/workflows/application.yml` отдельно собирает приложение, запускает стенд и public checks. Локальные результаты приведены ниже; удалённый CI на Gitea не выдаётся за выполненный. + +Сценарии с изменением состояния выполняются последовательно. Перед failover после полного restart отдельно ожидаются readiness и health обеих API; public persistence подтверждает восстановление через LB, но сам по себе не гарантирует, что обе replicas уже готовы к следующему эксперименту. `verify_pipeline.py` включает только на время fault tests отдельный `compose.test.yaml` и grants на `pipeline_faults`, затем в `finally` восстанавливает production profile и отзывает grants. Слабее TLS/ACL он не делает. Ручные `pipeline-admin` и `pipeline-diagnostics` находятся в operator profile; workload их credentials не получает. Public smoke и resilience описаны также в неизменённом [tests/README.md](tests/README.md). + +Для persistence/failover на Windows исполняемые hooks — `scripts/restart.cmd` и `scripts/stop-one.cmd`, передаются в `tests/resilience.py --action-script ...`. Unix wrappers также приложены; для Make targets с shell builtin `test` на Windows можно задать `SHELL=C:/PROGRA~1/Git/bin/bash.exe`. Restart hook перезапускает OpenBao с operator unseal, gateway, API, agents, workers и все хранилища/telemetry; ничего не seed-ит и не удаляет. Failover hook сопоставляет случайный alias с `/tmp/instance-id` конкретного контейнера и оставляет ровно его остановленным. Восстановление: `docker compose start --wait api`. + +```powershell +docker compose stop +docker compose down +# Только намеренный полный сброс синтетических учебных данных: +docker compose down --volumes +``` + +Последняя команда не выполняется обычными hooks. После полного удаления volumes прежний local `bao-init.json` уже не подходит новому OpenBao: оператор должен отдельно архивировать/удалить старый bootstrap state и создать новый. Обычный restart сохраняет volumes и ключи. ## Архитектура и решения -TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab6, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации. +Две API-реплики за Nginx, два worker и один dispatcher. PostgreSQL — источник истины для пользователей, membership, сессий, сообщений, idempotency и pipeline. Redis cache не определяет актуальность отзыва токена. Redis Streams + AOF `appendfsync always` — at-least-once доставка, S3 — durable staging и результаты. Collector принимает OTLP metrics/logs/traces, Prometheus/Loki/Tempo хранят сигналы, Grafana provisioned автоматически. Перенесены три image variants, janitor, retry/fencing, dashboard, recording/alert rules и bounded telemetry queues из ЛР6. + +```mermaid +flowchart LR + Client -->|TLS + Bearer| LB + LB -->|mTLS, role lb| API1 + LB -->|mTLS, role lb| API2 + API1 & API2 -->|TLS + scoped DB role| PG[(PostgreSQL)] + API1 & API2 -->|TLS + scoped S3 user| S3[(Private S3)] + PG --> OutboxDispatcher + OutboxDispatcher -->|mTLS + producer ACL| Broker[(Redis Stream)] + Broker -->|mTLS + consumer ACL| Workers + Workers -->|TLS| PG & S3 + Agents -->|cert auth, token TTL 60 s| OpenBao[(Persistent OpenBao)] + Agents -->|separate tmpfs lease ≤40 s| API1 & API2 & Workers + API1 & API2 & Workers -->|mTLS| Collector + Prometheus -->|mTLS scrape| Collector + Collector -->|mTLS export| Stores[Loki / Tempo] + Grafana -->|mTLS query| Prometheus & Stores +``` + +До 202 приняты все bytes в S3 staging, затем одной DB транзакцией созданы attachment/job/outbox. S3+PG не являются общей distributed transaction: после process death до COMMIT возможен orphan, который удаляется по grace. Dispatcher публикует ссылки на job, Lua делает publication index + stream append атомарно. Worker claims защищены SQL row locks/SKIP LOCKED; lease token, attempt и pipeline version проверяются снова при COMMIT manifest/READY. Все варианты публикуются одной транзакцией после S3 writes. Crash до ACK приводит к повтору; stale worker не может перезаписать актуальный manifest. Advisory locks защищают окна janitor/upload/download, sorted attachment locks сохраняют eligibility до Message COMMIT, chat lock защищает последний slot истории. Idempotency result и message commit атомарны. + +Для Redis 7.4.12 учтён [дефект AOF replay с ACL](https://github.com/redis/redis/issues/14156): отключённый `default` имеет права для внутреннего replay, но `off resetpass` запрещает аутентификацию; внешние роли остаются ограниченными. Без этого Redis пропускал MULTI/EXEC при restart, в том числе ACK/delete. Очередь не сбрасывалась: после исправления AOF перечитан; 24 старые записи, для которых PG подтвердил READY, направлены на штатную идемпотентную повторную доставку. Метод и результат: [repair](evidence/broker-repair.json), [restart regression](evidence/broker-recovery.json). Затем повторены реальные crash/restart tests. + +Изменения ЛР7: native TLS PG/S3/OpenBao/API; mTLS LB/API, broker, cache и telemetry gateway с проверкой роли; отдельные PG/S3/queue credentials; non-dev OpenBao cert auth/scoped KV; Argon2id 19456 KiB/t2/p1, salt 16 bytes, hash 32 bytes и CAS rehash без перезаписи более нового concurrent hash; общий SQL login budget и локальный semaphore; hardening и закрытые admin interfaces. 256-bit session token хранится в виде SHA-256, а не plaintext. Business API не менялся. + +API JDK 21 / Spring Boot 4.1.3 / OTel 1.68.0 / Bouncy Castle 1.85; Python 3.12.16 / Pillow 13.0.0. Python resolved dependencies закреплены в `worker/requirements-resolved.txt`. Полные image digests находятся в `docker-compose.yml` и Dockerfiles; deployment использует local application tags 7.0.0. Подробные протоколы, SAN/role ACL, cache и ограничения proxy boundary — в [trust matrix](contracts/trust-matrix.md); конкретные угрозы — в [модели угроз](security/THREAT_MODEL.md). + +`.env.example` сохранён как исходный интерфейс задания. Реальные bindings: `PUBLIC_BASE_URL` → аргумент BASE_URL tests, CA → `secrets/public/ca.crt` и `/pki/ca.crt`; DB URL → `SPRING_DATASOURCE_URL`/psycopg Settings; `*_FILE` credentials заменены чтением OpenBao bundle и configtree `/runtime`; Redis/broker — разные ACL users; S3 endpoint/bucket/region/MAX_UPLOAD_BYTES/MAX_IMAGE_PIXELS и OTEL settings заданы в Compose. API replicas фиксированы двумя; `WORKER_CONCURRENCY` по умолчанию 2; `SESSION_TTL_SECONDS` по умолчанию 3600. ## Доказательства критериев | Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства | | --- | --- | --- | --- | -| Публичный smoke | make test | TODO | TODO | -| Остальные пункты уровня 3 | TODO | TODO | TODO | -| Все пункты уровня 4, если заявлен | TODO | TODO | TODO | -| Выбранный трек 5, если заявлен | TODO | TODO | TODO | +| Оригинальное задание/контракт/tests, структура и схема | make check; make validate; inventory | Исходные tests/контракт сохранены; student-filled trust matrix — предусмотренное исключение | [check](evidence/make-check.txt), [validate](evidence/make-validate.txt), [inventory](evidence/security-inventory.json) | +| Публичный HTTPS smoke, ACL/logout/идемпотентность/attachments | make test | Сквозной public scenario текущей ЛР | [вывод](evidence/make-test.txt), [описание tests](tests/README.md) | +| Неподтверждённый CA и SAN | make test-security; tls_matrix; worker_rights | Именно TLS verification error, а не timeout | [внешний тест](evidence/make-security.txt), [матрица](evidence/tls-matrix.txt), [DB/S3 права](evidence/worker-compromise.json) | +| mTLS LB → каждая API, role allowlist, нет bypass | tls_matrix; inventory | Два IP; valid LB проходит, no cert/foreign CA/wrong same-CA role отвергнуты | [вывод](evidence/tls-matrix.txt), [порты](evidence/security-inventory.json) | +| Все зависимости TLS, scrape/health/admin/local hops | matrix audit; реальная корреляция telemetry | Native server verify и закрытые local listeners; отсутствует опубликованный plaintext business API | [trust matrix](contracts/trust-matrix.md), [tls](evidence/tls-matrix.txt), [сигналы](evidence/signal-link.json) | +| Non-dev persistent OpenBao, scoped auth, root вне workload | bao_policy; restart; inventory | Own path read; cross-path/write denied; 60 s token expires, root/unseal mounts отсутствуют | [policy](evidence/bao-policy.txt), [restart](evidence/restart-containers.json), [inventory](evidence/security-inventory.json) | +| Argon2id, salt/params, rehash, session expiry, общий login budget | security_auth | 19 MiB/t2/p1, upgrade старого hash, expiry 401, 429/Retry-After на двух API; KDF memory bound 76 MiB | [JSON измерения](evidence/security-auth.json) | +| Ограничение bytes/pixels/filename и ACL | JUnit; pipeline_core; filename | Полный decode/415, byte/pixel limits, опасное имя 400, чужое/межчатовое 404 | [JUnit](evidence/junit.txt), [pipeline](evidence/pipeline_core.txt), [filename](evidence/pipeline_filename.txt) | +| Non-root, limits, readonly, no-new-privileges, cap drop, safe mounts | inventory | Проверяются реальные HostConfig/UID/ports/mount destinations | [inventory](evidence/security-inventory.json) | +| mTLS broker и Collector с разными ролями | tls_matrix; worker_rights | Trusted-CA wrong role не получает доступ даже с правильным broker password | [матрица](evidence/tls-matrix.txt), [права](evidence/worker-compromise.json) | +| Ротация рабочего secret + leaf без build, revoke/expiry/sealed | security_lifecycle + revocation_probe | Old DB/S3/cert identity denied на новых connections, новый worker восстанавливает 10 jobs; lease expiry приводит к 503 | [результат](evidence/security-lifecycle.json), [вывод](evidence/security-lifecycle.txt) | +| Dependency/image scan и применимость | Trivy fs/rootfs/image, затем ручной triage | Обновлены уязвимые app libraries и base images; остаточные image findings не скрыты | [разбор](security/SCAN_TRIAGE.md), [scan summary](evidence/scan-summary.json) | +| Threat model ≥6 путей, worker budgets, telemetry privacy | threat model; pipeline faults/observe/inventory | Threat → control → negative command; subprocess/cgroup/time budgets; marker/credentials отсутствуют в сохранённых signals/logs | [модель](security/THREAT_MODEL.md), [observe](evidence/observe.txt), [inventory](evidence/security-inventory.json) | +| Полный restart c volumes и прежним token | public resilience persistence | Данные и bytes сохранены; timestamps реальных контейнеров изменились | [вывод](evidence/persistence.txt), [scope](evidence/restart-containers.json) | +| Отказ каждой API и concurrent writes | public failover + targeted other-replica scenario | Confirmed сообщения сохранены, stopped alias исчезает, retry не дублирует эффект | [public 1](evidence/failover-1.txt), [public 2](evidence/failover-2.txt), [api-1](evidence/failover-other.json), [контейнеры](evidence/failover-containers.json) | +| Трек 1: before/after compromise + revoke/recovery | security_baseline; real worker_rights; security_lifecycle | Broad baseline изолирован; реальные worker ACL запрещают лишние действия; 10/10 jobs восстановлены, 30 variants, original SHA-256 совпадают | [сравнение](evidence/worker-compromise.json), [lifecycle](evidence/security-lifecycle.json) | -TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены. +Текстовые доказательства содержат реальные команду, UTC, exit code и stdout, записанные `scripts/capture.py` с проверкой на известные private values. JSON содержит агрегаты/IDs, а не session tokens или bytes реальных сообщений. Условие PASS внутри тестов проверяется assertions; один `make check` не используется как доказательство работающего сервера. ## Эксперименты и отказы -TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения. +Гипотеза трека: компрометация worker с ограниченными правами не должна давать чтение password/session tables, изменение сообщений, DDL, очистку брокера и произвольные S3-prefix/admin operations; после отзыва всех связанных identities durable намерение обработки должно сохраниться. Методика: реальный exec внутри worker; broad baseline в отдельном disposable broker без сети, временном private bucket и rollback DB transaction/NOLOGIN role; затем 10 подтверждённых PNG uploads при остановленных worker, полная ротация, негативные свежие connections, запуск прежних images и сверка 10 originals/30 variants. + +Лимиты production: API ×2 по 1 CPU/512 MiB (heap 320 MiB), worker ×2 по 1 CPU/1 GiB, decoder RLIMIT_AS 768 MiB, timeout 60 s и lease 75 s; dispatcher 0.5 CPU/256 MiB. PG 1 CPU/512 MiB. Для целевых fault tests отдельно lease 8 s/timeout 25 s, max pending 6. Базовый максимум pending — 100. Измерения стенда/CPU/RAM и closed-loop сообщений находятся в [load](evidence/load.json), [сэмплы ресурсов](evidence/load-resources.json) и [inventory](evidence/security-inventory.json). Percentiles относятся к успешным HTTP acknowledgements; coordinated omission и overhead клиента не позволяют объявить предельную server capacity. Целевая grade5 гипотеза исследует blast radius/recovery, а не максимальный RPS. Последний public load: 30.062 s, concurrency 4, 1376 успешных POST, 0 ошибок, 45.772 successful RPS, p50/p95/p99 78/188/297 ms. Сэмплы Docker stats сохранены отдельно; это не замер peak RSS. | Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных | | --- | --- | --- | --- | -| TODO | TODO | TODO | TODO | +| Убийство API с concurrent POST | Survivor продолжает запись, idempotency сохраняется | Public сценарии наблюдают две replicas и подтверждают сохранность | [public результаты](evidence/failover-1.txt); [другая replica](evidence/failover-other.json) включает один transient failed attempt, без потери подтверждений | +| Полный restart | Старые token/data/file остаются | Public persistence PASS; реальные StartedAt всех компонентов изменились | [scope](evidence/restart-containers.json) | +| Отзыв worker DB/S3/broker/cert | Старый доступ закрыт, новые credentials восстанавливают работу | 10/10 READY, 30 manifest rows, 10 SHA-256 совпадений | [lifecycle](evidence/security-lifecycle.json), время измеряется от начала ротации | +| Expired leaf и sealed OpenBao | Новый handshake denied; после lease budget API 503, live 200; после unseal восстановление | Проверяются отдельно реальные expiry и новые connections | [измеренные интервалы](evidence/security-lifecycle.json) | +| Смерть между S3 PUT и DB COMMIT, publish/ACK/effects | Нет ложного подтверждения и потерянного durable job | Rollback/orphan, bounded retries, stale-token/version fence, нет duplicate manifest | [upload crash](evidence/pipeline_upload_crash.txt), [faults](evidence/pipeline_faults.txt) | + +Последний прогон трека: revoke/rotation и восстановление 10 jobs — **24.062 s**, без смены workload images; sealed OpenBao → fail-closed readiness/business — **38.062 s**, unseal → восстановление — **10.329 s**. Это интервалы конкретного single-host эксперимента, а не гарантированные SLO. Старые DB/S3 credentials и leaf проверены на новых connections. См. [исходные измерения](evidence/security-lifecycle.json). ## Ограничения и следующие шаги -TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза. +Один Docker-host, один LB/PG/S3/broker — это отказоустойчивость к отдельному API/worker и restart с сохранёнными volumes, не HA при потере host/volume. PKI leaf обновляет оператор до 8 h; автоматический CA rollover/renewal трека 2 не заявлен. Для ручного обновления конкретной роли: `./.venv/Scripts/python.exe scripts/bootstrap.py --rotate worker`, затем `scripts/provision.py prepare`, `scripts/provision.py bao` и `docker compose restart worker worker-agent`; gateway перечитывается через `docker compose exec -T gateway nginx -s reload`. Для остальных ролей используются соответствующие имена, MinIO требует prepare перед restart, API использует заново сформированный PKCS12. Отзыв старого leaf выполняет отдельный lifecycle-сценарий с CRL. Root/unseal требуют защиты/backup оператора, учебный один share не даёт разделения custodians. + +Least privilege уменьшает blast radius, но worker с RCE может прочесть доступные ему изображения, повреждать pipeline metadata/results, задерживать/подделывать обработку. Статические S3/DB KV credentials не имеют server-side TTL: при compromise нужна реальная ротация зависимостей; локальный lease не останавливает произвольный код атакующего. Исследование не имитирует Byzantine переписывание всех результатов, а проверяет разрешённые/запрещённые операции и сохранность подтверждённых jobs при revoke/recovery. Следующие меры — credentials на отдельный job, immutable results/Object Lock, отдельные identity на replica, несколько trust domains для dependency gateway. + +Fixed global login window допускает burst на границе минуты и denial законным клиентам при атаке; это измеренный предел CPU/RAM, не завершённая антибот-система. Предыдущий cached secret допускается только до локального lease deadline; начатая операция может завершиться в пределах своих SQL/HTTP budgets. Telemetry best effort, bounded queues могут терять наблюдения при долгой недоступности backend. Остаточные CVE/неполное покрытие binary dependencies указаны в [scan triage](security/SCAN_TRIAGE.md); «0 CVE во всём стенде» не заявляется. + +## Источники + +- [Spring Boot SSL](https://docs.spring.io/spring-boot/reference/features/ssl.html), dependency BOM из Maven Central; [OpenTelemetry Java releases](https://github.com/open-telemetry/opentelemetry-java/releases). +- [OpenBao cert authentication и CRL](https://openbao.org/docs/auth/cert/), [policies](https://openbao.org/docs/concepts/policies/), [HTTP API](https://openbao.org/api-docs/). +- [PostgreSQL SSL](https://www.postgresql.org/docs/16/ssl-tcp.html), [Redis ACL](https://redis.io/docs/latest/operate/oss_and_stack/management/security/acl/), [Nginx SSL stream](https://nginx.org/en/docs/stream/ngx_stream_ssl_module.html). +- [OWASP password storage](https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html), [file upload](https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html), [Trivy Java coverage](https://trivy.dev/docs/latest/guide/coverage/language/java/), [Bouncy Castle release](https://www.bouncycastle.org/resources/new-release-bouncy-castle-java-1-85/). +- GNU Make 4.4.1 Windows executable взят из [mbuilov/gnumake-windows](https://github.com/mbuilov/gnumake-windows), вне Git проекта. Public tests и шаблоны — исходный skeleton преподавателя. diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..17c0010 --- /dev/null +++ b/build.gradle @@ -0,0 +1,76 @@ +plugins { + id 'java' + id 'org.springframework.boot' version '4.1.3' + id 'io.spring.dependency-management' version '1.1.7' +} + +group = 'ru.mtusi' +version = '0.0.1-SNAPSHOT' + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(21) + } +} + +ext['opentelemetry.version'] = '1.68.0' + +repositories { + mavenCentral() +} + +dependencies { + implementation 'com.google.guava:guava:33.7.2-jre' + implementation 'org.xerial.snappy:snappy-java:1.1.10.9' + implementation 'io.opentelemetry:opentelemetry-sdk-extension-autoconfigure:1.68.0' + implementation 'io.opentelemetry:opentelemetry-exporter-otlp:1.68.0' + + implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation 'org.springframework.boot:spring-boot-starter-validation' + implementation 'org.springframework.boot:spring-boot-starter-webmvc' + + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:3.1.0' + implementation 'com.bucket4j:bucket4j-core:8.10.1' + implementation 'org.mapstruct:mapstruct:1.6.3' + implementation 'org.postgresql:postgresql:42.7.13' + implementation 'org.springframework.boot:spring-boot-starter-flyway' + runtimeOnly 'org.flywaydb:flyway-database-postgresql' + implementation 'org.springframework.boot:spring-boot-starter-data-jpa:4.1.3' + implementation 'org.springframework.boot:spring-boot-starter-data-redis:4.1.3' + implementation 'org.springframework.security:spring-security-crypto' + implementation 'org.bouncycastle:bcprov-jdk18on:1.85' + implementation 'org.springframework.boot:spring-boot-starter-security' + implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server' + implementation 'org.springframework.boot:spring-boot-starter-cache' + implementation 'org.springframework.boot:spring-boot-starter-aspectj' + implementation 'org.springframework.boot:spring-boot-starter-jackson' + implementation 'io.minio:minio:9.0.3' + + + runtimeOnly 'io.netty:netty-transport-native-epoll::linux-x86_64' + + testImplementation 'org.springframework.boot:spring-boot-starter-test:4.1.3' + + testImplementation 'org.springframework.boot:spring-boot-starter-restclient-test' + testImplementation 'org.springframework.boot:spring-boot-resttestclient' + + compileOnly 'org.projectlombok:lombok' + annotationProcessor 'org.mapstruct:mapstruct-processor:1.6.3' + annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0' + annotationProcessor 'org.projectlombok:lombok' + testCompileOnly 'org.projectlombok:lombok' + testAnnotationProcessor 'org.projectlombok:lombok' + + testImplementation 'org.springframework.boot:spring-boot-starter-actuator-test' + testImplementation 'org.springframework.boot:spring-boot-starter-validation-test' + testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' +} + +tasks.withType(JavaCompile).configureEach { + options.compilerArgs << '-parameters' +} + +tasks.named('test') { + useJUnitPlatform() +} diff --git a/compose.test.yaml b/compose.test.yaml new file mode 100644 index 0000000..ba3958a --- /dev/null +++ b/compose.test.yaml @@ -0,0 +1,17 @@ +services: + api: + environment: + JOB_MAX_ATTEMPTS: '3' + MAX_PENDING_JOBS: '6' + worker: + environment: + FAULT_INJECTION_ENABLED: 'true' + JOB_MAX_ATTEMPTS: '3' + JOB_LEASE_SECONDS: '8' + JOB_TIMEOUT_SECONDS: '25' + dispatcher: + environment: + FAULT_INJECTION_ENABLED: 'true' + JOB_MAX_ATTEMPTS: '3' + JOB_LEASE_SECONDS: '8' + JOB_TIMEOUT_SECONDS: '25' diff --git a/contracts/trust-matrix.md b/contracts/trust-matrix.md index 0c2a977..c667a40 100644 --- a/contracts/trust-matrix.md +++ b/contracts/trust-matrix.md @@ -1,23 +1,37 @@ -# Матрица доверия — заполнить в решении lab7 +# Матрица доверия решения ЛР7 -Это обязательная матрица покрытия. Для каждой строки укажите реальный порт, endpoint, CA, service identity, проверку SAN/ACL, срок жизни credentials и команду положительного/отрицательного теста. TLS шифрует и подтверждает сервер; mTLS также проверяет клиента. При доверенном CA всё равно нужно ограничивать разрешённую identity. Plaintext hop допустим только внутри закрытого локального transport/proxy boundary, без опубликованного обхода; границу и rationale нужно доказать. +Корневой CA создаёт оператор: `secrets/public/ca.crt`, RSA 3072/SHA-256, срок 365 суток. Его private key находится только в `secrets/operator/ca.key`. Leaf: RSA 2048, 8 часов, CN равен роли, URI SAN `spiffe://messenger/<роль>`, DNS SAN имени сервиса. Проверка сервера всегда включает CA и DNS/IP SAN; localhost и 127.0.0.1 указаны для локальных интерфейсов. Worker/dispatcher/Collector/Prometheus/Grafana/operator получают только ClientAuth EKU. Runtime secrets передаются через отдельные tmpfs volumes с readonly mount в потребителе. -| Связь | Минимум на 3 | Дополнительно на 4 | Доказательство / конфиг | -| --- | --- | --- | --- | -| Клиент → ingress/LB | TLS, CA + hostname, Bearer | Проверка expiry/revocation сессии и общего login rate limit | TODO | -| LB → API (все реплики) | mTLS + allowlist LB identity | Ротация leaf без обхода проверки | TODO | -| API/worker → PostgreSQL | TLS verify-full + раздельные ограниченные DB roles | Ротация credentials; mTLS — допустимое усиление | TODO | -| API/worker → S3 | TLS + разные scoped credentials/prefix rights | Проверка denied prefix и ротация | TODO | -| API/worker → broker | TLS + разные producer/consumer identities и ACL | mTLS + ограничение допустимых SAN/ролей | TODO | -| API/worker → Collector | TLS; сеть/аутентификация запрещает произвольный ingest | mTLS с раздельными identities | TODO | -| Collector → telemetry backends | TLS + scoped backend credentials или mTLS | Ротация и проверка least privilege | TODO | -| Grafana → data sources | TLS с проверкой сервера, ограниченная identity | Отрицательные проверки доступа | TODO | -| API/worker/agent → OpenBao | TLS + сервисный auth + scoped policy | Renewal/expiry/revocation | TODO | -| Оператор → OpenBao/Grafana/S3 admin | TLS + authentication, доступ локальный/через защищённый канал | Разделение operator/application roles | TODO | -| API → Redis/Valkey, если используется | TLS + ACL/пароль с минимальными правами | Ротация; mTLS по возможности | TODO | -| Replication/кластерные каналы, если добавлены | TLS/mTLS либо подтверждённый шифрованный transport | Проверка заявленной модели отказа | TODO | +| Связь | Endpoint и шифрование | Identity и разрешение | Lifecycle | Положительная / отрицательная проверка | +| --- | --- | --- | --- | --- | +| Клиент → LB | `https://127.0.0.1:8443`, TLS 1.2/1.3; CA + IP SAN, сертификат `lb` | Bearer; Basic только при login. Сессия PostgreSQL, SHA-256 случайного token, TTL 3600 s | Logout немедленно проверяется в БД; общий login budget 60/min, 2 KDF slots/API | `make test`, `make test-security`; `student-tests/security_auth.py`; [вывод](../evidence/make-test.txt), [auth](../evidence/security-auth.json) | +| LB → все API | `https://api:8443`, native Tomcat TLS, обязательный client cert | LB проверяет SAN `api`; API проверяет цепочку и точный CN `lb` в `ServiceIdentityFilter`. Нет опубликованных портов API | Leaf 8 h; ротация требует reload/restart потребителя. У upstream LB также CRL. Проверка client role обязательна после handshake | `docker compose run --rm --no-deps -T audit /checks/tls_matrix.py`: каждый из двух IP, valid LB / no cert / foreign CA / same-CA wrong role; [вывод](../evidence/tls-matrix.txt) | +| API/worker → PostgreSQL | `db:5432`, native TLS; JDBC/psycopg `verify-full`, SAN `db` | SCRAM roles `api`, `worker`, `dispatcher`; schema owner `operator` отсутствует в workload. Worker не читает users/sessions, не удаляет messages, не делает DDL | Статические KV credentials, явная ротация; старые worker sessions принудительно завершаются оператором | `worker_rights.py` внутри настоящего worker: encrypted session / plaintext / wrong hostname / foreign CA / ACL; [результат](../evidence/worker-compromise.json) | +| API/worker → S3 | `https://minio:9000`, native TLS, SAN `minio` | API: staging put/get/delete + results get. Worker: staging get/delete + results put/get; нет ListBucket. Dispatcher: listing и delete staging/results для janitor. Bucket private | Разные S3 identities в отдельных KV paths. Старый worker key отключается, новый привязывается к той же policy | `worker_rights.py`, `revocation_probe.py`; allowed results, denied admin prefix/delete result/bucket admin/listing; [политики](../infra/security/policies/worker-s3.json), [отзыв](../evidence/security-lifecycle.json) | +| API/worker → broker | `broker:6379`, mTLS gateway, проверка SAN `broker` | CN allowlist api/worker/dispatcher/operator. Дополнительно Redis ACL с разными паролями: API ping, dispatcher publish Lua/XADD/index, worker consumer/ACK. API использует PostgreSQL outbox, прямой publish не нужен | AOF fsync always; старый worker ACL удаляется при ротации. CRL на gateway, TLS tickets/cache off, reload ограничивает старые connections 5 s | `tls_matrix.py`, `worker_rights.py`: wrong-role certificate с правильным паролем всё равно отклоняется; forbidden key/FLUSHALL/producer denied; [вывод](../evidence/tls-matrix.txt) | +| API/worker → Collector | `https://otel-collector:4318`, mTLS | CN api/worker/dispatcher. Отдельные client identities, CA/SAN на SDK; operator/intruder ingest не разрешён | CRL, leaf 8 h; SDK bounded queues/timeouts. Отзыв worker проверяется новым TLS connection | `tls_matrix.py`, `revocation_probe.py`; [отзыв](../evidence/security-lifecycle.json) | +| Collector → backends | Loki `https://loki:3100/otlp`, Tempo `tempo:4317` gRPC/TLS с ALPN h2 | Client CN collector. Loki только POST `/otlp/v1/logs`; Tempo ingest только collector | CRL и leaf 8 h; bounded exporter queues 32, retry ≤10 s | `observe.py` проверяет реальные logs/traces, `tls_matrix.py` проверяет запрет worker; [связь сигналов](../evidence/signal-link.json) | +| Grafana → data sources | Prometheus `https://prometheus:9090`, Loki `https://loki:3100`, Tempo `https://tempo:3200` | Client CN grafana; TLS CA/cert/key provisioning, verify on. Loki/Tempo read only; Prometheus admin/write APIs не включены | Leaf 8 h, restart Grafana после ротации; private client key только в own mount | `observe.py` через Grafana proxy; `tls_matrix.py` запрещает worker/no-cert; [метрики](../evidence/metric-inventory.json) | +| Workload agents → OpenBao | `https://openbao:8200`, native TLS, SAN openbao | Cert auth: точные CN и URI SAN роли; policy разрешает read только `secret/data/` и revoke-self | Token TTL/max TTL 60 s, revoke после чтения; re-auth каждые 10 s. Локальный lease ≤40 s; root/unseal не в app. Leaf 8 h — ограниченный bootstrap identity, ручной renewal | `bao_policy.py`: свои secrets / чужие paths / write policy / write secret / expired token; `security_lifecycle.py`: seal/expiry; [вывод](../evidence/bao-policy.txt) | +| Оператор → OpenBao/Grafana/S3 admin | Bao `https://127.0.0.1:18200`, Grafana `https://127.0.0.1:13007`; S3 admin через одноразовый mc в private network с native TLS | Bao operator root из защищённого файла; Grafana admin password; S3 отдельный root, не workload user. Host bindings только 127.0.0.1 | Оператор init/unseal/backup/rotation; CA/root/unseal защищены Windows ACL. Operator containers только явный profile/run, в обычном up отсутствуют | `bao_policy.py`, `security_inventory.py`; [hardening](../evidence/security-inventory.json), [инструкция](../REPORT.md) | +| API → Redis cache | `redis:6380`, mTLS gateway, SAN redis | CN api + ACL user api, keys `sessions::*`, get/set/evict commands. PostgreSQL остаётся источником истины для revoke/expiry | Cache password отдельный от broker, из API KV. Сбой cache не разрешает отозванную сессию | `make test` logout; `security_auth.py` expiry; `tls_matrix.py`/inventory проверяют границу; [вывод](../evidence/make-test.txt) | +| Replication | N/A: по одному PostgreSQL, S3, broker; два API и два worker используют общие durable stores | Нет незаявленных replication links | Отказ host/единственной БД/LB не выдерживается как HA | [restart](../evidence/restart-containers.json), [ограничения](../REPORT.md) | -Нет выбранного компонента — отметьте N/A с причиной, а не оставляйте пустую строку. Внутренний публичный health listener, если нужен, минимален и изолирован; через него нельзя обращаться к бизнес-API без mTLS. Отдельно задокументируйте scrape/health/bootstrap каналы: они тоже не должны создавать обход. +## Закрытые локальные hops + +Gateway и Redis/telemetry backends образуют общий local proxy boundary через `network_mode: service:gateway`. Только gateway слушает bridge-интерфейс. Native backend listeners привязаны к 127.0.0.1: broker 16379, cache 16380, Collector 14318/18888/18889, Prometheus 19090, Loki 13100, Tempo 13200/14317/19095, Grafana 13000. Их plaintext недоступен из API/worker namespace и не публикуется на host. TLS-аудит реально проверяет закрытые порты. Backend-to-backend сетевые вызовы идут через TLS endpoints gateway, включая Collector export и Grafana datasource. + +Это единая доверенная область зависимостей, а не изоляция каждого backend от другого. Компрометация backend внутри неё имеет больший радиус, чем компрометация worker. Worker размещён в отдельном namespace; доступа к loopback этой области и Docker socket у него нет. + +## Scrape, health и bootstrap + +Prometheus mTLS → Collector 8889 и 8888, CN prometheus; native hops локальные. API management слушает только `127.0.0.1:8081`: один health endpoint, readiness включает SecretLease, PostgreSQL и S3. Через него нет business API. Docker health выполняется внутри контейнера. PG health использует local transport, S3 health — HTTPS с CA. Redis health локально подтверждает NOAUTH, функциональные authenticated проверки выполняют сами клиенты и отдельные tests. + +Init/unseal — явные действия оператора. `bao-permissions`/`s3-permissions` имеют только необходимые capabilities для владельца своих volumes и не подключены к сети; в app/worker capabilities отсутствуют. Root/unseal shares не монтируются в OpenBao server или agents. Secrets/bootstrap ACL не являются встроенным постоянным общим app token. + +## Отзыв и окна + +Ротация в `security_lifecycle.py` останавливает worker, меняет пароль DB, завершает его DB connections, отключает старый S3 user и broker ACL, добавляет serial в gateway/OpenBao CRL, выдаёт новый leaf и KV bundle, reload/restart выполняется без build. Проверки старых прав используют новые connections; resumption gateway выключен. Уже начатые честными сервисами операции ограничены SQL/HTTP/lease timeouts. Статический KV secret сам не истекает на PostgreSQL/S3: поэтому отзыв обязательно применяется к самим зависимостям. Истечение локального lease ограничивает исправный workload, но не заменяет downstream revoke при RCE. ## Обязательные отрицательные проверки diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..644a033 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,851 @@ +services: + gateway: + image: nginx:1.30.8-alpine@sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3 + user: 101:101 + command: + - nginx + - -g + - daemon off; + volumes: + - ./infra/security/gateway.conf:/etc/nginx/nginx.conf:ro + - ./secrets/gateway:/identity:ro + - ./secrets/public:/pki:ro + networks: + messenger-net: + aliases: + - broker + - redis + - otel-collector + - prometheus + - loki + - tempo + - grafana + ports: + - 127.0.0.1:13007:3000 + mem_limit: 64m + restart: unless-stopped + read_only: true + security_opt: &id001 + - no-new-privileges:true + cap_drop: &id002 + - ALL + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,mode=1777,noexec,nosuid,size=16m + cpus: '0.5' + pids_limit: 256 + db: + image: postgres:16-alpine@sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab + restart: unless-stopped + environment: + POSTGRES_DB: messenger + POSTGRES_USER: operator + POSTGRES_PASSWORD_FILE: /operator/postgres_password + volumes: + - pgdata:/var/lib/postgresql/data + - ./secrets/db:/identity:ro + - ./secrets/public:/pki:ro + - ./secrets/operator/postgres_password:/operator/postgres_password:ro + - ./infra/security/postgres-start.sh:/start.sh:ro + - ./infra/security/pg_hba.conf:/etc/pg_hba.conf:ro + networks: + - messenger-net + healthcheck: + test: + - CMD + - pg_isready + - -U + - operator + - -d + - messenger + interval: 5s + timeout: 5s + retries: 10 + start_period: 10s + deploy: + resources: + limits: + cpus: '1.0' + memory: 512M + pids: 256 + entrypoint: + - sh + - /start.sh + command: + - postgres + - -c + - ssl=on + - -c + - ssl_cert_file=/tmp/pg-tls/server.crt + - -c + - ssl_key_file=/tmp/pg-tls/server.key + - -c + - hba_file=/etc/pg_hba.conf + security_opt: + - no-new-privileges:true + tmpfs: + - /tmp:rw,nosuid,size=16m + mem_limit: 512m + pids_limit: 256 + broker: + image: redis:7.4-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f + restart: unless-stopped + command: + - redis-server + - --bind + - 127.0.0.1 + - --port + - '16379' + - --appendonly + - 'yes' + - --appendfsync + - always + - --save + - '' + - --aclfile + - /config/broker.acl + volumes: + - brokerdata:/data + - ./secrets/operator/broker.acl:/config/broker.acl:ro + healthcheck: + test: + - CMD-SHELL + - redis-cli -p 16379 ping | grep -q NOAUTH + interval: 5s + timeout: 3s + retries: 20 + network_mode: service:gateway + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + user: 999:999 + mem_limit: 128m + cpus: '0.5' + pids_limit: 256 + redis: + image: redis:7.4-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f + restart: unless-stopped + command: + - redis-server + - --bind + - 127.0.0.1 + - --port + - '16380' + - --appendonly + - 'yes' + - --appendfsync + - everysec + - --save + - '' + - --aclfile + - /config/redis.acl + volumes: + - redisdata:/data + - ./secrets/operator/redis.acl:/config/redis.acl:ro + healthcheck: + test: + - CMD-SHELL + - redis-cli -p 16380 ping | grep -q NOAUTH + interval: 5s + timeout: 3s + retries: 20 + network_mode: service:gateway + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + user: 999:999 + mem_limit: 128m + cpus: '0.5' + pids_limit: 256 + minio: + image: pgsty/silo@sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7 + command: + - server + - /data + - --certs-dir + - /certs + - --console-address + - :9001 + environment: + MINIO_ROOT_USER_FILE: /operator/minio_root_user + MINIO_ROOT_PASSWORD_FILE: /operator/minio_root_password + MINIO_BROWSER: 'off' + HOME: /tmp + volumes: + - minio-data:/data + - ./secrets/minio:/certs:ro + - ./secrets/operator/minio_root_user:/operator/minio_root_user:ro + - ./secrets/operator/minio_root_password:/operator/minio_root_password:ro + - ./secrets/public:/pki:ro + networks: + - messenger-net + healthcheck: + test: + - CMD-SHELL + - curl --cacert /pki/ca.crt -f https://localhost:9000/minio/health/ready + interval: 5s + timeout: 5s + retries: 10 + start_period: 10s + mem_limit: 384m + security_opt: + - no-new-privileges:true + cap_drop: + - ALL + cpus: '0.5' + user: 10001:10001 + read_only: true + tmpfs: + - /tmp:rw,noexec,nosuid,size=32m + pids_limit: 256 + openbao: + image: openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9 + command: + - server + - -config=/etc/bao/config.hcl + volumes: + - bao-raft-data:/bao/file + - ./infra/security/bao.hcl:/etc/bao/config.hcl:ro + - ./secrets/openbao:/identity:ro + - ./secrets/public:/pki:ro + networks: + - messenger-net + ports: + - 127.0.0.1:18200:8200 + mem_limit: 256m + restart: unless-stopped + cap_drop: + - ALL + security_opt: + - no-new-privileges:true + user: 100:1000 + entrypoint: + - /usr/bin/bao + cpus: '0.5' + read_only: true + tmpfs: + - /tmp:rw,noexec,nosuid,size=32m + pids_limit: 256 + otel-collector: + image: otel/opentelemetry-collector-contrib:0.128.0@sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7 + command: + - --config=/etc/otelcol/collector.yaml + volumes: + - ./infra/otel/collector.yaml:/etc/otelcol/collector.yaml:ro + - ./secrets/collector:/identity:ro + - ./secrets/public:/pki:ro + mem_limit: 192m + restart: unless-stopped + network_mode: service:gateway + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + cpus: '0.5' + pids_limit: 256 + prometheus: + image: prom/prometheus:v3.4.1@sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d + command: + - --config.file=/etc/prometheus/prometheus.yaml + - --storage.tsdb.path=/prometheus + - --storage.tsdb.retention.time=24h + - --storage.tsdb.retention.size=512MB + - --web.listen-address=127.0.0.1:19090 + volumes: + - ./infra/otel/prometheus.yaml:/etc/prometheus/prometheus.yaml:ro + - ./infra/otel/alerts.yaml:/etc/prometheus/alerts.yaml:ro + - prometheus-data:/prometheus + - ./secrets/prometheus:/identity:ro + - ./secrets/public:/pki:ro + mem_limit: 256m + restart: unless-stopped + network_mode: service:gateway + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + cpus: '0.5' + pids_limit: 256 + loki: + image: grafana/loki:3.5.1@sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745 + command: + - -config.file=/etc/loki/loki.yaml + volumes: + - ./infra/otel/loki.yaml:/etc/loki/loki.yaml:ro + - loki-data:/loki + mem_limit: 384m + restart: unless-stopped + network_mode: service:gateway + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + cpus: '0.5' + pids_limit: 256 + tempo: + image: grafana/tempo:2.8.1@sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e + command: + - -config.file=/etc/tempo/tempo.yaml + volumes: + - ./infra/otel/tempo.yaml:/etc/tempo/tempo.yaml:ro + - tempo-data:/var/tempo + mem_limit: 256m + restart: unless-stopped + network_mode: service:gateway + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + cpus: '0.5' + pids_limit: 256 + grafana: + image: grafana/grafana:12.0.2@sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa + environment: + GF_AUTH_ANONYMOUS_ENABLED: 'false' + GF_AUTH_ANONYMOUS_ORG_ROLE: Viewer + GF_AUTH_DISABLE_LOGIN_FORM: 'false' + GF_SECURITY_ADMIN_PASSWORD__FILE: /operator/grafana_password + GF_ANALYTICS_REPORTING_ENABLED: 'false' + GF_ANALYTICS_CHECK_FOR_UPDATES: 'false' + GF_ANALYTICS_CHECK_FOR_PLUGIN_UPDATES: 'false' + GF_PLUGINS_PREINSTALL_DISABLED: 'true' + GF_SERVER_HTTP_ADDR: 127.0.0.1 + GF_SERVER_HTTP_PORT: '13000' + GF_SECURITY_COOKIE_SECURE: 'true' + GF_SERVER_ROOT_URL: https://localhost:13007 + volumes: + - ./infra/otel/grafana/provisioning:/etc/grafana/provisioning:ro + - ./infra/otel/grafana/dashboards:/var/lib/grafana/dashboards:ro + - grafana-data:/var/lib/grafana + - ./secrets/grafana:/identity:ro + - ./secrets/public:/pki:ro + - ./secrets/operator/grafana_password:/operator/grafana_password:ro + - ./infra/security/grafana-start.sh:/start.sh:ro + mem_limit: 256m + restart: unless-stopped + network_mode: service:gateway + entrypoint: + - sh + - /start.sh + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + cpus: '0.5' + pids_limit: 256 + api-agent: + build: &id003 + context: . + dockerfile: worker/Dockerfile + command: + - python + - -m + - pipeline.secret_agent + environment: + SERVICE_IDENTITY: api + volumes: + - ./secrets/api:/identity:ro + - ./secrets/public:/pki:ro + - api-runtime:/runtime + networks: + - messenger-net + healthcheck: + test: + - CMD + - python + - -c + - import pathlib,time; assert time.time()-pathlib.Path('/runtime/lease').stat().st_mtime<25 + interval: 3s + timeout: 2s + retries: 50 + mem_limit: 64m + restart: unless-stopped + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + cpus: '0.5' + image: messenger-lab7-api-agent:7.0.0 + pids_limit: 64 + api: + stop_grace_period: 40s + build: + context: . + dockerfile: Dockerfile + restart: unless-stopped + depends_on: + api-agent: + condition: service_healthy + db: + condition: service_healthy + environment: + RECONCILER_INTERVAL_MS: ${RECONCILER_INTERVAL_MS:-3600000} + RECONCILER_DRY_RUN: ${RECONCILER_DRY_RUN:-false} + RECONCILER_GRACE_PERIOD_MINUTES: ${RECONCILER_GRACE_PERIOD_MINUTES:-15} + JAVA_OPTS: -Xmx320m -Xss512k -Djavax.net.ssl.trustStore=/identity/trust.p12 + -Djavax.net.ssl.trustStoreType=PKCS12 + OTEL_SERVICE_NAME: messenger-api + OTEL_EXPORTER_OTLP_ENDPOINT: https://otel-collector:4318 + OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf + OTEL_EXPORTER_OTLP_TIMEOUT: 1500 + OTEL_METRIC_EXPORT_INTERVAL: 5000 + OTEL_BSP_MAX_QUEUE_SIZE: 256 + OTEL_BSP_MAX_EXPORT_BATCH_SIZE: 64 + OTEL_BLRP_MAX_QUEUE_SIZE: 256 + OTEL_BLRP_MAX_EXPORT_BATCH_SIZE: 64 + OTEL_PROPAGATORS: tracecontext + JOB_MAX_ATTEMPTS: ${JOB_MAX_ATTEMPTS:-5} + MAX_PENDING_JOBS: ${MAX_PENDING_JOBS:-100} + RATE_PER_MINUTE: '100000' + SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/messenger?sslmode=verify-full&sslrootcert=/pki/ca.crt + SPRING_PROFILES_ACTIVE: ${APP_ENV:-lab} + SPRING_FLYWAY_ENABLED: 'false' + SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600} + SESSION_STORE: ${SESSION_STORE:-postgres} + SPRING_DATA_REDIS_HOST: redis + SPRING_DATA_REDIS_PORT: '6380' + MAX_MESSAGES_PER_CHAT: ${MAX_MESSAGES_PER_CHAT:-10000} + S3_ENDPOINT: https://minio:9000 + S3_BUCKET: messenger-attachments + S3_REGION: us-east-1 + OTEL_EXPORTER_OTLP_CERTIFICATE: /pki/ca.crt + OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE: /identity/service.crt + OTEL_EXPORTER_OTLP_CLIENT_KEY: /identity/service.key + SSL_CERT_FILE: /pki/ca.crt + REQUESTS_CA_BUNDLE: /pki/ca.crt + AWS_CA_BUNDLE: /pki/ca.crt + SPRING_CONFIG_IMPORT: configtree:/runtime/ + APP_PORT: '8443' + RECONCILER_ENABLED: 'false' + SERVER_SSL_ENABLED: 'true' + SERVER_SSL_CERTIFICATE: file:/identity/service.crt + SERVER_SSL_CERTIFICATE_PRIVATE_KEY: file:/identity/service.key + SERVER_SSL_TRUST_CERTIFICATE: file:/pki/ca.crt + SERVER_SSL_CLIENT_AUTH: need + S3_ACCESS_KEY_ID_FILE: /runtime/s3.access-key + S3_SECRET_ACCESS_KEY_FILE: /runtime/s3.secret-key + networks: + - messenger-net + deploy: + replicas: 2 + resources: + limits: + cpus: '1.0' + memory: 512M + pids: 512 + healthcheck: + test: + - CMD-SHELL + - wget -qO- http://127.0.0.1:8081/actuator/health/readiness | grep -q '"status":"UP"' + interval: 5s + timeout: 3s + retries: 20 + start_period: 40s + volumes: + - ./secrets/api:/identity:ro + - ./secrets/public:/pki:ro + - api-runtime:/runtime:ro + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + image: messenger-lab7-api:7.0.0 + pids_limit: 512 + worker-agent: + build: *id003 + command: + - python + - -m + - pipeline.secret_agent + environment: + SERVICE_IDENTITY: worker + volumes: + - ./secrets/worker:/identity:ro + - ./secrets/public:/pki:ro + - worker-runtime:/runtime + networks: + - messenger-net + healthcheck: + test: + - CMD + - python + - -c + - import pathlib,time; assert time.time()-pathlib.Path('/runtime/lease').stat().st_mtime<25 + interval: 3s + timeout: 2s + retries: 50 + mem_limit: 64m + restart: unless-stopped + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + cpus: '0.5' + image: messenger-lab7-worker-agent:7.0.0 + pids_limit: 64 + worker: + build: &id004 + context: . + dockerfile: worker/Dockerfile + restart: unless-stopped + environment: + ROLE: worker + OTEL_EXPORTER_OTLP_ENDPOINT: https://otel-collector:4318 + DB_HOST: db + BROKER_HOST: broker + S3_ENDPOINT: https://minio:9000 + S3_BUCKET: messenger-attachments + JOB_MAX_ATTEMPTS: ${JOB_MAX_ATTEMPTS:-5} + JOB_TIMEOUT_SECONDS: ${JOB_TIMEOUT_SECONDS:-60} + JOB_LEASE_SECONDS: ${JOB_LEASE_SECONDS:-75} + STAGING_RETENTION_SECONDS: ${STAGING_RETENTION_SECONDS:-86400} + FAULT_INJECTION_ENABLED: ${FAULT_INJECTION_ENABLED:-false} + OTEL_EXPORTER_OTLP_CERTIFICATE: /pki/ca.crt + OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE: /identity/service.crt + OTEL_EXPORTER_OTLP_CLIENT_KEY: /identity/service.key + SSL_CERT_FILE: /pki/ca.crt + REQUESTS_CA_BUNDLE: /pki/ca.crt + AWS_CA_BUNDLE: /pki/ca.crt + networks: &id005 + - messenger-net + depends_on: + worker-agent: + condition: service_healthy + db: + condition: service_healthy + deploy: + replicas: ${WORKER_CONCURRENCY:-2} + resources: + limits: + cpus: '1.0' + memory: 1G + pids: 64 + volumes: + - ./secrets/worker:/identity:ro + - ./secrets/public:/pki:ro + - worker-runtime:/runtime:ro + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + image: messenger-lab7-worker:7.0.0 + pids_limit: 64 + dispatcher-agent: + build: *id003 + command: + - python + - -m + - pipeline.secret_agent + environment: + SERVICE_IDENTITY: dispatcher + volumes: + - ./secrets/dispatcher:/identity:ro + - ./secrets/public:/pki:ro + - dispatcher-runtime:/runtime + networks: + - messenger-net + healthcheck: + test: + - CMD + - python + - -c + - import pathlib,time; assert time.time()-pathlib.Path('/runtime/lease').stat().st_mtime<25 + interval: 3s + timeout: 2s + retries: 50 + mem_limit: 64m + restart: unless-stopped + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + cpus: '0.5' + image: messenger-lab7-dispatcher-agent:7.0.0 + pids_limit: 64 + dispatcher: + build: *id004 + restart: unless-stopped + environment: + ROLE: dispatcher + OTEL_EXPORTER_OTLP_ENDPOINT: https://otel-collector:4318 + DB_HOST: db + BROKER_HOST: broker + S3_ENDPOINT: https://minio:9000 + S3_BUCKET: messenger-attachments + JOB_MAX_ATTEMPTS: ${JOB_MAX_ATTEMPTS:-5} + JOB_TIMEOUT_SECONDS: ${JOB_TIMEOUT_SECONDS:-60} + JOB_LEASE_SECONDS: ${JOB_LEASE_SECONDS:-75} + STAGING_RETENTION_SECONDS: ${STAGING_RETENTION_SECONDS:-86400} + FAULT_INJECTION_ENABLED: ${FAULT_INJECTION_ENABLED:-false} + OTEL_EXPORTER_OTLP_CERTIFICATE: /pki/ca.crt + OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE: /identity/service.crt + OTEL_EXPORTER_OTLP_CLIENT_KEY: /identity/service.key + SSL_CERT_FILE: /pki/ca.crt + REQUESTS_CA_BUNDLE: /pki/ca.crt + AWS_CA_BUNDLE: /pki/ca.crt + networks: *id005 + depends_on: + dispatcher-agent: + condition: service_healthy + db: + condition: service_healthy + deploy: + replicas: 1 + resources: + limits: + cpus: '0.5' + memory: 256M + pids: 64 + volumes: + - ./secrets/dispatcher:/identity:ro + - ./secrets/public:/pki:ro + - dispatcher-runtime:/runtime:ro + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,noexec,nosuid,size=16m + image: messenger-lab7-dispatcher:7.0.0 + pids_limit: 64 + lb: + image: nginx:1.30.8-alpine@sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3 + restart: unless-stopped + ports: + - 127.0.0.1:8443:8443 + volumes: + - ./nginx.conf:/etc/nginx/nginx.conf:ro + - ./secrets/lb:/identity:ro + - ./secrets/public:/pki:ro + depends_on: + api: + condition: service_healthy + networks: + - messenger-net + read_only: true + security_opt: *id001 + cap_drop: *id002 + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m + - /var/cache/nginx:rw,mode=1777,noexec,nosuid,size=16m + user: 101:101 + mem_limit: 64m + cpus: '0.5' + pids_limit: 256 + s3-admin: + image: pgsty/mc@sha256:ce62c9053c69ce12a527a322345b5ad9f44b5f8a7b8189f82e516f2e3f30f1d8 + profiles: + - operator + entrypoint: + - /bin/sh + environment: + SSL_CERT_FILE: /pki/ca.crt + volumes: + - ./secrets/public:/root/.mc/certs/CAs:ro + - ./secrets/public:/pki:ro + - ./infra/security/policies:/policies:ro + networks: + - messenger-net + cpus: '0.5' + mem_limit: 128m + pids_limit: 256 + bao-permissions: + image: openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9 + profiles: + - operator + user: 0:0 + entrypoint: + - sh + - -c + command: + - chown 100:1000 /bao/file + volumes: + - bao-raft-data:/bao/file + network_mode: none + cap_drop: + - ALL + cap_add: + - CHOWN + security_opt: + - no-new-privileges:true + mem_limit: 32m + cpus: '0.1' + pids_limit: 256 + audit: + image: messenger-lab7-worker:7.0.0 + profiles: + - operator + entrypoint: + - python + volumes: + - ./secrets:/audit-secrets:ro + - ./student-tests:/checks:ro + networks: + - messenger-net + read_only: true + cap_drop: + - ALL + security_opt: + - no-new-privileges:true + tmpfs: + - /tmp:rw,noexec,nosuid,size=16m + cpus: '0.5' + mem_limit: 128m + pids_limit: 256 + pipeline-admin: + image: messenger-lab7-worker:7.0.0 + profiles: + - operator + entrypoint: + - python + - -m + - pipeline.operator + environment: + OPERATOR_CREDENTIALS_FILE: /run/operator/pipeline.json + volumes: + - ./secrets/public:/pki:ro + - ./secrets/operator/pipeline.json:/run/operator/pipeline.json:ro + networks: + - messenger-net + read_only: true + cap_drop: + - ALL + security_opt: + - no-new-privileges:true + tmpfs: + - /tmp:rw,noexec,nosuid,size=16m + cpus: '0.5' + mem_limit: 128m + pids_limit: 256 + s3-permissions: + image: pgsty/silo@sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7 + profiles: + - operator + user: 0:0 + entrypoint: + - sh + - -c + command: + - chown -R 10001:10001 /data + volumes: + - minio-data:/data + network_mode: none + cap_drop: + - ALL + cap_add: + - CHOWN + - DAC_OVERRIDE + security_opt: + - no-new-privileges:true + mem_limit: 32m + cpus: '0.1' + pids_limit: 256 + pipeline-diagnostics: + image: messenger-lab7-worker:7.0.0 + profiles: + - operator + entrypoint: + - python + environment: + OPERATOR_CREDENTIALS_FILE: /run/operator/diagnostics.json + AWS_CA_BUNDLE: /pki/ca.crt + S3_ENDPOINT: https://minio:9000 + volumes: + - ./secrets/public:/pki:ro + - ./secrets/operator/diagnostics.json:/run/operator/diagnostics.json:ro + networks: + - messenger-net + read_only: true + cap_drop: + - ALL + security_opt: + - no-new-privileges:true + tmpfs: + - /tmp:rw,noexec,nosuid,size=32m + cpus: '1' + mem_limit: 512m + pids_limit: 256 + bao-migrate: + image: openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9 + profiles: + - operator + user: 100:1000 + entrypoint: + - /usr/bin/bao + command: + - operator + - migrate + - -config=/migration.hcl + volumes: + - bao-data:/old + - bao-raft-data:/bao/file + - ./infra/security/bao-migrate.hcl:/migration.hcl:ro + network_mode: none + read_only: true + cap_drop: + - ALL + security_opt: + - no-new-privileges:true + tmpfs: + - /tmp:rw,noexec,nosuid,size=16m + mem_limit: 256m + cpus: '0.5' + pids_limit: 256 +volumes: + prometheus-data: null + loki-data: null + tempo-data: null + grafana-data: null + pgdata: null + redisdata: null + minio-data: null + brokerdata: null + bao-data: {} + api-runtime: + driver: local + driver_opts: + type: tmpfs + device: tmpfs + o: size=1m,uid=10001,gid=10001,mode=0700 + worker-runtime: + driver: local + driver_opts: + type: tmpfs + device: tmpfs + o: size=1m,uid=10001,gid=10001,mode=0700 + dispatcher-runtime: + driver: local + driver_opts: + type: tmpfs + device: tmpfs + o: size=1m,uid=10001,gid=10001,mode=0700 + bao-raft-data: {} +networks: + messenger-net: + driver: bridge diff --git a/evidence/accepted-jobs.json b/evidence/accepted-jobs.json new file mode 100644 index 0000000..2f95202 --- /dev/null +++ b/evidence/accepted-jobs.json @@ -0,0 +1,25 @@ +{ + "accepted_ids": [ + "52aa0743-44a4-4864-b3e1-a5738a2964cc", + "004dad76-9dfb-41c8-9ccb-15023762c1eb", + "38978ef1-69a8-4099-8786-764dfff37e92", + "9e5e6668-8687-425c-9b6d-697905b74a81", + "1537a2df-c5b7-45bc-ab29-3aba529016c4", + "8f0279fc-fc2e-463f-97fe-51cd3a670eff", + "52bdf065-90b1-4e2f-a36b-afa563cfd02a", + "7a30e4d9-b60d-45e6-91b8-fe1041126849", + "584987a8-6161-4224-b228-e8134f8a20a3", + "19247a9a-da46-4177-8460-2a597751242b", + "50e00a77-9674-497d-83dc-0a0a2be64035", + "5e22ef42-f48b-423c-a6d9-56cfe221d2e5", + "41bcf2eb-5845-480f-9769-cc436a306305", + "744b3612-301c-4d88-9f3c-025314bf06de", + "43be2c8b-16d2-42fb-8a17-d70017447d55", + "ab3669fa-91e7-4e69-97c1-4e2f51607bb7", + "c64c95ed-376e-4ef2-9d16-1068210a4966", + "56b2a997-d20e-4c65-aae0-96659f7e199c", + "5a50407d-18b5-4999-a5d4-d2f80fba08ed" + ], + "count": 19, + "missing_or_nonterminal": 0 +} \ No newline at end of file diff --git a/evidence/backpressure.json b/evidence/backpressure.json new file mode 100644 index 0000000..b60d3cd --- /dev/null +++ b/evidence/backpressure.json @@ -0,0 +1,20 @@ +{ + "accepted": 6, + "rejected": 4, + "concurrency": 10, + "image_bytes": 1442639, + "seconds_to_observed_ready": [ + 6.29700000000048, + 6.343000000000757, + 6.390000000001237, + 6.42200000000048, + 6.484000000000378, + 6.515000000001237 + ], + "stats_samples": [ + "messenger-lab7-api-1 379.3MiB / 512MiB 66.66%\nmessenger-lab7-api-2 391.9MiB / 512MiB 12.53%\nmessenger-lab7-lb-1 4.434MiB / 64MiB 0.34%\nmessenger-lab7-grafana-1 86.84MiB / 256MiB 0.35%\nmessenger-lab7-prometheus-1 46.78MiB / 256MiB 0.37%\nmessenger-lab7-redis-1 6.148MiB / 128MiB 0.57%\nmessenger-lab7-broker-1 4.617MiB / 128MiB 3.84%\nmessenger-lab7-loki-1 74.77MiB / 384MiB 1.42%\nmessenger-lab7-tempo-1 202.3MiB / 256MiB 0.64%\nmessenger-lab7-otel-collector-1 67.6MiB / 192MiB 0.70%\nmessenger-lab7-gateway-1 4.312MiB / 64MiB 0.21%\nmessenger-lab7-db-1 57.01MiB / 512MiB 6.71%\nmessenger-lab7-minio-1 107.8MiB / 384MiB 5.57%\nmessenger-lab7-openbao-1 40.52MiB / 256MiB 2.52%\nmessenger-lab7-dispatcher-agent-1 11.8MiB / 64MiB 0.00%\nmessenger-lab7-api-agent-1 12.06MiB / 64MiB 0.00%\nmessenger-lab7-worker-agent-1 12.7MiB / 64MiB 0.00%\nmessenger-lab7-dispatcher-1 53.5MiB / 256MiB 50.11%\nmessenger-lab7-worker-2 114.2MiB / 1GiB 68.59%\nmessenger-lab7-worker-1 113.9MiB / 1GiB 69.74%", + "messenger-lab7-api-1 384.2MiB / 512MiB 3.89%\nmessenger-lab7-api-2 392.5MiB / 512MiB 3.99%\nmessenger-lab7-dispatcher-1 60.54MiB / 256MiB 4.64%\nmessenger-lab7-worker-2 74.87MiB / 1GiB 78.52%\nmessenger-lab7-worker-1 63.46MiB / 1GiB 77.58%\nmessenger-lab7-lb-1 4.434MiB / 64MiB 0.62%\nmessenger-lab7-grafana-1 86.72MiB / 256MiB 0.17%\nmessenger-lab7-prometheus-1 46.78MiB / 256MiB 0.65%\nmessenger-lab7-redis-1 6.363MiB / 128MiB 0.35%\nmessenger-lab7-broker-1 4.945MiB / 128MiB 0.61%\nmessenger-lab7-loki-1 74.78MiB / 384MiB 1.03%\nmessenger-lab7-tempo-1 202.5MiB / 256MiB 0.26%\nmessenger-lab7-otel-collector-1 67.6MiB / 192MiB 1.13%\nmessenger-lab7-gateway-1 4.41MiB / 64MiB 1.09%\nmessenger-lab7-db-1 57.32MiB / 512MiB 35.32%\nmessenger-lab7-minio-1 111MiB / 384MiB 7.40%\nmessenger-lab7-openbao-1 40.38MiB / 256MiB 0.53%\nmessenger-lab7-dispatcher-agent-1 11.8MiB / 64MiB 0.00%\nmessenger-lab7-api-agent-1 12.06MiB / 64MiB 0.00%\nmessenger-lab7-worker-agent-1 12.82MiB / 64MiB 0.00%", + "messenger-lab7-api-1 384.6MiB / 512MiB 11.15%\nmessenger-lab7-api-2 392.9MiB / 512MiB 12.81%\nmessenger-lab7-dispatcher-1 60.92MiB / 256MiB 6.19%\nmessenger-lab7-worker-2 60.5MiB / 1GiB 21.98%\nmessenger-lab7-worker-1 60.14MiB / 1GiB 25.28%\nmessenger-lab7-lb-1 4.336MiB / 64MiB 1.92%\nmessenger-lab7-grafana-1 86.71MiB / 256MiB 0.31%\nmessenger-lab7-prometheus-1 46.78MiB / 256MiB 0.47%\nmessenger-lab7-redis-1 6.363MiB / 128MiB 0.64%\nmessenger-lab7-broker-1 4.941MiB / 128MiB 0.73%\nmessenger-lab7-loki-1 74.79MiB / 384MiB 1.51%\nmessenger-lab7-tempo-1 202.5MiB / 256MiB 0.92%\nmessenger-lab7-otel-collector-1 67.61MiB / 192MiB 1.39%\nmessenger-lab7-gateway-1 4.621MiB / 64MiB 2.21%\nmessenger-lab7-db-1 57.23MiB / 512MiB 23.21%\nmessenger-lab7-minio-1 114.8MiB / 384MiB 0.45%\nmessenger-lab7-openbao-1 40.37MiB / 256MiB 0.87%\nmessenger-lab7-dispatcher-agent-1 11.8MiB / 64MiB 0.00%\nmessenger-lab7-api-agent-1 12.06MiB / 64MiB 0.00%\nmessenger-lab7-worker-agent-1 12.82MiB / 64MiB 6.29%" + ], + "method": "closed loop; sequential polls overestimate early completions" +} \ No newline at end of file diff --git a/evidence/bao-policy.txt b/evidence/bao-policy.txt new file mode 100644 index 0000000..bd17f8e --- /dev/null +++ b/evidence/bao-policy.txt @@ -0,0 +1,34 @@ +Command: ["docker", "compose", "run", "--rm", "--no-deps", "-T", "audit", "/checks/bao_policy.py"] +UTC: 2026-11-27T18:55:37.699208+00:00 +Exit code: 0 +Elapsed seconds: 64.579 + + Container messenger-lab7-audit-run-fa32fdce7c60 Creating + Container messenger-lab7-audit-run-fa32fdce7c60 Created +{ + "status": "PASS", + "policies": { + "api": { + "ttl": 60, + "only_own_path": true, + "other_secrets_denied": true, + "policy_write_denied": true, + "secret_write_denied": true + }, + "worker": { + "ttl": 60, + "only_own_path": true, + "other_secrets_denied": true, + "policy_write_denied": true, + "secret_write_denied": true + }, + "dispatcher": { + "ttl": 60, + "only_own_path": true, + "other_secrets_denied": true, + "policy_write_denied": true, + "secret_write_denied": true + } + }, + "expired_token_rejected": true +} diff --git a/evidence/bao-upgrade.json b/evidence/bao-upgrade.json new file mode 100644 index 0000000..472e6be --- /dev/null +++ b/evidence/bao-upgrade.json @@ -0,0 +1,11 @@ +{ + "status": "PASS", + "source_version": "2.4.4", + "target_version": "2.7.3", + "source_storage": "file", + "target_storage": "raft", + "method": "offline bao operator migrate; original file volume retained", + "same_operator_unseal_material": true, + "scoped_secret_bundles_preserved": true, + "new_initialization": false +} diff --git a/evidence/broker-recovery.json b/evidence/broker-recovery.json new file mode 100644 index 0000000..3e1b42f --- /dev/null +++ b/evidence/broker-recovery.json @@ -0,0 +1,17 @@ +{ + "status": "PASS", + "stream_and_consumer_groups_identical": true, + "stream_entries": 0, + "consumer_counts_before": [ + 84 + ], + "consumer_counts_after": [ + 82 + ], + "consumer_metadata": "Idle consumers without any delivered message may disappear on restart; cursor, pending count, entries-read and lag are compared exactly.", + "no_authentication_returns": "NOAUTH", + "default_user_disabled_without_password": true, + "aof_replay_errors": 0, + "restart_seconds": 7.547, + "explanation": "Redis 7.4 AOF MULTI replay uses default ACL. Disabled passwordless-without-nopass default has internal permissions, but cannot authenticate. Runtime roles remain restricted." +} diff --git a/evidence/broker-recovery.txt b/evidence/broker-recovery.txt new file mode 100644 index 0000000..a522212 --- /dev/null +++ b/evidence/broker-recovery.txt @@ -0,0 +1,22 @@ +Command: [".venv/Scripts/python.exe", "student-tests/broker_recovery.py"] +UTC: 2026-11-27T18:54:59.309552+00:00 +Exit code: 0 +Elapsed seconds: 16.062 + +{ + "status": "PASS", + "stream_and_consumer_groups_identical": true, + "stream_entries": 0, + "consumer_counts_before": [ + 84 + ], + "consumer_counts_after": [ + 82 + ], + "consumer_metadata": "Idle consumers without any delivered message may disappear on restart; cursor, pending count, entries-read and lag are compared exactly.", + "no_authentication_returns": "NOAUTH", + "default_user_disabled_without_password": true, + "aof_replay_errors": 0, + "restart_seconds": 7.547, + "explanation": "Redis 7.4 AOF MULTI replay uses default ACL. Disabled passwordless-without-nopass default has internal permissions, but cannot authenticate. Runtime roles remain restricted." +} diff --git a/evidence/broker-repair.json b/evidence/broker-repair.json new file mode 100644 index 0000000..f3aae4e --- /dev/null +++ b/evidence/broker-repair.json @@ -0,0 +1,7 @@ +{ + "reason": "Redis 7.4 restricted default ACL skipped AOF transactions during earlier restart", + "legacy_entries": 24, + "verified_database_state": "24 READY", + "action": "XGROUP SETID 0; normal worker redelivery and idempotent ACK, no deletion or data reset", + "source": "https://github.com/redis/redis/issues/14156" +} diff --git a/evidence/failover-1.txt b/evidence/failover-1.txt new file mode 100644 index 0000000..bb36b2c --- /dev/null +++ b/evidence/failover-1.txt @@ -0,0 +1,8 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "tests/resilience.py", "--mode", "failover", "--action-script", "D:\\Лабы\\mtusi2026lab7\\scripts\\stop-one.cmd", "--base-url", "https://127.0.0.1:8443", "--ca-file", "D:\\Лабы\\mtusi2026lab7\\secrets\\public\\ca.crt"] +UTC: 2026-11-27T19:01:00.825961+00:00 +Exit code: 0 +Elapsed seconds: 19.266 + +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 99, "failed_attempts": 0, "first_recovery_seconds": 2.391} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/failover-2.txt b/evidence/failover-2.txt new file mode 100644 index 0000000..b1b9b39 --- /dev/null +++ b/evidence/failover-2.txt @@ -0,0 +1,8 @@ +Command: [".venv/Scripts/python.exe", "tests/resilience.py", "--mode", "failover", "--action-script", "scripts/stop-one.cmd", "--base-url", "https://127.0.0.1:8443", "--ca-file", "secrets/public/ca.crt"] +UTC: 2026-11-27T16:58:32.920172+00:00 +Exit code: 0 +Elapsed seconds: 19.547 + +Executing explicit failover hook; hook output suppressed to avoid leaking secrets. +{"observed_instances_before": 2, "successful_writes": 104, "failed_attempts": 0, "first_recovery_seconds": 2.188} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/failover-containers.json b/evidence/failover-containers.json new file mode 100644 index 0000000..68f86d1 --- /dev/null +++ b/evidence/failover-containers.json @@ -0,0 +1,1242 @@ +[ + { + "alias": "90889570-baa0-4f37-8353-24067dc5177e", + "stopped_container": "dd097b6dc34f8ed9f728b90a5d60d8afab10855d04d6c90e8fb7c6acdfcbb404", + "before": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T16:52:14.586843577Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T16:52:14.382510172Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T16:52:18.568149945Z", + "image": "sha256:95f0b847d7939edba71ee6929f2577374a5332889944d89828a1d9fac79d283f", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T16:52:13.379346873Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T16:52:14.107864186Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T16:52:18.373868956Z", + "image": "sha256:e81a718f71885ab305c4bda2860ceca34e5706a7fefe57e15a045ceb9e2efc2c", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T16:52:18.203311201Z", + "image": "sha256:e0f07da7e3d292ec44f9bf8578ea1675afae6aea397de602b8b2fcbd8cad2381", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T16:52:10.925069568Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T16:52:13.155286592Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T16:52:13.57928938Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T16:52:17.934450638Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T16:52:13.662338147Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T16:52:05.783566441Z", + "image": "sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T16:52:13.075578923Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T16:52:13.337441972Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T16:52:13.3135079Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T16:52:17.996379035Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.66515078Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.732653444Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T16:52:18.462508388Z", + "image": "sha256:e8c29000388e70aa872215341d016f189d99b1e6f3a9f5906f939a522dfd0bb9", + "status": "running" + } + }, + "after": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T16:52:14.586843577Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T16:52:14.382510172Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "exited" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T16:52:18.568149945Z", + "image": "sha256:95f0b847d7939edba71ee6929f2577374a5332889944d89828a1d9fac79d283f", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T16:52:13.379346873Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T16:52:14.107864186Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T16:52:18.373868956Z", + "image": "sha256:e81a718f71885ab305c4bda2860ceca34e5706a7fefe57e15a045ceb9e2efc2c", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T16:52:18.203311201Z", + "image": "sha256:e0f07da7e3d292ec44f9bf8578ea1675afae6aea397de602b8b2fcbd8cad2381", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T16:52:10.925069568Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T16:52:13.155286592Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T16:52:13.57928938Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T16:52:17.934450638Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T16:52:13.662338147Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T16:52:05.783566441Z", + "image": "sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T16:52:13.075578923Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T16:52:13.337441972Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T16:52:13.3135079Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T16:52:17.996379035Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.66515078Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.732653444Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T16:52:18.462508388Z", + "image": "sha256:e8c29000388e70aa872215341d016f189d99b1e6f3a9f5906f939a522dfd0bb9", + "status": "running" + } + } + }, + { + "alias": "45bedc72-b5bf-4b5c-9214-b04038b1d6b2", + "stopped_container": "dd097b6dc34f8ed9f728b90a5d60d8afab10855d04d6c90e8fb7c6acdfcbb404", + "before": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T16:52:14.586843577Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T16:57:48.942835026Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T16:52:18.568149945Z", + "image": "sha256:95f0b847d7939edba71ee6929f2577374a5332889944d89828a1d9fac79d283f", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T16:52:13.379346873Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T16:52:14.107864186Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T16:52:18.373868956Z", + "image": "sha256:e81a718f71885ab305c4bda2860ceca34e5706a7fefe57e15a045ceb9e2efc2c", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T16:52:18.203311201Z", + "image": "sha256:e0f07da7e3d292ec44f9bf8578ea1675afae6aea397de602b8b2fcbd8cad2381", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T16:52:10.925069568Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T16:52:13.155286592Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T16:52:13.57928938Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T16:52:17.934450638Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T16:52:13.662338147Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T16:52:05.783566441Z", + "image": "sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T16:52:13.075578923Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T16:52:13.337441972Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T16:52:13.3135079Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T16:52:17.996379035Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.66515078Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.732653444Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T16:52:18.462508388Z", + "image": "sha256:e8c29000388e70aa872215341d016f189d99b1e6f3a9f5906f939a522dfd0bb9", + "status": "running" + } + }, + "after": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T16:52:14.586843577Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T16:57:48.942835026Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "exited" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T16:52:18.568149945Z", + "image": "sha256:95f0b847d7939edba71ee6929f2577374a5332889944d89828a1d9fac79d283f", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T16:52:13.379346873Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T16:52:14.107864186Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T16:52:18.373868956Z", + "image": "sha256:e81a718f71885ab305c4bda2860ceca34e5706a7fefe57e15a045ceb9e2efc2c", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T16:52:18.203311201Z", + "image": "sha256:e0f07da7e3d292ec44f9bf8578ea1675afae6aea397de602b8b2fcbd8cad2381", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T16:52:10.925069568Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T16:52:13.155286592Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T16:52:13.57928938Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T16:52:17.934450638Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T16:52:13.662338147Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T16:52:05.783566441Z", + "image": "sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T16:52:13.075578923Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T16:52:13.337441972Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T16:52:13.3135079Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T16:52:17.996379035Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.66515078Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.732653444Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T16:52:18.462508388Z", + "image": "sha256:e8c29000388e70aa872215341d016f189d99b1e6f3a9f5906f939a522dfd0bb9", + "status": "running" + } + } + }, + { + "alias": "78d36964-f53b-4f49-a7a3-6c67bff9bcc5", + "stopped_container": "f1a6c92abb2367729c5bce4eb773c30d2fb6d60de1f12d943f7fe9f564185d9b", + "before": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T16:52:14.586843577Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T17:00:13.384097211Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T16:52:18.568149945Z", + "image": "sha256:95f0b847d7939edba71ee6929f2577374a5332889944d89828a1d9fac79d283f", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T16:52:13.379346873Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T16:52:14.107864186Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T16:52:18.373868956Z", + "image": "sha256:e81a718f71885ab305c4bda2860ceca34e5706a7fefe57e15a045ceb9e2efc2c", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T16:52:18.203311201Z", + "image": "sha256:e0f07da7e3d292ec44f9bf8578ea1675afae6aea397de602b8b2fcbd8cad2381", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T16:52:10.925069568Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T16:52:13.155286592Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T16:52:13.57928938Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T16:52:17.934450638Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T16:52:13.662338147Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T16:52:05.783566441Z", + "image": "sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T16:52:13.075578923Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T16:52:13.337441972Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T16:52:13.3135079Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T16:52:17.996379035Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.66515078Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.732653444Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T16:52:18.462508388Z", + "image": "sha256:e8c29000388e70aa872215341d016f189d99b1e6f3a9f5906f939a522dfd0bb9", + "status": "running" + } + }, + "after": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T16:52:14.586843577Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "exited" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T17:00:13.384097211Z", + "image": "sha256:3fca7f0ce5fb480b2c0e9545445d42b68a85ed895548e1e99858d1935daac57a", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T16:52:18.568149945Z", + "image": "sha256:95f0b847d7939edba71ee6929f2577374a5332889944d89828a1d9fac79d283f", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T16:52:13.379346873Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T16:52:14.107864186Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T16:52:18.373868956Z", + "image": "sha256:e81a718f71885ab305c4bda2860ceca34e5706a7fefe57e15a045ceb9e2efc2c", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T16:52:18.203311201Z", + "image": "sha256:e0f07da7e3d292ec44f9bf8578ea1675afae6aea397de602b8b2fcbd8cad2381", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T16:52:10.925069568Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T16:52:13.155286592Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T16:52:13.57928938Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T16:52:17.934450638Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T16:52:13.662338147Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T16:52:05.783566441Z", + "image": "sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T16:52:13.075578923Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T16:52:13.337441972Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T16:52:13.3135079Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T16:52:17.996379035Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.66515078Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T16:52:18.732653444Z", + "image": "sha256:87681b4329d198db89baf60c50cc7399ba7e170b24552ab62eb04a7b44e6c074", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T16:52:18.462508388Z", + "image": "sha256:e8c29000388e70aa872215341d016f189d99b1e6f3a9f5906f939a522dfd0bb9", + "status": "running" + } + } + }, + { + "alias": "be6b4851-2c8a-4b86-bab5-fda4edf0428d", + "stopped_container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "before": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T18:59:11.534986665Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T18:59:11.219062265Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T18:59:15.215606126Z", + "image": "sha256:3963efa1063f445107db0254157d85eb5b54523d7f67ea669df71a3c7ffcb9d2", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T18:59:09.970133435Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T18:59:10.440346762Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T18:59:15.399665688Z", + "image": "sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T18:59:15.114370315Z", + "image": "sha256:5160c2b7f8b00f98cbebce3ffd8357c88b1675a0a7432745e4e1989bcd4160c3", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T18:59:08.010314258Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T18:59:10.065636322Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T18:59:10.312190326Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T18:59:10.088389719Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T18:59:10.398668492Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T18:59:02.30728003Z", + "image": "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T18:59:09.976445982Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T18:59:10.174137182Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T18:59:10.166791722Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T18:59:15.017191129Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.479039655Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.52742262Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T18:59:15.600402446Z", + "image": "sha256:7958b6df64f520d0d294076649c703d9aad297720320a1b7ec7836be7134bd41", + "status": "running" + } + }, + "after": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T18:59:11.534986665Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "exited" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T18:59:11.219062265Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T18:59:15.215606126Z", + "image": "sha256:3963efa1063f445107db0254157d85eb5b54523d7f67ea669df71a3c7ffcb9d2", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T18:59:09.970133435Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T18:59:10.440346762Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T18:59:15.399665688Z", + "image": "sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T18:59:15.114370315Z", + "image": "sha256:5160c2b7f8b00f98cbebce3ffd8357c88b1675a0a7432745e4e1989bcd4160c3", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T18:59:08.010314258Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T18:59:10.065636322Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T18:59:10.312190326Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T18:59:10.088389719Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T18:59:10.398668492Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T18:59:02.30728003Z", + "image": "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T18:59:09.976445982Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T18:59:10.174137182Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T18:59:10.166791722Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T18:59:15.017191129Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.479039655Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.52742262Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T18:59:15.600402446Z", + "image": "sha256:7958b6df64f520d0d294076649c703d9aad297720320a1b7ec7836be7134bd41", + "status": "running" + } + } + }, + { + "alias": "92053544-c02b-44d6-bd37-267b3fe329e2", + "stopped_container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "before": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T19:01:20.864573718Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T18:59:11.219062265Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T18:59:15.215606126Z", + "image": "sha256:3963efa1063f445107db0254157d85eb5b54523d7f67ea669df71a3c7ffcb9d2", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T18:59:09.970133435Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T18:59:10.440346762Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T18:59:15.399665688Z", + "image": "sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T18:59:15.114370315Z", + "image": "sha256:5160c2b7f8b00f98cbebce3ffd8357c88b1675a0a7432745e4e1989bcd4160c3", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T18:59:08.010314258Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T18:59:10.065636322Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T18:59:10.312190326Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T18:59:10.088389719Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T18:59:10.398668492Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T18:59:02.30728003Z", + "image": "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T18:59:09.976445982Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T18:59:10.174137182Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T18:59:10.166791722Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T18:59:15.017191129Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.479039655Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.52742262Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T18:59:15.600402446Z", + "image": "sha256:7958b6df64f520d0d294076649c703d9aad297720320a1b7ec7836be7134bd41", + "status": "running" + } + }, + "after": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T19:01:20.864573718Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "exited" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T18:59:11.219062265Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T18:59:15.215606126Z", + "image": "sha256:3963efa1063f445107db0254157d85eb5b54523d7f67ea669df71a3c7ffcb9d2", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T18:59:09.970133435Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T18:59:10.440346762Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T18:59:15.399665688Z", + "image": "sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T18:59:15.114370315Z", + "image": "sha256:5160c2b7f8b00f98cbebce3ffd8357c88b1675a0a7432745e4e1989bcd4160c3", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T18:59:08.010314258Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T18:59:10.065636322Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T18:59:10.312190326Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T18:59:10.088389719Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T18:59:10.398668492Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T18:59:02.30728003Z", + "image": "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T18:59:09.976445982Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T18:59:10.174137182Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T18:59:10.166791722Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T18:59:15.017191129Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.479039655Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.52742262Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T18:59:15.600402446Z", + "image": "sha256:7958b6df64f520d0d294076649c703d9aad297720320a1b7ec7836be7134bd41", + "status": "running" + } + } + } +] diff --git a/evidence/failover-other.json b/evidence/failover-other.json new file mode 100644 index 0000000..ab068df --- /dev/null +++ b/evidence/failover-other.json @@ -0,0 +1,11 @@ +{ + "status": "PASS", + "stopped_replica": "api-1", + "concurrency": 4, + "duration_seconds": 16.266, + "confirmed_writes": 377, + "failed_attempts": 1, + "confirmed_preserved": true, + "duplicate_effects": 0, + "stopped_alias_absent": true +} diff --git a/evidence/failover-other.txt b/evidence/failover-other.txt new file mode 100644 index 0000000..6365c66 --- /dev/null +++ b/evidence/failover-other.txt @@ -0,0 +1,16 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/failover_other.py"] +UTC: 2026-11-27T19:02:06.629975+00:00 +Exit code: 0 +Elapsed seconds: 58.047 + +{ + "status": "PASS", + "stopped_replica": "api-1", + "concurrency": 4, + "duration_seconds": 16.266, + "confirmed_writes": 377, + "failed_attempts": 1, + "confirmed_preserved": true, + "duplicate_effects": 0, + "stopped_alias_absent": true +} diff --git a/evidence/fenced-pending.json b/evidence/fenced-pending.json new file mode 100644 index 0000000..a822a2f --- /dev/null +++ b/evidence/fenced-pending.json @@ -0,0 +1,7 @@ +{ + "attachment_id": "9a218666-b6b5-43e3-99c6-d889ce7ca0b9", + "unfinished_delivery_retained": true, + "recovered_attempt": 2, + "one_manifest": true, + "s3_objects": 4 +} \ No newline at end of file diff --git a/evidence/final-audit.txt b/evidence/final-audit.txt new file mode 100644 index 0000000..ab3bf79 --- /dev/null +++ b/evidence/final-audit.txt @@ -0,0 +1,6 @@ +Command: [".venv/Scripts/python.exe", "scripts/final_audit.py"] +UTC: 2026-11-27T19:04:03.456387+00:00 +Exit code: 0 +Elapsed seconds: 10.407 + +PASS staged source integrity, secret exclusion and captured command exit codes diff --git a/evidence/junit.txt b/evidence/junit.txt new file mode 100644 index 0000000..96b40e3 --- /dev/null +++ b/evidence/junit.txt @@ -0,0 +1,20 @@ +Command: ["cmd.exe", "/d", "/c", "gradlew.bat", "test", "bootJar", "--no-daemon"] +UTC: 2026-11-27T17:54:35.214921+00:00 +Exit code: 0 +Elapsed seconds: 23.141 + +To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/9.3.0/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation. +Daemon will be stopped at the end of the build +> Task :compileJava +> Task :processResources +> Task :classes +> Task :resolveMainClassName +> Task :bootJar +> Task :compileTestJava UP-TO-DATE +> Task :processTestResources NO-SOURCE +> Task :testClasses UP-TO-DATE +> Task :test + +BUILD SUCCESSFUL in 22s +6 actionable tasks: 5 executed, 1 up-to-date +Consider enabling configuration cache to speed up this build: https://docs.gradle.org/9.3.0/userguide/configuration_cache_enabling.html diff --git a/evidence/load-resources.json b/evidence/load-resources.json new file mode 100644 index 0000000..b252729 --- /dev/null +++ b/evidence/load-resources.json @@ -0,0 +1,1805 @@ +{ + "method": "Docker compose stats snapshots during 30-second public closed-loop benchmark; overhead included, no peak-RSS claim", + "samples": [ + { + "elapsed_seconds": 2.36, + "containers": [ + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.11%", + "Container": "90d384d9309f1c262f09d5313d34475f462a7a3d3ed9d9e30b6748f0f6c8fbc5", + "ID": "90d384d9309f", + "MemPerc": "5.54%", + "MemUsage": "56.68MiB / 1GiB", + "Name": "messenger-lab7-worker-1", + "NetIO": "315kB / 485kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "17.85%", + "Container": "deb933a5c68ebf3d1bcb3eb33b15db3cb49ec2ebd433adcdc8eb7b4798e4dd4a", + "ID": "deb933a5c68e", + "MemPerc": "86.35%", + "MemUsage": "442.1MiB / 512MiB", + "Name": "messenger-lab7-api-2", + "NetIO": "2.05MB / 2.87MB", + "PIDs": "60" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "98.24%", + "Container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "ID": "c22718d76c23", + "MemPerc": "75.51%", + "MemUsage": "386.6MiB / 512MiB", + "Name": "messenger-lab7-api-1", + "NetIO": "76kB / 63.7kB", + "PIDs": "58" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.13%", + "Container": "946804e3589c0c258c4c57feed192d0767fa1a015d446e40680ed4680a3f35b6", + "ID": "946804e3589c", + "MemPerc": "5.50%", + "MemUsage": "56.28MiB / 1GiB", + "Name": "messenger-lab7-worker-2", + "NetIO": "156kB / 289kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "3.44%", + "Container": "f63bd61bc58a18fb25f35298516ad3215bca2f4400541e036d78810cdee3b017", + "ID": "f63bd61bc58a", + "MemPerc": "22.53%", + "MemUsage": "57.68MiB / 256MiB", + "Name": "messenger-lab7-dispatcher-1", + "NetIO": "4.92MB / 4.8MB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "1.23%", + "Container": "a11cdd088fe7abbea7a1f95a64845f525ba119f9fb9558059c3410e502c8b877", + "ID": "a11cdd088fe7", + "MemPerc": "6.24%", + "MemUsage": "3.992MiB / 64MiB", + "Name": "messenger-lab7-lb-1", + "NetIO": "2.65MB / 3.38MB", + "PIDs": "2" + }, + { + "BlockIO": "5.74MB / 270kB", + "CPUPerc": "0.24%", + "Container": "ecd3c87015c59808c5c6c561e5ec37f64412e1a2f9ed6013a9a7735f45ab78e7", + "ID": "ecd3c87015c5", + "MemPerc": "29.99%", + "MemUsage": "76.77MiB / 256MiB", + "Name": "messenger-lab7-grafana-1", + "NetIO": "1.57MB / 459kB", + "PIDs": "18" + }, + { + "BlockIO": "1.25MB / 348kB", + "CPUPerc": "0.00%", + "Container": "ce4b4d1f72ec046348114f1138351ba7c0f5f71d3c2fbc80309fe99f633c7010", + "ID": "ce4b4d1f72ec", + "MemPerc": "16.71%", + "MemUsage": "42.78MiB / 256MiB", + "Name": "messenger-lab7-prometheus-1", + "NetIO": "1.57MB / 459kB", + "PIDs": "11" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.37%", + "Container": "8f1a4b98411fdfbcb64530283e5c58080646d80c2d3a07267cfa8e51015896a4", + "ID": "8f1a4b98411f", + "MemPerc": "2.42%", + "MemUsage": "3.098MiB / 128MiB", + "Name": "messenger-lab7-redis-1", + "NetIO": "1.57MB / 459kB", + "PIDs": "6" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.58%", + "Container": "2e7d8709f08e9f9814f9489fb0e317cf5783d5ce920c274d77c48d51b842f636", + "ID": "2e7d8709f08e", + "MemPerc": "2.52%", + "MemUsage": "3.227MiB / 128MiB", + "Name": "messenger-lab7-broker-1", + "NetIO": "1.57MB / 459kB", + "PIDs": "6" + }, + { + "BlockIO": "1.31MB / 291kB", + "CPUPerc": "1.10%", + "Container": "a68c65c4d12432f7d1685e378e390c38c30c451c66477e36ced23638731bef6b", + "ID": "a68c65c4d124", + "MemPerc": "15.50%", + "MemUsage": "59.51MiB / 384MiB", + "Name": "messenger-lab7-loki-1", + "NetIO": "1.57MB / 459kB", + "PIDs": "13" + }, + { + "BlockIO": "770kB / 774kB", + "CPUPerc": "0.24%", + "Container": "45722a55dc1909919618df90a261835439e1422349b2aaebf460b9d41c0d2692", + "ID": "45722a55dc19", + "MemPerc": "28.19%", + "MemUsage": "72.16MiB / 256MiB", + "Name": "messenger-lab7-tempo-1", + "NetIO": "1.57MB / 459kB", + "PIDs": "13" + }, + { + "BlockIO": "3.4MB / 0B", + "CPUPerc": "0.32%", + "Container": "74caa8ce1abd2953b1f1d9a90f02394458dcb934d6f41d542886c18613e8b81d", + "ID": "74caa8ce1abd", + "MemPerc": "31.81%", + "MemUsage": "61.08MiB / 192MiB", + "Name": "messenger-lab7-otel-collector-1", + "NetIO": "1.57MB / 459kB", + "PIDs": "14" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.41%", + "Container": "241e3a5609849d6bb4f9786333e84fd1ceaf6d44aa81a9738cbee44daf321432", + "ID": "241e3a560984", + "MemPerc": "6.52%", + "MemUsage": "4.176MiB / 64MiB", + "Name": "messenger-lab7-gateway-1", + "NetIO": "1.57MB / 459kB", + "PIDs": "2" + }, + { + "BlockIO": "5.07MB / 7.33MB", + "CPUPerc": "9.54%", + "Container": "2f26009003bf8ec7a561981841650d13f571beaf605b43d2756eef373d3115cc", + "ID": "2f26009003bf", + "MemPerc": "11.29%", + "MemUsage": "57.82MiB / 512MiB", + "Name": "messenger-lab7-db-1", + "NetIO": "6.33MB / 5.9MB", + "PIDs": "19" + }, + { + "BlockIO": "10.3MB / 397kB", + "CPUPerc": "0.03%", + "Container": "ac784160aba75e2acecd0908155d6ae208cdd2ec602b6a86cee2722cea1e23b3", + "ID": "ac784160aba7", + "MemPerc": "17.86%", + "MemUsage": "68.58MiB / 384MiB", + "Name": "messenger-lab7-minio-1", + "NetIO": "336kB / 1.04MB", + "PIDs": "10" + }, + { + "BlockIO": "7.33MB / 12.1MB", + "CPUPerc": "1.00%", + "Container": "328a84881d158735a17562b675c61d760a442e375fe2a43109604fbfcad34664", + "ID": "328a84881d15", + "MemPerc": "11.72%", + "MemUsage": "30.01MiB / 256MiB", + "Name": "messenger-lab7-openbao-1", + "NetIO": "820kB / 1.1MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "4.06%", + "Container": "52a6527c3a5d78828c0fd6c7b4a1a320cd65f426b99fd304045b2a6740b49aab", + "ID": "52a6527c3a5d", + "MemPerc": "16.99%", + "MemUsage": "10.88MiB / 64MiB", + "Name": "messenger-lab7-dispatcher-agent-1", + "NetIO": "353kB / 257kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "5.02%", + "Container": "fc0c3c37f1cc2ab348e4480b50cf4e3487e51db00f151a515259253646b909b6", + "ID": "fc0c3c37f1cc", + "MemPerc": "16.99%", + "MemUsage": "10.87MiB / 64MiB", + "Name": "messenger-lab7-api-agent-1", + "NetIO": "350kB / 255kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "2d40b2d99c295bec37fa15a1e12e66c393e846a282a58268ed6971627c432fe2", + "ID": "2d40b2d99c29", + "MemPerc": "17.00%", + "MemUsage": "10.88MiB / 64MiB", + "Name": "messenger-lab7-worker-agent-1", + "NetIO": "351kB / 255kB", + "PIDs": "1" + } + ] + }, + { + "elapsed_seconds": 6.719, + "containers": [ + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.20%", + "Container": "90d384d9309f1c262f09d5313d34475f462a7a3d3ed9d9e30b6748f0f6c8fbc5", + "ID": "90d384d9309f", + "MemPerc": "5.54%", + "MemUsage": "56.68MiB / 1GiB", + "Name": "messenger-lab7-worker-1", + "NetIO": "318kB / 491kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "48.29%", + "Container": "deb933a5c68ebf3d1bcb3eb33b15db3cb49ec2ebd433adcdc8eb7b4798e4dd4a", + "ID": "deb933a5c68e", + "MemPerc": "86.63%", + "MemUsage": "443.5MiB / 512MiB", + "Name": "messenger-lab7-api-2", + "NetIO": "2.2MB / 3.07MB", + "PIDs": "60" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "99.66%", + "Container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "ID": "c22718d76c23", + "MemPerc": "76.92%", + "MemUsage": "393.8MiB / 512MiB", + "Name": "messenger-lab7-api-1", + "NetIO": "234kB / 300kB", + "PIDs": "59" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.15%", + "Container": "946804e3589c0c258c4c57feed192d0767fa1a015d446e40680ed4680a3f35b6", + "ID": "946804e3589c", + "MemPerc": "5.50%", + "MemUsage": "56.28MiB / 1GiB", + "Name": "messenger-lab7-worker-2", + "NetIO": "159kB / 295kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "4.13%", + "Container": "f63bd61bc58a18fb25f35298516ad3215bca2f4400541e036d78810cdee3b017", + "ID": "f63bd61bc58a", + "MemPerc": "22.53%", + "MemUsage": "57.68MiB / 256MiB", + "Name": "messenger-lab7-dispatcher-1", + "NetIO": "5.01MB / 4.9MB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "7.37%", + "Container": "a11cdd088fe7abbea7a1f95a64845f525ba119f9fb9558059c3410e502c8b877", + "ID": "a11cdd088fe7", + "MemPerc": "6.73%", + "MemUsage": "4.309MiB / 64MiB", + "Name": "messenger-lab7-lb-1", + "NetIO": "3.05MB / 3.93MB", + "PIDs": "2" + }, + { + "BlockIO": "5.74MB / 270kB", + "CPUPerc": "0.32%", + "Container": "ecd3c87015c59808c5c6c561e5ec37f64412e1a2f9ed6013a9a7735f45ab78e7", + "ID": "ecd3c87015c5", + "MemPerc": "29.99%", + "MemUsage": "76.77MiB / 256MiB", + "Name": "messenger-lab7-grafana-1", + "NetIO": "1.65MB / 472kB", + "PIDs": "18" + }, + { + "BlockIO": "1.25MB / 348kB", + "CPUPerc": "1.36%", + "Container": "ce4b4d1f72ec046348114f1138351ba7c0f5f71d3c2fbc80309fe99f633c7010", + "ID": "ce4b4d1f72ec", + "MemPerc": "16.71%", + "MemUsage": "42.79MiB / 256MiB", + "Name": "messenger-lab7-prometheus-1", + "NetIO": "1.65MB / 472kB", + "PIDs": "11" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.62%", + "Container": "8f1a4b98411fdfbcb64530283e5c58080646d80c2d3a07267cfa8e51015896a4", + "ID": "8f1a4b98411f", + "MemPerc": "2.42%", + "MemUsage": "3.098MiB / 128MiB", + "Name": "messenger-lab7-redis-1", + "NetIO": "1.65MB / 472kB", + "PIDs": "6" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.62%", + "Container": "2e7d8709f08e9f9814f9489fb0e317cf5783d5ce920c274d77c48d51b842f636", + "ID": "2e7d8709f08e", + "MemPerc": "2.52%", + "MemUsage": "3.227MiB / 128MiB", + "Name": "messenger-lab7-broker-1", + "NetIO": "1.65MB / 472kB", + "PIDs": "6" + }, + { + "BlockIO": "1.31MB / 291kB", + "CPUPerc": "1.80%", + "Container": "a68c65c4d12432f7d1685e378e390c38c30c451c66477e36ced23638731bef6b", + "ID": "a68c65c4d124", + "MemPerc": "15.86%", + "MemUsage": "60.91MiB / 384MiB", + "Name": "messenger-lab7-loki-1", + "NetIO": "1.65MB / 472kB", + "PIDs": "13" + }, + { + "BlockIO": "770kB / 774kB", + "CPUPerc": "0.58%", + "Container": "45722a55dc1909919618df90a261835439e1422349b2aaebf460b9d41c0d2692", + "ID": "45722a55dc19", + "MemPerc": "28.54%", + "MemUsage": "73.07MiB / 256MiB", + "Name": "messenger-lab7-tempo-1", + "NetIO": "1.65MB / 472kB", + "PIDs": "13" + }, + { + "BlockIO": "3.4MB / 0B", + "CPUPerc": "0.79%", + "Container": "74caa8ce1abd2953b1f1d9a90f02394458dcb934d6f41d542886c18613e8b81d", + "ID": "74caa8ce1abd", + "MemPerc": "31.84%", + "MemUsage": "61.14MiB / 192MiB", + "Name": "messenger-lab7-otel-collector-1", + "NetIO": "1.65MB / 472kB", + "PIDs": "14" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.37%", + "Container": "241e3a5609849d6bb4f9786333e84fd1ceaf6d44aa81a9738cbee44daf321432", + "ID": "241e3a560984", + "MemPerc": "6.54%", + "MemUsage": "4.188MiB / 64MiB", + "Name": "messenger-lab7-gateway-1", + "NetIO": "1.65MB / 472kB", + "PIDs": "2" + }, + { + "BlockIO": "5.07MB / 8.54MB", + "CPUPerc": "26.14%", + "Container": "2f26009003bf8ec7a561981841650d13f571beaf605b43d2756eef373d3115cc", + "ID": "2f26009003bf", + "MemPerc": "11.63%", + "MemUsage": "59.54MiB / 512MiB", + "Name": "messenger-lab7-db-1", + "NetIO": "6.74MB / 6.26MB", + "PIDs": "18" + }, + { + "BlockIO": "10.3MB / 397kB", + "CPUPerc": "0.07%", + "Container": "ac784160aba75e2acecd0908155d6ae208cdd2ec602b6a86cee2722cea1e23b3", + "ID": "ac784160aba7", + "MemPerc": "17.86%", + "MemUsage": "68.59MiB / 384MiB", + "Name": "messenger-lab7-minio-1", + "NetIO": "338kB / 1.04MB", + "PIDs": "10" + }, + { + "BlockIO": "7.33MB / 12.1MB", + "CPUPerc": "1.35%", + "Container": "328a84881d158735a17562b675c61d760a442e375fe2a43109604fbfcad34664", + "ID": "328a84881d15", + "MemPerc": "11.72%", + "MemUsage": "30.01MiB / 256MiB", + "Name": "messenger-lab7-openbao-1", + "NetIO": "820kB / 1.1MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "52a6527c3a5d78828c0fd6c7b4a1a320cd65f426b99fd304045b2a6740b49aab", + "ID": "52a6527c3a5d", + "MemPerc": "16.99%", + "MemUsage": "10.88MiB / 64MiB", + "Name": "messenger-lab7-dispatcher-agent-1", + "NetIO": "353kB / 257kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "fc0c3c37f1cc2ab348e4480b50cf4e3487e51db00f151a515259253646b909b6", + "ID": "fc0c3c37f1cc", + "MemPerc": "16.99%", + "MemUsage": "10.87MiB / 64MiB", + "Name": "messenger-lab7-api-agent-1", + "NetIO": "350kB / 255kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "6.25%", + "Container": "2d40b2d99c295bec37fa15a1e12e66c393e846a282a58268ed6971627c432fe2", + "ID": "2d40b2d99c29", + "MemPerc": "17.00%", + "MemUsage": "10.88MiB / 64MiB", + "Name": "messenger-lab7-worker-agent-1", + "NetIO": "351kB / 255kB", + "PIDs": "1" + } + ] + }, + { + "elapsed_seconds": 11.11, + "containers": [ + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.13%", + "Container": "90d384d9309f1c262f09d5313d34475f462a7a3d3ed9d9e30b6748f0f6c8fbc5", + "ID": "90d384d9309f", + "MemPerc": "5.54%", + "MemUsage": "56.68MiB / 1GiB", + "Name": "messenger-lab7-worker-1", + "NetIO": "322kB / 499kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "46.30%", + "Container": "deb933a5c68ebf3d1bcb3eb33b15db3cb49ec2ebd433adcdc8eb7b4798e4dd4a", + "ID": "deb933a5c68e", + "MemPerc": "87.33%", + "MemUsage": "447.1MiB / 512MiB", + "Name": "messenger-lab7-api-2", + "NetIO": "2.37MB / 3.32MB", + "PIDs": "63" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "97.67%", + "Container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "ID": "c22718d76c23", + "MemPerc": "78.45%", + "MemUsage": "401.7MiB / 512MiB", + "Name": "messenger-lab7-api-1", + "NetIO": "397kB / 555kB", + "PIDs": "59" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.34%", + "Container": "946804e3589c0c258c4c57feed192d0767fa1a015d446e40680ed4680a3f35b6", + "ID": "946804e3589c", + "MemPerc": "5.50%", + "MemUsage": "56.28MiB / 1GiB", + "Name": "messenger-lab7-worker-2", + "NetIO": "162kB / 300kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "6.26%", + "Container": "f63bd61bc58a18fb25f35298516ad3215bca2f4400541e036d78810cdee3b017", + "ID": "f63bd61bc58a", + "MemPerc": "22.53%", + "MemUsage": "57.68MiB / 256MiB", + "Name": "messenger-lab7-dispatcher-1", + "NetIO": "5.09MB / 4.98MB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "9.42%", + "Container": "a11cdd088fe7abbea7a1f95a64845f525ba119f9fb9558059c3410e502c8b877", + "ID": "a11cdd088fe7", + "MemPerc": "6.63%", + "MemUsage": "4.246MiB / 64MiB", + "Name": "messenger-lab7-lb-1", + "NetIO": "3.48MB / 4.49MB", + "PIDs": "2" + }, + { + "BlockIO": "5.74MB / 283kB", + "CPUPerc": "0.38%", + "Container": "ecd3c87015c59808c5c6c561e5ec37f64412e1a2f9ed6013a9a7735f45ab78e7", + "ID": "ecd3c87015c5", + "MemPerc": "29.99%", + "MemUsage": "76.77MiB / 256MiB", + "Name": "messenger-lab7-grafana-1", + "NetIO": "1.76MB / 483kB", + "PIDs": "18" + }, + { + "BlockIO": "1.25MB / 348kB", + "CPUPerc": "0.03%", + "Container": "ce4b4d1f72ec046348114f1138351ba7c0f5f71d3c2fbc80309fe99f633c7010", + "ID": "ce4b4d1f72ec", + "MemPerc": "16.72%", + "MemUsage": "42.8MiB / 256MiB", + "Name": "messenger-lab7-prometheus-1", + "NetIO": "1.76MB / 483kB", + "PIDs": "11" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "1.19%", + "Container": "8f1a4b98411fdfbcb64530283e5c58080646d80c2d3a07267cfa8e51015896a4", + "ID": "8f1a4b98411f", + "MemPerc": "2.42%", + "MemUsage": "3.098MiB / 128MiB", + "Name": "messenger-lab7-redis-1", + "NetIO": "1.75MB / 481kB", + "PIDs": "6" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "1.26%", + "Container": "2e7d8709f08e9f9814f9489fb0e317cf5783d5ce920c274d77c48d51b842f636", + "ID": "2e7d8709f08e", + "MemPerc": "2.52%", + "MemUsage": "3.227MiB / 128MiB", + "Name": "messenger-lab7-broker-1", + "NetIO": "1.76MB / 483kB", + "PIDs": "6" + }, + { + "BlockIO": "1.31MB / 291kB", + "CPUPerc": "1.91%", + "Container": "a68c65c4d12432f7d1685e378e390c38c30c451c66477e36ced23638731bef6b", + "ID": "a68c65c4d124", + "MemPerc": "16.47%", + "MemUsage": "63.26MiB / 384MiB", + "Name": "messenger-lab7-loki-1", + "NetIO": "1.76MB / 483kB", + "PIDs": "13" + }, + { + "BlockIO": "770kB / 778kB", + "CPUPerc": "2.24%", + "Container": "45722a55dc1909919618df90a261835439e1422349b2aaebf460b9d41c0d2692", + "ID": "45722a55dc19", + "MemPerc": "29.45%", + "MemUsage": "75.39MiB / 256MiB", + "Name": "messenger-lab7-tempo-1", + "NetIO": "1.76MB / 483kB", + "PIDs": "13" + }, + { + "BlockIO": "3.4MB / 0B", + "CPUPerc": "0.92%", + "Container": "74caa8ce1abd2953b1f1d9a90f02394458dcb934d6f41d542886c18613e8b81d", + "ID": "74caa8ce1abd", + "MemPerc": "32.15%", + "MemUsage": "61.73MiB / 192MiB", + "Name": "messenger-lab7-otel-collector-1", + "NetIO": "1.76MB / 483kB", + "PIDs": "14" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.51%", + "Container": "241e3a5609849d6bb4f9786333e84fd1ceaf6d44aa81a9738cbee44daf321432", + "ID": "241e3a560984", + "MemPerc": "6.55%", + "MemUsage": "4.191MiB / 64MiB", + "Name": "messenger-lab7-gateway-1", + "NetIO": "1.76MB / 483kB", + "PIDs": "2" + }, + { + "BlockIO": "5.07MB / 9.75MB", + "CPUPerc": "32.01%", + "Container": "2f26009003bf8ec7a561981841650d13f571beaf605b43d2756eef373d3115cc", + "ID": "2f26009003bf", + "MemPerc": "11.71%", + "MemUsage": "59.97MiB / 512MiB", + "Name": "messenger-lab7-db-1", + "NetIO": "7.12MB / 6.59MB", + "PIDs": "18" + }, + { + "BlockIO": "10.3MB / 446kB", + "CPUPerc": "0.12%", + "Container": "ac784160aba75e2acecd0908155d6ae208cdd2ec602b6a86cee2722cea1e23b3", + "ID": "ac784160aba7", + "MemPerc": "17.87%", + "MemUsage": "68.64MiB / 384MiB", + "Name": "messenger-lab7-minio-1", + "NetIO": "338kB / 1.04MB", + "PIDs": "10" + }, + { + "BlockIO": "7.33MB / 12.7MB", + "CPUPerc": "1.60%", + "Container": "328a84881d158735a17562b675c61d760a442e375fe2a43109604fbfcad34664", + "ID": "328a84881d15", + "MemPerc": "11.73%", + "MemUsage": "30.03MiB / 256MiB", + "Name": "messenger-lab7-openbao-1", + "NetIO": "853kB / 1.14MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "52a6527c3a5d78828c0fd6c7b4a1a320cd65f426b99fd304045b2a6740b49aab", + "ID": "52a6527c3a5d", + "MemPerc": "17.07%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-dispatcher-agent-1", + "NetIO": "368kB / 268kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "fc0c3c37f1cc2ab348e4480b50cf4e3487e51db00f151a515259253646b909b6", + "ID": "fc0c3c37f1cc", + "MemPerc": "17.05%", + "MemUsage": "10.91MiB / 64MiB", + "Name": "messenger-lab7-api-agent-1", + "NetIO": "365kB / 266kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "2d40b2d99c295bec37fa15a1e12e66c393e846a282a58268ed6971627c432fe2", + "ID": "2d40b2d99c29", + "MemPerc": "17.07%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-worker-agent-1", + "NetIO": "366kB / 267kB", + "PIDs": "1" + } + ] + }, + { + "elapsed_seconds": 15.594, + "containers": [ + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.16%", + "Container": "90d384d9309f1c262f09d5313d34475f462a7a3d3ed9d9e30b6748f0f6c8fbc5", + "ID": "90d384d9309f", + "MemPerc": "5.54%", + "MemUsage": "56.68MiB / 1GiB", + "Name": "messenger-lab7-worker-1", + "NetIO": "324kB / 505kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "37.63%", + "Container": "deb933a5c68ebf3d1bcb3eb33b15db3cb49ec2ebd433adcdc8eb7b4798e4dd4a", + "ID": "deb933a5c68e", + "MemPerc": "87.16%", + "MemUsage": "446.2MiB / 512MiB", + "Name": "messenger-lab7-api-2", + "NetIO": "2.59MB / 3.66MB", + "PIDs": "60" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "95.77%", + "Container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "ID": "c22718d76c23", + "MemPerc": "79.42%", + "MemUsage": "406.6MiB / 512MiB", + "Name": "messenger-lab7-api-1", + "NetIO": "626kB / 902kB", + "PIDs": "60" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.12%", + "Container": "946804e3589c0c258c4c57feed192d0767fa1a015d446e40680ed4680a3f35b6", + "ID": "946804e3589c", + "MemPerc": "5.50%", + "MemUsage": "56.28MiB / 1GiB", + "Name": "messenger-lab7-worker-2", + "NetIO": "164kB / 305kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "5.74%", + "Container": "f63bd61bc58a18fb25f35298516ad3215bca2f4400541e036d78810cdee3b017", + "ID": "f63bd61bc58a", + "MemPerc": "22.54%", + "MemUsage": "57.71MiB / 256MiB", + "Name": "messenger-lab7-dispatcher-1", + "NetIO": "5.18MB / 5.09MB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "8.27%", + "Container": "a11cdd088fe7abbea7a1f95a64845f525ba119f9fb9558059c3410e502c8b877", + "ID": "a11cdd088fe7", + "MemPerc": "6.67%", + "MemUsage": "4.27MiB / 64MiB", + "Name": "messenger-lab7-lb-1", + "NetIO": "4.09MB / 5.29MB", + "PIDs": "2" + }, + { + "BlockIO": "5.74MB / 283kB", + "CPUPerc": "0.41%", + "Container": "ecd3c87015c59808c5c6c561e5ec37f64412e1a2f9ed6013a9a7735f45ab78e7", + "ID": "ecd3c87015c5", + "MemPerc": "29.99%", + "MemUsage": "76.77MiB / 256MiB", + "Name": "messenger-lab7-grafana-1", + "NetIO": "1.91MB / 495kB", + "PIDs": "18" + }, + { + "BlockIO": "1.25MB / 348kB", + "CPUPerc": "0.69%", + "Container": "ce4b4d1f72ec046348114f1138351ba7c0f5f71d3c2fbc80309fe99f633c7010", + "ID": "ce4b4d1f72ec", + "MemPerc": "16.72%", + "MemUsage": "42.8MiB / 256MiB", + "Name": "messenger-lab7-prometheus-1", + "NetIO": "1.91MB / 495kB", + "PIDs": "11" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.61%", + "Container": "8f1a4b98411fdfbcb64530283e5c58080646d80c2d3a07267cfa8e51015896a4", + "ID": "8f1a4b98411f", + "MemPerc": "2.42%", + "MemUsage": "3.098MiB / 128MiB", + "Name": "messenger-lab7-redis-1", + "NetIO": "1.91MB / 494kB", + "PIDs": "6" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.62%", + "Container": "2e7d8709f08e9f9814f9489fb0e317cf5783d5ce920c274d77c48d51b842f636", + "ID": "2e7d8709f08e", + "MemPerc": "2.52%", + "MemUsage": "3.227MiB / 128MiB", + "Name": "messenger-lab7-broker-1", + "NetIO": "1.91MB / 494kB", + "PIDs": "6" + }, + { + "BlockIO": "1.31MB / 291kB", + "CPUPerc": "1.53%", + "Container": "a68c65c4d12432f7d1685e378e390c38c30c451c66477e36ced23638731bef6b", + "ID": "a68c65c4d124", + "MemPerc": "16.53%", + "MemUsage": "63.46MiB / 384MiB", + "Name": "messenger-lab7-loki-1", + "NetIO": "1.91MB / 495kB", + "PIDs": "13" + }, + { + "BlockIO": "770kB / 811kB", + "CPUPerc": "0.69%", + "Container": "45722a55dc1909919618df90a261835439e1422349b2aaebf460b9d41c0d2692", + "ID": "45722a55dc19", + "MemPerc": "30.02%", + "MemUsage": "76.84MiB / 256MiB", + "Name": "messenger-lab7-tempo-1", + "NetIO": "1.91MB / 495kB", + "PIDs": "13" + }, + { + "BlockIO": "3.4MB / 0B", + "CPUPerc": "0.59%", + "Container": "74caa8ce1abd2953b1f1d9a90f02394458dcb934d6f41d542886c18613e8b81d", + "ID": "74caa8ce1abd", + "MemPerc": "32.27%", + "MemUsage": "61.95MiB / 192MiB", + "Name": "messenger-lab7-otel-collector-1", + "NetIO": "1.91MB / 494kB", + "PIDs": "14" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.46%", + "Container": "241e3a5609849d6bb4f9786333e84fd1ceaf6d44aa81a9738cbee44daf321432", + "ID": "241e3a560984", + "MemPerc": "6.57%", + "MemUsage": "4.203MiB / 64MiB", + "Name": "messenger-lab7-gateway-1", + "NetIO": "1.91MB / 495kB", + "PIDs": "2" + }, + { + "BlockIO": "5.07MB / 11.4MB", + "CPUPerc": "30.37%", + "Container": "2f26009003bf8ec7a561981841650d13f571beaf605b43d2756eef373d3115cc", + "ID": "2f26009003bf", + "MemPerc": "12.45%", + "MemUsage": "63.75MiB / 512MiB", + "Name": "messenger-lab7-db-1", + "NetIO": "7.64MB / 7.04MB", + "PIDs": "20" + }, + { + "BlockIO": "10.3MB / 446kB", + "CPUPerc": "0.34%", + "Container": "ac784160aba75e2acecd0908155d6ae208cdd2ec602b6a86cee2722cea1e23b3", + "ID": "ac784160aba7", + "MemPerc": "17.94%", + "MemUsage": "68.89MiB / 384MiB", + "Name": "messenger-lab7-minio-1", + "NetIO": "340kB / 1.04MB", + "PIDs": "10" + }, + { + "BlockIO": "7.33MB / 12.7MB", + "CPUPerc": "1.20%", + "Container": "328a84881d158735a17562b675c61d760a442e375fe2a43109604fbfcad34664", + "ID": "328a84881d15", + "MemPerc": "11.73%", + "MemUsage": "30.04MiB / 256MiB", + "Name": "messenger-lab7-openbao-1", + "NetIO": "853kB / 1.14MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "52a6527c3a5d78828c0fd6c7b4a1a320cd65f426b99fd304045b2a6740b49aab", + "ID": "52a6527c3a5d", + "MemPerc": "17.07%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-dispatcher-agent-1", + "NetIO": "368kB / 268kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "fc0c3c37f1cc2ab348e4480b50cf4e3487e51db00f151a515259253646b909b6", + "ID": "fc0c3c37f1cc", + "MemPerc": "17.05%", + "MemUsage": "10.91MiB / 64MiB", + "Name": "messenger-lab7-api-agent-1", + "NetIO": "365kB / 266kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "2d40b2d99c295bec37fa15a1e12e66c393e846a282a58268ed6971627c432fe2", + "ID": "2d40b2d99c29", + "MemPerc": "17.06%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-worker-agent-1", + "NetIO": "366kB / 267kB", + "PIDs": "1" + } + ] + }, + { + "elapsed_seconds": 19.922, + "containers": [ + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.16%", + "Container": "90d384d9309f1c262f09d5313d34475f462a7a3d3ed9d9e30b6748f0f6c8fbc5", + "ID": "90d384d9309f", + "MemPerc": "5.54%", + "MemUsage": "56.68MiB / 1GiB", + "Name": "messenger-lab7-worker-1", + "NetIO": "327kB / 511kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "67.16%", + "Container": "deb933a5c68ebf3d1bcb3eb33b15db3cb49ec2ebd433adcdc8eb7b4798e4dd4a", + "ID": "deb933a5c68e", + "MemPerc": "87.55%", + "MemUsage": "448.3MiB / 512MiB", + "Name": "messenger-lab7-api-2", + "NetIO": "2.81MB / 3.98MB", + "PIDs": "60" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "95.96%", + "Container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "ID": "c22718d76c23", + "MemPerc": "80.37%", + "MemUsage": "411.5MiB / 512MiB", + "Name": "messenger-lab7-api-1", + "NetIO": "917kB / 1.33MB", + "PIDs": "59" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.17%", + "Container": "946804e3589c0c258c4c57feed192d0767fa1a015d446e40680ed4680a3f35b6", + "ID": "946804e3589c", + "MemPerc": "5.50%", + "MemUsage": "56.28MiB / 1GiB", + "Name": "messenger-lab7-worker-2", + "NetIO": "168kB / 312kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "6.21%", + "Container": "f63bd61bc58a18fb25f35298516ad3215bca2f4400541e036d78810cdee3b017", + "ID": "f63bd61bc58a", + "MemPerc": "22.53%", + "MemUsage": "57.69MiB / 256MiB", + "Name": "messenger-lab7-dispatcher-1", + "NetIO": "5.41MB / 5.18MB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "13.35%", + "Container": "a11cdd088fe7abbea7a1f95a64845f525ba119f9fb9558059c3410e502c8b877", + "ID": "a11cdd088fe7", + "MemPerc": "6.61%", + "MemUsage": "4.23MiB / 64MiB", + "Name": "messenger-lab7-lb-1", + "NetIO": "4.87MB / 6.32MB", + "PIDs": "2" + }, + { + "BlockIO": "5.74MB / 283kB", + "CPUPerc": "0.98%", + "Container": "ecd3c87015c59808c5c6c561e5ec37f64412e1a2f9ed6013a9a7735f45ab78e7", + "ID": "ecd3c87015c5", + "MemPerc": "29.99%", + "MemUsage": "76.77MiB / 256MiB", + "Name": "messenger-lab7-grafana-1", + "NetIO": "2.06MB / 506kB", + "PIDs": "18" + }, + { + "BlockIO": "1.25MB / 348kB", + "CPUPerc": "0.18%", + "Container": "ce4b4d1f72ec046348114f1138351ba7c0f5f71d3c2fbc80309fe99f633c7010", + "ID": "ce4b4d1f72ec", + "MemPerc": "16.72%", + "MemUsage": "42.81MiB / 256MiB", + "Name": "messenger-lab7-prometheus-1", + "NetIO": "2.07MB / 506kB", + "PIDs": "11" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.75%", + "Container": "8f1a4b98411fdfbcb64530283e5c58080646d80c2d3a07267cfa8e51015896a4", + "ID": "8f1a4b98411f", + "MemPerc": "2.42%", + "MemUsage": "3.098MiB / 128MiB", + "Name": "messenger-lab7-redis-1", + "NetIO": "2.06MB / 506kB", + "PIDs": "6" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.86%", + "Container": "2e7d8709f08e9f9814f9489fb0e317cf5783d5ce920c274d77c48d51b842f636", + "ID": "2e7d8709f08e", + "MemPerc": "2.52%", + "MemUsage": "3.227MiB / 128MiB", + "Name": "messenger-lab7-broker-1", + "NetIO": "2.06MB / 506kB", + "PIDs": "6" + }, + { + "BlockIO": "1.31MB / 479kB", + "CPUPerc": "1.32%", + "Container": "a68c65c4d12432f7d1685e378e390c38c30c451c66477e36ced23638731bef6b", + "ID": "a68c65c4d124", + "MemPerc": "16.54%", + "MemUsage": "63.52MiB / 384MiB", + "Name": "messenger-lab7-loki-1", + "NetIO": "2.06MB / 506kB", + "PIDs": "13" + }, + { + "BlockIO": "770kB / 811kB", + "CPUPerc": "0.87%", + "Container": "45722a55dc1909919618df90a261835439e1422349b2aaebf460b9d41c0d2692", + "ID": "45722a55dc19", + "MemPerc": "18.90%", + "MemUsage": "48.38MiB / 256MiB", + "Name": "messenger-lab7-tempo-1", + "NetIO": "2.06MB / 506kB", + "PIDs": "13" + }, + { + "BlockIO": "3.4MB / 0B", + "CPUPerc": "1.01%", + "Container": "74caa8ce1abd2953b1f1d9a90f02394458dcb934d6f41d542886c18613e8b81d", + "ID": "74caa8ce1abd", + "MemPerc": "32.50%", + "MemUsage": "62.39MiB / 192MiB", + "Name": "messenger-lab7-otel-collector-1", + "NetIO": "2.06MB / 506kB", + "PIDs": "14" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.64%", + "Container": "241e3a5609849d6bb4f9786333e84fd1ceaf6d44aa81a9738cbee44daf321432", + "ID": "241e3a560984", + "MemPerc": "6.57%", + "MemUsage": "4.203MiB / 64MiB", + "Name": "messenger-lab7-gateway-1", + "NetIO": "2.06MB / 506kB", + "PIDs": "2" + }, + { + "BlockIO": "5.07MB / 13.7MB", + "CPUPerc": "39.39%", + "Container": "2f26009003bf8ec7a561981841650d13f571beaf605b43d2756eef373d3115cc", + "ID": "2f26009003bf", + "MemPerc": "12.17%", + "MemUsage": "62.33MiB / 512MiB", + "Name": "messenger-lab7-db-1", + "NetIO": "8.26MB / 7.58MB", + "PIDs": "19" + }, + { + "BlockIO": "10.3MB / 446kB", + "CPUPerc": "3.47%", + "Container": "ac784160aba75e2acecd0908155d6ae208cdd2ec602b6a86cee2722cea1e23b3", + "ID": "ac784160aba7", + "MemPerc": "17.90%", + "MemUsage": "68.73MiB / 384MiB", + "Name": "messenger-lab7-minio-1", + "NetIO": "343kB / 1.2MB", + "PIDs": "10" + }, + { + "BlockIO": "7.33MB / 13.2MB", + "CPUPerc": "1.13%", + "Container": "328a84881d158735a17562b675c61d760a442e375fe2a43109604fbfcad34664", + "ID": "328a84881d15", + "MemPerc": "11.74%", + "MemUsage": "30.04MiB / 256MiB", + "Name": "messenger-lab7-openbao-1", + "NetIO": "886kB / 1.19MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "52a6527c3a5d78828c0fd6c7b4a1a320cd65f426b99fd304045b2a6740b49aab", + "ID": "52a6527c3a5d", + "MemPerc": "17.07%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-dispatcher-agent-1", + "NetIO": "384kB / 280kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "fc0c3c37f1cc2ab348e4480b50cf4e3487e51db00f151a515259253646b909b6", + "ID": "fc0c3c37f1cc", + "MemPerc": "17.06%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-api-agent-1", + "NetIO": "380kB / 278kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "2d40b2d99c295bec37fa15a1e12e66c393e846a282a58268ed6971627c432fe2", + "ID": "2d40b2d99c29", + "MemPerc": "17.06%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-worker-agent-1", + "NetIO": "381kB / 278kB", + "PIDs": "1" + } + ] + }, + { + "elapsed_seconds": 24.25, + "containers": [ + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.13%", + "Container": "90d384d9309f1c262f09d5313d34475f462a7a3d3ed9d9e30b6748f0f6c8fbc5", + "ID": "90d384d9309f", + "MemPerc": "5.54%", + "MemUsage": "56.68MiB / 1GiB", + "Name": "messenger-lab7-worker-1", + "NetIO": "330kB / 517kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "71.24%", + "Container": "deb933a5c68ebf3d1bcb3eb33b15db3cb49ec2ebd433adcdc8eb7b4798e4dd4a", + "ID": "deb933a5c68e", + "MemPerc": "86.71%", + "MemUsage": "444MiB / 512MiB", + "Name": "messenger-lab7-api-2", + "NetIO": "3.19MB / 4.52MB", + "PIDs": "62" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "102.24%", + "Container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "ID": "c22718d76c23", + "MemPerc": "81.24%", + "MemUsage": "416MiB / 512MiB", + "Name": "messenger-lab7-api-1", + "NetIO": "1.22MB / 1.79MB", + "PIDs": "59" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.12%", + "Container": "946804e3589c0c258c4c57feed192d0767fa1a015d446e40680ed4680a3f35b6", + "ID": "946804e3589c", + "MemPerc": "5.50%", + "MemUsage": "56.28MiB / 1GiB", + "Name": "messenger-lab7-worker-2", + "NetIO": "170kB / 317kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "4.87%", + "Container": "f63bd61bc58a18fb25f35298516ad3215bca2f4400541e036d78810cdee3b017", + "ID": "f63bd61bc58a", + "MemPerc": "22.54%", + "MemUsage": "57.69MiB / 256MiB", + "Name": "messenger-lab7-dispatcher-1", + "NetIO": "5.49MB / 5.26MB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "12.45%", + "Container": "a11cdd088fe7abbea7a1f95a64845f525ba119f9fb9558059c3410e502c8b877", + "ID": "a11cdd088fe7", + "MemPerc": "6.59%", + "MemUsage": "4.219MiB / 64MiB", + "Name": "messenger-lab7-lb-1", + "NetIO": "5.65MB / 7.36MB", + "PIDs": "2" + }, + { + "BlockIO": "5.74MB / 283kB", + "CPUPerc": "0.37%", + "Container": "ecd3c87015c59808c5c6c561e5ec37f64412e1a2f9ed6013a9a7735f45ab78e7", + "ID": "ecd3c87015c5", + "MemPerc": "29.99%", + "MemUsage": "76.77MiB / 256MiB", + "Name": "messenger-lab7-grafana-1", + "NetIO": "2.2MB / 516kB", + "PIDs": "18" + }, + { + "BlockIO": "1.25MB / 348kB", + "CPUPerc": "0.71%", + "Container": "ce4b4d1f72ec046348114f1138351ba7c0f5f71d3c2fbc80309fe99f633c7010", + "ID": "ce4b4d1f72ec", + "MemPerc": "16.73%", + "MemUsage": "42.82MiB / 256MiB", + "Name": "messenger-lab7-prometheus-1", + "NetIO": "2.24MB / 519kB", + "PIDs": "11" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "3.93%", + "Container": "8f1a4b98411fdfbcb64530283e5c58080646d80c2d3a07267cfa8e51015896a4", + "ID": "8f1a4b98411f", + "MemPerc": "2.42%", + "MemUsage": "3.098MiB / 128MiB", + "Name": "messenger-lab7-redis-1", + "NetIO": "2.24MB / 519kB", + "PIDs": "6" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.51%", + "Container": "2e7d8709f08e9f9814f9489fb0e317cf5783d5ce920c274d77c48d51b842f636", + "ID": "2e7d8709f08e", + "MemPerc": "2.52%", + "MemUsage": "3.227MiB / 128MiB", + "Name": "messenger-lab7-broker-1", + "NetIO": "2.24MB / 519kB", + "PIDs": "6" + }, + { + "BlockIO": "1.31MB / 479kB", + "CPUPerc": "1.29%", + "Container": "a68c65c4d12432f7d1685e378e390c38c30c451c66477e36ced23638731bef6b", + "ID": "a68c65c4d124", + "MemPerc": "17.08%", + "MemUsage": "65.57MiB / 384MiB", + "Name": "messenger-lab7-loki-1", + "NetIO": "2.24MB / 519kB", + "PIDs": "13" + }, + { + "BlockIO": "770kB / 815kB", + "CPUPerc": "0.78%", + "Container": "45722a55dc1909919618df90a261835439e1422349b2aaebf460b9d41c0d2692", + "ID": "45722a55dc19", + "MemPerc": "18.96%", + "MemUsage": "48.54MiB / 256MiB", + "Name": "messenger-lab7-tempo-1", + "NetIO": "2.24MB / 519kB", + "PIDs": "13" + }, + { + "BlockIO": "3.4MB / 0B", + "CPUPerc": "1.12%", + "Container": "74caa8ce1abd2953b1f1d9a90f02394458dcb934d6f41d542886c18613e8b81d", + "ID": "74caa8ce1abd", + "MemPerc": "32.58%", + "MemUsage": "62.56MiB / 192MiB", + "Name": "messenger-lab7-otel-collector-1", + "NetIO": "2.24MB / 519kB", + "PIDs": "14" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.55%", + "Container": "241e3a5609849d6bb4f9786333e84fd1ceaf6d44aa81a9738cbee44daf321432", + "ID": "241e3a560984", + "MemPerc": "6.57%", + "MemUsage": "4.203MiB / 64MiB", + "Name": "messenger-lab7-gateway-1", + "NetIO": "2.24MB / 519kB", + "PIDs": "2" + }, + { + "BlockIO": "5.07MB / 15.8MB", + "CPUPerc": "41.53%", + "Container": "2f26009003bf8ec7a561981841650d13f571beaf605b43d2756eef373d3115cc", + "ID": "2f26009003bf", + "MemPerc": "11.85%", + "MemUsage": "60.67MiB / 512MiB", + "Name": "messenger-lab7-db-1", + "NetIO": "8.87MB / 8.11MB", + "PIDs": "18" + }, + { + "BlockIO": "10.3MB / 446kB", + "CPUPerc": "4.78%", + "Container": "ac784160aba75e2acecd0908155d6ae208cdd2ec602b6a86cee2722cea1e23b3", + "ID": "ac784160aba7", + "MemPerc": "17.90%", + "MemUsage": "68.74MiB / 384MiB", + "Name": "messenger-lab7-minio-1", + "NetIO": "344kB / 1.2MB", + "PIDs": "10" + }, + { + "BlockIO": "7.33MB / 13.2MB", + "CPUPerc": "0.99%", + "Container": "328a84881d158735a17562b675c61d760a442e375fe2a43109604fbfcad34664", + "ID": "328a84881d15", + "MemPerc": "11.74%", + "MemUsage": "30.04MiB / 256MiB", + "Name": "messenger-lab7-openbao-1", + "NetIO": "886kB / 1.19MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "6.24%", + "Container": "52a6527c3a5d78828c0fd6c7b4a1a320cd65f426b99fd304045b2a6740b49aab", + "ID": "52a6527c3a5d", + "MemPerc": "17.07%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-dispatcher-agent-1", + "NetIO": "384kB / 280kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "6.13%", + "Container": "fc0c3c37f1cc2ab348e4480b50cf4e3487e51db00f151a515259253646b909b6", + "ID": "fc0c3c37f1cc", + "MemPerc": "17.05%", + "MemUsage": "10.91MiB / 64MiB", + "Name": "messenger-lab7-api-agent-1", + "NetIO": "380kB / 278kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "2d40b2d99c295bec37fa15a1e12e66c393e846a282a58268ed6971627c432fe2", + "ID": "2d40b2d99c29", + "MemPerc": "17.06%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-worker-agent-1", + "NetIO": "381kB / 278kB", + "PIDs": "1" + } + ] + }, + { + "elapsed_seconds": 28.656, + "containers": [ + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.43%", + "Container": "90d384d9309f1c262f09d5313d34475f462a7a3d3ed9d9e30b6748f0f6c8fbc5", + "ID": "90d384d9309f", + "MemPerc": "5.54%", + "MemUsage": "56.68MiB / 1GiB", + "Name": "messenger-lab7-worker-1", + "NetIO": "333kB / 524kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "65.59%", + "Container": "deb933a5c68ebf3d1bcb3eb33b15db3cb49ec2ebd433adcdc8eb7b4798e4dd4a", + "ID": "deb933a5c68e", + "MemPerc": "88.40%", + "MemUsage": "452.6MiB / 512MiB", + "Name": "messenger-lab7-api-2", + "NetIO": "3.48MB / 4.95MB", + "PIDs": "62" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "98.24%", + "Container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "ID": "c22718d76c23", + "MemPerc": "82.10%", + "MemUsage": "420.3MiB / 512MiB", + "Name": "messenger-lab7-api-1", + "NetIO": "1.63MB / 2.38MB", + "PIDs": "59" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.39%", + "Container": "946804e3589c0c258c4c57feed192d0767fa1a015d446e40680ed4680a3f35b6", + "ID": "946804e3589c", + "MemPerc": "5.50%", + "MemUsage": "56.28MiB / 1GiB", + "Name": "messenger-lab7-worker-2", + "NetIO": "173kB / 322kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "3.29%", + "Container": "f63bd61bc58a18fb25f35298516ad3215bca2f4400541e036d78810cdee3b017", + "ID": "f63bd61bc58a", + "MemPerc": "22.53%", + "MemUsage": "57.69MiB / 256MiB", + "Name": "messenger-lab7-dispatcher-1", + "NetIO": "5.57MB / 5.35MB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "16.23%", + "Container": "a11cdd088fe7abbea7a1f95a64845f525ba119f9fb9558059c3410e502c8b877", + "ID": "a11cdd088fe7", + "MemPerc": "7.06%", + "MemUsage": "4.516MiB / 64MiB", + "Name": "messenger-lab7-lb-1", + "NetIO": "6.74MB / 8.81MB", + "PIDs": "2" + }, + { + "BlockIO": "5.74MB / 283kB", + "CPUPerc": "0.28%", + "Container": "ecd3c87015c59808c5c6c561e5ec37f64412e1a2f9ed6013a9a7735f45ab78e7", + "ID": "ecd3c87015c5", + "MemPerc": "29.99%", + "MemUsage": "76.77MiB / 256MiB", + "Name": "messenger-lab7-grafana-1", + "NetIO": "2.47MB / 532kB", + "PIDs": "18" + }, + { + "BlockIO": "1.25MB / 369kB", + "CPUPerc": "0.63%", + "Container": "ce4b4d1f72ec046348114f1138351ba7c0f5f71d3c2fbc80309fe99f633c7010", + "ID": "ce4b4d1f72ec", + "MemPerc": "16.73%", + "MemUsage": "42.82MiB / 256MiB", + "Name": "messenger-lab7-prometheus-1", + "NetIO": "2.47MB / 532kB", + "PIDs": "11" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "3.43%", + "Container": "8f1a4b98411fdfbcb64530283e5c58080646d80c2d3a07267cfa8e51015896a4", + "ID": "8f1a4b98411f", + "MemPerc": "2.42%", + "MemUsage": "3.098MiB / 128MiB", + "Name": "messenger-lab7-redis-1", + "NetIO": "2.47MB / 532kB", + "PIDs": "6" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "3.85%", + "Container": "2e7d8709f08e9f9814f9489fb0e317cf5783d5ce920c274d77c48d51b842f636", + "ID": "2e7d8709f08e", + "MemPerc": "2.52%", + "MemUsage": "3.227MiB / 128MiB", + "Name": "messenger-lab7-broker-1", + "NetIO": "2.47MB / 532kB", + "PIDs": "6" + }, + { + "BlockIO": "1.31MB / 479kB", + "CPUPerc": "1.09%", + "Container": "a68c65c4d12432f7d1685e378e390c38c30c451c66477e36ced23638731bef6b", + "ID": "a68c65c4d124", + "MemPerc": "18.39%", + "MemUsage": "70.61MiB / 384MiB", + "Name": "messenger-lab7-loki-1", + "NetIO": "2.47MB / 532kB", + "PIDs": "13" + }, + { + "BlockIO": "770kB / 815kB", + "CPUPerc": "1.04%", + "Container": "45722a55dc1909919618df90a261835439e1422349b2aaebf460b9d41c0d2692", + "ID": "45722a55dc19", + "MemPerc": "18.97%", + "MemUsage": "48.56MiB / 256MiB", + "Name": "messenger-lab7-tempo-1", + "NetIO": "2.47MB / 532kB", + "PIDs": "13" + }, + { + "BlockIO": "3.4MB / 0B", + "CPUPerc": "2.05%", + "Container": "74caa8ce1abd2953b1f1d9a90f02394458dcb934d6f41d542886c18613e8b81d", + "ID": "74caa8ce1abd", + "MemPerc": "32.60%", + "MemUsage": "62.6MiB / 192MiB", + "Name": "messenger-lab7-otel-collector-1", + "NetIO": "2.47MB / 532kB", + "PIDs": "14" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.74%", + "Container": "241e3a5609849d6bb4f9786333e84fd1ceaf6d44aa81a9738cbee44daf321432", + "ID": "241e3a560984", + "MemPerc": "6.58%", + "MemUsage": "4.211MiB / 64MiB", + "Name": "messenger-lab7-gateway-1", + "NetIO": "2.47MB / 532kB", + "PIDs": "2" + }, + { + "BlockIO": "5.08MB / 19.2MB", + "CPUPerc": "41.47%", + "Container": "2f26009003bf8ec7a561981841650d13f571beaf605b43d2756eef373d3115cc", + "ID": "2f26009003bf", + "MemPerc": "11.93%", + "MemUsage": "61.11MiB / 512MiB", + "Name": "messenger-lab7-db-1", + "NetIO": "9.68MB / 8.81MB", + "PIDs": "18" + }, + { + "BlockIO": "10.3MB / 446kB", + "CPUPerc": "0.01%", + "Container": "ac784160aba75e2acecd0908155d6ae208cdd2ec602b6a86cee2722cea1e23b3", + "ID": "ac784160aba7", + "MemPerc": "17.90%", + "MemUsage": "68.74MiB / 384MiB", + "Name": "messenger-lab7-minio-1", + "NetIO": "346kB / 1.2MB", + "PIDs": "10" + }, + { + "BlockIO": "7.33MB / 13.7MB", + "CPUPerc": "2.49%", + "Container": "328a84881d158735a17562b675c61d760a442e375fe2a43109604fbfcad34664", + "ID": "328a84881d15", + "MemPerc": "11.74%", + "MemUsage": "30.07MiB / 256MiB", + "Name": "messenger-lab7-openbao-1", + "NetIO": "920kB / 1.23MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "1.63%", + "Container": "52a6527c3a5d78828c0fd6c7b4a1a320cd65f426b99fd304045b2a6740b49aab", + "ID": "52a6527c3a5d", + "MemPerc": "17.07%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-dispatcher-agent-1", + "NetIO": "399kB / 291kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "fc0c3c37f1cc2ab348e4480b50cf4e3487e51db00f151a515259253646b909b6", + "ID": "fc0c3c37f1cc", + "MemPerc": "17.05%", + "MemUsage": "10.91MiB / 64MiB", + "Name": "messenger-lab7-api-agent-1", + "NetIO": "395kB / 289kB", + "PIDs": "1" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "5.96%", + "Container": "2d40b2d99c295bec37fa15a1e12e66c393e846a282a58268ed6971627c432fe2", + "ID": "2d40b2d99c29", + "MemPerc": "17.08%", + "MemUsage": "10.93MiB / 64MiB", + "Name": "messenger-lab7-worker-agent-1", + "NetIO": "385kB / 281kB", + "PIDs": "1" + } + ] + }, + { + "elapsed_seconds": 32.985, + "containers": [ + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.64%", + "Container": "90d384d9309f1c262f09d5313d34475f462a7a3d3ed9d9e30b6748f0f6c8fbc5", + "ID": "90d384d9309f", + "MemPerc": "5.54%", + "MemUsage": "56.68MiB / 1GiB", + "Name": "messenger-lab7-worker-1", + "NetIO": "336kB / 530kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.76%", + "Container": "deb933a5c68ebf3d1bcb3eb33b15db3cb49ec2ebd433adcdc8eb7b4798e4dd4a", + "ID": "deb933a5c68e", + "MemPerc": "86.98%", + "MemUsage": "445.3MiB / 512MiB", + "Name": "messenger-lab7-api-2", + "NetIO": "3.91MB / 5.58MB", + "PIDs": "60" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "1.95%", + "Container": "c22718d76c237d4d643dd9c0c4423e9940aca34dac22062347167c064f045f10", + "ID": "c22718d76c23", + "MemPerc": "82.53%", + "MemUsage": "422.6MiB / 512MiB", + "Name": "messenger-lab7-api-1", + "NetIO": "1.93MB / 2.85MB", + "PIDs": "59" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.33%", + "Container": "946804e3589c0c258c4c57feed192d0767fa1a015d446e40680ed4680a3f35b6", + "ID": "946804e3589c", + "MemPerc": "5.50%", + "MemUsage": "56.28MiB / 1GiB", + "Name": "messenger-lab7-worker-2", + "NetIO": "176kB / 327kB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "4.48%", + "Container": "f63bd61bc58a18fb25f35298516ad3215bca2f4400541e036d78810cdee3b017", + "ID": "f63bd61bc58a", + "MemPerc": "22.53%", + "MemUsage": "57.69MiB / 256MiB", + "Name": "messenger-lab7-dispatcher-1", + "NetIO": "5.66MB / 5.44MB", + "PIDs": "4" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "a11cdd088fe7abbea7a1f95a64845f525ba119f9fb9558059c3410e502c8b877", + "ID": "a11cdd088fe7", + "MemPerc": "6.63%", + "MemUsage": "4.246MiB / 64MiB", + "Name": "messenger-lab7-lb-1", + "NetIO": "7.53MB / 9.85MB", + "PIDs": "2" + }, + { + "BlockIO": "5.74MB / 283kB", + "CPUPerc": "0.38%", + "Container": "ecd3c87015c59808c5c6c561e5ec37f64412e1a2f9ed6013a9a7735f45ab78e7", + "ID": "ecd3c87015c5", + "MemPerc": "30.00%", + "MemUsage": "76.79MiB / 256MiB", + "Name": "messenger-lab7-grafana-1", + "NetIO": "2.65MB / 544kB", + "PIDs": "18" + }, + { + "BlockIO": "1.25MB / 369kB", + "CPUPerc": "0.53%", + "Container": "ce4b4d1f72ec046348114f1138351ba7c0f5f71d3c2fbc80309fe99f633c7010", + "ID": "ce4b4d1f72ec", + "MemPerc": "16.73%", + "MemUsage": "42.83MiB / 256MiB", + "Name": "messenger-lab7-prometheus-1", + "NetIO": "2.65MB / 544kB", + "PIDs": "11" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.77%", + "Container": "8f1a4b98411fdfbcb64530283e5c58080646d80c2d3a07267cfa8e51015896a4", + "ID": "8f1a4b98411f", + "MemPerc": "2.42%", + "MemUsage": "3.098MiB / 128MiB", + "Name": "messenger-lab7-redis-1", + "NetIO": "2.64MB / 541kB", + "PIDs": "6" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.93%", + "Container": "2e7d8709f08e9f9814f9489fb0e317cf5783d5ce920c274d77c48d51b842f636", + "ID": "2e7d8709f08e", + "MemPerc": "2.52%", + "MemUsage": "3.227MiB / 128MiB", + "Name": "messenger-lab7-broker-1", + "NetIO": "2.65MB / 544kB", + "PIDs": "6" + }, + { + "BlockIO": "1.31MB / 913kB", + "CPUPerc": "2.50%", + "Container": "a68c65c4d12432f7d1685e378e390c38c30c451c66477e36ced23638731bef6b", + "ID": "a68c65c4d124", + "MemPerc": "18.66%", + "MemUsage": "71.66MiB / 384MiB", + "Name": "messenger-lab7-loki-1", + "NetIO": "2.65MB / 544kB", + "PIDs": "13" + }, + { + "BlockIO": "770kB / 819kB", + "CPUPerc": "1.25%", + "Container": "45722a55dc1909919618df90a261835439e1422349b2aaebf460b9d41c0d2692", + "ID": "45722a55dc19", + "MemPerc": "19.05%", + "MemUsage": "48.76MiB / 256MiB", + "Name": "messenger-lab7-tempo-1", + "NetIO": "2.65MB / 544kB", + "PIDs": "13" + }, + { + "BlockIO": "3.4MB / 0B", + "CPUPerc": "1.40%", + "Container": "74caa8ce1abd2953b1f1d9a90f02394458dcb934d6f41d542886c18613e8b81d", + "ID": "74caa8ce1abd", + "MemPerc": "32.63%", + "MemUsage": "62.65MiB / 192MiB", + "Name": "messenger-lab7-otel-collector-1", + "NetIO": "2.65MB / 544kB", + "PIDs": "14" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.78%", + "Container": "241e3a5609849d6bb4f9786333e84fd1ceaf6d44aa81a9738cbee44daf321432", + "ID": "241e3a560984", + "MemPerc": "6.58%", + "MemUsage": "4.211MiB / 64MiB", + "Name": "messenger-lab7-gateway-1", + "NetIO": "2.65MB / 544kB", + "PIDs": "2" + }, + { + "BlockIO": "5.08MB / 21.5MB", + "CPUPerc": "9.74%", + "Container": "2f26009003bf8ec7a561981841650d13f571beaf605b43d2756eef373d3115cc", + "ID": "2f26009003bf", + "MemPerc": "11.92%", + "MemUsage": "61.02MiB / 512MiB", + "Name": "messenger-lab7-db-1", + "NetIO": "10.3MB / 9.38MB", + "PIDs": "18" + }, + { + "BlockIO": "10.3MB / 446kB", + "CPUPerc": "0.04%", + "Container": "ac784160aba75e2acecd0908155d6ae208cdd2ec602b6a86cee2722cea1e23b3", + "ID": "ac784160aba7", + "MemPerc": "17.90%", + "MemUsage": "68.74MiB / 384MiB", + "Name": "messenger-lab7-minio-1", + "NetIO": "347kB / 1.2MB", + "PIDs": "10" + }, + { + "BlockIO": "7.33MB / 13.7MB", + "CPUPerc": "1.40%", + "Container": "328a84881d158735a17562b675c61d760a442e375fe2a43109604fbfcad34664", + "ID": "328a84881d15", + "MemPerc": "11.74%", + "MemUsage": "30.07MiB / 256MiB", + "Name": "messenger-lab7-openbao-1", + "NetIO": "920kB / 1.23MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "2.06%", + "Container": "52a6527c3a5d78828c0fd6c7b4a1a320cd65f426b99fd304045b2a6740b49aab", + "ID": "52a6527c3a5d", + "MemPerc": "23.88%", + "MemUsage": "15.29MiB / 64MiB", + "Name": "messenger-lab7-dispatcher-agent-1", + "NetIO": "399kB / 291kB", + "PIDs": "8" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "3.06%", + "Container": "fc0c3c37f1cc2ab348e4480b50cf4e3487e51db00f151a515259253646b909b6", + "ID": "fc0c3c37f1cc", + "MemPerc": "23.11%", + "MemUsage": "14.79MiB / 64MiB", + "Name": "messenger-lab7-api-agent-1", + "NetIO": "395kB / 289kB", + "PIDs": "2" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "2d40b2d99c295bec37fa15a1e12e66c393e846a282a58268ed6971627c432fe2", + "ID": "2d40b2d99c29", + "MemPerc": "17.07%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "messenger-lab7-worker-agent-1", + "NetIO": "396kB / 289kB", + "PIDs": "1" + } + ] + } + ] +} diff --git a/evidence/load.json b/evidence/load.json new file mode 100644 index 0000000..5e080ce --- /dev/null +++ b/evidence/load.json @@ -0,0 +1,17 @@ +{ + "lab": 7, + "workload": "closed-loop POST messages; no automatic retries", + "requested_duration_seconds": 30.0, + "elapsed_seconds": 30.062, + "concurrency": 4, + "successful_requests": 1376, + "failed_requests": 0, + "error_ratio": 0.0, + "successful_rps": 45.772, + "successful_latency_ms": { + "p50": 78.0, + "p95": 188.0, + "p99": 297.0 + }, + "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." +} diff --git a/evidence/load.txt b/evidence/load.txt new file mode 100644 index 0000000..b9eb9af --- /dev/null +++ b/evidence/load.txt @@ -0,0 +1,22 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "tests/load.py", "--base-url", "https://127.0.0.1:8443", "--ca-file", "D:\\Лабы\\mtusi2026lab7\\secrets\\public\\ca.crt", "--duration", "30", "--concurrency", "4", "--output", "evidence/load.json"] +UTC: 2026-11-27T19:03:04.677750+00:00 +Exit code: 0 +Elapsed seconds: 31.719 + +{ + "lab": 7, + "workload": "closed-loop POST messages; no automatic retries", + "requested_duration_seconds": 30.0, + "elapsed_seconds": 30.062, + "concurrency": 4, + "successful_requests": 1376, + "failed_requests": 0, + "error_ratio": 0.0, + "successful_rps": 45.772, + "successful_latency_ms": { + "p50": 78.0, + "p95": 188.0, + "p99": 297.0 + }, + "note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead." +} diff --git a/evidence/make-check.txt b/evidence/make-check.txt new file mode 100644 index 0000000..5923558 --- /dev/null +++ b/evidence/make-check.txt @@ -0,0 +1,7 @@ +Command: ["D:\\AppData\\Tools\\make.exe", "check", "PYTHON=.venv/Scripts/python.exe"] +UTC: 2026-11-27T18:49:41.006529+00:00 +Exit code: 0 +Elapsed seconds: 0.422 + +.venv/Scripts/python.exe scripts/check_contract.py +PASS: offline skeleton structure, local refs and Python syntax; application NOT tested. diff --git a/evidence/make-security.txt b/evidence/make-security.txt new file mode 100644 index 0000000..6f5c7df --- /dev/null +++ b/evidence/make-security.txt @@ -0,0 +1,7 @@ +Command: ["D:\\AppData\\Tools\\make.exe", "test-security", "PYTHON=.venv/Scripts/python.exe", "BASE_URL=https://127.0.0.1:8443", "CA_FILE=secrets/public/ca.crt"] +UTC: 2026-11-27T18:58:56.838384+00:00 +Exit code: 0 +Elapsed seconds: 0.281 + +.venv/Scripts/python.exe tests/security.py --base-url "https://127.0.0.1:8443" --ca-file "secrets/public/ca.crt" +PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening. diff --git a/evidence/make-test.txt b/evidence/make-test.txt new file mode 100644 index 0000000..115c840 --- /dev/null +++ b/evidence/make-test.txt @@ -0,0 +1,7 @@ +Command: ["D:\\AppData\\Tools\\make.exe", "test", "PYTHON=.venv/Scripts/python.exe", "BASE_URL=https://127.0.0.1:8443", "CA_FILE=secrets/public/ca.crt"] +UTC: 2026-11-27T18:58:51.697977+00:00 +Exit code: 0 +Elapsed seconds: 5.141 + +.venv/Scripts/python.exe tests/smoke.py --base-url "https://127.0.0.1:8443" --ca-file "secrets/public/ca.crt" +PASS: lab7 public API scenario; infrastructure and grading evidence remain separate. diff --git a/evidence/make-validate.txt b/evidence/make-validate.txt new file mode 100644 index 0000000..1d2729e --- /dev/null +++ b/evidence/make-validate.txt @@ -0,0 +1,7 @@ +Command: ["D:\\AppData\\Tools\\make.exe", "validate", "PYTHON=.venv/Scripts/python.exe"] +UTC: 2026-11-27T18:49:41.586105+00:00 +Exit code: 0 +Elapsed seconds: 1.422 + +.venv/Scripts/python.exe scripts/validate_openapi.py +PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested. diff --git a/evidence/metric-inventory.json b/evidence/metric-inventory.json new file mode 100644 index 0000000..a984b47 --- /dev/null +++ b/evidence/metric-inventory.json @@ -0,0 +1,127 @@ +{ + "lab_http_requests_total": { + "series": 16, + "label_keys": [ + "__name__", + "instance", + "job", + "method", + "otel_scope_name", + "route", + "status_class" + ] + }, + "lab_http_duration_seconds_bucket": { + "series": 208, + "label_keys": [ + "__name__", + "instance", + "job", + "le", + "method", + "otel_scope_name", + "route", + "status_class" + ] + }, + "lab_jobs_total": { + "series": 21, + "label_keys": [ + "__name__", + "instance", + "job", + "job_type", + "otel_scope_name", + "outcome" + ] + }, + "lab_job_duration_seconds_bucket": { + "series": 45, + "label_keys": [ + "__name__", + "instance", + "job", + "job_type", + "le", + "otel_scope_name", + "outcome" + ] + }, + "lab_ready_duration_seconds_bucket": { + "series": 15, + "label_keys": [ + "__name__", + "instance", + "job", + "job_type", + "le", + "otel_scope_name" + ] + }, + "lab_queue_depth": { + "series": 1, + "label_keys": [ + "__name__", + "instance", + "job", + "otel_scope_name", + "queue" + ] + }, + "lab_queue_oldest_seconds": { + "series": 1, + "label_keys": [ + "__name__", + "instance", + "job", + "otel_scope_name", + "queue" + ] + }, + "lab_db_pool_connections": { + "series": 6, + "label_keys": [ + "__name__", + "instance", + "job", + "otel_scope_name", + "state" + ] + }, + "lab_worker_busy": { + "series": 2, + "label_keys": [ + "__name__", + "instance", + "job", + "otel_scope_name" + ] + }, + "lab_worker_capacity": { + "series": 2, + "label_keys": [ + "__name__", + "instance", + "job", + "otel_scope_name" + ] + }, + "lab_process_cpu_seconds_total": { + "series": 5, + "label_keys": [ + "__name__", + "instance", + "job", + "otel_scope_name" + ] + }, + "lab_process_rss_bytes": { + "series": 5, + "label_keys": [ + "__name__", + "instance", + "job", + "otel_scope_name" + ] + } +} diff --git a/evidence/observe.txt b/evidence/observe.txt new file mode 100644 index 0000000..28c79e8 --- /dev/null +++ b/evidence/observe.txt @@ -0,0 +1,6 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/observe.py"] +UTC: 2026-11-27T18:52:08.984596+00:00 +Exit code: 0 +Elapsed seconds: 14.718 + +PASS real upload -> publish -> consumer retry -> S3/DB; Loki/Tempo/Prometheus via Grafana diff --git a/evidence/persistence.txt b/evidence/persistence.txt new file mode 100644 index 0000000..3b48413 --- /dev/null +++ b/evidence/persistence.txt @@ -0,0 +1,7 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "tests/resilience.py", "--mode", "persistence", "--action-script", "D:\\Лабы\\mtusi2026lab7\\scripts\\restart.cmd", "--base-url", "https://127.0.0.1:8443", "--ca-file", "D:\\Лабы\\mtusi2026lab7\\secrets\\public\\ca.crt"] +UTC: 2026-11-27T18:58:57.122404+00:00 +Exit code: 0 +Elapsed seconds: 43.578 + +Executing explicit persistence hook; hook output suppressed to avoid leaking secrets. +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/pipeline-faults.json b/evidence/pipeline-faults.json new file mode 100644 index 0000000..dcc9dc1 --- /dev/null +++ b/evidence/pipeline-faults.json @@ -0,0 +1,67 @@ +[ + { + "scenario": "commit_publish_api_broker_restart", + "result": "PASS", + "seconds": 92.984 + }, + { + "scenario": "publish_confirm_db_mark_crash", + "result": "PASS", + "seconds": 13.672 + }, + { + "scenario": "24_concurrent_duplicate_deliveries", + "result": "PASS", + "seconds": 23.734 + }, + { + "scenario": "crash_before_effects", + "result": "PASS", + "seconds": 19.656 + }, + { + "scenario": "crash_after_effects", + "result": "PASS", + "seconds": 20.641 + }, + { + "scenario": "crash_after_commit", + "result": "PASS", + "seconds": 10.688 + }, + { + "scenario": "crash_before_ack", + "result": "PASS", + "seconds": 17.406 + }, + { + "scenario": "expired_lease_fences_old_worker", + "result": "PASS", + "seconds": 20.687 + }, + { + "scenario": "hard_process_timeout_recovery", + "result": "PASS", + "seconds": 32.203 + }, + { + "scenario": "new_version_then_stale_reordered_jobs", + "result": "PASS", + "seconds": 31.125 + }, + { + "scenario": "permanent_failure_explicit_replay", + "result": "PASS", + "seconds": 13.875 + }, + { + "scenario": "bounded_retry_explicit_replay", + "result": "PASS", + "seconds": 21.907 + }, + { + "scenario": "two_replica_atomic_backpressure_recovery", + "result": "PASS", + "seconds": 12.39 + } +] \ No newline at end of file diff --git a/evidence/pipeline_ack_guard.txt b/evidence/pipeline_ack_guard.txt new file mode 100644 index 0000000..4c48b9e --- /dev/null +++ b/evidence/pipeline_ack_guard.txt @@ -0,0 +1,6 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/pipeline_ack_guard.py"] +UTC: 2026-11-27T18:51:13.884419+00:00 +Exit code: 0 +Elapsed seconds: 37.594 + +PASS expired worker without dispatcher: no premature ACK; pending/index retained; recovery publishes exactly one result on attempt 2 diff --git a/evidence/pipeline_boundaries.txt b/evidence/pipeline_boundaries.txt new file mode 100644 index 0000000..0b0b887 --- /dev/null +++ b/evidence/pipeline_boundaries.txt @@ -0,0 +1,7 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/pipeline_boundaries.py"] +UTC: 2026-11-27T18:38:59.714286+00:00 +Exit code: 0 +Elapsed seconds: 19.578 + +PASS message eligibility: status UPDATE blocked until Message COMMIT; subsequent FAILED attachment rejected with 409 +PASS download/cleanup barrier: content waits for exclusive cleanup, returns identical bytes, releases shared fence diff --git a/evidence/pipeline_core.txt b/evidence/pipeline_core.txt new file mode 100644 index 0000000..cb7d7b2 --- /dev/null +++ b/evidence/pipeline_core.txt @@ -0,0 +1,10 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/pipeline_core.py"] +UTC: 2026-11-27T18:38:35.494440+00:00 +Exit code: 0 +Elapsed seconds: 17.032 + +PASS queued snapshot, link before ready, 409 before worker; original + 3 variants +PASS bytes/corruption/MIME/filename/ACL/cross-chat negatives +PASS alpha white, no small-image enlargement, EXIF rotation, crop and WebP +PASS 24 concurrent requests across 2 API replicas; single message effect +PASS core pipeline contract diff --git a/evidence/pipeline_faults.txt b/evidence/pipeline_faults.txt new file mode 100644 index 0000000..ac89a76 --- /dev/null +++ b/evidence/pipeline_faults.txt @@ -0,0 +1,21 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/pipeline_faults.py"] +UTC: 2026-11-27T18:45:38.863576+00:00 +Exit code: 0 +Elapsed seconds: 335.031 + +durability: 202 -> outbox COMMIT without publisher; API restart; publish; broker restart while worker stopped; same jobs ready +{"scenario": "commit_publish_api_broker_restart", "result": "PASS", "seconds": 92.984} +{"scenario": "publish_confirm_db_mark_crash", "result": "PASS", "seconds": 13.672} +{"scenario": "24_concurrent_duplicate_deliveries", "result": "PASS", "seconds": 23.734} +{"scenario": "crash_before_effects", "result": "PASS", "seconds": 19.656} +{"scenario": "crash_after_effects", "result": "PASS", "seconds": 20.641} +{"scenario": "crash_after_commit", "result": "PASS", "seconds": 10.688} +{"scenario": "crash_before_ack", "result": "PASS", "seconds": 17.406} +{"scenario": "expired_lease_fences_old_worker", "result": "PASS", "seconds": 20.687} +{"scenario": "hard_process_timeout_recovery", "result": "PASS", "seconds": 32.203} +{"scenario": "new_version_then_stale_reordered_jobs", "result": "PASS", "seconds": 31.125} +{"scenario": "permanent_failure_explicit_replay", "result": "PASS", "seconds": 13.875} +{"scenario": "bounded_retry_explicit_replay", "result": "PASS", "seconds": 21.907} +backpressure: 6 accepted, 4 rejected with 503, accepted jobs drained after recovery +{"scenario": "two_replica_atomic_backpressure_recovery", "result": "PASS", "seconds": 12.39} +PASS staging cleaned after safe result publication; no confirmed job lost; all pipeline fault invariants diff --git a/evidence/pipeline_filename.txt b/evidence/pipeline_filename.txt new file mode 100644 index 0000000..2a1608f --- /dev/null +++ b/evidence/pipeline_filename.txt @@ -0,0 +1,6 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/pipeline_filename.py"] +UTC: 2026-11-27T18:38:52.525276+00:00 +Exit code: 0 +Elapsed seconds: 4.281 + +PASS filename code-point limits: 255 ASCII and 255 emoji -> 202 and download 200; 256 emoji -> 400; long Content-Disposition accepted by LB diff --git a/evidence/pipeline_history_capacity.txt b/evidence/pipeline_history_capacity.txt new file mode 100644 index 0000000..ac219bd --- /dev/null +++ b/evidence/pipeline_history_capacity.txt @@ -0,0 +1,6 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/pipeline_history_capacity.py"] +UTC: 2026-11-27T18:38:56.816180+00:00 +Exit code: 0 +Elapsed seconds: 2.906 + +PASS history last-slot race: 10 simultaneous unique POSTs, exactly 1 committed and 9 rejected with 413; DB count equals configured limit diff --git a/evidence/pipeline_retention.txt b/evidence/pipeline_retention.txt new file mode 100644 index 0000000..1d58ec5 --- /dev/null +++ b/evidence/pipeline_retention.txt @@ -0,0 +1,10 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/pipeline_retention.py"] +UTC: 2026-11-27T18:51:51.482629+00:00 +Exit code: 0 +Elapsed seconds: 17.5 + +PASS anonymous direct S3 GET of existing original returns 403 +injected 49-million-pixel complete PNG into trusted staging with matching metadata +PASS worker independently rejects >40 million pixels before full decode; FAILED on first attempt +fresh orphan retained by grace +PASS expired failed staging cleaned; unsafe replay refused; referenced ready bytes retained diff --git a/evidence/pipeline_upload_crash.txt b/evidence/pipeline_upload_crash.txt new file mode 100644 index 0000000..b0715b0 --- /dev/null +++ b/evidence/pipeline_upload_crash.txt @@ -0,0 +1,6 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/pipeline_upload_crash.py"] +UTC: 2026-11-27T18:39:19.297383+00:00 +Exit code: 0 +Elapsed seconds: 52.953 + +PASS SIGKILL after S3 PUT before DB COMMIT: no confirmed response, DB rolled back, staged orphan unreferenced; same session uploads after recovery diff --git a/evidence/restart-containers.json b/evidence/restart-containers.json new file mode 100644 index 0000000..97b1859 --- /dev/null +++ b/evidence/restart-containers.json @@ -0,0 +1,248 @@ +{ + "before": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T18:52:30.371638896Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T18:52:29.386921207Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T18:11:49.852725171Z", + "image": "sha256:3963efa1063f445107db0254157d85eb5b54523d7f67ea669df71a3c7ffcb9d2", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T18:56:57.22704341Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T18:11:48.985069607Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T18:55:14.905918423Z", + "image": "sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T18:11:50.110047171Z", + "image": "sha256:5160c2b7f8b00f98cbebce3ffd8357c88b1675a0a7432745e4e1989bcd4160c3", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T18:11:50.364122098Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T18:11:51.745601772Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T18:13:01.56516002Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T18:11:52.013271673Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T18:11:49.476561831Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T18:11:50.939476476Z", + "image": "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T18:11:51.39486582Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T18:11:51.221073515Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T18:11:52.503794979Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T18:11:51.550963741Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T18:57:06.827280457Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T18:57:07.03180211Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T18:11:50.657181095Z", + "image": "sha256:7958b6df64f520d0d294076649c703d9aad297720320a1b7ec7836be7134bd41", + "status": "running" + } + }, + "after": { + "messenger-lab7-api-1": { + "service": "api", + "started_at": "2026-11-27T18:59:11.534986665Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-2": { + "service": "api", + "started_at": "2026-11-27T18:59:11.219062265Z", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "status": "running" + }, + "messenger-lab7-api-agent-1": { + "service": "api-agent", + "started_at": "2026-11-27T18:59:15.215606126Z", + "image": "sha256:3963efa1063f445107db0254157d85eb5b54523d7f67ea669df71a3c7ffcb9d2", + "status": "running" + }, + "messenger-lab7-broker-1": { + "service": "broker", + "started_at": "2026-11-27T18:59:09.970133435Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-db-1": { + "service": "db", + "started_at": "2026-11-27T18:59:10.440346762Z", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "status": "running" + }, + "messenger-lab7-dispatcher-1": { + "service": "dispatcher", + "started_at": "2026-11-27T18:59:15.399665688Z", + "image": "sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d", + "status": "running" + }, + "messenger-lab7-dispatcher-agent-1": { + "service": "dispatcher-agent", + "started_at": "2026-11-27T18:59:15.114370315Z", + "image": "sha256:5160c2b7f8b00f98cbebce3ffd8357c88b1675a0a7432745e4e1989bcd4160c3", + "status": "running" + }, + "messenger-lab7-gateway-1": { + "service": "gateway", + "started_at": "2026-11-27T18:59:08.010314258Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-grafana-1": { + "service": "grafana", + "started_at": "2026-11-27T18:59:10.065636322Z", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "status": "running" + }, + "messenger-lab7-lb-1": { + "service": "lb", + "started_at": "2026-11-27T18:59:10.312190326Z", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "status": "running" + }, + "messenger-lab7-loki-1": { + "service": "loki", + "started_at": "2026-11-27T18:59:10.088389719Z", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "status": "running" + }, + "messenger-lab7-minio-1": { + "service": "minio", + "started_at": "2026-11-27T18:59:10.398668492Z", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "status": "running" + }, + "messenger-lab7-openbao-1": { + "service": "openbao", + "started_at": "2026-11-27T18:59:02.30728003Z", + "image": "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9", + "status": "running" + }, + "messenger-lab7-otel-collector-1": { + "service": "otel-collector", + "started_at": "2026-11-27T18:59:09.976445982Z", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "status": "running" + }, + "messenger-lab7-prometheus-1": { + "service": "prometheus", + "started_at": "2026-11-27T18:59:10.174137182Z", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "status": "running" + }, + "messenger-lab7-redis-1": { + "service": "redis", + "started_at": "2026-11-27T18:59:10.166791722Z", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "status": "running" + }, + "messenger-lab7-tempo-1": { + "service": "tempo", + "started_at": "2026-11-27T18:59:15.017191129Z", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "status": "running" + }, + "messenger-lab7-worker-1": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.479039655Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-2": { + "service": "worker", + "started_at": "2026-11-27T18:59:15.52742262Z", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "status": "running" + }, + "messenger-lab7-worker-agent-1": { + "service": "worker-agent", + "started_at": "2026-11-27T18:59:15.600402446Z", + "image": "sha256:7958b6df64f520d0d294076649c703d9aad297720320a1b7ec7836be7134bd41", + "status": "running" + } + }, + "all_start_times_changed": true, + "volumes_preserved": true +} diff --git a/evidence/scan-summary.json b/evidence/scan-summary.json new file mode 100644 index 0000000..02e2cf8 --- /dev/null +++ b/evidence/scan-summary.json @@ -0,0 +1,14459 @@ +{ + "scanner": "aquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c", + "scope": "Runtime Java JAR, all resolved worker packages including pip, four production base images. OS packages are unchanged by application Dockerfiles; no socket or secrets mount. Native libraries bundled inside wheels and all other infrastructure images are not a complete SBOM coverage claim.", + "reports": { + "worker-resolved-scan": { + "command": [ + "docker", + "run", + "--rm", + "--security-opt", + "no-new-privileges:true", + "--cap-drop", + "ALL", + "-v", + "messenger-lab7-trivy-cache:/root/.cache/trivy", + "-v", + "D:\\\u041b\u0430\u0431\u044b\\mtusi2026lab7\\build\\scans:/reports", + "-v", + "D:\\\u041b\u0430\u0431\u044b\\mtusi2026lab7\\worker\\requirements-resolved.txt:/scan/requirements.txt:ro", + "aquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c", + "fs", + "--timeout", + "15m", + "--scanners", + "vuln", + "--no-progress", + "--skip-version-check", + "--format", + "json", + "--output", + "/reports/worker-resolved-scan.json", + "/scan" + ], + "exit_code": 0, + "artifact": "/scan", + "scanner": [], + "raw_sha256": "b148831fdd707dd39584e00e5b5ccf2cf2a53a4931338d4151d2e7b5d1742028", + "findings": 0, + "severity": {}, + "resolved_package_records": 27, + "vulnerabilities": [] + }, + "java-scan": { + "command": [ + "docker", + "run", + "--rm", + "--security-opt", + "no-new-privileges:true", + "--cap-drop", + "ALL", + "-v", + "messenger-lab7-trivy-cache:/root/.cache/trivy", + "-v", + "D:\\\u041b\u0430\u0431\u044b\\mtusi2026lab7\\build\\scans:/reports", + "-v", + "D:\\\u041b\u0430\u0431\u044b\\mtusi2026lab7\\build\\libs\\messenger-lab7-0.0.1-SNAPSHOT.jar:/scan/app.jar:ro", + "aquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c", + "rootfs", + "--timeout", + "15m", + "--scanners", + "vuln", + "--no-progress", + "--skip-version-check", + "--format", + "json", + "--output", + "/reports/java-scan.json", + "/scan" + ], + "exit_code": 0, + "artifact": "/scan", + "scanner": [], + "raw_sha256": "66c791d34cd604e8522ca576b5d41ac404971c91f1e98fbccac9811ba452c0e7", + "findings": 0, + "severity": {}, + "resolved_package_records": 164, + "vulnerabilities": [] + }, + "image-jre-scan": { + "command": [ + "docker", + "run", + "--rm", + "--security-opt", + "no-new-privileges:true", + "--cap-drop", + "ALL", + "-v", + "messenger-lab7-trivy-cache:/root/.cache/trivy", + "-v", + "D:\\\u041b\u0430\u0431\u044b\\mtusi2026lab7\\build\\scans:/reports", + "aquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c", + "image", + "--timeout", + "15m", + "--scanners", + "vuln", + "--no-progress", + "--skip-version-check", + "--format", + "json", + "--output", + "/reports/image-jre-scan.json", + "--image-src", + "remote", + "--pkg-types", + "os", + "eclipse-temurin:21-jre-jammy@sha256:a8bff88f760e87e0c8844f8461f807c203fd5e8f78c951c843024647e965eaf5" + ], + "exit_code": 0, + "artifact": "eclipse-temurin:21-jre-jammy@sha256:a8bff88f760e87e0c8844f8461f807c203fd5e8f78c951c843024647e965eaf5", + "scanner": [ + "eclipse-temurin@sha256:a8bff88f760e87e0c8844f8461f807c203fd5e8f78c951c843024647e965eaf5" + ], + "raw_sha256": "91b81e8574a9fa624207707c579b2e6fedb039bbbe7342ad4f901880e752fe55", + "findings": 133, + "severity": { + "MEDIUM": 106, + "LOW": 27 + }, + "resolved_package_records": 143, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2026-102473", + "PkgName": "dash", + "InstalledVersion": "0.5.11+git20210903+057cd650a4ed-3build1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102473" + }, + { + "VulnerabilityID": "CVE-2026-102474", + "PkgName": "dash", + "InstalledVersion": "0.5.11+git20210903+057cd650a4ed-3build1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102474" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "dirmngr", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gnupg", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gnupg-l10n", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gnupg-utils", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpg", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpg-agent", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpg-wks-client", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpg-wks-server", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpgconf", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpgsm", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpgv", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2025-66382", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-66382" + }, + { + "VulnerabilityID": "CVE-2026-115506", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115506" + }, + { + "VulnerabilityID": "CVE-2026-117610", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-117610" + }, + { + "VulnerabilityID": "CVE-2026-118370", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118370" + }, + { + "VulnerabilityID": "CVE-2026-124317", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124317" + }, + { + "VulnerabilityID": "CVE-2026-128241", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128241" + }, + { + "VulnerabilityID": "CVE-2026-134703", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-134703" + }, + { + "VulnerabilityID": "CVE-2026-77214", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77214" + }, + { + "VulnerabilityID": "CVE-2026-93990", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-93990" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-67693", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-67693" + }, + { + "VulnerabilityID": "CVE-2026-88647", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88647" + }, + { + "VulnerabilityID": "CVE-2026-88648", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88648" + }, + { + "VulnerabilityID": "CVE-2026-95184", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95184" + }, + { + "VulnerabilityID": "CVE-2026-95210", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95210" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "libncurses6", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "libncursesw6", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2022-41409", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.39-3ubuntu0.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-41409" + }, + { + "VulnerabilityID": "CVE-2026-107161", + "PkgName": "libsasl2-2", + "InstalledVersion": "2.1.27+dfsg2-3ubuntu1.2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107161" + }, + { + "VulnerabilityID": "CVE-2026-107161", + "PkgName": "libsasl2-modules-db", + "InstalledVersion": "2.1.27+dfsg2-3ubuntu1.2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107161" + }, + { + "VulnerabilityID": "CVE-2026-119371", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119371" + }, + { + "VulnerabilityID": "CVE-2026-119372", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119372" + }, + { + "VulnerabilityID": "CVE-2026-119373", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119373" + }, + { + "VulnerabilityID": "CVE-2026-119375", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119375" + }, + { + "VulnerabilityID": "CVE-2026-119376", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119376" + }, + { + "VulnerabilityID": "CVE-2026-119378", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119378" + }, + { + "VulnerabilityID": "CVE-2026-119379", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119379" + }, + { + "VulnerabilityID": "CVE-2026-119586", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119586" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "libssl3", + "InstalledVersion": "3.0.2-0ubuntu1.30", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "libstdc++6", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "libstdc++6", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-121876", + "PkgName": "libsystemd0", + "InstalledVersion": "249.11-0ubuntu3.23", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121876" + }, + { + "VulnerabilityID": "CVE-2026-40228", + "PkgName": "libsystemd0", + "InstalledVersion": "249.11-0ubuntu3.23", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40228" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "libtinfo6", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2026-121876", + "PkgName": "libudev1", + "InstalledVersion": "249.11-0ubuntu3.23", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121876" + }, + { + "VulnerabilityID": "CVE-2026-40228", + "PkgName": "libudev1", + "InstalledVersion": "249.11-0ubuntu3.23", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40228" + }, + { + "VulnerabilityID": "CVE-2022-4899", + "PkgName": "libzstd1", + "InstalledVersion": "1.4.8+dfsg-3build1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-4899" + }, + { + "VulnerabilityID": "CVE-2023-29383", + "PkgName": "login", + "InstalledVersion": "1:4.8.1-2ubuntu2.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-29383" + }, + { + "VulnerabilityID": "CVE-2024-56433", + "PkgName": "login", + "InstalledVersion": "1:4.8.1-2ubuntu2.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-56433" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "ncurses-base", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "ncurses-bin", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "openssl", + "InstalledVersion": "3.0.2-0ubuntu1.30", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2023-29383", + "PkgName": "passwd", + "InstalledVersion": "1:4.8.1-2ubuntu2.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-29383" + }, + { + "VulnerabilityID": "CVE-2024-56433", + "PkgName": "passwd", + "InstalledVersion": "1:4.8.1-2ubuntu2.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-56433" + }, + { + "VulnerabilityID": "CVE-2026-48962", + "PkgName": "perl-base", + "InstalledVersion": "5.34.0-3ubuntu1.10", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-48962" + }, + { + "VulnerabilityID": "CVE-2026-9538", + "PkgName": "perl-base", + "InstalledVersion": "5.34.0-3ubuntu1.10", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9538" + }, + { + "VulnerabilityID": "CVE-2026-18477", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1ubuntu0.1.22.04.6", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18477" + }, + { + "VulnerabilityID": "CVE-2026-18508", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1ubuntu0.1.22.04.6", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18508" + }, + { + "VulnerabilityID": "CVE-2021-31879", + "PkgName": "wget", + "InstalledVersion": "1.21.2-2ubuntu1.5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2021-31879" + } + ] + }, + "image-worker-updated-scan": { + "command": [ + "docker", + "run", + "--rm", + "--security-opt", + "no-new-privileges:true", + "--cap-drop", + "ALL", + "-v", + "messenger-lab7-trivy-cache:/root/.cache/trivy", + "-v", + "D:\\\u041b\u0430\u0431\u044b\\mtusi2026lab7\\build\\scans:/reports", + "aquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c", + "image", + "--timeout", + "15m", + "--scanners", + "vuln", + "--no-progress", + "--skip-version-check", + "--format", + "json", + "--output", + "/reports/image-worker-updated-scan.json", + "--image-src", + "remote", + "--pkg-types", + "os", + "python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64" + ], + "exit_code": 0, + "artifact": "python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64", + "scanner": [ + "python@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64" + ], + "raw_sha256": "67a9dc9158af29299d10277315f84d9de89b6b65d2ea3eeb659d5ba1cc07feec", + "findings": 382, + "severity": { + "LOW": 114, + "HIGH": 100, + "MEDIUM": 148, + "UNKNOWN": 18, + "CRITICAL": 2 + }, + "resolved_package_records": 105, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2011-3374", + "PkgName": "apt", + "InstalledVersion": "2.6.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2011-3374" + }, + { + "VulnerabilityID": "TEMP-0841856-B18BAF", + "PkgName": "bash", + "InstalledVersion": "5.2.15-2+b13", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0841856-B18BAF" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2016-2781", + "PkgName": "coreutils", + "InstalledVersion": "9.1-1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2016-2781" + }, + { + "VulnerabilityID": "CVE-2017-18018", + "PkgName": "coreutils", + "InstalledVersion": "9.1-1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2017-18018" + }, + { + "VulnerabilityID": "CVE-2025-5278", + "PkgName": "coreutils", + "InstalledVersion": "9.1-1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-5278" + }, + { + "VulnerabilityID": "CVE-2026-56391", + "PkgName": "coreutils", + "InstalledVersion": "9.1-1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56391" + }, + { + "VulnerabilityID": "CVE-2026-56392", + "PkgName": "coreutils", + "InstalledVersion": "9.1-1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56392" + }, + { + "VulnerabilityID": "CVE-2026-102473", + "PkgName": "dash", + "InstalledVersion": "0.5.12-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102473" + }, + { + "VulnerabilityID": "CVE-2026-102474", + "PkgName": "dash", + "InstalledVersion": "0.5.12-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102474" + }, + { + "VulnerabilityID": "CVE-2026-53910", + "PkgName": "diffutils", + "InstalledVersion": "1:3.8-4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53910" + }, + { + "VulnerabilityID": "CVE-2026-91094", + "PkgName": "dpkg", + "InstalledVersion": "1.21.23", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-91094" + }, + { + "VulnerabilityID": "CVE-2026-102010", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102010" + }, + { + "VulnerabilityID": "CVE-2026-114690", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114690" + }, + { + "VulnerabilityID": "CVE-2026-114691", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114691" + }, + { + "VulnerabilityID": "CVE-2026-125709", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-125709" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-115456", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115456" + }, + { + "VulnerabilityID": "CVE-2025-30258", + "PkgName": "gpgv", + "InstalledVersion": "2.2.40-1.1+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-30258" + }, + { + "VulnerabilityID": "CVE-2025-68972", + "PkgName": "gpgv", + "InstalledVersion": "2.2.40-1.1+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-68972" + }, + { + "VulnerabilityID": "CVE-2022-3219", + "PkgName": "gpgv", + "InstalledVersion": "2.2.40-1.1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-3219" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpgv", + "InstalledVersion": "2.2.40-1.1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-57062", + "PkgName": "gpgv", + "InstalledVersion": "2.2.40-1.1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-57062" + }, + { + "VulnerabilityID": "CVE-2026-41992", + "PkgName": "gzip", + "InstalledVersion": "1.12-1", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-41992" + }, + { + "VulnerabilityID": "CVE-2026-41991", + "PkgName": "gzip", + "InstalledVersion": "1.12-1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-41991" + }, + { + "VulnerabilityID": "CVE-2026-54369", + "PkgName": "libacl1", + "InstalledVersion": "2.3.1-3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54369" + }, + { + "VulnerabilityID": "CVE-2026-54370", + "PkgName": "libacl1", + "InstalledVersion": "2.3.1-3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54370" + }, + { + "VulnerabilityID": "CVE-2011-3374", + "PkgName": "libapt-pkg6.0", + "InstalledVersion": "2.6.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2011-3374" + }, + { + "VulnerabilityID": "CVE-2026-54371", + "PkgName": "libattr1", + "InstalledVersion": "1:2.5.1-4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54371" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "libblkid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "libblkid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "libblkid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "libblkid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "libblkid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "libblkid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "libblkid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "libblkid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2026-42250", + "PkgName": "libbz2-1.0", + "InstalledVersion": "1.0.8-5+b1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42250" + }, + { + "VulnerabilityID": "CVE-2026-115819", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115819" + }, + { + "VulnerabilityID": "CVE-2026-121757", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121757" + }, + { + "VulnerabilityID": "CVE-2026-18374", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18374" + }, + { + "VulnerabilityID": "CVE-2026-19499", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19499" + }, + { + "VulnerabilityID": "CVE-2026-19542", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19542" + }, + { + "VulnerabilityID": "CVE-2026-5435", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5435" + }, + { + "VulnerabilityID": "CVE-2026-5450", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5450" + }, + { + "VulnerabilityID": "CVE-2026-5928", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5928" + }, + { + "VulnerabilityID": "CVE-2026-6238", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6238" + }, + { + "VulnerabilityID": "CVE-2026-6368", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6368" + }, + { + "VulnerabilityID": "CVE-2026-6791", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6791" + }, + { + "VulnerabilityID": "CVE-2026-77117", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77117" + }, + { + "VulnerabilityID": "CVE-2026-80489", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-80489" + }, + { + "VulnerabilityID": "CVE-2026-84243", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84243" + }, + { + "VulnerabilityID": "CVE-2026-8674", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8674" + }, + { + "VulnerabilityID": "CVE-2026-86805", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86805" + }, + { + "VulnerabilityID": "CVE-2026-89092", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89092" + }, + { + "VulnerabilityID": "CVE-2026-95818", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95818" + }, + { + "VulnerabilityID": "CVE-2010-4756", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2010-4756" + }, + { + "VulnerabilityID": "CVE-2018-20796", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-20796" + }, + { + "VulnerabilityID": "CVE-2019-1010022", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010022" + }, + { + "VulnerabilityID": "CVE-2019-1010023", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010023" + }, + { + "VulnerabilityID": "CVE-2019-1010024", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010024" + }, + { + "VulnerabilityID": "CVE-2019-1010025", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010025" + }, + { + "VulnerabilityID": "CVE-2019-9192", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-9192" + }, + { + "VulnerabilityID": "CVE-2026-100290", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-100290" + }, + { + "VulnerabilityID": "CVE-2026-126765", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-126765" + }, + { + "VulnerabilityID": "CVE-2026-97399", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97399" + }, + { + "VulnerabilityID": "CVE-2026-121758", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121758" + }, + { + "VulnerabilityID": "CVE-2026-124024", + "PkgName": "libc-bin", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124024" + }, + { + "VulnerabilityID": "CVE-2026-115819", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115819" + }, + { + "VulnerabilityID": "CVE-2026-121757", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121757" + }, + { + "VulnerabilityID": "CVE-2026-18374", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18374" + }, + { + "VulnerabilityID": "CVE-2026-19499", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19499" + }, + { + "VulnerabilityID": "CVE-2026-19542", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19542" + }, + { + "VulnerabilityID": "CVE-2026-5435", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5435" + }, + { + "VulnerabilityID": "CVE-2026-5450", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5450" + }, + { + "VulnerabilityID": "CVE-2026-5928", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5928" + }, + { + "VulnerabilityID": "CVE-2026-6238", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6238" + }, + { + "VulnerabilityID": "CVE-2026-6368", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6368" + }, + { + "VulnerabilityID": "CVE-2026-6791", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6791" + }, + { + "VulnerabilityID": "CVE-2026-77117", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77117" + }, + { + "VulnerabilityID": "CVE-2026-80489", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-80489" + }, + { + "VulnerabilityID": "CVE-2026-84243", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84243" + }, + { + "VulnerabilityID": "CVE-2026-8674", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8674" + }, + { + "VulnerabilityID": "CVE-2026-86805", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86805" + }, + { + "VulnerabilityID": "CVE-2026-89092", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89092" + }, + { + "VulnerabilityID": "CVE-2026-95818", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95818" + }, + { + "VulnerabilityID": "CVE-2010-4756", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2010-4756" + }, + { + "VulnerabilityID": "CVE-2018-20796", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-20796" + }, + { + "VulnerabilityID": "CVE-2019-1010022", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010022" + }, + { + "VulnerabilityID": "CVE-2019-1010023", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010023" + }, + { + "VulnerabilityID": "CVE-2019-1010024", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010024" + }, + { + "VulnerabilityID": "CVE-2019-1010025", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010025" + }, + { + "VulnerabilityID": "CVE-2019-9192", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-9192" + }, + { + "VulnerabilityID": "CVE-2026-100290", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-100290" + }, + { + "VulnerabilityID": "CVE-2026-126765", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-126765" + }, + { + "VulnerabilityID": "CVE-2026-97399", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97399" + }, + { + "VulnerabilityID": "CVE-2026-121758", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121758" + }, + { + "VulnerabilityID": "CVE-2026-124024", + "PkgName": "libc6", + "InstalledVersion": "2.36-9+deb12u14", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124024" + }, + { + "VulnerabilityID": "CVE-2026-102010", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102010" + }, + { + "VulnerabilityID": "CVE-2026-114690", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114690" + }, + { + "VulnerabilityID": "CVE-2026-114691", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114691" + }, + { + "VulnerabilityID": "CVE-2026-125709", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-125709" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-115456", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115456" + }, + { + "VulnerabilityID": "CVE-2018-6829", + "PkgName": "libgcrypt20", + "InstalledVersion": "1.10.1-3+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-6829" + }, + { + "VulnerabilityID": "CVE-2024-2236", + "PkgName": "libgcrypt20", + "InstalledVersion": "1.10.1-3+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-2236" + }, + { + "VulnerabilityID": "CVE-2011-3389", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2011-3389" + }, + { + "VulnerabilityID": "CVE-2026-67693", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-67693" + }, + { + "VulnerabilityID": "CVE-2026-88647", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88647" + }, + { + "VulnerabilityID": "CVE-2026-88648", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88648" + }, + { + "VulnerabilityID": "CVE-2026-95184", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95184" + }, + { + "VulnerabilityID": "CVE-2026-95210", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95210" + }, + { + "VulnerabilityID": "CVE-2026-127039", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-127039" + }, + { + "VulnerabilityID": "CVE-2026-127040", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-127040" + }, + { + "VulnerabilityID": "CVE-2026-127231", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.9-2+deb12u7", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-127231" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107708", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107708" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-111423", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111423" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2018-5709", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-5709" + }, + { + "VulnerabilityID": "CVE-2024-26458", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-26458" + }, + { + "VulnerabilityID": "CVE-2024-26461", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-26461" + }, + { + "VulnerabilityID": "CVE-2026-11850", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11850" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107708", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107708" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-111423", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111423" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2018-5709", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-5709" + }, + { + "VulnerabilityID": "CVE-2024-26458", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-26458" + }, + { + "VulnerabilityID": "CVE-2024-26461", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-26461" + }, + { + "VulnerabilityID": "CVE-2026-11850", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11850" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107708", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107708" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-111423", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111423" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2018-5709", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-5709" + }, + { + "VulnerabilityID": "CVE-2024-26458", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-26458" + }, + { + "VulnerabilityID": "CVE-2024-26461", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-26461" + }, + { + "VulnerabilityID": "CVE-2026-11850", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11850" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107708", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107708" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-111423", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111423" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2018-5709", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-5709" + }, + { + "VulnerabilityID": "CVE-2024-26458", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-26458" + }, + { + "VulnerabilityID": "CVE-2024-26461", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-26461" + }, + { + "VulnerabilityID": "CVE-2026-11850", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.20.1-2+deb12u5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11850" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "libmount1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "libmount1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "libmount1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "libmount1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "libmount1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "libmount1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "libmount1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "libmount1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2025-69720", + "PkgName": "libncursesw6", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69720" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "libncursesw6", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2025-6141", + "PkgName": "libncursesw6", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6141" + }, + { + "VulnerabilityID": "CVE-2026-13757", + "PkgName": "libp11-kit0", + "InstalledVersion": "0.24.1-2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13757" + }, + { + "VulnerabilityID": "CVE-2026-18938", + "PkgName": "libp11-kit0", + "InstalledVersion": "0.24.1-2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18938" + }, + { + "VulnerabilityID": "CVE-2025-6020", + "PkgName": "libpam-modules", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": "1.5.2-6+deb12u3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6020" + }, + { + "VulnerabilityID": "CVE-2024-10041", + "PkgName": "libpam-modules", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-10041" + }, + { + "VulnerabilityID": "CVE-2024-22365", + "PkgName": "libpam-modules", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": "1.5.2-6+deb12u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-22365" + }, + { + "VulnerabilityID": "CVE-2026-54411", + "PkgName": "libpam-modules", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54411" + }, + { + "VulnerabilityID": "CVE-2025-6020", + "PkgName": "libpam-modules-bin", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": "1.5.2-6+deb12u3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6020" + }, + { + "VulnerabilityID": "CVE-2024-10041", + "PkgName": "libpam-modules-bin", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-10041" + }, + { + "VulnerabilityID": "CVE-2024-22365", + "PkgName": "libpam-modules-bin", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": "1.5.2-6+deb12u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-22365" + }, + { + "VulnerabilityID": "CVE-2026-54411", + "PkgName": "libpam-modules-bin", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54411" + }, + { + "VulnerabilityID": "CVE-2025-6020", + "PkgName": "libpam-runtime", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": "1.5.2-6+deb12u3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6020" + }, + { + "VulnerabilityID": "CVE-2024-10041", + "PkgName": "libpam-runtime", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-10041" + }, + { + "VulnerabilityID": "CVE-2024-22365", + "PkgName": "libpam-runtime", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": "1.5.2-6+deb12u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-22365" + }, + { + "VulnerabilityID": "CVE-2026-54411", + "PkgName": "libpam-runtime", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54411" + }, + { + "VulnerabilityID": "CVE-2025-6020", + "PkgName": "libpam0g", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": "1.5.2-6+deb12u3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6020" + }, + { + "VulnerabilityID": "CVE-2024-10041", + "PkgName": "libpam0g", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-10041" + }, + { + "VulnerabilityID": "CVE-2024-22365", + "PkgName": "libpam0g", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": "1.5.2-6+deb12u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-22365" + }, + { + "VulnerabilityID": "CVE-2026-54411", + "PkgName": "libpam0g", + "InstalledVersion": "1.5.2-6+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54411" + }, + { + "VulnerabilityID": "TEMP-0000000-402D17", + "PkgName": "libseccomp2", + "InstalledVersion": "2.5.4-1+deb12u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-402D17" + }, + { + "VulnerabilityID": "TEMP-0000000-414660", + "PkgName": "libseccomp2", + "InstalledVersion": "2.5.4-1+deb12u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-414660" + }, + { + "VulnerabilityID": "TEMP-0000000-43231F", + "PkgName": "libseccomp2", + "InstalledVersion": "2.5.4-1+deb12u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-43231F" + }, + { + "VulnerabilityID": "TEMP-0000000-AE2C66", + "PkgName": "libseccomp2", + "InstalledVersion": "2.5.4-1+deb12u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-AE2C66" + }, + { + "VulnerabilityID": "TEMP-0000000-ED49F3", + "PkgName": "libseccomp2", + "InstalledVersion": "2.5.4-1+deb12u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-ED49F3" + }, + { + "VulnerabilityID": "TEMP-0000000-F88C7E", + "PkgName": "libseccomp2", + "InstalledVersion": "2.5.4-1+deb12u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-F88C7E" + }, + { + "VulnerabilityID": "TEMP-0000000-FCA4C0", + "PkgName": "libseccomp2", + "InstalledVersion": "2.5.4-1+deb12u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-FCA4C0" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2025-7458", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "CRITICAL", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-7458" + }, + { + "VulnerabilityID": "CVE-2026-11822", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11822" + }, + { + "VulnerabilityID": "CVE-2026-11824", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11824" + }, + { + "VulnerabilityID": "CVE-2026-119373", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119373" + }, + { + "VulnerabilityID": "CVE-2026-119374", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119374" + }, + { + "VulnerabilityID": "CVE-2026-119379", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119379" + }, + { + "VulnerabilityID": "CVE-2025-7709", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-7709" + }, + { + "VulnerabilityID": "CVE-2026-119371", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119371" + }, + { + "VulnerabilityID": "CVE-2026-119372", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119372" + }, + { + "VulnerabilityID": "CVE-2026-119375", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119375" + }, + { + "VulnerabilityID": "CVE-2026-119376", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119376" + }, + { + "VulnerabilityID": "CVE-2026-119378", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119378" + }, + { + "VulnerabilityID": "CVE-2026-119591", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119591" + }, + { + "VulnerabilityID": "CVE-2026-50812", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-50812" + }, + { + "VulnerabilityID": "CVE-2026-50813", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-50813" + }, + { + "VulnerabilityID": "CVE-2021-45346", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2021-45346" + }, + { + "VulnerabilityID": "CVE-2025-29088", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-29088" + }, + { + "VulnerabilityID": "CVE-2025-70873", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-70873" + }, + { + "VulnerabilityID": "CVE-2026-119377", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.40.1-2+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119377" + }, + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "libssl3", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-84786", + "PkgName": "libssl3", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84786" + }, + { + "VulnerabilityID": "CVE-2026-95690", + "PkgName": "libssl3", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95690" + }, + { + "VulnerabilityID": "CVE-2025-27587", + "PkgName": "libssl3", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-27587" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "libssl3", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-121481", + "PkgName": "libssl3", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121481" + }, + { + "VulnerabilityID": "CVE-2026-102010", + "PkgName": "libstdc++6", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102010" + }, + { + "VulnerabilityID": "CVE-2026-114690", + "PkgName": "libstdc++6", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114690" + }, + { + "VulnerabilityID": "CVE-2026-114691", + "PkgName": "libstdc++6", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114691" + }, + { + "VulnerabilityID": "CVE-2026-125709", + "PkgName": "libstdc++6", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-125709" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "libstdc++6", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "libstdc++6", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-115456", + "PkgName": "libstdc++6", + "InstalledVersion": "12.2.0-14+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115456" + }, + { + "VulnerabilityID": "CVE-2026-16742", + "PkgName": "libsystemd0", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-16742" + }, + { + "VulnerabilityID": "CVE-2026-15059", + "PkgName": "libsystemd0", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-15059" + }, + { + "VulnerabilityID": "CVE-2013-4392", + "PkgName": "libsystemd0", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2013-4392" + }, + { + "VulnerabilityID": "CVE-2023-31437", + "PkgName": "libsystemd0", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31437" + }, + { + "VulnerabilityID": "CVE-2023-31438", + "PkgName": "libsystemd0", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31438" + }, + { + "VulnerabilityID": "CVE-2023-31439", + "PkgName": "libsystemd0", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31439" + }, + { + "VulnerabilityID": "CVE-2025-13151", + "PkgName": "libtasn1-6", + "InstalledVersion": "4.19.0-2+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-13151" + }, + { + "VulnerabilityID": "CVE-2025-69720", + "PkgName": "libtinfo6", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69720" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "libtinfo6", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2025-6141", + "PkgName": "libtinfo6", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6141" + }, + { + "VulnerabilityID": "CVE-2026-104357", + "PkgName": "libtirpc-common", + "InstalledVersion": "1.3.3+ds-1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-104357" + }, + { + "VulnerabilityID": "CVE-2026-85231", + "PkgName": "libtirpc-common", + "InstalledVersion": "1.3.3+ds-1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85231" + }, + { + "VulnerabilityID": "CVE-2026-85977", + "PkgName": "libtirpc-common", + "InstalledVersion": "1.3.3+ds-1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85977" + }, + { + "VulnerabilityID": "CVE-2026-104357", + "PkgName": "libtirpc3", + "InstalledVersion": "1.3.3+ds-1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-104357" + }, + { + "VulnerabilityID": "CVE-2026-85231", + "PkgName": "libtirpc3", + "InstalledVersion": "1.3.3+ds-1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85231" + }, + { + "VulnerabilityID": "CVE-2026-85977", + "PkgName": "libtirpc3", + "InstalledVersion": "1.3.3+ds-1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85977" + }, + { + "VulnerabilityID": "CVE-2026-16742", + "PkgName": "libudev1", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-16742" + }, + { + "VulnerabilityID": "CVE-2026-15059", + "PkgName": "libudev1", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-15059" + }, + { + "VulnerabilityID": "CVE-2013-4392", + "PkgName": "libudev1", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2013-4392" + }, + { + "VulnerabilityID": "CVE-2023-31437", + "PkgName": "libudev1", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31437" + }, + { + "VulnerabilityID": "CVE-2023-31438", + "PkgName": "libudev1", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31438" + }, + { + "VulnerabilityID": "CVE-2023-31439", + "PkgName": "libudev1", + "InstalledVersion": "252.39-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31439" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "libuuid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "libuuid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "libuuid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "libuuid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "libuuid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "libuuid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "libuuid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "libuuid1", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2026-124851", + "PkgName": "libzstd1", + "InstalledVersion": "1.5.4+dfsg2-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124851" + }, + { + "VulnerabilityID": "CVE-2007-5686", + "PkgName": "login", + "InstalledVersion": "1:4.13+dfsg1-1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2007-5686" + }, + { + "VulnerabilityID": "CVE-2024-56433", + "PkgName": "login", + "InstalledVersion": "1:4.13+dfsg1-1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-56433" + }, + { + "VulnerabilityID": "TEMP-0628843-DBAD28", + "PkgName": "login", + "InstalledVersion": "1:4.13+dfsg1-1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0628843-DBAD28" + }, + { + "VulnerabilityID": "CVE-2026-135901", + "PkgName": "login", + "InstalledVersion": "1:4.13+dfsg1-1+deb12u2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-135901" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "mount", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "mount", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "mount", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "mount", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "mount", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "mount", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "mount", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "mount", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2025-69720", + "PkgName": "ncurses-base", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69720" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "ncurses-base", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2025-6141", + "PkgName": "ncurses-base", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6141" + }, + { + "VulnerabilityID": "CVE-2025-69720", + "PkgName": "ncurses-bin", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69720" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "ncurses-bin", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2025-6141", + "PkgName": "ncurses-bin", + "InstalledVersion": "6.4-4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6141" + }, + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "openssl", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-84786", + "PkgName": "openssl", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84786" + }, + { + "VulnerabilityID": "CVE-2026-95690", + "PkgName": "openssl", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95690" + }, + { + "VulnerabilityID": "CVE-2025-27587", + "PkgName": "openssl", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-27587" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "openssl", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-121481", + "PkgName": "openssl", + "InstalledVersion": "3.0.22-1~deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121481" + }, + { + "VulnerabilityID": "CVE-2007-5686", + "PkgName": "passwd", + "InstalledVersion": "1:4.13+dfsg1-1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2007-5686" + }, + { + "VulnerabilityID": "CVE-2024-56433", + "PkgName": "passwd", + "InstalledVersion": "1:4.13+dfsg1-1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-56433" + }, + { + "VulnerabilityID": "TEMP-0628843-DBAD28", + "PkgName": "passwd", + "InstalledVersion": "1:4.13+dfsg1-1+deb12u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0628843-DBAD28" + }, + { + "VulnerabilityID": "CVE-2026-135901", + "PkgName": "passwd", + "InstalledVersion": "1:4.13+dfsg1-1+deb12u2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-135901" + }, + { + "VulnerabilityID": "CVE-2026-9538", + "PkgName": "perl-base", + "InstalledVersion": "5.36.0-7+deb12u4", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9538" + }, + { + "VulnerabilityID": "CVE-2026-15534", + "PkgName": "perl-base", + "InstalledVersion": "5.36.0-7+deb12u4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-15534" + }, + { + "VulnerabilityID": "CVE-2026-82560", + "PkgName": "perl-base", + "InstalledVersion": "5.36.0-7+deb12u4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-82560" + }, + { + "VulnerabilityID": "CVE-2011-4116", + "PkgName": "perl-base", + "InstalledVersion": "5.36.0-7+deb12u4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2011-4116" + }, + { + "VulnerabilityID": "CVE-2023-31486", + "PkgName": "perl-base", + "InstalledVersion": "5.36.0-7+deb12u4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31486" + }, + { + "VulnerabilityID": "CVE-2026-40558", + "PkgName": "perl-base", + "InstalledVersion": "5.36.0-7+deb12u4", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40558" + }, + { + "VulnerabilityID": "TEMP-0517018-A83CE6", + "PkgName": "sysvinit-utils", + "InstalledVersion": "3.06-4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0517018-A83CE6" + }, + { + "VulnerabilityID": "CVE-2026-18477", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1.2+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18477" + }, + { + "VulnerabilityID": "CVE-2026-18508", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1.2+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18508" + }, + { + "VulnerabilityID": "CVE-2026-5704", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1.2+deb12u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5704" + }, + { + "VulnerabilityID": "CVE-2005-2541", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1.2+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2005-2541" + }, + { + "VulnerabilityID": "TEMP-0290435-0B57B5", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1.2+deb12u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0290435-0B57B5" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "util-linux", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "util-linux", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "util-linux", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "util-linux", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "util-linux", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "util-linux", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "util-linux", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "util-linux", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "util-linux-extra", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "util-linux-extra", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "util-linux-extra", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "util-linux-extra", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "util-linux-extra", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "util-linux-extra", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "util-linux-extra", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "util-linux-extra", + "InstalledVersion": "2.38.1-5+deb12u3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2023-45853", + "PkgName": "zlib1g", + "InstalledVersion": "1:1.2.13.dfsg-1", + "FixedVersion": null, + "Severity": "CRITICAL", + "Status": "will_not_fix", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-45853" + }, + { + "VulnerabilityID": "CVE-2026-85091", + "PkgName": "zlib1g", + "InstalledVersion": "1:1.2.13.dfsg-1", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85091" + }, + { + "VulnerabilityID": "CVE-2026-27171", + "PkgName": "zlib1g", + "InstalledVersion": "1:1.2.13.dfsg-1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27171" + } + ] + }, + "image-nginx-scan": { + "command": [ + "docker", + "run", + "--rm", + "--security-opt", + "no-new-privileges:true", + "--cap-drop", + "ALL", + "-v", + "messenger-lab7-trivy-cache:/root/.cache/trivy", + "-v", + "D:\\\u041b\u0430\u0431\u044b\\mtusi2026lab7\\build\\scans:/reports", + "aquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c", + "image", + "--timeout", + "15m", + "--scanners", + "vuln", + "--no-progress", + "--skip-version-check", + "--format", + "json", + "--output", + "/reports/image-nginx-scan.json", + "--image-src", + "remote", + "nginx:1.30.8-alpine@sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3" + ], + "exit_code": 0, + "artifact": "nginx:1.30.8-alpine@sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "scanner": [ + "nginx@sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3" + ], + "raw_sha256": "1492f21e5bb19ebdc3088e4e6a2e0e35f9cad31962a5c5b834aae7706426f504", + "findings": 16, + "severity": { + "MEDIUM": 7, + "HIGH": 6, + "LOW": 3 + }, + "resolved_package_records": 71, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2026-124317", + "PkgName": "libexpat", + "InstalledVersion": "2.10.0-r0", + "FixedVersion": "2.11.0-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124317" + }, + { + "VulnerabilityID": "CVE-2026-128241", + "PkgName": "libexpat", + "InstalledVersion": "2.10.0-r0", + "FixedVersion": "2.11.0-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128241" + }, + { + "VulnerabilityID": "CVE-2026-134703", + "PkgName": "libexpat", + "InstalledVersion": "2.10.0-r0", + "FixedVersion": "2.11.0-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-134703" + }, + { + "VulnerabilityID": "CVE-2026-11979", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r5", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11979" + }, + { + "VulnerabilityID": "CVE-2026-86138", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86138" + }, + { + "VulnerabilityID": "CVE-2026-86139", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86139" + }, + { + "VulnerabilityID": "CVE-2026-86140", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86140" + }, + { + "VulnerabilityID": "CVE-2026-86142", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86142" + }, + { + "VulnerabilityID": "CVE-2026-86143", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86143" + }, + { + "VulnerabilityID": "CVE-2026-0990", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-0990" + }, + { + "VulnerabilityID": "CVE-2026-1757", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-1757" + }, + { + "VulnerabilityID": "CVE-2026-86137", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86137" + }, + { + "VulnerabilityID": "CVE-2026-0989", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r5", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-0989" + }, + { + "VulnerabilityID": "CVE-2026-0992", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-0992" + }, + { + "VulnerabilityID": "CVE-2026-86141", + "PkgName": "libxml2", + "InstalledVersion": "2.13.9-r3", + "FixedVersion": "2.13.9-r4", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86141" + }, + { + "VulnerabilityID": "CVE-2026-4738", + "PkgName": "zlib", + "InstalledVersion": "1.3.2-r1", + "FixedVersion": "1.4-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4738" + } + ] + }, + "image-bao-scan": { + "command": [ + "docker", + "run", + "--rm", + "--security-opt", + "no-new-privileges:true", + "--cap-drop", + "ALL", + "-v", + "messenger-lab7-trivy-cache:/root/.cache/trivy", + "-v", + "D:\\\u041b\u0430\u0431\u044b\\mtusi2026lab7\\build\\scans:/reports", + "aquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c", + "image", + "--timeout", + "15m", + "--scanners", + "vuln", + "--no-progress", + "--skip-version-check", + "--format", + "json", + "--output", + "/reports/image-bao-scan.json", + "--image-src", + "remote", + "openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9" + ], + "exit_code": 0, + "artifact": "openbao/openbao:2.7.3@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9", + "scanner": [ + "openbao/openbao@sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9" + ], + "raw_sha256": "45ac380125d3f4f61986271a766e53acf6fe35c03a8535f18a93d0b206173c4a", + "findings": 19, + "severity": { + "MEDIUM": 13, + "LOW": 4, + "HIGH": 2 + }, + "resolved_package_records": 320, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-95691", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95691" + }, + { + "VulnerabilityID": "CVE-2026-95692", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95692" + }, + { + "VulnerabilityID": "CVE-2026-88822", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88822" + }, + { + "VulnerabilityID": "CVE-2026-88823", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88823" + }, + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "libssl3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-95691", + "PkgName": "libssl3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95691" + }, + { + "VulnerabilityID": "CVE-2026-95692", + "PkgName": "libssl3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95692" + }, + { + "VulnerabilityID": "CVE-2026-88822", + "PkgName": "libssl3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88822" + }, + { + "VulnerabilityID": "CVE-2026-88823", + "PkgName": "libssl3", + "InstalledVersion": "3.5.9-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88823" + }, + { + "VulnerabilityID": "CVE-2026-4738", + "PkgName": "zlib", + "InstalledVersion": "1.3.2-r1", + "FixedVersion": "1.4-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4738" + }, + { + "VulnerabilityID": "CVE-2026-116587", + "PkgName": "github.com/go-jose/go-jose/v3", + "InstalledVersion": "v3.0.5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587" + }, + { + "VulnerabilityID": "CVE-2026-116585", + "PkgName": "github.com/go-jose/go-jose/v3", + "InstalledVersion": "v3.0.5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116585" + }, + { + "VulnerabilityID": "CVE-2026-116586", + "PkgName": "github.com/go-jose/go-jose/v3", + "InstalledVersion": "v3.0.5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116586" + }, + { + "VulnerabilityID": "CVE-2026-116587", + "PkgName": "github.com/go-jose/go-jose/v4", + "InstalledVersion": "v4.1.4", + "FixedVersion": "4.1.6", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587" + }, + { + "VulnerabilityID": "CVE-2026-116585", + "PkgName": "github.com/go-jose/go-jose/v4", + "InstalledVersion": "v4.1.4", + "FixedVersion": "4.1.5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116585" + }, + { + "VulnerabilityID": "CVE-2026-116586", + "PkgName": "github.com/go-jose/go-jose/v4", + "InstalledVersion": "v4.1.4", + "FixedVersion": "4.1.5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116586" + }, + { + "VulnerabilityID": "CVE-2026-128085", + "PkgName": "go.opentelemetry.io/otel/sdk", + "InstalledVersion": "v1.45.0", + "FixedVersion": "1.47.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128085" + }, + { + "VulnerabilityID": "CVE-2026-128085", + "PkgName": "go.opentelemetry.io/otel/trace", + "InstalledVersion": "v1.45.0", + "FixedVersion": "1.47.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128085" + } + ] + }, + "dependency-scan-before": { + "command": "Initial recorded Trivy 0.69.3 baseline; see SCAN_TRIAGE.md", + "exit_code": 0, + "artifact": "/repo", + "scanner": [], + "raw_sha256": "ef3206eb902b1726e785a01e694e334c85366beb0cffd4d9983b204975f1de3f", + "findings": 62, + "severity": { + "CRITICAL": 5, + "HIGH": 37, + "MEDIUM": 20 + }, + "resolved_package_records": 6, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2026-112393", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112393" + }, + { + "VulnerabilityID": "CVE-2026-112398", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112398" + }, + { + "VulnerabilityID": "CVE-2026-112403", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112403" + }, + { + "VulnerabilityID": "CVE-2026-112900", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112900" + }, + { + "VulnerabilityID": "CVE-2026-96639", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96639" + }, + { + "VulnerabilityID": "CVE-2026-112390", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112390" + }, + { + "VulnerabilityID": "CVE-2026-112392", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112392" + }, + { + "VulnerabilityID": "CVE-2026-112397", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112397" + }, + { + "VulnerabilityID": "CVE-2026-112399", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112399" + }, + { + "VulnerabilityID": "CVE-2026-112400", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112400" + }, + { + "VulnerabilityID": "CVE-2026-112402", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112402" + }, + { + "VulnerabilityID": "CVE-2026-112404", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112404" + }, + { + "VulnerabilityID": "CVE-2026-112405", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112405" + }, + { + "VulnerabilityID": "CVE-2026-112406", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112406" + }, + { + "VulnerabilityID": "CVE-2026-112892", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112892" + }, + { + "VulnerabilityID": "CVE-2026-112893", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112893" + }, + { + "VulnerabilityID": "CVE-2026-112894", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112894" + }, + { + "VulnerabilityID": "CVE-2026-112895", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112895" + }, + { + "VulnerabilityID": "CVE-2026-112896", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112896" + }, + { + "VulnerabilityID": "CVE-2026-112897", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112897" + }, + { + "VulnerabilityID": "CVE-2026-112902", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112902" + }, + { + "VulnerabilityID": "CVE-2026-128067", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128067" + }, + { + "VulnerabilityID": "CVE-2026-25990", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.1.1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25990" + }, + { + "VulnerabilityID": "CVE-2026-40192", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.2.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40192" + }, + { + "VulnerabilityID": "CVE-2026-42311", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.2.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42311" + }, + { + "VulnerabilityID": "CVE-2026-54058", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54058" + }, + { + "VulnerabilityID": "CVE-2026-54059", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54059" + }, + { + "VulnerabilityID": "CVE-2026-54060", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54060" + }, + { + "VulnerabilityID": "CVE-2026-55379", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-55379" + }, + { + "VulnerabilityID": "CVE-2026-55380", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-55380" + }, + { + "VulnerabilityID": "CVE-2026-59197", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-59197" + }, + { + "VulnerabilityID": "CVE-2026-59199", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-59199" + }, + { + "VulnerabilityID": "CVE-2026-59200", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-59200" + }, + { + "VulnerabilityID": "CVE-2026-59204", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-59204" + }, + { + "VulnerabilityID": "CVE-2026-59205", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-59205" + }, + { + "VulnerabilityID": "CVE-2026-96637", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96637" + }, + { + "VulnerabilityID": "CVE-2026-96640", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96640" + }, + { + "VulnerabilityID": "CVE-2026-96642", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96642" + }, + { + "VulnerabilityID": "CVE-2026-96643", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96643" + }, + { + "VulnerabilityID": "CVE-2026-96644", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96644" + }, + { + "VulnerabilityID": "CVE-2026-96778", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96778" + }, + { + "VulnerabilityID": "GHSA-78g4-xqwv-q3g8", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://github.com/advisories/GHSA-78g4-xqwv-q3g8" + }, + { + "VulnerabilityID": "CVE-2026-112391", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112391" + }, + { + "VulnerabilityID": "CVE-2026-112394", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112394" + }, + { + "VulnerabilityID": "CVE-2026-112395", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112395" + }, + { + "VulnerabilityID": "CVE-2026-112396", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112396" + }, + { + "VulnerabilityID": "CVE-2026-112401", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112401" + }, + { + "VulnerabilityID": "CVE-2026-112891", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112891" + }, + { + "VulnerabilityID": "CVE-2026-112898", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112898" + }, + { + "VulnerabilityID": "CVE-2026-112899", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112899" + }, + { + "VulnerabilityID": "CVE-2026-112901", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112901" + }, + { + "VulnerabilityID": "CVE-2026-114501", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114501" + }, + { + "VulnerabilityID": "CVE-2026-128066", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128066" + }, + { + "VulnerabilityID": "CVE-2026-42308", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.2.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42308" + }, + { + "VulnerabilityID": "CVE-2026-42309", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.2.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42309" + }, + { + "VulnerabilityID": "CVE-2026-42310", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.2.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42310" + }, + { + "VulnerabilityID": "CVE-2026-55798", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-55798" + }, + { + "VulnerabilityID": "CVE-2026-59198", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-59198" + }, + { + "VulnerabilityID": "CVE-2026-59203", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "12.3.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-59203" + }, + { + "VulnerabilityID": "CVE-2026-96636", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96636" + }, + { + "VulnerabilityID": "CVE-2026-96638", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96638" + }, + { + "VulnerabilityID": "CVE-2026-96641", + "PkgName": "Pillow", + "InstalledVersion": "12.0.0", + "FixedVersion": "13.0.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-96641" + } + ] + }, + "image-bao-before-scan": { + "command": "Initial recorded Trivy 0.69.3 baseline; see SCAN_TRIAGE.md", + "exit_code": 0, + "artifact": "openbao/openbao:2.4.4@sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd", + "scanner": [ + "openbao/openbao@sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd" + ], + "raw_sha256": "20cdc9e4587eabeecf9e95ace707653d9878805aac6895aba114ed558adef3b2", + "findings": 263, + "severity": { + "MEDIUM": 89, + "LOW": 70, + "HIGH": 93, + "CRITICAL": 9, + "UNKNOWN": 2 + }, + "resolved_package_records": 337, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2024-58251", + "PkgName": "busybox", + "InstalledVersion": "1.37.0-r19", + "FixedVersion": "1.37.0-r20", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-58251" + }, + { + "VulnerabilityID": "CVE-2025-46394", + "PkgName": "busybox", + "InstalledVersion": "1.37.0-r19", + "FixedVersion": "1.37.0-r20", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-46394" + }, + { + "VulnerabilityID": "CVE-2024-58251", + "PkgName": "busybox-binsh", + "InstalledVersion": "1.37.0-r19", + "FixedVersion": "1.37.0-r20", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-58251" + }, + { + "VulnerabilityID": "CVE-2025-46394", + "PkgName": "busybox-binsh", + "InstalledVersion": "1.37.0-r19", + "FixedVersion": "1.37.0-r20", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-46394" + }, + { + "VulnerabilityID": "CVE-2026-4878", + "PkgName": "libcap", + "InstalledVersion": "2.76-r0", + "FixedVersion": "2.78-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4878" + }, + { + "VulnerabilityID": "CVE-2026-4878", + "PkgName": "libcap-getcap", + "InstalledVersion": "2.76-r0", + "FixedVersion": "2.78-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4878" + }, + { + "VulnerabilityID": "CVE-2026-4878", + "PkgName": "libcap-setcap", + "InstalledVersion": "2.76-r0", + "FixedVersion": "2.78-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4878" + }, + { + "VulnerabilityID": "CVE-2026-4878", + "PkgName": "libcap-utils", + "InstalledVersion": "2.76-r0", + "FixedVersion": "2.78-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4878" + }, + { + "VulnerabilityID": "CVE-2026-4878", + "PkgName": "libcap2", + "InstalledVersion": "2.76-r0", + "FixedVersion": "2.78-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4878" + }, + { + "VulnerabilityID": "CVE-2026-31789", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31789" + }, + { + "VulnerabilityID": "CVE-2025-15467", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15467" + }, + { + "VulnerabilityID": "CVE-2025-69421", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69421" + }, + { + "VulnerabilityID": "CVE-2026-124709", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124709" + }, + { + "VulnerabilityID": "CVE-2026-14456", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14456" + }, + { + "VulnerabilityID": "CVE-2026-28387", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28387" + }, + { + "VulnerabilityID": "CVE-2026-28388", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28388" + }, + { + "VulnerabilityID": "CVE-2026-28389", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28389" + }, + { + "VulnerabilityID": "CVE-2026-28390", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28390" + }, + { + "VulnerabilityID": "CVE-2026-45447", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45447" + }, + { + "VulnerabilityID": "CVE-2025-11187", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-11187" + }, + { + "VulnerabilityID": "CVE-2025-69419", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69419" + }, + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-18798", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18798" + }, + { + "VulnerabilityID": "CVE-2026-2673", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-2673" + }, + { + "VulnerabilityID": "CVE-2026-31790", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31790" + }, + { + "VulnerabilityID": "CVE-2026-34182", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34182" + }, + { + "VulnerabilityID": "CVE-2026-34183", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34183" + }, + { + "VulnerabilityID": "CVE-2026-42764", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42764" + }, + { + "VulnerabilityID": "CVE-2026-45445", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45445" + }, + { + "VulnerabilityID": "CVE-2026-63072", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63072" + }, + { + "VulnerabilityID": "CVE-2026-63076", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63076" + }, + { + "VulnerabilityID": "CVE-2026-95691", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95691" + }, + { + "VulnerabilityID": "CVE-2026-95692", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95692" + }, + { + "VulnerabilityID": "CVE-2025-15468", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15468" + }, + { + "VulnerabilityID": "CVE-2025-15469", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15469" + }, + { + "VulnerabilityID": "CVE-2025-66199", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-66199" + }, + { + "VulnerabilityID": "CVE-2025-68160", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-68160" + }, + { + "VulnerabilityID": "CVE-2025-69418", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69418" + }, + { + "VulnerabilityID": "CVE-2025-69420", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69420" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-14457", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14457" + }, + { + "VulnerabilityID": "CVE-2026-22795", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-22795" + }, + { + "VulnerabilityID": "CVE-2026-22796", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-22796" + }, + { + "VulnerabilityID": "CVE-2026-34180", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34180" + }, + { + "VulnerabilityID": "CVE-2026-34181", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34181" + }, + { + "VulnerabilityID": "CVE-2026-42766", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42766" + }, + { + "VulnerabilityID": "CVE-2026-42767", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42767" + }, + { + "VulnerabilityID": "CVE-2026-42768", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42768" + }, + { + "VulnerabilityID": "CVE-2026-42769", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42769" + }, + { + "VulnerabilityID": "CVE-2026-42770", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42770" + }, + { + "VulnerabilityID": "CVE-2026-45446", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45446" + }, + { + "VulnerabilityID": "CVE-2026-54874", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54874" + }, + { + "VulnerabilityID": "CVE-2026-63073", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63073" + }, + { + "VulnerabilityID": "CVE-2026-63074", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63074" + }, + { + "VulnerabilityID": "CVE-2026-63075", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63075" + }, + { + "VulnerabilityID": "CVE-2026-7383", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-7383" + }, + { + "VulnerabilityID": "CVE-2026-75803", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75803" + }, + { + "VulnerabilityID": "CVE-2026-88822", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88822" + }, + { + "VulnerabilityID": "CVE-2026-88823", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88823" + }, + { + "VulnerabilityID": "CVE-2026-9076", + "PkgName": "libcrypto3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9076" + }, + { + "VulnerabilityID": "CVE-2026-31789", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31789" + }, + { + "VulnerabilityID": "CVE-2025-15467", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15467" + }, + { + "VulnerabilityID": "CVE-2025-69421", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69421" + }, + { + "VulnerabilityID": "CVE-2026-124709", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124709" + }, + { + "VulnerabilityID": "CVE-2026-14456", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14456" + }, + { + "VulnerabilityID": "CVE-2026-28387", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28387" + }, + { + "VulnerabilityID": "CVE-2026-28388", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28388" + }, + { + "VulnerabilityID": "CVE-2026-28389", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28389" + }, + { + "VulnerabilityID": "CVE-2026-28390", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28390" + }, + { + "VulnerabilityID": "CVE-2026-45447", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45447" + }, + { + "VulnerabilityID": "CVE-2025-11187", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-11187" + }, + { + "VulnerabilityID": "CVE-2025-69419", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69419" + }, + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-18798", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18798" + }, + { + "VulnerabilityID": "CVE-2026-2673", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-2673" + }, + { + "VulnerabilityID": "CVE-2026-31790", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.6-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31790" + }, + { + "VulnerabilityID": "CVE-2026-34182", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34182" + }, + { + "VulnerabilityID": "CVE-2026-34183", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34183" + }, + { + "VulnerabilityID": "CVE-2026-42764", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42764" + }, + { + "VulnerabilityID": "CVE-2026-45445", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45445" + }, + { + "VulnerabilityID": "CVE-2026-63072", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63072" + }, + { + "VulnerabilityID": "CVE-2026-63076", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63076" + }, + { + "VulnerabilityID": "CVE-2026-95691", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95691" + }, + { + "VulnerabilityID": "CVE-2026-95692", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95692" + }, + { + "VulnerabilityID": "CVE-2025-15468", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15468" + }, + { + "VulnerabilityID": "CVE-2025-15469", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15469" + }, + { + "VulnerabilityID": "CVE-2025-66199", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-66199" + }, + { + "VulnerabilityID": "CVE-2025-68160", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-68160" + }, + { + "VulnerabilityID": "CVE-2025-69418", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69418" + }, + { + "VulnerabilityID": "CVE-2025-69420", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69420" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-14457", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14457" + }, + { + "VulnerabilityID": "CVE-2026-22795", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-22795" + }, + { + "VulnerabilityID": "CVE-2026-22796", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.5-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-22796" + }, + { + "VulnerabilityID": "CVE-2026-34180", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34180" + }, + { + "VulnerabilityID": "CVE-2026-34181", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34181" + }, + { + "VulnerabilityID": "CVE-2026-42766", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42766" + }, + { + "VulnerabilityID": "CVE-2026-42767", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42767" + }, + { + "VulnerabilityID": "CVE-2026-42768", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42768" + }, + { + "VulnerabilityID": "CVE-2026-42769", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42769" + }, + { + "VulnerabilityID": "CVE-2026-42770", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42770" + }, + { + "VulnerabilityID": "CVE-2026-45446", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45446" + }, + { + "VulnerabilityID": "CVE-2026-54874", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54874" + }, + { + "VulnerabilityID": "CVE-2026-63073", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63073" + }, + { + "VulnerabilityID": "CVE-2026-63074", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63074" + }, + { + "VulnerabilityID": "CVE-2026-63075", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63075" + }, + { + "VulnerabilityID": "CVE-2026-7383", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-7383" + }, + { + "VulnerabilityID": "CVE-2026-75803", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.8-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75803" + }, + { + "VulnerabilityID": "CVE-2026-88822", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88822" + }, + { + "VulnerabilityID": "CVE-2026-88823", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.9-r1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88823" + }, + { + "VulnerabilityID": "CVE-2026-9076", + "PkgName": "libssl3", + "InstalledVersion": "3.5.4-r0", + "FixedVersion": "3.5.7-r0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9076" + }, + { + "VulnerabilityID": "CVE-2026-107891", + "PkgName": "musl", + "InstalledVersion": "1.2.5-r10", + "FixedVersion": "1.2.5-r13", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107891" + }, + { + "VulnerabilityID": "CVE-2026-40200", + "PkgName": "musl", + "InstalledVersion": "1.2.5-r10", + "FixedVersion": "1.2.5-r12", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40200" + }, + { + "VulnerabilityID": "CVE-2026-6042", + "PkgName": "musl", + "InstalledVersion": "1.2.5-r10", + "FixedVersion": "1.2.5-r11", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6042" + }, + { + "VulnerabilityID": "CVE-2026-107891", + "PkgName": "musl-utils", + "InstalledVersion": "1.2.5-r10", + "FixedVersion": "1.2.5-r13", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107891" + }, + { + "VulnerabilityID": "CVE-2026-40200", + "PkgName": "musl-utils", + "InstalledVersion": "1.2.5-r10", + "FixedVersion": "1.2.5-r12", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40200" + }, + { + "VulnerabilityID": "CVE-2026-6042", + "PkgName": "musl-utils", + "InstalledVersion": "1.2.5-r10", + "FixedVersion": "1.2.5-r11", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6042" + }, + { + "VulnerabilityID": "CVE-2024-58251", + "PkgName": "ssl_client", + "InstalledVersion": "1.37.0-r19", + "FixedVersion": "1.37.0-r20", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-58251" + }, + { + "VulnerabilityID": "CVE-2025-46394", + "PkgName": "ssl_client", + "InstalledVersion": "1.37.0-r19", + "FixedVersion": "1.37.0-r20", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-46394" + }, + { + "VulnerabilityID": "CVE-2026-22184", + "PkgName": "zlib", + "InstalledVersion": "1.3.1-r2", + "FixedVersion": "1.3.2-r0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-22184" + }, + { + "VulnerabilityID": "CVE-2026-85091", + "PkgName": "zlib", + "InstalledVersion": "1.3.1-r2", + "FixedVersion": "1.3.2-r1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85091" + }, + { + "VulnerabilityID": "CVE-2026-27171", + "PkgName": "zlib", + "InstalledVersion": "1.3.1-r2", + "FixedVersion": "1.3.2-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27171" + }, + { + "VulnerabilityID": "CVE-2026-4738", + "PkgName": "zlib", + "InstalledVersion": "1.3.1-r2", + "FixedVersion": "1.4-r0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4738" + }, + { + "VulnerabilityID": "CVE-2026-26958", + "PkgName": "filippo.io/edwards25519", + "InstalledVersion": "v1.1.0", + "FixedVersion": "1.1.1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-26958" + }, + { + "VulnerabilityID": "CVE-2026-32952", + "PkgName": "github.com/Azure/go-ntlmssp", + "InstalledVersion": "v0.0.0-20221128193559-754e69321358", + "FixedVersion": "0.1.1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32952" + }, + { + "VulnerabilityID": "CVE-2026-1229", + "PkgName": "github.com/cloudflare/circl", + "InstalledVersion": "v1.6.1", + "FixedVersion": "1.6.3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-1229" + }, + { + "VulnerabilityID": "CVE-2026-41567", + "PkgName": "github.com/docker/docker", + "InstalledVersion": "v28.3.3+incompatible", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-41567" + }, + { + "VulnerabilityID": "CVE-2026-42306", + "PkgName": "github.com/docker/docker", + "InstalledVersion": "v28.3.3+incompatible", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42306" + }, + { + "VulnerabilityID": "CVE-2026-33997", + "PkgName": "github.com/docker/docker", + "InstalledVersion": "v28.3.3+incompatible", + "FixedVersion": "29.3.1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33997" + }, + { + "VulnerabilityID": "CVE-2026-41568", + "PkgName": "github.com/docker/docker", + "InstalledVersion": "v28.3.3+incompatible", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-41568" + }, + { + "VulnerabilityID": "CVE-2026-116587", + "PkgName": "github.com/go-jose/go-jose/v3", + "InstalledVersion": "v3.0.4", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587" + }, + { + "VulnerabilityID": "CVE-2026-34986", + "PkgName": "github.com/go-jose/go-jose/v3", + "InstalledVersion": "v3.0.4", + "FixedVersion": "3.0.5", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34986" + }, + { + "VulnerabilityID": "CVE-2026-116585", + "PkgName": "github.com/go-jose/go-jose/v3", + "InstalledVersion": "v3.0.4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116585" + }, + { + "VulnerabilityID": "CVE-2026-116586", + "PkgName": "github.com/go-jose/go-jose/v3", + "InstalledVersion": "v3.0.4", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116586" + }, + { + "VulnerabilityID": "CVE-2026-116587", + "PkgName": "github.com/go-jose/go-jose/v4", + "InstalledVersion": "v4.1.3", + "FixedVersion": "4.1.6", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587" + }, + { + "VulnerabilityID": "CVE-2026-34986", + "PkgName": "github.com/go-jose/go-jose/v4", + "InstalledVersion": "v4.1.3", + "FixedVersion": "4.1.4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34986" + }, + { + "VulnerabilityID": "CVE-2026-116585", + "PkgName": "github.com/go-jose/go-jose/v4", + "InstalledVersion": "v4.1.3", + "FixedVersion": "4.1.5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116585" + }, + { + "VulnerabilityID": "CVE-2026-116586", + "PkgName": "github.com/go-jose/go-jose/v4", + "InstalledVersion": "v4.1.3", + "FixedVersion": "4.1.5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116586" + }, + { + "VulnerabilityID": "GHSA-gcjh-h69q-9w9g", + "PkgName": "github.com/google/cel-go", + "InstalledVersion": "v0.26.1", + "FixedVersion": "0.29.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://github.com/advisories/GHSA-gcjh-h69q-9w9g" + }, + { + "VulnerabilityID": "CVE-2026-33815", + "PkgName": "github.com/jackc/pgx/v5", + "InstalledVersion": "v5.7.6", + "FixedVersion": "5.9.0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33815" + }, + { + "VulnerabilityID": "CVE-2026-33816", + "PkgName": "github.com/jackc/pgx/v5", + "InstalledVersion": "v5.7.6", + "FixedVersion": "5.9.0", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33816" + }, + { + "VulnerabilityID": "CVE-2026-41889", + "PkgName": "github.com/jackc/pgx/v5", + "InstalledVersion": "v5.7.6", + "FixedVersion": "5.9.2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-41889" + }, + { + "VulnerabilityID": "CVE-2026-63209", + "PkgName": "github.com/klauspost/compress", + "InstalledVersion": "v1.18.0", + "FixedVersion": "1.18.7", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63209" + }, + { + "VulnerabilityID": "CVE-2026-17106", + "PkgName": "github.com/moby/go-archive", + "InstalledVersion": "v0.1.0", + "FixedVersion": "0.3.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-17106" + }, + { + "VulnerabilityID": "CVE-2026-61801", + "PkgName": "github.com/moby/sys/user", + "InstalledVersion": "v0.4.0", + "FixedVersion": "0.4.1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-61801" + }, + { + "VulnerabilityID": "CVE-2026-33757", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260325142553-e32103951925", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33757" + }, + { + "VulnerabilityID": "CVE-2026-33758", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260325133417-6e2b2dd84f0e", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33758" + }, + { + "VulnerabilityID": "CVE-2026-63132", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260713141742-763625a20721", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63132" + }, + { + "VulnerabilityID": "CVE-2024-8185", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "2.0.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-8185" + }, + { + "VulnerabilityID": "CVE-2024-9180", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "2.0.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-9180" + }, + { + "VulnerabilityID": "CVE-2025-59043", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "2.4.1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-59043" + }, + { + "VulnerabilityID": "CVE-2025-64761", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "2.4.4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-64761" + }, + { + "VulnerabilityID": "CVE-2026-45808", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "2.5.4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45808" + }, + { + "VulnerabilityID": "CVE-2026-71543", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260710001938-2d4ebafec5c5", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71543" + }, + { + "VulnerabilityID": "CVE-2026-39946", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260420155735-b596b0882620", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39946" + }, + { + "VulnerabilityID": "CVE-2026-46358", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "2.5.4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46358" + }, + { + "VulnerabilityID": "CVE-2026-46405", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "2.5.4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46405" + }, + { + "VulnerabilityID": "CVE-2026-55770", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260617104213-10b7825c714c", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-55770" + }, + { + "VulnerabilityID": "CVE-2026-55776", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260617104123-db57c62602b2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-55776" + }, + { + "VulnerabilityID": "CVE-2026-63131", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260713133043-f58d848c139e", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63131" + }, + { + "VulnerabilityID": "CVE-2026-39388", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260420160924-abe84e1af4c3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39388" + }, + { + "VulnerabilityID": "CVE-2026-39396", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260420180337-2b2a901aa9f7", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39396" + }, + { + "VulnerabilityID": "CVE-2026-40264", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260420162526-f58111d2ca54", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40264" + }, + { + "VulnerabilityID": "CVE-2026-42186", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260420173541-6d2e0506e2b4", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42186" + }, + { + "VulnerabilityID": "CVE-2026-55774", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260617103932-b20b999dd404", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-55774" + }, + { + "VulnerabilityID": "CVE-2026-55775", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260617103935-d3c1cc64b1ae", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-55775" + }, + { + "VulnerabilityID": "CVE-2026-77285", + "PkgName": "github.com/openbao/openbao", + "InstalledVersion": "v0.0.0-20251124193704-4bfd70723d4f", + "FixedVersion": "0.0.0-20260714163218-90272575e5f5", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77285" + }, + { + "VulnerabilityID": "CVE-2026-29181", + "PkgName": "go.opentelemetry.io/otel", + "InstalledVersion": "v1.38.0", + "FixedVersion": "1.41.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-29181" + }, + { + "VulnerabilityID": "CVE-2026-24051", + "PkgName": "go.opentelemetry.io/otel/sdk", + "InstalledVersion": "v1.38.0", + "FixedVersion": "1.40.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-24051" + }, + { + "VulnerabilityID": "CVE-2026-39883", + "PkgName": "go.opentelemetry.io/otel/sdk", + "InstalledVersion": "v1.38.0", + "FixedVersion": "1.43.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39883" + }, + { + "VulnerabilityID": "CVE-2026-128085", + "PkgName": "go.opentelemetry.io/otel/sdk", + "InstalledVersion": "v1.38.0", + "FixedVersion": "1.47.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128085" + }, + { + "VulnerabilityID": "CVE-2026-81870", + "PkgName": "go.opentelemetry.io/otel/sdk", + "InstalledVersion": "v1.38.0", + "FixedVersion": "1.45.0", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-81870" + }, + { + "VulnerabilityID": "CVE-2026-128085", + "PkgName": "go.opentelemetry.io/otel/trace", + "InstalledVersion": "v1.38.0", + "FixedVersion": "1.47.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128085" + }, + { + "VulnerabilityID": "CVE-2026-39828", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39828" + }, + { + "VulnerabilityID": "CVE-2026-39829", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39829" + }, + { + "VulnerabilityID": "CVE-2026-39830", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39830" + }, + { + "VulnerabilityID": "CVE-2026-39831", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39831" + }, + { + "VulnerabilityID": "CVE-2026-39832", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39832" + }, + { + "VulnerabilityID": "CVE-2026-39835", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39835" + }, + { + "VulnerabilityID": "CVE-2026-42508", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42508" + }, + { + "VulnerabilityID": "CVE-2026-46595", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46595" + }, + { + "VulnerabilityID": "CVE-2026-46597", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46597" + }, + { + "VulnerabilityID": "CVE-2026-56854", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.55.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56854" + }, + { + "VulnerabilityID": "CVE-2026-39827", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39827" + }, + { + "VulnerabilityID": "CVE-2026-39833", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39833" + }, + { + "VulnerabilityID": "CVE-2026-39834", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39834" + }, + { + "VulnerabilityID": "CVE-2026-46598", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.52.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46598" + }, + { + "VulnerabilityID": "CVE-2026-56855", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.56.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56855" + }, + { + "VulnerabilityID": "CVE-2026-78662", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.56.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78662" + }, + { + "VulnerabilityID": "GO-2026-5932", + "PkgName": "golang.org/x/crypto", + "InstalledVersion": "v0.45.0", + "FixedVersion": "0.58.1-0.20261009181718-2f1f834330b2", + "Severity": "UNKNOWN", + "Status": "fixed", + "PrimaryURL": null + }, + { + "VulnerabilityID": "CVE-2026-25681", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.55.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25681" + }, + { + "VulnerabilityID": "CVE-2026-27136", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.55.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27136" + }, + { + "VulnerabilityID": "CVE-2026-33814", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.53.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33814" + }, + { + "VulnerabilityID": "CVE-2026-39821", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.57.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39821" + }, + { + "VulnerabilityID": "CVE-2026-46600", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.56.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46600" + }, + { + "VulnerabilityID": "CVE-2026-78661", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.62.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661" + }, + { + "VulnerabilityID": "CVE-2026-78669", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.60.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669" + }, + { + "VulnerabilityID": "CVE-2026-25680", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.55.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25680" + }, + { + "VulnerabilityID": "CVE-2026-42502", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.55.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42502" + }, + { + "VulnerabilityID": "CVE-2026-42506", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.55.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42506" + }, + { + "VulnerabilityID": "CVE-2026-78659", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.60.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78659" + }, + { + "VulnerabilityID": "CVE-2026-78660", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.60.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78660" + }, + { + "VulnerabilityID": "CVE-2026-78663", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.60.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78663" + }, + { + "VulnerabilityID": "CVE-2026-97032", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.60.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97032" + }, + { + "VulnerabilityID": "CVE-2026-97045", + "PkgName": "golang.org/x/net", + "InstalledVersion": "v0.47.0", + "FixedVersion": "0.62.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97045" + }, + { + "VulnerabilityID": "CVE-2026-39824", + "PkgName": "golang.org/x/sys", + "InstalledVersion": "v0.38.0", + "FixedVersion": "0.44.0", + "Severity": "UNKNOWN", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39824" + }, + { + "VulnerabilityID": "CVE-2026-56851", + "PkgName": "golang.org/x/text", + "InstalledVersion": "v0.31.0", + "FixedVersion": "0.41.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56851" + }, + { + "VulnerabilityID": "CVE-2026-56852", + "PkgName": "golang.org/x/text", + "InstalledVersion": "v0.31.0", + "FixedVersion": "0.39.0", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56852" + }, + { + "VulnerabilityID": "CVE-2026-33186", + "PkgName": "google.golang.org/grpc", + "InstalledVersion": "v1.77.0", + "FixedVersion": "1.79.3", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33186" + }, + { + "VulnerabilityID": "CVE-2026-84304", + "PkgName": "google.golang.org/grpc", + "InstalledVersion": "v1.77.0", + "FixedVersion": "1.83.1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84304" + }, + { + "VulnerabilityID": "CVE-2026-84445", + "PkgName": "google.golang.org/grpc", + "InstalledVersion": "v1.77.0", + "FixedVersion": "1.82.2, 1.83.2, 1.84.0-dev.0.20260825144003-d5a41119e0e3, 1.85.0-dev.0.20260825072537-93e31b48545e", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84445" + }, + { + "VulnerabilityID": "GHSA-hrxh-6v49-42gf", + "PkgName": "google.golang.org/grpc", + "InstalledVersion": "v1.77.0", + "FixedVersion": "1.82.1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://github.com/advisories/GHSA-hrxh-6v49-42gf" + }, + { + "VulnerabilityID": "CVE-2026-84303", + "PkgName": "google.golang.org/grpc", + "InstalledVersion": "v1.77.0", + "FixedVersion": "1.83.1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84303" + }, + { + "VulnerabilityID": "CVE-2025-68121", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.24.13, 1.25.7, 1.26.0-rc.3", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-68121" + }, + { + "VulnerabilityID": "CVE-2025-61726", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.24.12, 1.25.6", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61726" + }, + { + "VulnerabilityID": "CVE-2025-61729", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.24.11, 1.25.5", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61729" + }, + { + "VulnerabilityID": "CVE-2026-111943", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.10, 1.27.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943" + }, + { + "VulnerabilityID": "CVE-2026-25679", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.8, 1.26.1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25679" + }, + { + "VulnerabilityID": "CVE-2026-27145", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.11, 1.26.4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27145" + }, + { + "VulnerabilityID": "CVE-2026-32280", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.9, 1.26.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32280" + }, + { + "VulnerabilityID": "CVE-2026-32281", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.9, 1.26.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32281" + }, + { + "VulnerabilityID": "CVE-2026-32283", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.9, 1.26.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32283" + }, + { + "VulnerabilityID": "CVE-2026-33811", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.10, 1.26.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33811" + }, + { + "VulnerabilityID": "CVE-2026-33814", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.10, 1.26.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33814" + }, + { + "VulnerabilityID": "CVE-2026-33818", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33818" + }, + { + "VulnerabilityID": "CVE-2026-39820", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.10, 1.26.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39820" + }, + { + "VulnerabilityID": "CVE-2026-39821", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39821" + }, + { + "VulnerabilityID": "CVE-2026-39822", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.12, 1.26.5, 1.27.0-rc.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39822" + }, + { + "VulnerabilityID": "CVE-2026-39836", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.10, 1.26.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39836" + }, + { + "VulnerabilityID": "CVE-2026-42499", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.10, 1.26.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42499" + }, + { + "VulnerabilityID": "CVE-2026-42504", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.11, 1.26.4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42504" + }, + { + "VulnerabilityID": "CVE-2026-56853", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56853" + }, + { + "VulnerabilityID": "CVE-2026-56858", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56858" + }, + { + "VulnerabilityID": "CVE-2026-56859", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56859" + }, + { + "VulnerabilityID": "CVE-2026-56860", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56860" + }, + { + "VulnerabilityID": "CVE-2026-56862", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56862" + }, + { + "VulnerabilityID": "CVE-2026-78667", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667" + }, + { + "VulnerabilityID": "CVE-2026-78669", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669" + }, + { + "VulnerabilityID": "CVE-2026-97031", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031" + }, + { + "VulnerabilityID": "CVE-2025-61727", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.24.11, 1.25.5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61727" + }, + { + "VulnerabilityID": "CVE-2025-61728", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.24.12, 1.25.6", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61728" + }, + { + "VulnerabilityID": "CVE-2025-61730", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.24.12, 1.25.6", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61730" + }, + { + "VulnerabilityID": "CVE-2026-27142", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.8, 1.26.1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27142" + }, + { + "VulnerabilityID": "CVE-2026-32282", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.9, 1.26.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32282" + }, + { + "VulnerabilityID": "CVE-2026-32288", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.9, 1.26.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32288" + }, + { + "VulnerabilityID": "CVE-2026-32289", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.9, 1.26.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32289" + }, + { + "VulnerabilityID": "CVE-2026-39823", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.10, 1.26.3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39823" + }, + { + "VulnerabilityID": "CVE-2026-39825", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.10, 1.26.3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39825" + }, + { + "VulnerabilityID": "CVE-2026-39826", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.10, 1.26.3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39826" + }, + { + "VulnerabilityID": "CVE-2026-42505", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.12, 1.26.5, 1.27.0-rc.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42505" + }, + { + "VulnerabilityID": "CVE-2026-42507", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.11, 1.26.4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42507" + }, + { + "VulnerabilityID": "CVE-2026-56866", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56866" + }, + { + "VulnerabilityID": "CVE-2026-78659", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78659" + }, + { + "VulnerabilityID": "CVE-2026-78660", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78660" + }, + { + "VulnerabilityID": "CVE-2026-78663", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78663" + }, + { + "VulnerabilityID": "CVE-2026-94439", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-94439" + }, + { + "VulnerabilityID": "CVE-2026-94440", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-94440" + }, + { + "VulnerabilityID": "CVE-2026-94448", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-94448" + }, + { + "VulnerabilityID": "CVE-2026-97030", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97030" + }, + { + "VulnerabilityID": "CVE-2026-97032", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97032" + }, + { + "VulnerabilityID": "CVE-2026-97054", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.11, 1.27.4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97054" + }, + { + "VulnerabilityID": "CVE-2026-27139", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.25.8, 1.26.1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27139" + }, + { + "VulnerabilityID": "CVE-2026-56857", + "PkgName": "stdlib", + "InstalledVersion": "v1.24.10", + "FixedVersion": "1.26.9, 1.27.2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56857" + } + ] + }, + "image-jre-before-scan": { + "command": "Initial recorded Trivy 0.69.3 baseline; see SCAN_TRIAGE.md", + "exit_code": 0, + "artifact": "eclipse-temurin:21-jre-jammy@sha256:dff6eb46527bd293a3c06bbbe9e64e8c9f91f01905b5abbdad31761c03059d2c", + "scanner": [ + "eclipse-temurin@sha256:dff6eb46527bd293a3c06bbbe9e64e8c9f91f01905b5abbdad31761c03059d2c" + ], + "raw_sha256": "aec26cc5f24e28b132fa2f3bf80f207a0c04abeb0af4bef4a792498272ecc45a", + "findings": 151, + "severity": { + "MEDIUM": 124, + "LOW": 27 + }, + "resolved_package_records": 143, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2026-102473", + "PkgName": "dash", + "InstalledVersion": "0.5.11+git20210903+057cd650a4ed-3build1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102473" + }, + { + "VulnerabilityID": "CVE-2026-102474", + "PkgName": "dash", + "InstalledVersion": "0.5.11+git20210903+057cd650a4ed-3build1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102474" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "dirmngr", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "gcc-12-base", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gnupg", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gnupg-l10n", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gnupg-utils", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpg", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpg-agent", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpg-wks-client", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpg-wks-server", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpgconf", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpgsm", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-105712", + "PkgName": "gpgv", + "InstalledVersion": "2.2.27-3ubuntu2.5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-105712" + }, + { + "VulnerabilityID": "CVE-2026-18374", + "PkgName": "libc-bin", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18374" + }, + { + "VulnerabilityID": "CVE-2026-84243", + "PkgName": "libc-bin", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84243" + }, + { + "VulnerabilityID": "CVE-2026-8674", + "PkgName": "libc-bin", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8674" + }, + { + "VulnerabilityID": "CVE-2026-86805", + "PkgName": "libc-bin", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86805" + }, + { + "VulnerabilityID": "CVE-2026-95818", + "PkgName": "libc-bin", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95818" + }, + { + "VulnerabilityID": "CVE-2026-97399", + "PkgName": "libc-bin", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97399" + }, + { + "VulnerabilityID": "CVE-2026-18374", + "PkgName": "libc6", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18374" + }, + { + "VulnerabilityID": "CVE-2026-84243", + "PkgName": "libc6", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84243" + }, + { + "VulnerabilityID": "CVE-2026-8674", + "PkgName": "libc6", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8674" + }, + { + "VulnerabilityID": "CVE-2026-86805", + "PkgName": "libc6", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86805" + }, + { + "VulnerabilityID": "CVE-2026-95818", + "PkgName": "libc6", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95818" + }, + { + "VulnerabilityID": "CVE-2026-97399", + "PkgName": "libc6", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97399" + }, + { + "VulnerabilityID": "CVE-2025-66382", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-66382" + }, + { + "VulnerabilityID": "CVE-2026-115506", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115506" + }, + { + "VulnerabilityID": "CVE-2026-117610", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-117610" + }, + { + "VulnerabilityID": "CVE-2026-118370", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118370" + }, + { + "VulnerabilityID": "CVE-2026-124317", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124317" + }, + { + "VulnerabilityID": "CVE-2026-128241", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-128241" + }, + { + "VulnerabilityID": "CVE-2026-134703", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-134703" + }, + { + "VulnerabilityID": "CVE-2026-77214", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77214" + }, + { + "VulnerabilityID": "CVE-2026-93990", + "PkgName": "libexpat1", + "InstalledVersion": "2.4.7-1ubuntu0.9", + "FixedVersion": "2.4.7-1ubuntu0.10", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-93990" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "libgcc-s1", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-67693", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-67693" + }, + { + "VulnerabilityID": "CVE-2026-88647", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88647" + }, + { + "VulnerabilityID": "CVE-2026-88648", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88648" + }, + { + "VulnerabilityID": "CVE-2026-95184", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95184" + }, + { + "VulnerabilityID": "CVE-2026-95210", + "PkgName": "libgnutls30", + "InstalledVersion": "3.7.3-4ubuntu1.9", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95210" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libgssapi-krb5-2", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libk5crypto3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libkrb5-3", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2026-107364", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107364" + }, + { + "VulnerabilityID": "CVE-2026-107778", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107778" + }, + { + "VulnerabilityID": "CVE-2026-107884", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107884" + }, + { + "VulnerabilityID": "CVE-2026-112314", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112314" + }, + { + "VulnerabilityID": "CVE-2026-112315", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112315" + }, + { + "VulnerabilityID": "CVE-2026-112316", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112316" + }, + { + "VulnerabilityID": "CVE-2026-112317", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112317" + }, + { + "VulnerabilityID": "CVE-2026-112318", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112318" + }, + { + "VulnerabilityID": "CVE-2026-112319", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112319" + }, + { + "VulnerabilityID": "CVE-2026-112320", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112320" + }, + { + "VulnerabilityID": "CVE-2026-112321", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112321" + }, + { + "VulnerabilityID": "CVE-2026-112322", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112322" + }, + { + "VulnerabilityID": "CVE-2026-112323", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-112323" + }, + { + "VulnerabilityID": "CVE-2026-118380", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118380" + }, + { + "VulnerabilityID": "CVE-2026-119079", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119079" + }, + { + "VulnerabilityID": "CVE-2026-71199", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71199" + }, + { + "VulnerabilityID": "CVE-2026-71200", + "PkgName": "libkrb5support0", + "InstalledVersion": "1.19.2-2ubuntu0.10", + "FixedVersion": "1.19.2-2ubuntu0.12", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-71200" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "libncurses6", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "libncursesw6", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2022-41409", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.39-3ubuntu0.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-41409" + }, + { + "VulnerabilityID": "CVE-2026-107161", + "PkgName": "libsasl2-2", + "InstalledVersion": "2.1.27+dfsg2-3ubuntu1.2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107161" + }, + { + "VulnerabilityID": "CVE-2026-107161", + "PkgName": "libsasl2-modules-db", + "InstalledVersion": "2.1.27+dfsg2-3ubuntu1.2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107161" + }, + { + "VulnerabilityID": "CVE-2026-119371", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119371" + }, + { + "VulnerabilityID": "CVE-2026-119372", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119372" + }, + { + "VulnerabilityID": "CVE-2026-119373", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119373" + }, + { + "VulnerabilityID": "CVE-2026-119375", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119375" + }, + { + "VulnerabilityID": "CVE-2026-119376", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119376" + }, + { + "VulnerabilityID": "CVE-2026-119378", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119378" + }, + { + "VulnerabilityID": "CVE-2026-119379", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119379" + }, + { + "VulnerabilityID": "CVE-2026-119586", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.37.2-2ubuntu0.8", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119586" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "libssl3", + "InstalledVersion": "3.0.2-0ubuntu1.30", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "libstdc++6", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2022-27943", + "PkgName": "libstdc++6", + "InstalledVersion": "12.3.0-1ubuntu1~22.04.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-27943" + }, + { + "VulnerabilityID": "CVE-2026-121876", + "PkgName": "libsystemd0", + "InstalledVersion": "249.11-0ubuntu3.23", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121876" + }, + { + "VulnerabilityID": "CVE-2026-40228", + "PkgName": "libsystemd0", + "InstalledVersion": "249.11-0ubuntu3.23", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40228" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "libtinfo6", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2026-121876", + "PkgName": "libudev1", + "InstalledVersion": "249.11-0ubuntu3.23", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121876" + }, + { + "VulnerabilityID": "CVE-2026-40228", + "PkgName": "libudev1", + "InstalledVersion": "249.11-0ubuntu3.23", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40228" + }, + { + "VulnerabilityID": "CVE-2022-4899", + "PkgName": "libzstd1", + "InstalledVersion": "1.4.8+dfsg-3build1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-4899" + }, + { + "VulnerabilityID": "CVE-2026-18374", + "PkgName": "locales", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18374" + }, + { + "VulnerabilityID": "CVE-2026-84243", + "PkgName": "locales", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84243" + }, + { + "VulnerabilityID": "CVE-2026-8674", + "PkgName": "locales", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8674" + }, + { + "VulnerabilityID": "CVE-2026-86805", + "PkgName": "locales", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86805" + }, + { + "VulnerabilityID": "CVE-2026-95818", + "PkgName": "locales", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95818" + }, + { + "VulnerabilityID": "CVE-2026-97399", + "PkgName": "locales", + "InstalledVersion": "2.35-0ubuntu3.15", + "FixedVersion": "2.35-0ubuntu3.18", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97399" + }, + { + "VulnerabilityID": "CVE-2023-29383", + "PkgName": "login", + "InstalledVersion": "1:4.8.1-2ubuntu2.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-29383" + }, + { + "VulnerabilityID": "CVE-2024-56433", + "PkgName": "login", + "InstalledVersion": "1:4.8.1-2ubuntu2.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-56433" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "ncurses-base", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2023-50495", + "PkgName": "ncurses-bin", + "InstalledVersion": "6.3-2ubuntu0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-50495" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "openssl", + "InstalledVersion": "3.0.2-0ubuntu1.30", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2023-29383", + "PkgName": "passwd", + "InstalledVersion": "1:4.8.1-2ubuntu2.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-29383" + }, + { + "VulnerabilityID": "CVE-2024-56433", + "PkgName": "passwd", + "InstalledVersion": "1:4.8.1-2ubuntu2.2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-56433" + }, + { + "VulnerabilityID": "CVE-2026-48962", + "PkgName": "perl-base", + "InstalledVersion": "5.34.0-3ubuntu1.10", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-48962" + }, + { + "VulnerabilityID": "CVE-2026-9538", + "PkgName": "perl-base", + "InstalledVersion": "5.34.0-3ubuntu1.10", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9538" + }, + { + "VulnerabilityID": "CVE-2026-18477", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1ubuntu0.1.22.04.6", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18477" + }, + { + "VulnerabilityID": "CVE-2026-18508", + "PkgName": "tar", + "InstalledVersion": "1.34+dfsg-1ubuntu0.1.22.04.6", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18508" + }, + { + "VulnerabilityID": "CVE-2021-31879", + "PkgName": "wget", + "InstalledVersion": "1.21.2-2ubuntu1.5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2021-31879" + } + ] + }, + "image-worker-base-scan": { + "command": "Initial recorded Trivy 0.69.3 baseline; see SCAN_TRIAGE.md", + "exit_code": 0, + "artifact": "python:3.12.12-slim@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c", + "scanner": [ + "python@sha256:f3fa41d74a768c2fce8016b98c191ae8c1bacd8f1152870a3f9f87d350920b7c" + ], + "raw_sha256": "51bab70acfa338646ae6848f63e3d02051cf6a4a09659560a9009c468726119f", + "findings": 513, + "severity": { + "HIGH": 126, + "LOW": 149, + "MEDIUM": 214, + "UNKNOWN": 18, + "CRITICAL": 6 + }, + "resolved_package_records": 87, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2026-109518", + "PkgName": "apt", + "InstalledVersion": "3.0.3", + "FixedVersion": "3.0.4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-109518" + }, + { + "VulnerabilityID": "CVE-2011-3374", + "PkgName": "apt", + "InstalledVersion": "3.0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2011-3374" + }, + { + "VulnerabilityID": "TEMP-0841856-B18BAF", + "PkgName": "bash", + "InstalledVersion": "5.2.37-2+b7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0841856-B18BAF" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "bsdutils", + "InstalledVersion": "1:2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "DSA-6572-1", + "PkgName": "ca-certificates", + "InstalledVersion": "20250419", + "FixedVersion": "20250419+deb13u1", + "Severity": "UNKNOWN", + "Status": "fixed", + "PrimaryURL": null + }, + { + "VulnerabilityID": "CVE-2017-18018", + "PkgName": "coreutils", + "InstalledVersion": "9.7-3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2017-18018" + }, + { + "VulnerabilityID": "CVE-2025-5278", + "PkgName": "coreutils", + "InstalledVersion": "9.7-3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-5278" + }, + { + "VulnerabilityID": "CVE-2026-56391", + "PkgName": "coreutils", + "InstalledVersion": "9.7-3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56391" + }, + { + "VulnerabilityID": "CVE-2026-56392", + "PkgName": "coreutils", + "InstalledVersion": "9.7-3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56392" + }, + { + "VulnerabilityID": "CVE-2026-102473", + "PkgName": "dash", + "InstalledVersion": "0.5.12-12", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102473" + }, + { + "VulnerabilityID": "CVE-2026-102474", + "PkgName": "dash", + "InstalledVersion": "0.5.12-12", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102474" + }, + { + "VulnerabilityID": "CVE-2026-53910", + "PkgName": "diffutils", + "InstalledVersion": "1:3.10-4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53910" + }, + { + "VulnerabilityID": "CVE-2026-2219", + "PkgName": "dpkg", + "InstalledVersion": "1.22.21", + "FixedVersion": "1.22.22", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-2219" + }, + { + "VulnerabilityID": "CVE-2026-91094", + "PkgName": "dpkg", + "InstalledVersion": "1.22.21", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-91094" + }, + { + "VulnerabilityID": "CVE-2026-102010", + "PkgName": "gcc-14-base", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102010" + }, + { + "VulnerabilityID": "CVE-2026-114690", + "PkgName": "gcc-14-base", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114690" + }, + { + "VulnerabilityID": "CVE-2026-114691", + "PkgName": "gcc-14-base", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114691" + }, + { + "VulnerabilityID": "CVE-2026-115455", + "PkgName": "gcc-14-base", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115455" + }, + { + "VulnerabilityID": "CVE-2026-125709", + "PkgName": "gcc-14-base", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-125709" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "gcc-14-base", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2026-115456", + "PkgName": "gcc-14-base", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115456" + }, + { + "VulnerabilityID": "CVE-2026-41992", + "PkgName": "gzip", + "InstalledVersion": "1.13-1", + "FixedVersion": "1.13-1+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-41992" + }, + { + "VulnerabilityID": "CVE-2026-41991", + "PkgName": "gzip", + "InstalledVersion": "1.13-1", + "FixedVersion": "1.13-1+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-41991" + }, + { + "VulnerabilityID": "CVE-2026-54369", + "PkgName": "libacl1", + "InstalledVersion": "2.3.2-2+b1", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54369" + }, + { + "VulnerabilityID": "CVE-2026-54370", + "PkgName": "libacl1", + "InstalledVersion": "2.3.2-2+b1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54370" + }, + { + "VulnerabilityID": "CVE-2026-109518", + "PkgName": "libapt-pkg7.0", + "InstalledVersion": "3.0.3", + "FixedVersion": "3.0.4", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-109518" + }, + { + "VulnerabilityID": "CVE-2011-3374", + "PkgName": "libapt-pkg7.0", + "InstalledVersion": "3.0.3", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2011-3374" + }, + { + "VulnerabilityID": "CVE-2026-54371", + "PkgName": "libattr1", + "InstalledVersion": "1:2.5.2-3", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54371" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "libblkid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2026-42250", + "PkgName": "libbz2-1.0", + "InstalledVersion": "1.0.8-6", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42250" + }, + { + "VulnerabilityID": "CVE-2026-0915", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-0915" + }, + { + "VulnerabilityID": "CVE-2026-115819", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115819" + }, + { + "VulnerabilityID": "CVE-2026-121757", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121757" + }, + { + "VulnerabilityID": "CVE-2026-18374", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18374" + }, + { + "VulnerabilityID": "CVE-2026-19499", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19499" + }, + { + "VulnerabilityID": "CVE-2026-19542", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19542" + }, + { + "VulnerabilityID": "CVE-2026-4046", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4046" + }, + { + "VulnerabilityID": "CVE-2026-4437", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4437" + }, + { + "VulnerabilityID": "CVE-2026-5435", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5435" + }, + { + "VulnerabilityID": "CVE-2026-5450", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5450" + }, + { + "VulnerabilityID": "CVE-2026-5928", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5928" + }, + { + "VulnerabilityID": "CVE-2026-6238", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6238" + }, + { + "VulnerabilityID": "CVE-2026-6368", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6368" + }, + { + "VulnerabilityID": "CVE-2026-6791", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6791" + }, + { + "VulnerabilityID": "CVE-2026-77117", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77117" + }, + { + "VulnerabilityID": "CVE-2026-80489", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-80489" + }, + { + "VulnerabilityID": "CVE-2026-84243", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84243" + }, + { + "VulnerabilityID": "CVE-2026-8674", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8674" + }, + { + "VulnerabilityID": "CVE-2026-86805", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86805" + }, + { + "VulnerabilityID": "CVE-2026-89092", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89092" + }, + { + "VulnerabilityID": "CVE-2026-95818", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95818" + }, + { + "VulnerabilityID": "CVE-2010-4756", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2010-4756" + }, + { + "VulnerabilityID": "CVE-2018-20796", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-20796" + }, + { + "VulnerabilityID": "CVE-2019-1010022", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010022" + }, + { + "VulnerabilityID": "CVE-2019-1010023", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010023" + }, + { + "VulnerabilityID": "CVE-2019-1010024", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010024" + }, + { + "VulnerabilityID": "CVE-2019-1010025", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010025" + }, + { + "VulnerabilityID": "CVE-2019-9192", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-9192" + }, + { + "VulnerabilityID": "CVE-2025-15281", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15281" + }, + { + "VulnerabilityID": "CVE-2026-0861", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-0861" + }, + { + "VulnerabilityID": "CVE-2026-100290", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-100290" + }, + { + "VulnerabilityID": "CVE-2026-126765", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-126765" + }, + { + "VulnerabilityID": "CVE-2026-4438", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4438" + }, + { + "VulnerabilityID": "CVE-2026-97399", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97399" + }, + { + "VulnerabilityID": "CVE-2026-121758", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121758" + }, + { + "VulnerabilityID": "CVE-2026-124024", + "PkgName": "libc-bin", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124024" + }, + { + "VulnerabilityID": "CVE-2026-0915", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-0915" + }, + { + "VulnerabilityID": "CVE-2026-115819", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115819" + }, + { + "VulnerabilityID": "CVE-2026-121757", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121757" + }, + { + "VulnerabilityID": "CVE-2026-18374", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18374" + }, + { + "VulnerabilityID": "CVE-2026-19499", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19499" + }, + { + "VulnerabilityID": "CVE-2026-19542", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19542" + }, + { + "VulnerabilityID": "CVE-2026-4046", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4046" + }, + { + "VulnerabilityID": "CVE-2026-4437", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4437" + }, + { + "VulnerabilityID": "CVE-2026-5435", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5435" + }, + { + "VulnerabilityID": "CVE-2026-5450", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5450" + }, + { + "VulnerabilityID": "CVE-2026-5928", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u4", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5928" + }, + { + "VulnerabilityID": "CVE-2026-6238", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6238" + }, + { + "VulnerabilityID": "CVE-2026-6368", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6368" + }, + { + "VulnerabilityID": "CVE-2026-6791", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-6791" + }, + { + "VulnerabilityID": "CVE-2026-77117", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77117" + }, + { + "VulnerabilityID": "CVE-2026-80489", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-80489" + }, + { + "VulnerabilityID": "CVE-2026-84243", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84243" + }, + { + "VulnerabilityID": "CVE-2026-8674", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8674" + }, + { + "VulnerabilityID": "CVE-2026-86805", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86805" + }, + { + "VulnerabilityID": "CVE-2026-89092", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89092" + }, + { + "VulnerabilityID": "CVE-2026-95818", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95818" + }, + { + "VulnerabilityID": "CVE-2010-4756", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2010-4756" + }, + { + "VulnerabilityID": "CVE-2018-20796", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2018-20796" + }, + { + "VulnerabilityID": "CVE-2019-1010022", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010022" + }, + { + "VulnerabilityID": "CVE-2019-1010023", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010023" + }, + { + "VulnerabilityID": "CVE-2019-1010024", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010024" + }, + { + "VulnerabilityID": "CVE-2019-1010025", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-1010025" + }, + { + "VulnerabilityID": "CVE-2019-9192", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2019-9192" + }, + { + "VulnerabilityID": "CVE-2025-15281", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15281" + }, + { + "VulnerabilityID": "CVE-2026-0861", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-0861" + }, + { + "VulnerabilityID": "CVE-2026-100290", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-100290" + }, + { + "VulnerabilityID": "CVE-2026-126765", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-126765" + }, + { + "VulnerabilityID": "CVE-2026-4438", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4438" + }, + { + "VulnerabilityID": "CVE-2026-97399", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": "2.41-12+deb13u5", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97399" + }, + { + "VulnerabilityID": "CVE-2026-121758", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121758" + }, + { + "VulnerabilityID": "CVE-2026-124024", + "PkgName": "libc6", + "InstalledVersion": "2.41-12+deb13u1", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124024" + }, + { + "VulnerabilityID": "CVE-2026-4878", + "PkgName": "libcap2", + "InstalledVersion": "1:2.75-10+b3", + "FixedVersion": "1:2.75-10+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4878" + }, + { + "VulnerabilityID": "CVE-2026-102010", + "PkgName": "libgcc-s1", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102010" + }, + { + "VulnerabilityID": "CVE-2026-114690", + "PkgName": "libgcc-s1", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114690" + }, + { + "VulnerabilityID": "CVE-2026-114691", + "PkgName": "libgcc-s1", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114691" + }, + { + "VulnerabilityID": "CVE-2026-115455", + "PkgName": "libgcc-s1", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115455" + }, + { + "VulnerabilityID": "CVE-2026-125709", + "PkgName": "libgcc-s1", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-125709" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "libgcc-s1", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2026-115456", + "PkgName": "libgcc-s1", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115456" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "liblastlog2-2", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2026-34743", + "PkgName": "liblzma5", + "InstalledVersion": "5.8.1-1", + "FixedVersion": "5.8.1-1+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34743" + }, + { + "VulnerabilityID": "DSA-6549-1", + "PkgName": "liblzma5", + "InstalledVersion": "5.8.1-1", + "FixedVersion": "5.8.1-1+deb13u2", + "Severity": "UNKNOWN", + "Status": "fixed", + "PrimaryURL": null + }, + { + "VulnerabilityID": "TEMP-1147318-639065", + "PkgName": "liblzma5", + "InstalledVersion": "5.8.1-1", + "FixedVersion": "5.8.1-1+deb13u2", + "Severity": "UNKNOWN", + "Status": "fixed", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-1147318-639065" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "libmount1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2025-69720", + "PkgName": "libncursesw6", + "InstalledVersion": "6.5+20250216-2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69720" + }, + { + "VulnerabilityID": "CVE-2025-6141", + "PkgName": "libncursesw6", + "InstalledVersion": "6.5+20250216-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6141" + }, + { + "VulnerabilityID": "CVE-2026-54411", + "PkgName": "libpam-modules", + "InstalledVersion": "1.7.0-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54411" + }, + { + "VulnerabilityID": "CVE-2026-54411", + "PkgName": "libpam-modules-bin", + "InstalledVersion": "1.7.0-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54411" + }, + { + "VulnerabilityID": "CVE-2026-54411", + "PkgName": "libpam-runtime", + "InstalledVersion": "1.7.0-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54411" + }, + { + "VulnerabilityID": "CVE-2026-54411", + "PkgName": "libpam0g", + "InstalledVersion": "1.7.0-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54411" + }, + { + "VulnerabilityID": "CVE-2026-103111", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.46-1~deb13u1", + "FixedVersion": "10.46-1~deb13u3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-103111" + }, + { + "VulnerabilityID": "CVE-2026-86145", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.46-1~deb13u1", + "FixedVersion": "10.46-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-86145" + }, + { + "VulnerabilityID": "CVE-2026-89157", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.46-1~deb13u1", + "FixedVersion": "10.46-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89157" + }, + { + "VulnerabilityID": "CVE-2026-89161", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.46-1~deb13u1", + "FixedVersion": "10.46-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89161" + }, + { + "VulnerabilityID": "CVE-2026-89156", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.46-1~deb13u1", + "FixedVersion": "10.46-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89156" + }, + { + "VulnerabilityID": "CVE-2026-89158", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.46-1~deb13u1", + "FixedVersion": "10.46-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89158" + }, + { + "VulnerabilityID": "CVE-2026-89160", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.46-1~deb13u1", + "FixedVersion": "10.46-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89160" + }, + { + "VulnerabilityID": "CVE-2026-89162", + "PkgName": "libpcre2-8-0", + "InstalledVersion": "10.46-1~deb13u1", + "FixedVersion": "10.46-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89162" + }, + { + "VulnerabilityID": "TEMP-0000000-402D17", + "PkgName": "libseccomp2", + "InstalledVersion": "2.6.0-2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-402D17" + }, + { + "VulnerabilityID": "TEMP-0000000-414660", + "PkgName": "libseccomp2", + "InstalledVersion": "2.6.0-2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-414660" + }, + { + "VulnerabilityID": "TEMP-0000000-43231F", + "PkgName": "libseccomp2", + "InstalledVersion": "2.6.0-2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-43231F" + }, + { + "VulnerabilityID": "TEMP-0000000-AE2C66", + "PkgName": "libseccomp2", + "InstalledVersion": "2.6.0-2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-AE2C66" + }, + { + "VulnerabilityID": "TEMP-0000000-ED49F3", + "PkgName": "libseccomp2", + "InstalledVersion": "2.6.0-2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-ED49F3" + }, + { + "VulnerabilityID": "TEMP-0000000-F88C7E", + "PkgName": "libseccomp2", + "InstalledVersion": "2.6.0-2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-F88C7E" + }, + { + "VulnerabilityID": "TEMP-0000000-FCA4C0", + "PkgName": "libseccomp2", + "InstalledVersion": "2.6.0-2", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0000000-FCA4C0" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "libsmartcols1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2026-11822", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": "3.46.1-7+deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11822" + }, + { + "VulnerabilityID": "CVE-2026-11824", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": "3.46.1-7+deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-11824" + }, + { + "VulnerabilityID": "CVE-2026-119373", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119373" + }, + { + "VulnerabilityID": "CVE-2026-119374", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119374" + }, + { + "VulnerabilityID": "CVE-2026-119379", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119379" + }, + { + "VulnerabilityID": "CVE-2025-7709", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": "3.46.1-7+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-7709" + }, + { + "VulnerabilityID": "CVE-2026-119371", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119371" + }, + { + "VulnerabilityID": "CVE-2026-119372", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119372" + }, + { + "VulnerabilityID": "CVE-2026-119375", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119375" + }, + { + "VulnerabilityID": "CVE-2026-119376", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119376" + }, + { + "VulnerabilityID": "CVE-2026-119378", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119378" + }, + { + "VulnerabilityID": "CVE-2026-119591", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119591" + }, + { + "VulnerabilityID": "CVE-2026-50812", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-50812" + }, + { + "VulnerabilityID": "CVE-2026-50813", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-50813" + }, + { + "VulnerabilityID": "CVE-2021-45346", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2021-45346" + }, + { + "VulnerabilityID": "CVE-2025-70873", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-70873" + }, + { + "VulnerabilityID": "CVE-2026-119377", + "PkgName": "libsqlite3-0", + "InstalledVersion": "3.46.1-7", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-119377" + }, + { + "VulnerabilityID": "CVE-2026-31789", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31789" + }, + { + "VulnerabilityID": "CVE-2026-107494", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107494" + }, + { + "VulnerabilityID": "CVE-2026-124709", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124709" + }, + { + "VulnerabilityID": "CVE-2026-14456", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14456" + }, + { + "VulnerabilityID": "CVE-2026-28387", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28387" + }, + { + "VulnerabilityID": "CVE-2026-28388", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28388" + }, + { + "VulnerabilityID": "CVE-2026-28389", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28389" + }, + { + "VulnerabilityID": "CVE-2026-28390", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28390" + }, + { + "VulnerabilityID": "CVE-2026-45447", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45447" + }, + { + "VulnerabilityID": "CVE-2026-84782", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84782" + }, + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-121482", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121482" + }, + { + "VulnerabilityID": "CVE-2026-18798", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18798" + }, + { + "VulnerabilityID": "CVE-2026-2673", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-2673" + }, + { + "VulnerabilityID": "CVE-2026-31790", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31790" + }, + { + "VulnerabilityID": "CVE-2026-34182", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34182" + }, + { + "VulnerabilityID": "CVE-2026-34183", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34183" + }, + { + "VulnerabilityID": "CVE-2026-35190", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35190" + }, + { + "VulnerabilityID": "CVE-2026-42764", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42764" + }, + { + "VulnerabilityID": "CVE-2026-42772", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42772" + }, + { + "VulnerabilityID": "CVE-2026-45445", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45445" + }, + { + "VulnerabilityID": "CVE-2026-54872", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54872" + }, + { + "VulnerabilityID": "CVE-2026-54873", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54873" + }, + { + "VulnerabilityID": "CVE-2026-54875", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54875" + }, + { + "VulnerabilityID": "CVE-2026-63072", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63072" + }, + { + "VulnerabilityID": "CVE-2026-63076", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63076" + }, + { + "VulnerabilityID": "CVE-2026-72897", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-72897" + }, + { + "VulnerabilityID": "CVE-2026-75804", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75804" + }, + { + "VulnerabilityID": "CVE-2026-75805", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75805" + }, + { + "VulnerabilityID": "CVE-2026-75806", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75806" + }, + { + "VulnerabilityID": "CVE-2026-77696", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77696" + }, + { + "VulnerabilityID": "CVE-2026-84784", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84784" + }, + { + "VulnerabilityID": "CVE-2026-84785", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84785" + }, + { + "VulnerabilityID": "CVE-2026-84786", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84786" + }, + { + "VulnerabilityID": "CVE-2026-95690", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95690" + }, + { + "VulnerabilityID": "CVE-2026-95691", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95691" + }, + { + "VulnerabilityID": "CVE-2026-95692", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95692" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-121481", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121481" + }, + { + "VulnerabilityID": "CVE-2026-14457", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14457" + }, + { + "VulnerabilityID": "CVE-2026-34180", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34180" + }, + { + "VulnerabilityID": "CVE-2026-34181", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34181" + }, + { + "VulnerabilityID": "CVE-2026-35189", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35189" + }, + { + "VulnerabilityID": "CVE-2026-35191", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35191" + }, + { + "VulnerabilityID": "CVE-2026-42766", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42766" + }, + { + "VulnerabilityID": "CVE-2026-42767", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42767" + }, + { + "VulnerabilityID": "CVE-2026-42768", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42768" + }, + { + "VulnerabilityID": "CVE-2026-42769", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42769" + }, + { + "VulnerabilityID": "CVE-2026-42770", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42770" + }, + { + "VulnerabilityID": "CVE-2026-45446", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45446" + }, + { + "VulnerabilityID": "CVE-2026-54874", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54874" + }, + { + "VulnerabilityID": "CVE-2026-63073", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63073" + }, + { + "VulnerabilityID": "CVE-2026-63074", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63074" + }, + { + "VulnerabilityID": "CVE-2026-63075", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63075" + }, + { + "VulnerabilityID": "CVE-2026-7383", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-7383" + }, + { + "VulnerabilityID": "CVE-2026-75803", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75803" + }, + { + "VulnerabilityID": "CVE-2026-88822", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88822" + }, + { + "VulnerabilityID": "CVE-2026-88823", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88823" + }, + { + "VulnerabilityID": "CVE-2026-9076", + "PkgName": "libssl3t64", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9076" + }, + { + "VulnerabilityID": "CVE-2026-102010", + "PkgName": "libstdc++6", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102010" + }, + { + "VulnerabilityID": "CVE-2026-114690", + "PkgName": "libstdc++6", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114690" + }, + { + "VulnerabilityID": "CVE-2026-114691", + "PkgName": "libstdc++6", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-114691" + }, + { + "VulnerabilityID": "CVE-2026-115455", + "PkgName": "libstdc++6", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115455" + }, + { + "VulnerabilityID": "CVE-2026-125709", + "PkgName": "libstdc++6", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-125709" + }, + { + "VulnerabilityID": "CVE-2026-95619", + "PkgName": "libstdc++6", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95619" + }, + { + "VulnerabilityID": "CVE-2026-115456", + "PkgName": "libstdc++6", + "InstalledVersion": "14.2.0-19", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-115456" + }, + { + "VulnerabilityID": "CVE-2026-16742", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-16742" + }, + { + "VulnerabilityID": "CVE-2026-15059", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-15059" + }, + { + "VulnerabilityID": "CVE-2026-29111", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": "257.13-1~deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-29111" + }, + { + "VulnerabilityID": "CVE-2026-40225", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": "257.13-1~deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40225" + }, + { + "VulnerabilityID": "CVE-2026-40226", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": "257.13-1~deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40226" + }, + { + "VulnerabilityID": "CVE-2026-4105", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": "257.13-1~deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4105" + }, + { + "VulnerabilityID": "CVE-2013-4392", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2013-4392" + }, + { + "VulnerabilityID": "CVE-2023-31437", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31437" + }, + { + "VulnerabilityID": "CVE-2023-31438", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31438" + }, + { + "VulnerabilityID": "CVE-2023-31439", + "PkgName": "libsystemd0", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31439" + }, + { + "VulnerabilityID": "CVE-2025-69720", + "PkgName": "libtinfo6", + "InstalledVersion": "6.5+20250216-2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69720" + }, + { + "VulnerabilityID": "CVE-2025-6141", + "PkgName": "libtinfo6", + "InstalledVersion": "6.5+20250216-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6141" + }, + { + "VulnerabilityID": "CVE-2026-16742", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-16742" + }, + { + "VulnerabilityID": "CVE-2026-15059", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-15059" + }, + { + "VulnerabilityID": "CVE-2026-29111", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": "257.13-1~deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-29111" + }, + { + "VulnerabilityID": "CVE-2026-40225", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": "257.13-1~deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40225" + }, + { + "VulnerabilityID": "CVE-2026-40226", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": "257.13-1~deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40226" + }, + { + "VulnerabilityID": "CVE-2026-4105", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": "257.13-1~deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-4105" + }, + { + "VulnerabilityID": "CVE-2013-4392", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2013-4392" + }, + { + "VulnerabilityID": "CVE-2023-31437", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31437" + }, + { + "VulnerabilityID": "CVE-2023-31438", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31438" + }, + { + "VulnerabilityID": "CVE-2023-31439", + "PkgName": "libudev1", + "InstalledVersion": "257.9-1~deb13u1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2023-31439" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "libuuid1", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2026-124851", + "PkgName": "libzstd1", + "InstalledVersion": "1.5.7+dfsg-1", + "FixedVersion": "1.5.7+dfsg-1+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124851" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "login", + "InstalledVersion": "1:4.16.0-2+really2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2007-5686", + "PkgName": "login.defs", + "InstalledVersion": "1:4.17.4-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2007-5686" + }, + { + "VulnerabilityID": "CVE-2024-56433", + "PkgName": "login.defs", + "InstalledVersion": "1:4.17.4-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-56433" + }, + { + "VulnerabilityID": "TEMP-0628843-DBAD28", + "PkgName": "login.defs", + "InstalledVersion": "1:4.17.4-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0628843-DBAD28" + }, + { + "VulnerabilityID": "CVE-2026-135901", + "PkgName": "login.defs", + "InstalledVersion": "1:4.17.4-2", + "FixedVersion": "1:4.17.4-2+deb13u1", + "Severity": "UNKNOWN", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-135901" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "mount", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2025-69720", + "PkgName": "ncurses-base", + "InstalledVersion": "6.5+20250216-2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69720" + }, + { + "VulnerabilityID": "CVE-2025-6141", + "PkgName": "ncurses-base", + "InstalledVersion": "6.5+20250216-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6141" + }, + { + "VulnerabilityID": "CVE-2025-69720", + "PkgName": "ncurses-bin", + "InstalledVersion": "6.5+20250216-2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-69720" + }, + { + "VulnerabilityID": "CVE-2025-6141", + "PkgName": "ncurses-bin", + "InstalledVersion": "6.5+20250216-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-6141" + }, + { + "VulnerabilityID": "CVE-2026-31789", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31789" + }, + { + "VulnerabilityID": "CVE-2026-107494", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107494" + }, + { + "VulnerabilityID": "CVE-2026-124709", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124709" + }, + { + "VulnerabilityID": "CVE-2026-14456", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14456" + }, + { + "VulnerabilityID": "CVE-2026-28387", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28387" + }, + { + "VulnerabilityID": "CVE-2026-28388", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28388" + }, + { + "VulnerabilityID": "CVE-2026-28389", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28389" + }, + { + "VulnerabilityID": "CVE-2026-28390", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28390" + }, + { + "VulnerabilityID": "CVE-2026-45447", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45447" + }, + { + "VulnerabilityID": "CVE-2026-84782", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84782" + }, + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-121482", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121482" + }, + { + "VulnerabilityID": "CVE-2026-18798", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18798" + }, + { + "VulnerabilityID": "CVE-2026-2673", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-2673" + }, + { + "VulnerabilityID": "CVE-2026-31790", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31790" + }, + { + "VulnerabilityID": "CVE-2026-34182", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34182" + }, + { + "VulnerabilityID": "CVE-2026-34183", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34183" + }, + { + "VulnerabilityID": "CVE-2026-35190", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35190" + }, + { + "VulnerabilityID": "CVE-2026-42764", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42764" + }, + { + "VulnerabilityID": "CVE-2026-42772", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42772" + }, + { + "VulnerabilityID": "CVE-2026-45445", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45445" + }, + { + "VulnerabilityID": "CVE-2026-54872", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54872" + }, + { + "VulnerabilityID": "CVE-2026-54873", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54873" + }, + { + "VulnerabilityID": "CVE-2026-54875", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54875" + }, + { + "VulnerabilityID": "CVE-2026-63072", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63072" + }, + { + "VulnerabilityID": "CVE-2026-63076", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63076" + }, + { + "VulnerabilityID": "CVE-2026-72897", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-72897" + }, + { + "VulnerabilityID": "CVE-2026-75804", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75804" + }, + { + "VulnerabilityID": "CVE-2026-75805", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75805" + }, + { + "VulnerabilityID": "CVE-2026-75806", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75806" + }, + { + "VulnerabilityID": "CVE-2026-77696", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77696" + }, + { + "VulnerabilityID": "CVE-2026-84784", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84784" + }, + { + "VulnerabilityID": "CVE-2026-84785", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84785" + }, + { + "VulnerabilityID": "CVE-2026-84786", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84786" + }, + { + "VulnerabilityID": "CVE-2026-95690", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95690" + }, + { + "VulnerabilityID": "CVE-2026-95691", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95691" + }, + { + "VulnerabilityID": "CVE-2026-95692", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95692" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-121481", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121481" + }, + { + "VulnerabilityID": "CVE-2026-14457", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14457" + }, + { + "VulnerabilityID": "CVE-2026-34180", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34180" + }, + { + "VulnerabilityID": "CVE-2026-34181", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34181" + }, + { + "VulnerabilityID": "CVE-2026-35189", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35189" + }, + { + "VulnerabilityID": "CVE-2026-35191", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35191" + }, + { + "VulnerabilityID": "CVE-2026-42766", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42766" + }, + { + "VulnerabilityID": "CVE-2026-42767", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42767" + }, + { + "VulnerabilityID": "CVE-2026-42768", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42768" + }, + { + "VulnerabilityID": "CVE-2026-42769", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42769" + }, + { + "VulnerabilityID": "CVE-2026-42770", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42770" + }, + { + "VulnerabilityID": "CVE-2026-45446", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45446" + }, + { + "VulnerabilityID": "CVE-2026-54874", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54874" + }, + { + "VulnerabilityID": "CVE-2026-63073", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63073" + }, + { + "VulnerabilityID": "CVE-2026-63074", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63074" + }, + { + "VulnerabilityID": "CVE-2026-63075", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63075" + }, + { + "VulnerabilityID": "CVE-2026-7383", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-7383" + }, + { + "VulnerabilityID": "CVE-2026-75803", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75803" + }, + { + "VulnerabilityID": "CVE-2026-88822", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88822" + }, + { + "VulnerabilityID": "CVE-2026-88823", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88823" + }, + { + "VulnerabilityID": "CVE-2026-9076", + "PkgName": "openssl", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9076" + }, + { + "VulnerabilityID": "CVE-2026-31789", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31789" + }, + { + "VulnerabilityID": "CVE-2026-107494", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107494" + }, + { + "VulnerabilityID": "CVE-2026-124709", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-124709" + }, + { + "VulnerabilityID": "CVE-2026-14456", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14456" + }, + { + "VulnerabilityID": "CVE-2026-28387", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28387" + }, + { + "VulnerabilityID": "CVE-2026-28388", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28388" + }, + { + "VulnerabilityID": "CVE-2026-28389", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28389" + }, + { + "VulnerabilityID": "CVE-2026-28390", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28390" + }, + { + "VulnerabilityID": "CVE-2026-45447", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45447" + }, + { + "VulnerabilityID": "CVE-2026-84782", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84782" + }, + { + "VulnerabilityID": "CVE-2026-107496", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107496" + }, + { + "VulnerabilityID": "CVE-2026-121482", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121482" + }, + { + "VulnerabilityID": "CVE-2026-18798", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18798" + }, + { + "VulnerabilityID": "CVE-2026-2673", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-2673" + }, + { + "VulnerabilityID": "CVE-2026-31790", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.5-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-31790" + }, + { + "VulnerabilityID": "CVE-2026-34182", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34182" + }, + { + "VulnerabilityID": "CVE-2026-34183", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34183" + }, + { + "VulnerabilityID": "CVE-2026-35190", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35190" + }, + { + "VulnerabilityID": "CVE-2026-42764", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42764" + }, + { + "VulnerabilityID": "CVE-2026-42772", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42772" + }, + { + "VulnerabilityID": "CVE-2026-45445", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45445" + }, + { + "VulnerabilityID": "CVE-2026-54872", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54872" + }, + { + "VulnerabilityID": "CVE-2026-54873", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54873" + }, + { + "VulnerabilityID": "CVE-2026-54875", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54875" + }, + { + "VulnerabilityID": "CVE-2026-63072", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63072" + }, + { + "VulnerabilityID": "CVE-2026-63076", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63076" + }, + { + "VulnerabilityID": "CVE-2026-72897", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-72897" + }, + { + "VulnerabilityID": "CVE-2026-75804", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75804" + }, + { + "VulnerabilityID": "CVE-2026-75805", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75805" + }, + { + "VulnerabilityID": "CVE-2026-75806", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75806" + }, + { + "VulnerabilityID": "CVE-2026-77696", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-77696" + }, + { + "VulnerabilityID": "CVE-2026-84784", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84784" + }, + { + "VulnerabilityID": "CVE-2026-84785", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84785" + }, + { + "VulnerabilityID": "CVE-2026-84786", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84786" + }, + { + "VulnerabilityID": "CVE-2026-95690", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95690" + }, + { + "VulnerabilityID": "CVE-2026-95691", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95691" + }, + { + "VulnerabilityID": "CVE-2026-95692", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-95692" + }, + { + "VulnerabilityID": "CVE-2026-107493", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107493" + }, + { + "VulnerabilityID": "CVE-2026-121481", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-121481" + }, + { + "VulnerabilityID": "CVE-2026-14457", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-14457" + }, + { + "VulnerabilityID": "CVE-2026-34180", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34180" + }, + { + "VulnerabilityID": "CVE-2026-34181", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34181" + }, + { + "VulnerabilityID": "CVE-2026-35189", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35189" + }, + { + "VulnerabilityID": "CVE-2026-35191", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u3", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-35191" + }, + { + "VulnerabilityID": "CVE-2026-42766", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42766" + }, + { + "VulnerabilityID": "CVE-2026-42767", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42767" + }, + { + "VulnerabilityID": "CVE-2026-42768", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42768" + }, + { + "VulnerabilityID": "CVE-2026-42769", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42769" + }, + { + "VulnerabilityID": "CVE-2026-42770", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42770" + }, + { + "VulnerabilityID": "CVE-2026-45446", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-45446" + }, + { + "VulnerabilityID": "CVE-2026-54874", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-54874" + }, + { + "VulnerabilityID": "CVE-2026-63073", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63073" + }, + { + "VulnerabilityID": "CVE-2026-63074", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63074" + }, + { + "VulnerabilityID": "CVE-2026-63075", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63075" + }, + { + "VulnerabilityID": "CVE-2026-7383", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-7383" + }, + { + "VulnerabilityID": "CVE-2026-75803", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.7-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-75803" + }, + { + "VulnerabilityID": "CVE-2026-88822", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88822" + }, + { + "VulnerabilityID": "CVE-2026-88823", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-88823" + }, + { + "VulnerabilityID": "CVE-2026-9076", + "PkgName": "openssl-provider-legacy", + "InstalledVersion": "3.5.4-1~deb13u2", + "FixedVersion": "3.5.6-1~deb13u2", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9076" + }, + { + "VulnerabilityID": "CVE-2007-5686", + "PkgName": "passwd", + "InstalledVersion": "1:4.17.4-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2007-5686" + }, + { + "VulnerabilityID": "CVE-2024-56433", + "PkgName": "passwd", + "InstalledVersion": "1:4.17.4-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2024-56433" + }, + { + "VulnerabilityID": "TEMP-0628843-DBAD28", + "PkgName": "passwd", + "InstalledVersion": "1:4.17.4-2", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0628843-DBAD28" + }, + { + "VulnerabilityID": "CVE-2026-135901", + "PkgName": "passwd", + "InstalledVersion": "1:4.17.4-2", + "FixedVersion": "1:4.17.4-2+deb13u1", + "Severity": "UNKNOWN", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-135901" + }, + { + "VulnerabilityID": "CVE-2026-13221", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13221" + }, + { + "VulnerabilityID": "CVE-2026-42496", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42496" + }, + { + "VulnerabilityID": "CVE-2026-8376", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8376" + }, + { + "VulnerabilityID": "CVE-2026-42497", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42497" + }, + { + "VulnerabilityID": "CVE-2026-48962", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-48962" + }, + { + "VulnerabilityID": "CVE-2026-57432", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-57432" + }, + { + "VulnerabilityID": "CVE-2026-57433", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-57433" + }, + { + "VulnerabilityID": "CVE-2026-9538", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-9538" + }, + { + "VulnerabilityID": "CVE-2025-15649", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-15649" + }, + { + "VulnerabilityID": "CVE-2026-12087", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-12087" + }, + { + "VulnerabilityID": "CVE-2026-15534", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "fix_deferred", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-15534" + }, + { + "VulnerabilityID": "CVE-2026-19487", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19487" + }, + { + "VulnerabilityID": "CVE-2026-48959", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-48959" + }, + { + "VulnerabilityID": "CVE-2026-48961", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-48961" + }, + { + "VulnerabilityID": "CVE-2026-7010", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-7010" + }, + { + "VulnerabilityID": "CVE-2026-7017", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": "5.40.1-6+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-7017" + }, + { + "VulnerabilityID": "CVE-2026-82560", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-82560" + }, + { + "VulnerabilityID": "CVE-2011-4116", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2011-4116" + }, + { + "VulnerabilityID": "CVE-2026-40558", + "PkgName": "perl-base", + "InstalledVersion": "5.40.1-6", + "FixedVersion": null, + "Severity": "UNKNOWN", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-40558" + }, + { + "VulnerabilityID": "CVE-2026-5958", + "PkgName": "sed", + "InstalledVersion": "4.9-2", + "FixedVersion": "4.9-2+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5958" + }, + { + "VulnerabilityID": "TEMP-0517018-A83CE6", + "PkgName": "sysvinit-utils", + "InstalledVersion": "3.14-4", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0517018-A83CE6" + }, + { + "VulnerabilityID": "CVE-2026-18477", + "PkgName": "tar", + "InstalledVersion": "1.35+dfsg-3.1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18477" + }, + { + "VulnerabilityID": "CVE-2026-18508", + "PkgName": "tar", + "InstalledVersion": "1.35+dfsg-3.1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-18508" + }, + { + "VulnerabilityID": "CVE-2026-5704", + "PkgName": "tar", + "InstalledVersion": "1.35+dfsg-3.1", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5704" + }, + { + "VulnerabilityID": "CVE-2005-2541", + "PkgName": "tar", + "InstalledVersion": "1.35+dfsg-3.1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2005-2541" + }, + { + "VulnerabilityID": "TEMP-0290435-0B57B5", + "PkgName": "tar", + "InstalledVersion": "1.35+dfsg-3.1", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://security-tracker.debian.org/tracker/TEMP-0290435-0B57B5" + }, + { + "VulnerabilityID": "CVE-2026-53612", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53612" + }, + { + "VulnerabilityID": "CVE-2026-53613", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53613" + }, + { + "VulnerabilityID": "CVE-2026-53614", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53614" + }, + { + "VulnerabilityID": "CVE-2026-53615", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-53615" + }, + { + "VulnerabilityID": "CVE-2026-76642", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-76642" + }, + { + "VulnerabilityID": "CVE-2026-78408", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78408" + }, + { + "VulnerabilityID": "CVE-2026-78409", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78409" + }, + { + "VulnerabilityID": "CVE-2026-78410", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "HIGH", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78410" + }, + { + "VulnerabilityID": "CVE-2026-13595", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13595" + }, + { + "VulnerabilityID": "CVE-2026-27456", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.5-0+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27456" + }, + { + "VulnerabilityID": "CVE-2026-3184", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "MEDIUM", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-3184" + }, + { + "VulnerabilityID": "CVE-2022-0563", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": null, + "Severity": "LOW", + "Status": "affected", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2022-0563" + }, + { + "VulnerabilityID": "CVE-2025-14104", + "PkgName": "util-linux", + "InstalledVersion": "2.41-5", + "FixedVersion": "2.41.3-1", + "Severity": "LOW", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14104" + }, + { + "VulnerabilityID": "CVE-2026-85091", + "PkgName": "zlib1g", + "InstalledVersion": "1:1.3.dfsg+really1.3.1-1+b1", + "FixedVersion": "1:1.3.dfsg+really1.3.1-1+deb13u1", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85091" + }, + { + "VulnerabilityID": "CVE-2026-27171", + "PkgName": "zlib1g", + "InstalledVersion": "1:1.3.dfsg+really1.3.1-1+b1", + "FixedVersion": "1:1.3.dfsg+really1.3.1-1+deb13u1", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27171" + } + ] + }, + "java-scan-before": { + "command": "Initial recorded Trivy 0.69.3 baseline; see SCAN_TRIAGE.md", + "exit_code": 0, + "artifact": "/app", + "scanner": [], + "raw_sha256": "205c2ce457cb8c36ebe1025445aa84692b8ba22294e547bdd87022695eb99b1f", + "findings": 28, + "severity": { + "HIGH": 15, + "MEDIUM": 7, + "CRITICAL": 6 + }, + "resolved_package_records": 163, + "vulnerabilities": [ + { + "VulnerabilityID": "CVE-2026-89407", + "PkgName": "com.fasterxml.jackson.core:jackson-core", + "InstalledVersion": "2.21.5", + "FixedVersion": "2.18.11, 2.21.7, 2.22.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89407" + }, + { + "VulnerabilityID": "CVE-2026-89425", + "PkgName": "com.fasterxml.jackson.core:jackson-core", + "InstalledVersion": "2.21.5", + "FixedVersion": "2.21.7, 2.22.3, 2.18.11", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89425" + }, + { + "VulnerabilityID": "CVE-2026-68497", + "PkgName": "com.fasterxml.jackson.core:jackson-databind", + "InstalledVersion": "2.21.5", + "FixedVersion": "2.18.10, 2.21.6, 2.22.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-68497" + }, + { + "VulnerabilityID": "CVE-2026-91776", + "PkgName": "com.fasterxml.jackson.core:jackson-databind", + "InstalledVersion": "2.21.5", + "FixedVersion": "2.18.11, 2.21.7, 2.22.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-91776" + }, + { + "VulnerabilityID": "CVE-2026-91777", + "PkgName": "com.fasterxml.jackson.core:jackson-databind", + "InstalledVersion": "2.21.5", + "FixedVersion": "2.21.7, 2.18.11, 2.22.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-91777" + }, + { + "VulnerabilityID": "CVE-2026-19032", + "PkgName": "com.fasterxml.jackson.core:jackson-databind", + "InstalledVersion": "2.21.5", + "FixedVersion": "2.18.10, 2.21.6, 2.22.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19032" + }, + { + "VulnerabilityID": "CVE-2026-83557", + "PkgName": "com.fasterxml.jackson.core:jackson-databind", + "InstalledVersion": "2.21.5", + "FixedVersion": "2.18.10, 2.21.6, 2.22.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-83557" + }, + { + "VulnerabilityID": "CVE-2026-102554", + "PkgName": "com.google.guava:guava", + "InstalledVersion": "33.6.0-jre", + "FixedVersion": "33.7.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-102554" + }, + { + "VulnerabilityID": "CVE-2026-118259", + "PkgName": "io.opentelemetry:opentelemetry-api", + "InstalledVersion": "1.62.0", + "FixedVersion": "1.67.0", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-118259" + }, + { + "VulnerabilityID": "CVE-2026-65182", + "PkgName": "org.apache.tomcat.embed:tomcat-embed-core", + "InstalledVersion": "11.0.24", + "FixedVersion": "11.0.25, 10.1.58, 9.0.121", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-65182" + }, + { + "VulnerabilityID": "CVE-2026-65637", + "PkgName": "org.apache.tomcat.embed:tomcat-embed-core", + "InstalledVersion": "11.0.24", + "FixedVersion": "11.0.25, 10.1.59, 9.0.121", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-65637" + }, + { + "VulnerabilityID": "CVE-2026-65905", + "PkgName": "org.apache.tomcat.embed:tomcat-embed-core", + "InstalledVersion": "11.0.24", + "FixedVersion": "11.0.25, 10.1.58, 9.0.121", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-65905" + }, + { + "VulnerabilityID": "CVE-2026-68525", + "PkgName": "org.apache.tomcat.embed:tomcat-embed-core", + "InstalledVersion": "11.0.24", + "FixedVersion": "11.0.25, 10.1.58, 9.0.121", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-68525" + }, + { + "VulnerabilityID": "CVE-2025-14813", + "PkgName": "org.bouncycastle:bcprov-jdk18on", + "InstalledVersion": "1.78.1", + "FixedVersion": "1.80.2, 1.81.1, 1.84", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-14813" + }, + { + "VulnerabilityID": "CVE-2026-8763", + "PkgName": "org.bouncycastle:bcprov-jdk18on", + "InstalledVersion": "1.78.1", + "FixedVersion": "1.85", + "Severity": "CRITICAL", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-8763" + }, + { + "VulnerabilityID": "CVE-2026-13506", + "PkgName": "org.bouncycastle:bcprov-jdk18on", + "InstalledVersion": "1.78.1", + "FixedVersion": "1.85", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-13506" + }, + { + "VulnerabilityID": "CVE-2026-5598", + "PkgName": "org.bouncycastle:bcprov-jdk18on", + "InstalledVersion": "1.78.1", + "FixedVersion": "1.84, 1.80.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-5598" + }, + { + "VulnerabilityID": "CVE-2026-0636", + "PkgName": "org.bouncycastle:bcprov-jdk18on", + "InstalledVersion": "1.78.1", + "FixedVersion": "1.80.2, 1.81.1, 1.84", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-0636" + }, + { + "VulnerabilityID": "CVE-2026-108106", + "PkgName": "org.xerial.snappy:snappy-java", + "InstalledVersion": "1.1.10.8", + "FixedVersion": "1.1.10.9", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-108106" + }, + { + "VulnerabilityID": "CVE-2026-93451", + "PkgName": "org.xerial.snappy:snappy-java", + "InstalledVersion": "1.1.10.8", + "FixedVersion": "1.1.10.9", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-93451" + }, + { + "VulnerabilityID": "CVE-2026-116590", + "PkgName": "org.xerial.snappy:snappy-java", + "InstalledVersion": "1.1.10.8", + "FixedVersion": "1.1.10.9", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116590" + }, + { + "VulnerabilityID": "CVE-2026-89407", + "PkgName": "tools.jackson.core:jackson-core", + "InstalledVersion": "3.1.5", + "FixedVersion": "3.1.7, 3.2.2", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89407" + }, + { + "VulnerabilityID": "CVE-2026-89425", + "PkgName": "tools.jackson.core:jackson-core", + "InstalledVersion": "3.1.5", + "FixedVersion": "3.1.7, 3.2.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-89425" + }, + { + "VulnerabilityID": "CVE-2026-68497", + "PkgName": "tools.jackson.core:jackson-databind", + "InstalledVersion": "3.1.5", + "FixedVersion": "3.2.2, 3.1.6", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-68497" + }, + { + "VulnerabilityID": "CVE-2026-91776", + "PkgName": "tools.jackson.core:jackson-databind", + "InstalledVersion": "3.1.5", + "FixedVersion": "3.1.7, 3.2.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-91776" + }, + { + "VulnerabilityID": "CVE-2026-91777", + "PkgName": "tools.jackson.core:jackson-databind", + "InstalledVersion": "3.1.5", + "FixedVersion": "3.1.7, 3.2.3", + "Severity": "HIGH", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-91777" + }, + { + "VulnerabilityID": "CVE-2026-19032", + "PkgName": "tools.jackson.core:jackson-databind", + "InstalledVersion": "3.1.5", + "FixedVersion": "3.1.6, 3.2.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-19032" + }, + { + "VulnerabilityID": "CVE-2026-83557", + "PkgName": "tools.jackson.core:jackson-databind", + "InstalledVersion": "3.1.5", + "FixedVersion": "3.1.6, 3.2.2", + "Severity": "MEDIUM", + "Status": "fixed", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-83557" + } + ] + } + } +} diff --git a/evidence/security-auth.json b/evidence/security-auth.json new file mode 100644 index 0000000..f443d73 --- /dev/null +++ b/evidence/security-auth.json @@ -0,0 +1,37 @@ +{ + "status": "PASS", + "argon2id": { + "memory_kib": 19456, + "iterations": 2, + "parallelism": 1, + "salt_bytes": 16, + "hash_bytes": 32, + "rehash_on_success": true + }, + "login_measurement": { + "samples": 12, + "end_to_end_ms": { + "p50": 85.5, + "p95": 750.0 + }, + "api_cpu_limit": 1, + "api_memory_mib": 512 + }, + "dos_budget": { + "global_per_minute": 60, + "per_replica_hash_slots": 2, + "replicas": 2, + "max_simultaneous_kdf_memory_mib": 76, + "attempts": 72, + "concurrency": 8, + "duration_seconds": 2.344, + "statuses": { + "401": 12, + "429": 60 + }, + "shared_saturating_counter": 61, + "retry_after": true + }, + "expiry_rejected": true, + "limitations": "fixed global minute window; at a window boundary up to 120 admissions; global protection may deny legitimate users during abuse; latency includes HTTP/TLS/DB" +} diff --git a/evidence/security-auth.txt b/evidence/security-auth.txt new file mode 100644 index 0000000..0410468 --- /dev/null +++ b/evidence/security-auth.txt @@ -0,0 +1,42 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/security_auth.py"] +UTC: 2026-11-27T18:55:15.519940+00:00 +Exit code: 0 +Elapsed seconds: 9.391 + +{ + "status": "PASS", + "argon2id": { + "memory_kib": 19456, + "iterations": 2, + "parallelism": 1, + "salt_bytes": 16, + "hash_bytes": 32, + "rehash_on_success": true + }, + "login_measurement": { + "samples": 12, + "end_to_end_ms": { + "p50": 85.5, + "p95": 750.0 + }, + "api_cpu_limit": 1, + "api_memory_mib": 512 + }, + "dos_budget": { + "global_per_minute": 60, + "per_replica_hash_slots": 2, + "replicas": 2, + "max_simultaneous_kdf_memory_mib": 76, + "attempts": 72, + "concurrency": 8, + "duration_seconds": 2.344, + "statuses": { + "401": 12, + "429": 60 + }, + "shared_saturating_counter": 61, + "retry_after": true + }, + "expiry_rejected": true, + "limitations": "fixed global minute window; at a window boundary up to 120 admissions; global protection may deny legitimate users during abuse; latency includes HTTP/TLS/DB" +} diff --git a/evidence/security-baseline.txt b/evidence/security-baseline.txt new file mode 100644 index 0000000..665c567 --- /dev/null +++ b/evidence/security-baseline.txt @@ -0,0 +1,61 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/security_baseline.py"] +UTC: 2026-11-27T18:55:24.907874+00:00 +Exit code: 0 +Elapsed seconds: 12.796 + +{ + "status": "PASS", + "baseline": { + "database": { + "isolation": "transaction rolled back; NOLOGIN role", + "read_password_table": true, + "read_session_table": true, + "delete_messages_permission": true, + "ddl": true + }, + "broker": { + "isolation": "separate disposable network-none container, no volumes", + "foreign_keys": true, + "flush_all": true + }, + "s3": { + "isolation": "disposable private bucket and temporary principal", + "arbitrary_prefix_put_get_delete": true + } + }, + "least_privilege": { + "status": "PASS", + "identity": "worker", + "database": { + "tls": true, + "plaintext_denied": true, + "wrong_hostname_denied": true, + "foreign_ca_denied": true, + "read_jobs": true, + "users_denied": true, + "sessions_denied": true, + "message_delete_denied": true, + "ddl_denied": true, + "superuser_denied": true, + "ownership_columns_denied": true + }, + "broker": { + "mtls": true, + "plaintext_denied": true, + "wrong_hostname_denied": true, + "foreign_ca_denied": true, + "read_index": true, + "flush_denied": true, + "foreign_key_denied": true, + "producer_denied": true + }, + "s3": { + "results_put_get": true, + "admin_prefix_denied": true, + "result_delete_denied": true, + "bucket_admin_denied": true, + "prefix_enumeration_denied": true + } + }, + "interpretation": "Reproduces broad lab6 permissions in isolated resources; production lab7 privileges are never broadened. Worker can still corrupt pipeline metadata/results, exhaust its processing budget and read image originals; revocation is needed in addition to least privilege." +} diff --git a/evidence/security-inventory.json b/evidence/security-inventory.json new file mode 100644 index 0000000..ec669c2 --- /dev/null +++ b/evidence/security-inventory.json @@ -0,0 +1,551 @@ +{ + "status": "PASS", + "host": { + "platform": "Windows-11-10.0.26200-SP0", + "logical_cpus": 8, + "docker_cpus": 8, + "docker_memory_bytes": 8212672512, + "docker_version": "29.9.2" + }, + "containers": [ + { + "role": "api", + "container": "messenger-lab7-api-1", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "user": "spring", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 536870912, + "nano_cpus": 1000000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/runtime" + ] + }, + { + "role": "api", + "container": "messenger-lab7-api-2", + "image": "sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6", + "user": "spring", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 536870912, + "nano_cpus": 1000000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/runtime" + ] + }, + { + "role": "api-agent", + "container": "messenger-lab7-api-agent-1", + "image": "sha256:3963efa1063f445107db0254157d85eb5b54523d7f67ea669df71a3c7ffcb9d2", + "user": "worker", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 67108864, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/runtime" + ] + }, + { + "role": "broker", + "container": "messenger-lab7-broker-1", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "user": "999:999", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 134217728, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/data", + "/config/broker.acl" + ] + }, + { + "role": "db", + "container": "messenger-lab7-db-1", + "image": "sha256:0cefaabd882e42bcb2a2f3dc56d3ce4770560ba62fd7f197f1a2e008fd5731ab", + "user": "", + "read_only": false, + "cap_drop": null, + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 536870912, + "nano_cpus": 1000000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/start.sh", + "/etc/pg_hba.conf", + "/operator/postgres_password", + "/var/lib/postgresql/data" + ] + }, + { + "role": "dispatcher", + "container": "messenger-lab7-dispatcher-1", + "image": "sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d", + "user": "worker", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 268435456, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/runtime" + ] + }, + { + "role": "dispatcher-agent", + "container": "messenger-lab7-dispatcher-agent-1", + "image": "sha256:5160c2b7f8b00f98cbebce3ffd8357c88b1675a0a7432745e4e1989bcd4160c3", + "user": "worker", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 67108864, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/runtime" + ] + }, + { + "role": "gateway", + "container": "messenger-lab7-gateway-1", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "user": "101:101", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 67108864, + "nano_cpus": 500000000, + "published": { + "3000/tcp": [ + { + "HostIp": "127.0.0.1", + "HostPort": "13007" + } + ] + }, + "mount_destinations": [ + "/identity", + "/pki", + "/etc/nginx/nginx.conf" + ] + }, + { + "role": "grafana", + "container": "messenger-lab7-grafana-1", + "image": "sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa", + "user": "472", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 268435456, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/start.sh", + "/operator/grafana_password", + "/etc/grafana/provisioning", + "/var/lib/grafana", + "/var/lib/grafana/dashboards" + ] + }, + { + "role": "lb", + "container": "messenger-lab7-lb-1", + "image": "sha256:8eb04fe3b385090e9aa02961f77398ad09b6bf33ab07f6669a5bb7acce22c0d3", + "user": "101:101", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 67108864, + "nano_cpus": 500000000, + "published": { + "8443/tcp": [ + { + "HostIp": "127.0.0.1", + "HostPort": "8443" + } + ] + }, + "mount_destinations": [ + "/identity", + "/pki", + "/etc/nginx/nginx.conf" + ] + }, + { + "role": "loki", + "container": "messenger-lab7-loki-1", + "image": "sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745", + "user": "10001", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 402653184, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/loki", + "/etc/loki/loki.yaml" + ] + }, + { + "role": "minio", + "container": "messenger-lab7-minio-1", + "image": "sha256:7bb2aff6b89efe1cb1303c10fc21d579447434ed06649ac9ec05a5e2dbf30ad7", + "user": "10001:10001", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 402653184, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/certs", + "/data", + "/pki", + "/operator/minio_root_password", + "/operator/minio_root_user" + ] + }, + { + "role": "openbao", + "container": "messenger-lab7-openbao-1", + "image": "sha256:ba4b133eb9586630024e71a617e66f37f29cc3534cdd46a6233e098ceded8dc9", + "user": "100:1000", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 268435456, + "nano_cpus": 500000000, + "published": { + "8200/tcp": [ + { + "HostIp": "127.0.0.1", + "HostPort": "18200" + } + ] + }, + "mount_destinations": [ + "/identity", + "/pki", + "/bao/file", + "/etc/bao/config.hcl" + ] + }, + { + "role": "otel-collector", + "container": "messenger-lab7-otel-collector-1", + "image": "sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7", + "user": "10001:10001", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 201326592, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/etc/otelcol/collector.yaml" + ] + }, + { + "role": "prometheus", + "container": "messenger-lab7-prometheus-1", + "image": "sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d", + "user": "nobody", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 268435456, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/prometheus", + "/etc/prometheus/alerts.yaml", + "/etc/prometheus/prometheus.yaml" + ] + }, + { + "role": "redis", + "container": "messenger-lab7-redis-1", + "image": "sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f", + "user": "999:999", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 134217728, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/data", + "/config/redis.acl" + ] + }, + { + "role": "tempo", + "container": "messenger-lab7-tempo-1", + "image": "sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e", + "user": "10001:10001", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 268435456, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/var/tempo", + "/etc/tempo/tempo.yaml" + ] + }, + { + "role": "worker", + "container": "messenger-lab7-worker-1", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "user": "worker", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 1073741824, + "nano_cpus": 1000000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/runtime" + ] + }, + { + "role": "worker", + "container": "messenger-lab7-worker-2", + "image": "sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec", + "user": "worker", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 1073741824, + "nano_cpus": 1000000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/runtime" + ] + }, + { + "role": "worker-agent", + "container": "messenger-lab7-worker-agent-1", + "image": "sha256:7958b6df64f520d0d294076649c703d9aad297720320a1b7ec7836be7134bd41", + "user": "worker", + "read_only": true, + "cap_drop": [ + "ALL" + ], + "security_opt": [ + "no-new-privileges:true" + ], + "memory_bytes": 67108864, + "nano_cpus": 500000000, + "published": {}, + "mount_destinations": [ + "/identity", + "/pki", + "/runtime" + ] + } + ], + "no_private_values_in_environment_or_recent_logs": true, + "unchanged_contract_and_public_tests": [ + { + "path": "README.md", + "sha256": "abf9ba538be4a4c2933871a05915c015edd769b69dbba9acfc5ec09b269db8c4" + }, + { + "path": "COURSE.md", + "sha256": "1e3c65e345b7f89d08ed86a3b50061935ee8157907cb4043cfa40689781f54e0" + }, + { + "path": "CONTRIBUTING.md", + "sha256": "08f247085938bd1efc4b8f7f48e3d520b1dc11ce569f4259491e8f01b9abd02c" + }, + { + "path": "MAINTAINERS.md", + "sha256": "fea16411b0742e524780ae52b276c509e1451acd2383fa366ff25dce4001869c" + }, + { + "path": "Makefile", + "sha256": "99f06720c21e53b5fb6bb0f46aeddf9d37dd6bfa107d4d4581d23a3ad3d30ee3" + }, + { + "path": "lab.json", + "sha256": "7237c0cba03dac630ac0cfcb58243656f809337fc35f09113b62103590b840dd" + }, + { + "path": "contracts/README.md", + "sha256": "4c04faede4a2ffa35183455b51da21764b7fa3997c0a4b3963614b82586eed28" + }, + { + "path": "contracts/attachment-states.md", + "sha256": "d7c4c39e5393fc40d2aa5065a8b874274110eb8553f47c05d31df17c0fa41d21" + }, + { + "path": "contracts/examples.json", + "sha256": "2816da2e63058d55bdcbeceb92b231ea2509c86df8c5a0aa908be83bd0599469" + }, + { + "path": "contracts/infrastructure.json", + "sha256": "1bc53ef42061f4809b3439235feef0c7bd9dfdac0b3e9858ff41c320ba3ba7a7" + }, + { + "path": "contracts/jobs.schema.json", + "sha256": "060362d0877c07a5229556ac5aa012e164931e78df72761f6a84771c6ac2a9f9" + }, + { + "path": "contracts/observability.md", + "sha256": "b11ebf3ad60d6e39ed83d9bc8c7f3b0c038dec9daec8a5560bca3cefa506dac1" + }, + { + "path": "contracts/openapi.json", + "sha256": "b7dcbeee1b85223706981a1c4af0f656252ac7632ef3af7681145ee132b226f6" + }, + { + "path": "tests/README.md", + "sha256": "89afb3063ec0ccd7cb68fdac1de57513f9cc81b77bad96f202daaca2b66a5e82" + }, + { + "path": "tests/client.py", + "sha256": "b318084e2a4c380db91a55d082190bf33979fa556a4c4ca87e01f46ae275775c" + }, + { + "path": "tests/fixtures/README.md", + "sha256": "0eaa4e8837032d1786fc0c4b1576656ff3f4d1931fdd51b80e5c053f88ab3872" + }, + { + "path": "tests/fixtures/sample.png", + "sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75" + }, + { + "path": "tests/image_probe.py", + "sha256": "ef48d8882ab138b9699a173e7419e5814c22a10b01b6b0ddbb50ea49481a5baa" + }, + { + "path": "tests/load.py", + "sha256": "9a9aff05e109630e243c3b092d7bd564344e4872b29e38b6618647a08460a72e" + }, + { + "path": "tests/resilience.py", + "sha256": "4ba30b9c81a0664127ddab2b0bea5e76aa2087be8bb25aa13cd5a8e69be23fdd" + }, + { + "path": "tests/security.py", + "sha256": "f26d9484914500e37a092587e35cb11b4f0ca0cfe348388802d06087d9f68038" + }, + { + "path": "tests/smoke.py", + "sha256": "354e168e1e644145c3ff50bbbe189fd217cce5659aa125f588098025ffab0fdf" + } + ], + "trust_matrix": "required student-filled exception" +} diff --git a/evidence/security-inventory.txt b/evidence/security-inventory.txt new file mode 100644 index 0000000..8707b91 --- /dev/null +++ b/evidence/security-inventory.txt @@ -0,0 +1,6 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/security_inventory.py"] +UTC: 2026-11-27T19:03:37.651458+00:00 +Exit code: 0 +Elapsed seconds: 2.968 + +PASS actual container hardening, two API and two workers, no published replica ports, scoped mounts, secret-free environments/logs, original contracts and public tests diff --git a/evidence/security-lifecycle.json b/evidence/security-lifecycle.json new file mode 100644 index 0000000..d426843 --- /dev/null +++ b/evidence/security-lifecycle.json @@ -0,0 +1,30 @@ +{ + "status": "PASS", + "track": 1, + "confirmed_jobs": 10, + "ready_after_revoke": 10, + "originals_sha256_verified": 10, + "manifest_rows": 30, + "distinct_attachments": 10, + "revocation": { + "status": "PASS", + "fresh_connections": true, + "old_certificate_collector_denied": true, + "old_certificate_broker_with_current_password_denied": true, + "old_certificate_bao_auth_denied": true, + "old_postgres_password_denied": true, + "disabled_s3_key_denied": true, + "tls_resumption": "gateway tickets and cache disabled" + }, + "recovery_seconds": 24.062, + "images_unchanged": true, + "expiry": "PASS expired allowed-role certificate rejected", + "sealed_bao": { + "readiness_fail_closed_seconds": 38.062, + "recovery_seconds": 10.329, + "liveness": 200, + "existing_session_survives": true, + "total_seconds": 49.61 + }, + "limitations": "single host; in-flight requests finish within their existing operation budgets; static KV credentials require explicit downstream revocation" +} diff --git a/evidence/security-lifecycle.txt b/evidence/security-lifecycle.txt new file mode 100644 index 0000000..861752f --- /dev/null +++ b/evidence/security-lifecycle.txt @@ -0,0 +1,40 @@ +Command: ["D:\\Лабы\\mtusi2026lab7\\.venv\\Scripts\\python.exe", "student-tests/security_lifecycle.py"] +UTC: 2026-11-27T18:56:42.276618+00:00 +Exit code: 0 +Elapsed seconds: 84.171 + +Accepted ten durable jobs before revocation +Schema and restricted database roles ready. +Local runtime files prepared. +Private S3 bucket and separate prefix policies ready. +Persistent OpenBao initialized/unsealed; scoped cert authentication configured. +{ + "status": "PASS", + "track": 1, + "confirmed_jobs": 10, + "ready_after_revoke": 10, + "originals_sha256_verified": 10, + "manifest_rows": 30, + "distinct_attachments": 10, + "revocation": { + "status": "PASS", + "fresh_connections": true, + "old_certificate_collector_denied": true, + "old_certificate_broker_with_current_password_denied": true, + "old_certificate_bao_auth_denied": true, + "old_postgres_password_denied": true, + "disabled_s3_key_denied": true, + "tls_resumption": "gateway tickets and cache disabled" + }, + "recovery_seconds": 24.062, + "images_unchanged": true, + "expiry": "PASS expired allowed-role certificate rejected", + "sealed_bao": { + "readiness_fail_closed_seconds": 38.062, + "recovery_seconds": 10.329, + "liveness": 200, + "existing_session_survives": true, + "total_seconds": 49.61 + }, + "limitations": "single host; in-flight requests finish within their existing operation budgets; static KV credentials require explicit downstream revocation" +} diff --git a/evidence/signal-link.json b/evidence/signal-link.json new file mode 100644 index 0000000..0a68489 --- /dev/null +++ b/evidence/signal-link.json @@ -0,0 +1,126 @@ +{ + "trace_id": "8ff2ec7e016abe7fb5b85dc088c777e9", + "request_id": "15602087-4d40-4038-8dbd-9a0c1795bcd3", + "spans": [ + { + "name": "POST /api/v1/chats/{chat_id}/attachments", + "service": "messenger-api", + "spanId": "dNY7PX/tCPo=", + "parentSpanId": null, + "kind": "SPAN_KIND_SERVER", + "status": {} + }, + { + "name": "postgres.session.lookup", + "service": "messenger-api", + "spanId": "1GVRIsXVxs8=", + "parentSpanId": "dNY7PX/tCPo=", + "kind": "SPAN_KIND_CLIENT", + "status": {} + }, + { + "name": "s3.staging.put", + "service": "messenger-api", + "spanId": "DGxlswlZTmg=", + "parentSpanId": "dNY7PX/tCPo=", + "kind": "SPAN_KIND_CLIENT", + "status": {} + }, + { + "name": "attachments publish", + "service": "messenger-dispatcher", + "spanId": "hWQ45I7dSX4=", + "parentSpanId": "dNY7PX/tCPo=", + "kind": "SPAN_KIND_PRODUCER", + "status": {} + }, + { + "name": "attachments consume", + "service": "messenger-worker", + "spanId": "fwKvoD/1x3M=", + "parentSpanId": "hWQ45I7dSX4=", + "kind": "SPAN_KIND_CONSUMER", + "status": { + "code": "STATUS_CODE_ERROR" + } + }, + { + "name": "attachment.process", + "service": "messenger-worker", + "spanId": "J9utCKS3fhg=", + "parentSpanId": "fwKvoD/1x3M=", + "kind": "SPAN_KIND_INTERNAL", + "status": {} + }, + { + "name": "postgres.claim", + "service": "messenger-worker", + "spanId": "sKlqrTTngM4=", + "parentSpanId": "J9utCKS3fhg=", + "kind": "SPAN_KIND_INTERNAL", + "status": {} + }, + { + "name": "attachments publish", + "service": "messenger-dispatcher", + "spanId": "4LECEmLz7XQ=", + "parentSpanId": "dNY7PX/tCPo=", + "kind": "SPAN_KIND_PRODUCER", + "status": {} + }, + { + "name": "attachments consume", + "service": "messenger-worker", + "spanId": "9D8edhPb6ZU=", + "parentSpanId": "4LECEmLz7XQ=", + "kind": "SPAN_KIND_CONSUMER", + "status": {} + }, + { + "name": "attachment.process", + "service": "messenger-worker", + "spanId": "L/iUFHEfW1E=", + "parentSpanId": "9D8edhPb6ZU=", + "kind": "SPAN_KIND_INTERNAL", + "status": {} + }, + { + "name": "postgres.claim", + "service": "messenger-worker", + "spanId": "eigBdv7rcz0=", + "parentSpanId": "L/iUFHEfW1E=", + "kind": "SPAN_KIND_INTERNAL", + "status": {} + }, + { + "name": "s3.staging.read", + "service": "messenger-worker", + "spanId": "cTzIY4E1ioU=", + "parentSpanId": "L/iUFHEfW1E=", + "kind": "SPAN_KIND_INTERNAL", + "status": {} + }, + { + "name": "image.render_and_write", + "service": "messenger-worker", + "spanId": "fIy5P7y+PvE=", + "parentSpanId": "L/iUFHEfW1E=", + "kind": "SPAN_KIND_INTERNAL", + "status": {} + }, + { + "name": "postgres.publish_result", + "service": "messenger-worker", + "spanId": "DC/dHFi5C0c=", + "parentSpanId": "L/iUFHEfW1E=", + "kind": "SPAN_KIND_INTERNAL", + "status": {} + } + ], + "worker_events": [ + "worker.delivery", + "worker.ready", + "worker.retry" + ], + "marker_absent": true +} diff --git a/evidence/source-manifest.json b/evidence/source-manifest.json new file mode 100644 index 0000000..cc28937 --- /dev/null +++ b/evidence/source-manifest.json @@ -0,0 +1,986 @@ +{ + "utc": "2026-11-27T19:04:13.848102+00:00", + "upstream_base": "20afc2c", + "branch": "solution/bvt2301-ivanov", + "method": "SHA-256 of staged source bytes; source list excludes evidence to avoid recursive hashes. Compare files after checkout with LF endings.", + "no_known_secrets_or_private_keys_staged": true, + "captured_commands_successful": true, + "source_files": [ + { + "path": ".dockerignore", + "sha256": "62c0534ad74d9f0e2982e97d1fbadb66d80c493ed237df5bcb9fbb797062eb38" + }, + { + "path": ".editorconfig", + "sha256": "e1f0d4738f5eb17f62588ed013a0de9b6be25d623f0abb1f02ed44a6fb8131e5" + }, + { + "path": ".env.example", + "sha256": "5ebae6e3c45c2db8fd4cf42839fea1d067a556ed9e81c145d79f09b5f987a579" + }, + { + "path": ".gitattributes", + "sha256": "d6b3dee1005c327b573bfaa8c9335d915a0bcd46db134b732eb99c17941c2c95" + }, + { + "path": ".github/pull_request_template.md", + "sha256": "a4fabdd8c4970c00e8af76550a90e3c9d8e7aa4843e78122682a30aca5c7551a" + }, + { + "path": ".github/workflows/application.yml", + "sha256": "9402e4bb87f0d125f486aa954236b784ee8b51245cf9348b114cebbe8b2066ce" + }, + { + "path": ".github/workflows/contracts.yml", + "sha256": "a45d7932ef14130aff8020bce79f043cccaf9692d697088a754d309a03f7d3e8" + }, + { + "path": ".gitignore", + "sha256": "5647a29c431f152a24be8421406b88488eb75c3c706fe00cee37c1b7d04cd31a" + }, + { + "path": "CONTRIBUTING.md", + "sha256": "2c01dd698cc9653dece49a94c9fd3f58d36e84764aaa643b46e26d7e599dc12e" + }, + { + "path": "COURSE.md", + "sha256": "c34d53cd082d194aa4b58f504c4e0348d25b6afec3d6a9c0963dd01c9c81e971" + }, + { + "path": "Dockerfile", + "sha256": "601d9b756990c8ad0fea7e30c0d8455766180218d0173b746e14d184cc0ca41f" + }, + { + "path": "Dockerfile.example", + "sha256": "fd7ac9491c0c3c663b083c41a762fb38bc2d212fa4a2ed3e6a0702af72108709" + }, + { + "path": "MAINTAINERS.md", + "sha256": "6e10c41ab1f287d3ef93cdeadbb22d49651a53e8b9d2578b279abed3931b20d1" + }, + { + "path": "Makefile", + "sha256": "9a6113472699fd6ba0fdbb152dc5abfae217bf81f2d5e473ae5f0594bc9b36f0" + }, + { + "path": "README.md", + "sha256": "69f277257a8246cf181790e6d7808e21355f4ca94b7b8fa4d60fcad026f5bd5f" + }, + { + "path": "REPORT.md", + "sha256": "1cb402c8da947a2b242cf07af4eca08f9c7123e7e8e8c618d8f18d65f86167fa" + }, + { + "path": "build.gradle", + "sha256": "924b093fb528e3d2ba5430d11439f12f96777da543519bffb0fe994542326e78" + }, + { + "path": "compose.example.yaml", + "sha256": "abcd9e7cfb57d3854a8362550cf36a0030cd417eac2a342abb5cb6c72c0e1896" + }, + { + "path": "compose.test.yaml", + "sha256": "31d0b2110e4de5c583c305ab0f54a7b72b4a14ad5fda3c8fd54fa741d8dce81f" + }, + { + "path": "contracts/README.md", + "sha256": "72df27a559f88ffa3fd8c3c79d3c32f6db2c5986a0602677c51994c434a3fc4f" + }, + { + "path": "contracts/attachment-states.md", + "sha256": "cf0519e137410e4b34ab632aadb8ad8a381d4b73033e27b354c58eeacbdf86d6" + }, + { + "path": "contracts/examples.json", + "sha256": "381cc18c03789e935b391d007fb5843964be9cfd9f7530cb6b1996ed4a1c4c37" + }, + { + "path": "contracts/infrastructure.json", + "sha256": "90b706e85ee2fcaa54e1113e98206555e0cd678caf03204c9ac363a6f1323d30" + }, + { + "path": "contracts/jobs.schema.json", + "sha256": "9ccf9b11466c0c3a26a941520ac5ff543241fc4935e3a6eebb01ef303779b10d" + }, + { + "path": "contracts/observability.md", + "sha256": "882c120c0e153a06c9cc824a802e317c58eb6590bc3d3a576f2e0a96f8597b62" + }, + { + "path": "contracts/openapi.json", + "sha256": "51dd0b8199aee7be81437056144c5fca9d82c2b4387dae62585cadf230ee749a" + }, + { + "path": "contracts/trust-matrix.md", + "sha256": "950226e7268626630d983ccd46faefaa75cc1eb92b172b9d053c6b5bbea103cf" + }, + { + "path": "docker-compose.yml", + "sha256": "321d6b5c7130c625d2cfcd1b1cd377ceb844edac464c760faa1116b6acd01400" + }, + { + "path": "examples/requests.http", + "sha256": "e69880f740f1e346354b519f14487d2bfcf1a41cbaa8cbedc61d258e7592fd3a" + }, + { + "path": "gradle/wrapper/gradle-wrapper.jar", + "sha256": "b3a875ddc1f044746e1b1a55f645584505f4a10438c1afea9f15e92a7c42ec13" + }, + { + "path": "gradle/wrapper/gradle-wrapper.properties", + "sha256": "f855a38f15e05a8375ddb6ea469f2be1c1daec015ce8cc2ad23800e5dc7259e5" + }, + { + "path": "gradlew", + "sha256": "fb68debc1b1acf8ec55dc0d5e5495e1dedd0bd6b61f304bee61613eeb2bd9b92" + }, + { + "path": "gradlew.bat", + "sha256": "9ca26d733ada3a45f27b2151288f54e75c9f95b287d1f82ef942ec5cc2d4f006" + }, + { + "path": "infra/README.md", + "sha256": "0e804fa51debba4c38d3cc84abf4704897665e0335b272060363f03aadd6354f" + }, + { + "path": "infra/openbao/README.md", + "sha256": "b44e14af0ba9fb4adbf1456e97775b544be4e9b8f9eaf4cb76fc86ac4ab8f4ae" + }, + { + "path": "infra/otel/README.md", + "sha256": "0d6c93589f7b96b7045c1b82a261362697d25f14c9e1a4946b8ea8a977c1e842" + }, + { + "path": "infra/otel/alerts.yaml", + "sha256": "d8a2d0441d67d783e1480dc9638deb3e1d234990e7c6456a8952882d797b9cdc" + }, + { + "path": "infra/otel/collector.yaml", + "sha256": "79f5d4a27360f558fdfe4825ed57b2701610de4047bf4e3360a99c010aa2c1e2" + }, + { + "path": "infra/otel/grafana/dashboards/messenger.json", + "sha256": "d5ba6843c9f402183b452dfd73848fccc945fc8b1a8417ac2b92deee1b9b432e" + }, + { + "path": "infra/otel/grafana/provisioning/dashboards/provider.yaml", + "sha256": "8c697d182ee7d236c0969baca01197a9f781dfa8e3476e27d50e34923c99df6d" + }, + { + "path": "infra/otel/grafana/provisioning/datasources/datasources.yaml", + "sha256": "5178ac7e66a8b140736d814faaf6769c4b84937d9494dea90fe40db4e2681840" + }, + { + "path": "infra/otel/loki.yaml", + "sha256": "8e76282fc5979fbc47f2593ab03124b1b146d264328635ed1678fc4a2b5d3aca" + }, + { + "path": "infra/otel/prometheus.yaml", + "sha256": "0bfcd50c591e6407e1961822fc1e7a7acea11bbd235dbcf1299fec89fd39e8a1" + }, + { + "path": "infra/otel/runbook.md", + "sha256": "82bfd20463e793b9aa9bb6799400cf71e8a4870bc350b444e6dc7e9dc2ffc79a" + }, + { + "path": "infra/otel/tempo.yaml", + "sha256": "be8d7196b26b89b81568851590ea801e5bedca5e9301ebe08dc84951551024c9" + }, + { + "path": "infra/security/api-start.sh", + "sha256": "dbb3a8f2f110736f13c8e457c96f80ec7d61e6225cf84a4b43357ec012dc2d1f" + }, + { + "path": "infra/security/bao-migrate.hcl", + "sha256": "c24a424c404a7e34de6949f4ceaf8c36c82d819221f2ad5c0dd4194ff2c85126" + }, + { + "path": "infra/security/bao.hcl", + "sha256": "6aef408dc9e6506d1c09c3446106f3bb7fa6b582d6a22fbc6c5ce0db2bbc3d64" + }, + { + "path": "infra/security/gateway.conf", + "sha256": "ca24b134acea176d7384fc6b045494fbfc47463fa83df0ae400f67f82b52e6c0" + }, + { + "path": "infra/security/grafana-start.sh", + "sha256": "e4edda2a4446925bccb7bf8af107200720fc944f2e3db81d02336e24a59c6c25" + }, + { + "path": "infra/security/pg_hba.conf", + "sha256": "eba3ad9fdb7ed393697af7cd7df6b007ded713f18b071ad7ad77a5911d0c0c72" + }, + { + "path": "infra/security/policies/api-s3.json", + "sha256": "a3f277a9d3b8c035339517b0d70f7053c3d604c35491fa3e3aba8db3e1bdd427" + }, + { + "path": "infra/security/policies/api.hcl", + "sha256": "7251a54b8fd796156f6895ad9be0ccae0fbbaa2587b9dc5f1eb73abb5d1b69f1" + }, + { + "path": "infra/security/policies/dispatcher-s3.json", + "sha256": "32d3947ae861177114c650431a129c0e6583728e9c1b33c878c84cb67a7bd1d1" + }, + { + "path": "infra/security/policies/dispatcher.hcl", + "sha256": "d6c9a2fa2d94ca765956b15da0b1ca8dea6b93107ef773de23db4a2663873d8e" + }, + { + "path": "infra/security/policies/worker-s3.json", + "sha256": "4ad0cdc8f5e2bfc11ae5f42f04271e3c7ba30fe69e91fa32e17bb49f94158589" + }, + { + "path": "infra/security/policies/worker.hcl", + "sha256": "eb01782c9d403376d76a48d1a143cdcae5ce33a1c511607db019077b5786c097" + }, + { + "path": "infra/security/postgres-start.sh", + "sha256": "e969fd0e13735910e3a08d27296e1866843fe4e33f929fba61b64934edc06105" + }, + { + "path": "lab.json", + "sha256": "f4cc620370d5c84be3d7a4422c48c05398cb28aa89185d4141b534b58e4b51c4" + }, + { + "path": "nginx.conf", + "sha256": "07a6323db3897cb11dcdf5ddfd396ff81850c875188cfcad4bcd2d940b3c938b" + }, + { + "path": "pyproject.toml", + "sha256": "3a54c899a2fe6161e250aab62f9fa45ec6715846c18b03d7fb2ab22fa38b3490" + }, + { + "path": "requirements-dev.txt", + "sha256": "4cefdb67007caf026d1613be7c519c01b4c8343db7c4f4b618677e01cf113525" + }, + { + "path": "requirements-tools.txt", + "sha256": "42f4779fa4ba13958f0eeb4d76c97035c2e183fbb54e39446f485e082e5eafaf" + }, + { + "path": "scripts/bootstrap.py", + "sha256": "449134cc9769d7f2430caf84cda0542602b42fe167089ae4eedd0f6771feb754" + }, + { + "path": "scripts/capture.py", + "sha256": "884c186a7a0d0ce5e48b90fdcd0e4a4e533ae32ed14b76c946bd976ad801da2b" + }, + { + "path": "scripts/check_contract.py", + "sha256": "7c4402c2a6ab80d3b4676e1866d6ecc87b6daea14c080bcb9be9a7e8b959d671" + }, + { + "path": "scripts/final_audit.py", + "sha256": "8dacf192332b37cfe5f6669455ff7c4f18ed64358d7dba296b85abb744c20e1b" + }, + { + "path": "scripts/provision.py", + "sha256": "4291184e7fba778bf8b691706936b1bce2266102cb883187b3f369d952e0d930" + }, + { + "path": "scripts/restart.cmd", + "sha256": "b2767427a81c747f5c7263e480e173ac927acd145cb335e0cf87b078071acbe6" + }, + { + "path": "scripts/restart.example.sh", + "sha256": "0328246ba75defbced992104e986fde973f63e3830d83251eced5953263e944b" + }, + { + "path": "scripts/restart.sh", + "sha256": "9a80ecc8c86c6c5f4c36a0fa15ad80caa71e3974d9c76a0b6854b90863a41c90" + }, + { + "path": "scripts/scan.py", + "sha256": "4a5050128520566aa74e3494e76315188d5211e4ec61b575b8b0c6fb55a6c2ea" + }, + { + "path": "scripts/stack_operator.py", + "sha256": "8e78940417c4102d6be82da75b1bc508d735dbb220f530e1ffa8137f97b9672d" + }, + { + "path": "scripts/start.ps1", + "sha256": "f72603a3e73c71a6fc7534653cfd80b7ee8185e6107a9320e04c64bdc17038bf" + }, + { + "path": "scripts/start.sh", + "sha256": "905dd7edd1546e2f25104b0f3a82fda591800ac01fc5088c642f67a6c241ecb0" + }, + { + "path": "scripts/stop-one.cmd", + "sha256": "a140c6037d95f1064aca7317de07511e8faa9a1bb17f69d180ef478879923859" + }, + { + "path": "scripts/stop-one.example.sh", + "sha256": "1bcf34394520b89d95b7605ec56675be799eea920e83cfbba306d5dc0a6d9811" + }, + { + "path": "scripts/stop-one.sh", + "sha256": "0b9d3dc83812619f7c2263154d79e42f811d73f4db2233c5dca5ff54329edc13" + }, + { + "path": "scripts/style.py", + "sha256": "9d938421a890105a9eb7f9442a802cd70c3c7c32a885c5056464fc5ce21e3162" + }, + { + "path": "scripts/validate_openapi.py", + "sha256": "4e981acbfc10dac58817bf922d5896e996798551fedc1b2385130e1cddb13d54" + }, + { + "path": "scripts/verify_pipeline.py", + "sha256": "4b6b759eb7453ab2c3d14e19ad82e02f2da88a5dc7843a7455374645baef686b" + }, + { + "path": "scripts/verify_security.py", + "sha256": "15308050fef1ac604fb98dc07f79a3d353a91982e79fa985cd20d83bb4fcb1ff" + }, + { + "path": "security/SCAN_TRIAGE.md", + "sha256": "b9577a945f9205798df55157142737a4d3006e149abe4ab7f71235ee7ba362e5" + }, + { + "path": "security/THREAT_MODEL.md", + "sha256": "3d8abe2ef4acec33b64891e44be06d932bca717cca8be348034c6aa40184fcff" + }, + { + "path": "settings.gradle", + "sha256": "5c7152552cde297219c37363c9286fd51bd2ebc33cae25a62f460eb802239a64" + }, + { + "path": "src/main/java/ru/mtusi/messenger/MessengerLab1Application.java", + "sha256": "7bf4149f9b22c101f5683c25e09ac8701be4595f33b8a87edb2ea191be6ed895" + }, + { + "path": "src/main/java/ru/mtusi/messenger/cache/CacheHealthTracker.java", + "sha256": "3858a11bee46e150295f233dab6beff8acb0dfa0a1b226dedd7ba1f13d3c77bf" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/JacksonConfig.java", + "sha256": "c385abb96f0c3b252cac8dec6bf3c924d4bc5261bb49e3b9b6859b7454ccf0dc" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/MinioConfig.java", + "sha256": "5b4832df8d2c60cb695d24ac516f32a12ceb9604601554ab918f315b2c715d08" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/OpenApiConfig.java", + "sha256": "22009d292c64c9ad296fe4b330ce582106e1cf5e65beb0896badead9dbd23925" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/RateLimitConfig.java", + "sha256": "2caec3f3e0d2a3355ad617335bcc550e64c07773244f9f54913d5f5738317a7e" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/RedisConfig.java", + "sha256": "c580d2a4d8b050d68ae2945c4ea00c9619e7229219a40290499a6b56cdfe75bb" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/SecurityConfig.java", + "sha256": "44bbf3e1c40354f9a0700faa2118020a3352512d0e6d11014479090efa0d7a39" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/properties/AppProperties.java", + "sha256": "5761256156b570c81c06123d5a6166c41c1936e12e1604ab28c6430197d44e3e" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/properties/IdempotencyProperties.java", + "sha256": "fd496bd637075ea6af4ee1b7019c240c147a40ccd2bcc84aa0ee76cad172b9d4" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/properties/InstanceProperties.java", + "sha256": "48ddfe6ca93931f92cc11da99b5db09e643bb023c0fc0e2436ade38f11d13a28" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/properties/RateLimitProperties.java", + "sha256": "4f5eee3ee0fe4a799177f4da23a12857f90598cf1b9129b62e56f88f12aacc63" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/properties/RedisProperties.java", + "sha256": "0ff8bd1115ee4d2ef76482b8362ee6a3f81085151a8719f22e38925530411465" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/properties/S3Properties.java", + "sha256": "e3a7b04891da0492d2986146b9ae1d9981122f94e41ee2a97409e81da14205ae" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/properties/SessionProperties.java", + "sha256": "d28a0b1d4d7ccb7abd3ba7af235cee41b12b07bf0b9253802aca15e957cdb931" + }, + { + "path": "src/main/java/ru/mtusi/messenger/config/properties/UploadProperties.java", + "sha256": "daaafc83efda39cb80ec01e3076a5bd5cfc9a7eb58ee5e945e75f36ba02aa041" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/AttachmentController.java", + "sha256": "ac77b1b23bdb99183846775c4c410e3f85f32d751cf87f0c0887388343d8b4fb" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/AttachmentsApi.java", + "sha256": "3ef7984c691bec885a5080cf492f56edeae6a1669fa73fdccfa1059d39a7a329" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/AuthApi.java", + "sha256": "f0dd6c375b8a87a246a3be92fb02d2b1f33ea33ab4309edb12f655202ba877f2" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/AuthController.java", + "sha256": "57fd63088689566ba4837da96f2e4581bb4186e26587996787600efa64e7066d" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/ChatController.java", + "sha256": "583b088d906f4e73c11a3c1f749a392b044de0b84f9491034279687cbcf32926" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/ChatsApi.java", + "sha256": "4650d93dc1c5be630e9d17b0ed2e2dba6bf9392cf1d121106b8676234861f81c" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/HealthApi.java", + "sha256": "6ac2b23706920d931282b760bf7be0e01071594b9b111c45b1b424b0a8eda3f0" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/HealthController.java", + "sha256": "3b983b7344476a097d7d247606d0d57da2c2cbdd52166628613d8a81f1ee2b52" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/MessageController.java", + "sha256": "2a143675769c1232a4db68012360261eb0a5b12fab4c91140ed41abd504d1994" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/MessagesApi.java", + "sha256": "14aa3388717b65f119e2facc4d9f7720783eb04ef1384e602b7cce8713cd050e" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/UserController.java", + "sha256": "b627493e064adf67735c99a47c7343682152a2ae3c05ffa8b3f5a245acb9c71c" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/UsersApi.java", + "sha256": "1c3e35d814c2561b4586573b6d8f56569d1213ea2da16e1cc3d4a7ca523ade6b" + }, + { + "path": "src/main/java/ru/mtusi/messenger/controller/controllerAdvice/GlobalExceptionHandler.java", + "sha256": "c61c51c239f3c71f72018af52e9e5700bcae46ccf8226ac9cf1ff5fea1597e90" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/AttachmentDTO.java", + "sha256": "cca3d0a61af14ce1b2d2325b15bec8b9fe0f64299a902cb0a779b80453016d7e" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/ChatDTO.java", + "sha256": "c234e36c1d4eed994f96d95987db6433279e022a1a6a78862fa994346c825729" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/ChatPageDTO.java", + "sha256": "cf46eba4ca2c846aab0eeff2f883da5bd9902b9502766f25ae735079edbb22c5" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/CreateChatDTO.java", + "sha256": "3c7e3209fdcff57e2a73c2ad9aba5bc0441fe89ca4b46d9d51b822479afc24f6" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/CreateMessageDTO.java", + "sha256": "d4ba86af32cce435181c201d131982305cbcb79dc8f535ae16483795b937a6e5" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/CreateUserDTO.java", + "sha256": "cf4438cf23dc037bd802e16e00c4f7979b8ba4759237df0eabc9247e80a31165" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/ErrorDTO.java", + "sha256": "19c4c3e13b973cd804fb137991a449c8e5fd1f22f9bb912aacc6ca65138b28ae" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/ErrorErrorDTO.java", + "sha256": "cfaa32f76221bc9dd64b92558f669e620e8d89cc175f218cdbc922a2d13f4cb0" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/HealthDTO.java", + "sha256": "b4f29659789eed8b41db3f874d64ca151d197e383da071c69a61261081fc51a2" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/MessageDTO.java", + "sha256": "9d9dda1f97b2d3014cf38dd0f65e3685b94876406d49732995fd78fa048594ed" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/MessagePageDTO.java", + "sha256": "a07d35ad16107dccb5c87f151ee224639b168887211a7193343e9d4524b1685a" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/SessionDTO.java", + "sha256": "8c600416ab5330f64d1d7d7d8d8dcd0c18a2061d7b8430fa311bb1458ca81805" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/UserDTO.java", + "sha256": "cb9182af5420e810d01abc3f88d602426a81780136273500f26f3ca0c1e6c7fc" + }, + { + "path": "src/main/java/ru/mtusi/messenger/dto/VariantDTO.java", + "sha256": "6fdc76c9d16f09583881a15bc5f4d12569c240ee500338ab7b0aaed3a6b61746" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/ApiErrorFactory.java", + "sha256": "2805b0a1ea4de8c24da5471c30cce97939a676ebfea77cf2b74adcf790403667" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/ConflictException.java", + "sha256": "0cd1834e4af3303ac699202b01ea5028fa182623791815a4e363c81a982705ab" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/InvalidRequestException.java", + "sha256": "b45b353bdcb978808639c8adc888259371992d05b9a492e9912a037a86e798ff" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/NotFoundException.java", + "sha256": "940724a52d9385191a67b17cc296225c2eb360740f5563f2cffa76951efd35f5" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/PayloadTooLargeException.java", + "sha256": "c0d1a24818d530da8a91439c011460ead5a0cb6ffadd6d32027686e4840d3dc9" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/RateLimitedException.java", + "sha256": "3c14b6b1dde1abdf1027509496efe7ea2af8b524c51712c85684c2dc9355830a" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/ServiceUnavailableException.java", + "sha256": "d30e979a5cd948465d2ecc9be770030c41358c09c43f4860926befc478004a94" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/StaleAttachmentException.java", + "sha256": "903877e733a5a9717d6b19d5f0635d9284bc59c30e67f3778780e7e794dfaddb" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/StorageUnavailableException.java", + "sha256": "6798a3aea6058a4f13ab0b39f0d817d3b9fb6c83d067b018cea0aa1c00ff8f0a" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/UnauthorizedException.java", + "sha256": "82a00007c4b4c0c16609211a0981c5974ab5fdfc8cd33fa12c4b75026ccbd202" + }, + { + "path": "src/main/java/ru/mtusi/messenger/exception/UnsupportedMediaTypeException.java", + "sha256": "f0190e59ba85df6e2737ce93d63e8b1a8a1c40103191f7c2a8689455925ec242" + }, + { + "path": "src/main/java/ru/mtusi/messenger/filter/InstanceIdFilter.java", + "sha256": "c505bd7e848488721b148ec9c3f55e4a06318608994369fd2cf20d88eda908dd" + }, + { + "path": "src/main/java/ru/mtusi/messenger/filter/PasswordBudgetFilter.java", + "sha256": "1f1b0bede8eab8bcf0654d13dfaa92a7714c1fc24a5302edc549562d8e9d4d2a" + }, + { + "path": "src/main/java/ru/mtusi/messenger/filter/RateLimitFilter.java", + "sha256": "c46de7aebd6d1bbf01753420e0cce9c033617f1c578337735a49d8903f0369cd" + }, + { + "path": "src/main/java/ru/mtusi/messenger/filter/RequestIdFilter.java", + "sha256": "68020cb878630727208c15d616ca04f4e41afc25d4e33204f7c64dac9675d150" + }, + { + "path": "src/main/java/ru/mtusi/messenger/filter/SecretLeaseFilter.java", + "sha256": "bfe2318dbeb9985d2f4968f2bb27c589e5778c74b0c4d8d93f650fdcf35f94e5" + }, + { + "path": "src/main/java/ru/mtusi/messenger/filter/ServiceIdentityFilter.java", + "sha256": "2bc83b2739d6f42f36782e8d24f535df5283728585fc6e5487366045138fda21" + }, + { + "path": "src/main/java/ru/mtusi/messenger/filter/TelemetryFilter.java", + "sha256": "187e45dd0af3d5569e8bedd49210546432afb0f6924928f2717d43e514a3fbc0" + }, + { + "path": "src/main/java/ru/mtusi/messenger/mapper/AttachmentMapper.java", + "sha256": "a25c7b700ca7b2452225a51ac6e7200a852768c00922224d9878e4d8f2e845f7" + }, + { + "path": "src/main/java/ru/mtusi/messenger/mapper/ChatMapper.java", + "sha256": "fa73596ab9deecd49dd512dcb5b1a24489964bfe7489aa664be85f12e329df26" + }, + { + "path": "src/main/java/ru/mtusi/messenger/mapper/MessageMapper.java", + "sha256": "0815b776c7a754966ac55d6c41f08601e0525407e4455d4cf93ae9614abc4bce" + }, + { + "path": "src/main/java/ru/mtusi/messenger/mapper/SessionMapper.java", + "sha256": "19e63fb17e674a65a097edfdc25735c4aea17aaa229e9e0ff4b71c0a0bea9375" + }, + { + "path": "src/main/java/ru/mtusi/messenger/mapper/UserMapper.java", + "sha256": "6d72ba92f58eb90ce14992dd427ea2f7669b58e5d5fc40dd5dc0957bf4686b67" + }, + { + "path": "src/main/java/ru/mtusi/messenger/model/Attachment.java", + "sha256": "60783dd9f9ce0cc0d1104e789e87e77b6ce3b06b122bc8e78fa1f340d91667cc" + }, + { + "path": "src/main/java/ru/mtusi/messenger/model/AttachmentStatus.java", + "sha256": "14cf87d61679c93c4f35f41f7e3ff8684acec35748bc2da949f4697fa9939e9a" + }, + { + "path": "src/main/java/ru/mtusi/messenger/model/Chat.java", + "sha256": "3397fb16f00b2e0713116a1e4bddb4ca34153cb8cb1e61c29db05e361c6c0796" + }, + { + "path": "src/main/java/ru/mtusi/messenger/model/IdempotencyKey.java", + "sha256": "0471a84eb3402a14d4a2802cbc773033eb01937ecd722eba2d3da981fbf7e91c" + }, + { + "path": "src/main/java/ru/mtusi/messenger/model/Message.java", + "sha256": "47e5d053a65fc52da4634d248e3952bc23698b819c894e886360e9b693ac1169" + }, + { + "path": "src/main/java/ru/mtusi/messenger/model/Session.java", + "sha256": "f0cd28642228006cdb7d41b071cc7c2884f05a42856e669f341252f60058584d" + }, + { + "path": "src/main/java/ru/mtusi/messenger/model/User.java", + "sha256": "ba35c92af79a31d36f56915de3ffbe1aacb84a2a7dbb50926bccaca65f4630f9" + }, + { + "path": "src/main/java/ru/mtusi/messenger/repository/AttachmentRepository.java", + "sha256": "a04e59894b3c52f1d6569b809566b3dcda0371207730842085ee328c15e83c90" + }, + { + "path": "src/main/java/ru/mtusi/messenger/repository/ChatRepository.java", + "sha256": "3df81ebebe89b515ef60f4de92361962cd4b211979ebf1ec3f28c19b6b2154da" + }, + { + "path": "src/main/java/ru/mtusi/messenger/repository/IdempotencyRepository.java", + "sha256": "c56ca243aa26431ff6708fc2ae2f62ca066304583913b78052f37cc4b16786d8" + }, + { + "path": "src/main/java/ru/mtusi/messenger/repository/MessageRepository.java", + "sha256": "c03846eaec4bb1d2a62c6c4947e87e5db8d04dc7fcef5fb87d9983bc7951306a" + }, + { + "path": "src/main/java/ru/mtusi/messenger/repository/SessionRepository.java", + "sha256": "3a7f519bac4fc2807458f6026a7c37c61f79cac8f750e58be22f29dfc26e821b" + }, + { + "path": "src/main/java/ru/mtusi/messenger/repository/UserRepository.java", + "sha256": "7c9274364877a7b316e65e890391b1f2b493cd8e45f1af26914c10fa36dedf6a" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/ApiAuthenticationEntryPoint.java", + "sha256": "f9d552429a4bf50550afbff6f5166b0ce921d36859603b66e0962334213bce53" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/BasicCredentials.java", + "sha256": "6cd0862e3fa8007cf29e6c9cb1ea7e9726f1527103833e761d6046c982ec05f2" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/LoginBudget.java", + "sha256": "4866f619c3c2db848fd4f6a43e1312fb089f862b16dabceb253ef2f921fd60dd" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/RequiredDependenciesHealth.java", + "sha256": "13ada2c9a2624ac8eb72d40ea6257bc1b2ed12b0bf13b807a6345c8c243d60ea" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/SecretLease.java", + "sha256": "c3c95e7acb60e5e034fe92a32e856b487730130ebffd56eba68c4f1065d1571f" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/SessionAuthenticationFilter.java", + "sha256": "de41723739d6c1e581087c5c8b8a25746920d559c250c1569bd79daa7201dc3d" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/SessionAuthenticationProvider.java", + "sha256": "b0b04a11d3f82d6dc52b9e4dea5659356d88d4fcfee6825394881d397f0ac50d" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/SessionAuthenticationToken.java", + "sha256": "fb1c5fd77806dfa7fddc6a8ec4df72395082907a784f859d5761a89ae50c39a4" + }, + { + "path": "src/main/java/ru/mtusi/messenger/security/SessionPrincipal.java", + "sha256": "f553cd8006d9b3a79f01c729d1046f98b56f6f82fd9651b8244ba4a010edd26c" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/AttachmentService.java", + "sha256": "64b77229549adcaac371cd3dc9af6207c7aef03019ccc425e2d9194ac91d00d7" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/AttachmentVariantService.java", + "sha256": "b4ca80cba9ebed8225a2e0a72efb9dfb5491f45f4f4bb46b0120db05d5ded162" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/AuthService.java", + "sha256": "841dd6f31d15b0f444fb8543cb04d8f16c5db72c5825d9ec48136b32d638b24f" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/ChatService.java", + "sha256": "2274c2a290d2b44309325600edadcec40a714705e10337d881f303fbef9af0e5" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/HealthService.java", + "sha256": "bb0f2946092c0bc430fa7f55593e71e65a869f51f995d4efc60cad786408a9e0" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/IdempotencyService.java", + "sha256": "cb2ed93c4b0b4fe6a86dd735436ce616d4d114008eca01ff5d443b52e6bdd8e0" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/MessageService.java", + "sha256": "861c5d96e593426196f94cf2878781d5c4a810a8625f2c3f16c1bcf039da7096" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/ProcessingJobService.java", + "sha256": "fd66fc1e9ff5910999be97f1cd70e3ff9d22c632869803b2904d4ff9b698f3ee" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/SessionCacheService.java", + "sha256": "d3302fc4022c44f3728ecf8c291132b957c74fae51b8a1bf096fb70c984683d5" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/SessionService.java", + "sha256": "669968a617fb47a8a8b9c87dfc92716b652a294600068566e0f8642fe3dc77f9" + }, + { + "path": "src/main/java/ru/mtusi/messenger/service/UserService.java", + "sha256": "d4f0619d0db1ba2b607908456c80534542b0ded15bdba37109a3bed0d505b091" + }, + { + "path": "src/main/java/ru/mtusi/messenger/telemetry/Telemetry.java", + "sha256": "5de685b7b73a8a95d99ce01690ff2e656c77b6c7b2875636a3f084ede114fcfc" + }, + { + "path": "src/main/java/ru/mtusi/messenger/util/CursorCodec.java", + "sha256": "50436db6e4ade6c280330077480871b095c63a4a72273efcfbb53a2493b3f019" + }, + { + "path": "src/main/java/ru/mtusi/messenger/util/TokenGenerator.java", + "sha256": "a73884d9c99e9b39c61eb56b454700736eb8751abc90f086bb31850777b84613" + }, + { + "path": "src/main/java/ru/mtusi/messenger/util/TokenHasher.java", + "sha256": "e5d73db2008a29c07a76b4f6f8b7f5807a6467db28d08deee2c3f4bd07ed01e4" + }, + { + "path": "src/main/java/ru/mtusi/messenger/util/converter/IdempotencyPayloadConverter.java", + "sha256": "637e141336783cda69d29fade39157b8298ed3ae6b12be9ba8c4bb4149d0fad7" + }, + { + "path": "src/main/java/ru/mtusi/messenger/validation/AttachmentValidator.java", + "sha256": "a4e49335ac95dcacc28e4b5d420dc687c5df4db1f120b4628e52a010812bac15" + }, + { + "path": "src/main/java/ru/mtusi/messenger/validation/ChatValidator.java", + "sha256": "44708f854e2fe7c9330d48fd3c990d73c40de0719d92f6332714c7bd568badf4" + }, + { + "path": "src/main/java/ru/mtusi/messenger/validation/IdempotencyValidator.java", + "sha256": "192564be7dd298cd9b0a8f3f3c346de567fad7986bfb9d8dec01167db440f283" + }, + { + "path": "src/main/resources/application.yaml", + "sha256": "6c6eca53c253012eabdf262e61f760b54fcfe2936732018954aab599f5ab14da" + }, + { + "path": "src/main/resources/db/migration/V1__init.sql", + "sha256": "2e836df9e6e8c23c5508d342e0bac03da3e4b2b700e58d2442be697621f47dec" + }, + { + "path": "src/test/java/ru/mtusi/messenger/AttachmentIntegrationTest.java", + "sha256": "c6e9a33a32594513b24e08f87379a110a584794468a5be5a50baea4e6cc061f6" + }, + { + "path": "src/test/java/ru/mtusi/messenger/MessengerLab1ApplicationTests.java", + "sha256": "878abc26857e7a6c8654629aad443312b4ce1a6818c0d56263e5213628e111d6" + }, + { + "path": "student-tests/bao_policy.py", + "sha256": "f9df1ac2b064ec3fdb4b3ccd67405f1f83740f8cd92e48751e984b955d8faf0f" + }, + { + "path": "student-tests/broker_recovery.py", + "sha256": "e6a50bf531ebab633518e86cb73fc474c200c77085b765c0aa902429f59923a3" + }, + { + "path": "student-tests/failover_other.py", + "sha256": "5977a8f9e084ba7fad7f8bafd7c6a55747e1726d394bdfb3a711e0ef46de5bbb" + }, + { + "path": "student-tests/incidents.py", + "sha256": "419af4b1c2345dc2ae6044db513b170549c841769a6e649c1bc5046a3e64fd1a" + }, + { + "path": "student-tests/observe.py", + "sha256": "649b7992a09420924624b7b282ca5c30bfe227f4af2601ecf453990560266d85" + }, + { + "path": "student-tests/pipeline_ack_guard.py", + "sha256": "3b6b822b29d795149245a7fbecb37fb2dd53e2869370bcb07e07f48194fce3dc" + }, + { + "path": "student-tests/pipeline_boundaries.py", + "sha256": "1595b856c0b5a77657d4225f4e81dd9cc377adc80e858cf1f1c415ca96c32e48" + }, + { + "path": "student-tests/pipeline_core.py", + "sha256": "52012b7eb8d0f21fd8a7f5c775592202a4160f42f99d1d399d56c6b8b07764dd" + }, + { + "path": "student-tests/pipeline_faults.py", + "sha256": "b809ae69609a821e00ba5a004debd59eb04a2b7ab671ab58973234a8c68f31d1" + }, + { + "path": "student-tests/pipeline_filename.py", + "sha256": "90079ae8d90b5fcf4de4e7cd751d5239c4f648309707ee97b37f97847b76cf83" + }, + { + "path": "student-tests/pipeline_history_capacity.py", + "sha256": "07f5dba49f2b761ad7f1b500daef5fd9f09b50600ed8189dacdf4c726acad95e" + }, + { + "path": "student-tests/pipeline_retention.py", + "sha256": "3d347615c3cad0e62118eb345bbed8bf6fb4396a5589d2d86691d44e39462135" + }, + { + "path": "student-tests/pipeline_support.py", + "sha256": "50bb243c01ad34e1d20afa72bc472792970f2cd2523047862f367176970c3ffc" + }, + { + "path": "student-tests/pipeline_upload_crash.py", + "sha256": "2f67d5ed701d400fc6786e872bf6f294f2f0ef4cfcffba96ed3403bd52f4e2f4" + }, + { + "path": "student-tests/revocation_probe.py", + "sha256": "5f8c23eccccf1cfe50bbf7292a745f39451d3f3a12257ddeadf323c7617c6a8e" + }, + { + "path": "student-tests/security_auth.py", + "sha256": "a86876c987a63ac801bd00b66afd730de42cda0b899b3297ba1e7b23b455de89" + }, + { + "path": "student-tests/security_baseline.py", + "sha256": "bb43cb1a3d4361f4312ad96ea9566b7ec558e054596f7f213bdb1a1f736c8453" + }, + { + "path": "student-tests/security_inventory.py", + "sha256": "e9ad7c716962aa08dcc5e78feb44a5fe9b756699a9d154849bc24a6ba00d84fb" + }, + { + "path": "student-tests/security_lifecycle.py", + "sha256": "fff966334f6b421109143abcd6a978f51d32a8b8941f569509446968564a3ca6" + }, + { + "path": "student-tests/telemetry_support.py", + "sha256": "3603852735b8114f225b1e661c7635d61dc105c1aecf3c95d2e4cfabc20a8d86" + }, + { + "path": "student-tests/tls_matrix.py", + "sha256": "70eae9f8fa1b16b598e8e66c914d1725907405fce0a7782ab119f434ffc733bc" + }, + { + "path": "student-tests/worker_rights.py", + "sha256": "e1ae2d2f231f7771fe05f2cbdb8c0cf48bc5aed0a1259d23b8b61d542cb22aff" + }, + { + "path": "tests/README.md", + "sha256": "e0bfa7e196797f6a5bf6e44d8ad2ffeb82651927ff5d8484eb1c2dda1ec7dec5" + }, + { + "path": "tests/client.py", + "sha256": "8d50976fc7c7bbb81e88a152f613c61ab25eaf53dba33c6a9dfab19f868d546d" + }, + { + "path": "tests/fixtures/README.md", + "sha256": "c001783760b4f87a7a8441a7ba55f5d080ff48e1397d3581d72a88d7691f96c2" + }, + { + "path": "tests/fixtures/sample.png", + "sha256": "99ea7533c441f79cd630d15ce4d58d1ec4e06f6f0efb3b77a5c088305cd1bd75" + }, + { + "path": "tests/image_probe.py", + "sha256": "a9a4f89181c8e0fda6ce42e1a1af32fb42d8e3ae519e314207127c9b9b448b13" + }, + { + "path": "tests/load.py", + "sha256": "6d3511ea719c7a7e841083e73d435c86dcbfd9f4e5c2a07d62eb9614b01d9933" + }, + { + "path": "tests/resilience.py", + "sha256": "1f96663a174b3978d24eff66f2741f5f8c9b788d3242261d37a972720c52788b" + }, + { + "path": "tests/security.py", + "sha256": "6560a56cc22981c9f06043709bfabe7a47fa7eab57e62741e95534ac5ddff8a7" + }, + { + "path": "tests/smoke.py", + "sha256": "52ac38eb343ff7d43e7543588e1da58ca06c9fce74b2b0d0bf0e4982bc23c1db" + }, + { + "path": "worker/Dockerfile", + "sha256": "df6131d9419d31e37c9bf4c39631d7012386456a088b1425cc10ad94fe8c62f9" + }, + { + "path": "worker/pipeline/__init__.py", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "path": "worker/pipeline/broker.py", + "sha256": "20bb91d95cc54f2f7f22435112fb90638ce8c590b412f28baeb66ac6cfdde1b9" + }, + { + "path": "worker/pipeline/cleanup.py", + "sha256": "f63460b6fa021871cc1d16705dcb18e17add6df7ee71b30496caacf55f1cc424" + }, + { + "path": "worker/pipeline/config.py", + "sha256": "b9a7b7927e919eb8322ec01c3872662aac1be8a8cde9254cb43fb5d326aa4a33" + }, + { + "path": "worker/pipeline/faults.py", + "sha256": "0a5da45033d51d1f1800f15efe862d3e1a321cdd5029df2f69f64ad5e5ba799b" + }, + { + "path": "worker/pipeline/images.py", + "sha256": "74ede0019c0f0dc745d116d93ddadea35be1695f99ba539c1eeaaa74f51aff96" + }, + { + "path": "worker/pipeline/main.py", + "sha256": "ebbc2e6cbef0f5e37904758010322f43672dfb2acab2c7ab3acb221d103ba96c" + }, + { + "path": "worker/pipeline/operator.py", + "sha256": "c9c08cfd420ac57e0c4f202801a12fa115d03f07b81d2be0d276f8757520591d" + }, + { + "path": "worker/pipeline/outbox.py", + "sha256": "72bc2a1a6f066bea409faa32049a7dd8a52352cba09c4cc35fa74ac4310e2606" + }, + { + "path": "worker/pipeline/process.py", + "sha256": "bd3d3bb2ea9c88bd8a814051e0c51a7196c4d0e22416ebebf39dae857694d522" + }, + { + "path": "worker/pipeline/repository.py", + "sha256": "15888481a012d1eb8817a5f4db16ca8c2be833da6d32c66c2ff7fbc5e22448a9" + }, + { + "path": "worker/pipeline/secret_agent.py", + "sha256": "38db28413b8124523c32a24682a986a067d2d60e0fb7dda410e35da7c79d8bac" + }, + { + "path": "worker/pipeline/storage.py", + "sha256": "87921484c934060e6b8a6034523c27e7e322ff8db3a6c170099d7115e11e8570" + }, + { + "path": "worker/pipeline/telemetry.py", + "sha256": "1a9b2eadc5eaade8b54ecf344efaceeb213586d6fd4b1d834edcfbded899e708" + }, + { + "path": "worker/requirements-resolved.txt", + "sha256": "760af6517279b71d3bc64b77c0865e78d504ed469c412e94604c3c64edbd92cc" + }, + { + "path": "worker/requirements.txt", + "sha256": "6f4af96e454fd791f111fa9cb2db51a7859383b338f99569c94fbf6b5cd3ed9e" + } + ] +} diff --git a/evidence/start.txt b/evidence/start.txt new file mode 100644 index 0000000..9183366 --- /dev/null +++ b/evidence/start.txt @@ -0,0 +1,299 @@ +Command: ["powershell.exe", "-NoProfile", "-File", "scripts/start.ps1"] +UTC: 2026-11-27T18:13:33.896466+00:00 +Exit code: 0 +Elapsed seconds: 20.234 + +Local PKI and operator credentials prepared; private values omitted. +Local runtime files prepared. + Image messenger-lab7-dispatcher-agent:7.0.0 Building + Image messenger-lab7-api:7.0.0 Building + Image messenger-lab7-worker-agent:7.0.0 Building + Image messenger-lab7-dispatcher:7.0.0 Building + Image messenger-lab7-worker:7.0.0 Building + Image messenger-lab7-api-agent:7.0.0 Building +#1 [internal] load local bake definitions +#1 reading from stdin 2.85kB 0.0s done +#1 DONE 0.0s + +#2 [dispatcher internal] load build definition from Dockerfile +#2 transferring dockerfile: 418B done +#2 DONE 0.0s + +#3 [api internal] load build definition from Dockerfile +#3 transferring dockerfile: 1.02kB done +#3 DONE 0.1s + +#4 [api internal] load metadata for docker.io/library/eclipse-temurin:21-jre-jammy@sha256:a8bff88f760e87e0c8844f8461f807c203fd5e8f78c951c843024647e965eaf5 +#4 DONE 0.1s + +#5 [worker internal] load metadata for docker.io/library/python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64 +#5 ... + +#6 [api internal] load metadata for docker.io/library/eclipse-temurin:21-jdk-jammy@sha256:432e54724c3e57d1846aeb886f4d339f3b0522931c4e64119c2797013b7cfc3c +#6 DONE 0.1s + +#7 [api internal] load .dockerignore +#7 transferring context: 216B 0.0s done +#7 DONE 0.0s + +#8 [api internal] load build context +#8 DONE 0.0s + +#9 [api runner 1/6] FROM docker.io/library/eclipse-temurin:21-jre-jammy@sha256:a8bff88f760e87e0c8844f8461f807c203fd5e8f78c951c843024647e965eaf5 +#9 resolve docker.io/library/eclipse-temurin:21-jre-jammy@sha256:a8bff88f760e87e0c8844f8461f807c203fd5e8f78c951c843024647e965eaf5 0.1s done +#9 DONE 0.1s + +#10 [api builder 1/6] FROM docker.io/library/eclipse-temurin:21-jdk-jammy@sha256:432e54724c3e57d1846aeb886f4d339f3b0522931c4e64119c2797013b7cfc3c +#10 resolve docker.io/library/eclipse-temurin:21-jdk-jammy@sha256:432e54724c3e57d1846aeb886f4d339f3b0522931c4e64119c2797013b7cfc3c 0.1s done +#10 DONE 0.1s + +#8 [api internal] load build context +#8 transferring context: 11.07kB 0.0s done +#8 DONE 0.1s + +#11 [api runner 5/6] COPY infra/security/api-start.sh /app/start.sh +#11 CACHED + +#12 [api builder 3/6] COPY gradle gradle +#12 CACHED + +#13 [api runner 2/6] WORKDIR /app +#13 CACHED + +#14 [api runner 4/6] COPY --from=builder /build/build/libs/*.jar app.jar +#14 CACHED + +#15 [api builder 6/6] RUN --mount=type=cache,target=/root/.gradle,sharing=locked chmod +x gradlew && ./gradlew bootJar -x test --no-daemon +#15 CACHED + +#16 [api runner 3/6] RUN groupadd --system --gid 10001 spring && useradd --system --uid 10001 --gid spring --no-create-home spring +#16 CACHED + +#17 [api builder 4/6] COPY gradlew settings.gradle build.gradle ./ +#17 CACHED + +#18 [api builder 5/6] COPY src src +#18 CACHED + +#19 [api builder 2/6] WORKDIR /build +#19 CACHED + +#20 [api runner 6/6] RUN chown spring:spring app.jar +#20 CACHED + +#21 [api] exporting to image +#21 exporting layers done +#21 exporting manifest sha256:a4be66915dd9bf8ad0e704dac12048c31813bfdd55e4987a329983462d9f8e39 done +#21 exporting config sha256:fd589258bda651ee3bbcb246fe0586f4245c02fba51cde71ade6890d69c28c94 done +#21 exporting attestation manifest sha256:c444acea03fab686f986661dc3e6e5e235b1e3386f8f45ca9bead2d64a858dd8 0.1s done +#21 exporting manifest list sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6 +#21 exporting manifest list sha256:ac00d9438dc245c13627b060896254a489b1829e9893cc8eb5a2d54886f85fc6 0.1s done +#21 naming to docker.io/library/messenger-lab7-api:7.0.0 done +#21 unpacking to docker.io/library/messenger-lab7-api:7.0.0 0.0s done +#21 DONE 0.3s + +#5 [worker internal] load metadata for docker.io/library/python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64 +#5 ... + +#22 [auth] library/python:pull token for registry-1.docker.io +#22 DONE 0.0s + +#23 [api] resolving provenance for metadata file +#23 DONE 0.0s + +#5 [worker internal] load metadata for docker.io/library/python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64 +#5 DONE 2.2s + +#7 [dispatcher-agent internal] load .dockerignore +#7 CACHED + +#24 [worker-agent internal] load build context +#24 transferring context: 76.36kB 0.0s done +#24 DONE 0.1s + +#25 [api-agent 1/5] FROM docker.io/library/python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64 +#25 resolve docker.io/library/python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64 0.1s done +#25 resolve docker.io/library/python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64 0.1s done +#25 DONE 0.1s + +#26 [worker 3/5] COPY worker/requirements-resolved.txt ./requirements.txt +#26 CACHED + +#27 [worker 2/5] WORKDIR /app +#27 CACHED + +#28 [worker 4/5] RUN pip install --no-cache-dir -r requirements.txt && useradd --system --uid 10001 worker +#28 CACHED + +#29 [worker 5/5] COPY worker/pipeline ./pipeline +#29 CACHED + +#30 [worker] exporting to image +#30 exporting layers done +#30 exporting manifest sha256:b8fa5a9c454e14d0ff580c74b67d7530509a420c015400070a5ea5aeaf335ed4 0.0s done +#30 exporting config sha256:62f9bfb0a05407291b37813132d443e7c3c58d52bd8f43580cb54c5ef30b51ec +#30 exporting config sha256:62f9bfb0a05407291b37813132d443e7c3c58d52bd8f43580cb54c5ef30b51ec 0.1s done +#30 exporting attestation manifest sha256:f9928dbb4ef2602bd597523042fd5cfd3ad80e326f64b59de213219dd91f9ca6 +#30 exporting attestation manifest sha256:f9928dbb4ef2602bd597523042fd5cfd3ad80e326f64b59de213219dd91f9ca6 0.2s done +#30 exporting manifest list sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec +#30 exporting manifest list sha256:1b0c15a759fd62eea160cbc38c1d4ec42c2daabbf68d38179e19246aec7098ec 0.1s done +#30 naming to docker.io/library/messenger-lab7-worker:7.0.0 0.0s done +#30 unpacking to docker.io/library/messenger-lab7-worker:7.0.0 +#30 unpacking to docker.io/library/messenger-lab7-worker:7.0.0 0.0s done +#30 DONE 0.9s + +#31 [api-agent] exporting to image +#31 exporting layers done +#31 exporting manifest sha256:a5970b24e13c1f3fb59777518d5005d5618a7c856ad69f53eff3c33832dc4da8 0.0s done +#31 exporting config sha256:06ba038aeb9311ebc2fe9f848c933b6cf1e3bb229d86bd254c3db757ab6bbb66 0.1s done +#31 exporting attestation manifest sha256:1ae17eaf7cf32d096fb8ba1c1fcdb3fac55b6f792ed5701e4a87bbfc31d22a53 0.2s done +#31 exporting manifest list sha256:5fcacd17c95e2615de33b9796c67214009e2639f7578f1552046f6c9acad20cd 0.1s done +#31 naming to docker.io/library/messenger-lab7-api-agent:7.0.0 0.0s done +#31 unpacking to docker.io/library/messenger-lab7-api-agent:7.0.0 0.0s done +#31 DONE 0.9s + +#32 [worker-agent] exporting to image +#32 exporting layers done +#32 exporting manifest sha256:bc670498a324495d5d27f3ad6bb6e61f64335eaa6ac0ff03867087e9f6d49487 0.0s done +#32 exporting config sha256:b66c1c8542fda989caa772663b528c2ede12a6bd6853a6824128db8a925d2036 0.1s done +#32 exporting attestation manifest sha256:4d201a69348c80c2cd7bf8b41b851438a0c5de743b079d691eafb3a96739012e 0.2s done +#32 exporting manifest list sha256:25f36c9d20fc44293fc8f0d819c5d2760f357189df4b6d622dfe490e770e1469 0.1s done +#32 naming to docker.io/library/messenger-lab7-worker-agent:7.0.0 0.0s done +#32 unpacking to docker.io/library/messenger-lab7-worker-agent:7.0.0 0.0s done +#32 DONE 0.9s + +#33 [dispatcher-agent] exporting to image +#33 exporting layers done +#33 exporting manifest sha256:fdc44e1e24d608cd676e64bd10166c3d7e4910f21da4f3e80812c8d0adbc2c65 0.0s done +#33 exporting config sha256:0cbdd5fc06cc437083dd1610e2df078d60f2e962487ece320081fe0b24777d52 0.1s done +#33 exporting attestation manifest sha256:e4132ce67523039e4570519ee1042fd90c36cb266e908e78883b3d074b1353b2 0.2s done +#33 exporting manifest list sha256:91308b7af9cfd419de456f3e52cf38f5982e4ce2f05644c4875b1d87d509d85f 0.1s done +#33 naming to docker.io/library/messenger-lab7-dispatcher-agent:7.0.0 0.0s done +#33 unpacking to docker.io/library/messenger-lab7-dispatcher-agent:7.0.0 0.0s done +#33 DONE 0.9s + +#34 [dispatcher] exporting to image +#34 exporting layers done +#34 exporting manifest sha256:f3ef673ca2b018c70f9842e9cb7bb44d0cc90820cc45682b378ccdc0483ef53f 0.0s done +#34 exporting config sha256:596d983e5e25a9fc9f129fd42cd1a452574ad2355c2493c9036f9b981e37acff 0.1s done +#34 exporting attestation manifest sha256:7cebcd94e54a5605de6852dadf6c9655a0dde00515840f35bcfb55ca9b5cd56c 0.2s done +#34 exporting manifest list sha256:dc83d501ad8bdcd2ce146e8771d769cc8694fcb3af1d71fd0c493580f85cae2d 0.1s done +#34 naming to docker.io/library/messenger-lab7-dispatcher:7.0.0 0.0s done +#34 unpacking to docker.io/library/messenger-lab7-dispatcher:7.0.0 0.0s done +#34 DONE 0.9s + +#35 [api-agent] resolving provenance for metadata file +#35 DONE 0.4s + +#36 [worker-agent] resolving provenance for metadata file +#36 DONE 0.3s + +#37 [dispatcher-agent] resolving provenance for metadata file +#37 DONE 0.2s + +#38 [dispatcher] resolving provenance for metadata file +#38 DONE 0.1s + +#39 [worker] resolving provenance for metadata file +#39 DONE 0.0s + Image messenger-lab7-api-agent:7.0.0 Built + Image messenger-lab7-api:7.0.0 Built + Image messenger-lab7-worker:7.0.0 Built + Image messenger-lab7-worker-agent:7.0.0 Built + Image messenger-lab7-dispatcher:7.0.0 Built + Image messenger-lab7-dispatcher-agent:7.0.0 Built + Container messenger-lab7-bao-permissions-run-8aa7b55ea8d8 Creating + Container messenger-lab7-bao-permissions-run-8aa7b55ea8d8 Created + Container messenger-lab7-s3-permissions-run-f8bb620dbcef Creating + Container messenger-lab7-s3-permissions-run-f8bb620dbcef Created + Container messenger-lab7-minio-1 Running + Container messenger-lab7-db-1 Running + Container messenger-lab7-openbao-1 Running + Container messenger-lab7-gateway-1 Running + Container messenger-lab7-db-1 Waiting + Container messenger-lab7-openbao-1 Waiting + Container messenger-lab7-gateway-1 Waiting + Container messenger-lab7-minio-1 Waiting + Container messenger-lab7-openbao-1 Healthy + Container messenger-lab7-gateway-1 Healthy + Container messenger-lab7-minio-1 Healthy + Container messenger-lab7-db-1 Healthy +Persistent OpenBao initialized/unsealed; scoped cert authentication configured. +Schema and restricted database roles ready. +Private S3 bucket and separate prefix policies ready. + Container messenger-lab7-api-agent-1 Running + Container messenger-lab7-dispatcher-1 Running + Container messenger-lab7-gateway-1 Running + Container messenger-lab7-prometheus-1 Running + Container messenger-lab7-openbao-1 Running + Container messenger-lab7-loki-1 Running + Container messenger-lab7-worker-1 Running + Container messenger-lab7-worker-2 Running + Container messenger-lab7-broker-1 Running + Container messenger-lab7-tempo-1 Running + Container messenger-lab7-redis-1 Running + Container messenger-lab7-otel-collector-1 Running + Container messenger-lab7-api-1 Running + Container messenger-lab7-api-2 Running + Container messenger-lab7-minio-1 Running + Container messenger-lab7-dispatcher-agent-1 Running + Container messenger-lab7-lb-1 Running + Container messenger-lab7-worker-agent-1 Running + Container messenger-lab7-db-1 Running + Container messenger-lab7-grafana-1 Running + Container messenger-lab7-db-1 Waiting + Container messenger-lab7-worker-agent-1 Waiting + Container messenger-lab7-db-1 Waiting + Container messenger-lab7-db-1 Waiting + Container messenger-lab7-dispatcher-agent-1 Waiting + Container messenger-lab7-api-agent-1 Waiting + Container messenger-lab7-worker-agent-1 Healthy + Container messenger-lab7-db-1 Healthy + Container messenger-lab7-db-1 Healthy + Container messenger-lab7-db-1 Healthy + Container messenger-lab7-dispatcher-agent-1 Healthy + Container messenger-lab7-api-agent-1 Healthy + Container messenger-lab7-api-1 Waiting + Container messenger-lab7-api-2 Waiting + Container messenger-lab7-api-1 Healthy + Container messenger-lab7-api-2 Healthy + Container messenger-lab7-tempo-1 Waiting + Container messenger-lab7-lb-1 Waiting + Container messenger-lab7-worker-agent-1 Waiting + Container messenger-lab7-prometheus-1 Waiting + Container messenger-lab7-loki-1 Waiting + Container messenger-lab7-otel-collector-1 Waiting + Container messenger-lab7-broker-1 Waiting + Container messenger-lab7-api-1 Waiting + Container messenger-lab7-api-2 Waiting + Container messenger-lab7-redis-1 Waiting + Container messenger-lab7-worker-1 Waiting + Container messenger-lab7-worker-2 Waiting + Container messenger-lab7-minio-1 Waiting + Container messenger-lab7-grafana-1 Waiting + Container messenger-lab7-db-1 Waiting + Container messenger-lab7-dispatcher-1 Waiting + Container messenger-lab7-openbao-1 Waiting + Container messenger-lab7-dispatcher-agent-1 Waiting + Container messenger-lab7-api-agent-1 Waiting + Container messenger-lab7-gateway-1 Waiting + Container messenger-lab7-broker-1 Healthy + Container messenger-lab7-worker-agent-1 Healthy + Container messenger-lab7-gateway-1 Healthy + Container messenger-lab7-prometheus-1 Healthy + Container messenger-lab7-worker-1 Healthy + Container messenger-lab7-worker-2 Healthy + Container messenger-lab7-loki-1 Healthy + Container messenger-lab7-otel-collector-1 Healthy + Container messenger-lab7-dispatcher-agent-1 Healthy + Container messenger-lab7-tempo-1 Healthy + Container messenger-lab7-dispatcher-1 Healthy + Container messenger-lab7-api-1 Healthy + Container messenger-lab7-api-2 Healthy + Container messenger-lab7-redis-1 Healthy + Container messenger-lab7-api-agent-1 Healthy + Container messenger-lab7-lb-1 Healthy + Container messenger-lab7-openbao-1 Healthy + Container messenger-lab7-minio-1 Healthy + Container messenger-lab7-grafana-1 Healthy + Container messenger-lab7-db-1 Healthy diff --git a/evidence/style.txt b/evidence/style.txt new file mode 100644 index 0000000..ad6d57d --- /dev/null +++ b/evidence/style.txt @@ -0,0 +1,9 @@ +Command: [".venv/Scripts/python.exe", "scripts/style.py"] +UTC: 2026-11-27T18:59:19.985648+00:00 +Exit code: 0 +Elapsed seconds: 2.531 + +All done! ✨ 🍰 ✨ +45 files would be left unchanged. +PASS 14 controller operations: one service call, constructor DI, API Javadoc +PASS Java AOSP / Python Black style diff --git a/evidence/tls-matrix.txt b/evidence/tls-matrix.txt new file mode 100644 index 0000000..8210a65 --- /dev/null +++ b/evidence/tls-matrix.txt @@ -0,0 +1,72 @@ +Command: ["docker", "compose", "run", "--rm", "--no-deps", "-T", "audit", "/checks/tls_matrix.py"] +UTC: 2026-11-27T18:58:06.454466+00:00 +Exit code: 0 +Elapsed seconds: 32.391 + + Container messenger-lab7-audit-run-e967424de4af Creating + Container messenger-lab7-audit-run-e967424de4af Created +{ + "status": "PASS", + "matrix": { + "api_1": { + "valid_lb": 200, + "no_certificate": "tls_rejected", + "wrong_identity_same_ca": 403, + "foreign_ca": "tls_rejected" + }, + "api_2": { + "valid_lb": 200, + "no_certificate": "tls_rejected", + "wrong_identity_same_ca": 403, + "foreign_ca": "tls_rejected" + }, + "collector": { + "allowed_roles": [ + "api", + "worker", + "dispatcher" + ], + "no_certificate": 400, + "wrong_identity_same_ca": 403, + "foreign_ca": 400 + }, + "broker": { + "valid_worker": true, + "no_certificate_denied": true, + "foreign_ca_denied": true, + "wrong_identity_with_correct_password_denied": true + }, + "prometheus:9090": { + "allowed": "grafana", + "wrong_worker": 403, + "no_certificate": 400 + }, + "loki:3100": { + "allowed": "grafana", + "wrong_worker": 403, + "no_certificate": 400 + }, + "tempo:3200": { + "allowed": "grafana", + "wrong_worker": 403, + "no_certificate": 400 + }, + "otel-collector:8889": { + "allowed": "prometheus", + "wrong_worker": 403, + "no_certificate": 400 + }, + "redis_cache": { + "valid_api": true, + "no_certificate_denied": true, + "wrong_worker_with_correct_cache_password_denied": true, + "foreign_ca_denied": true + }, + "grafana_admin": { + "anonymous_denied": 401, + "authenticated_tls": 200 + }, + "server_trust": "untrusted CA and hostname rejected on ingress/S3/OpenBao", + "plaintext_bypass": "nine loopback backend ports inaccessible from application network" + } +} diff --git a/evidence/worker-compromise.json b/evidence/worker-compromise.json new file mode 100644 index 0000000..d58ac58 --- /dev/null +++ b/evidence/worker-compromise.json @@ -0,0 +1,56 @@ +{ + "status": "PASS", + "baseline": { + "database": { + "isolation": "transaction rolled back; NOLOGIN role", + "read_password_table": true, + "read_session_table": true, + "delete_messages_permission": true, + "ddl": true + }, + "broker": { + "isolation": "separate disposable network-none container, no volumes", + "foreign_keys": true, + "flush_all": true + }, + "s3": { + "isolation": "disposable private bucket and temporary principal", + "arbitrary_prefix_put_get_delete": true + } + }, + "least_privilege": { + "status": "PASS", + "identity": "worker", + "database": { + "tls": true, + "plaintext_denied": true, + "wrong_hostname_denied": true, + "foreign_ca_denied": true, + "read_jobs": true, + "users_denied": true, + "sessions_denied": true, + "message_delete_denied": true, + "ddl_denied": true, + "superuser_denied": true, + "ownership_columns_denied": true + }, + "broker": { + "mtls": true, + "plaintext_denied": true, + "wrong_hostname_denied": true, + "foreign_ca_denied": true, + "read_index": true, + "flush_denied": true, + "foreign_key_denied": true, + "producer_denied": true + }, + "s3": { + "results_put_get": true, + "admin_prefix_denied": true, + "result_delete_denied": true, + "bucket_admin_denied": true, + "prefix_enumeration_denied": true + } + }, + "interpretation": "Reproduces broad lab6 permissions in isolated resources; production lab7 privileges are never broadened. Worker can still corrupt pipeline metadata/results, exhaust its processing budget and read image originals; revocation is needed in addition to least privilege." +} diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..61285a659d17295f1de7c53e24fdf13ad755c379 GIT binary patch literal 46175 zcma&NWmKG9wk?cn;qLD4?(Xgo+}#P9AcecTOK=k0-KB7X7w!%r36RU%ea89j>2v%2 zy2jY`r|L&NwdbC5&AHZASAvGYhCo0-fPjFYcwhhD3mpOxLPbVff<-}9mQ7hfN=8*n zMn@YK0`jk~Y#ADPZt&s;&o%Vh+1OqX$SQPQUbO~kT2|`trE{h9WQ$5t)0<0SGK(9o zy!{fv+oYdReexE`UMYzV3-kOr>x=rJ7+6+0b5EnF$IG$Dt(hUAKx2>*-_*>j|Id49Q3}YN>5=$q?@D;}*%{N1&Ngq- zT;Qj#_R=+0ba4EqMNa487mOM?^?N!cyt;9!ID^&OIS$OX?qC^kSGrHw@&-mB@~L!$ zQMIB|qD849?j6c_o6Y9s2-@J%jl@tu1+mdGN~J$RK!v{juhQkNSMup%E!|Iwjp}G} z6l3PDwQp#b$A`v-92bY=W{dghjg1@gO53Q}P!4oN?n)(dY4}3I1erK<3&=O2;)*)+_&gzJwCFLYl&;nZCm zs21P5net@>H0V>H2FQ%TUoZBiSRH2w*u~K%d6Y|Fc_eO}lhQ1A!Z|)oX3+mS``s4O zQE>^#ibNrUi4P;{KRbbTOVweOhejS2x&Oab?s zB}^!pSukn*hb<|^*8b+28w~Kqr z5YDH20(#-gOLJR&1Q4qEEb{G)%nsAqPsEfj9FgZ% z5k%IHRQk6Xh}==R`LYmK?%(0w9zI}hkkj|3qvo$_FzU9$%Zf>(S>m|JTn!rYUwC)S z^+V+Gh@*U(Za&jUW#Wh#;1*R2he9SI68(&DeI%UQ&0gyQ73g7)Xts{uPx^&U`MALc)G9+Y<9KIjR1lICfNnw_Ju8 z-O7hoBM!+}IMUYZr29cN{aHL&dmr!ayq7;r?`7M3z+L@~Fx4o}lk{l?0w3=rqRxpv z0Tp-ETUvB<*2vTh_dr%}Lfx)%pxlb$ch}yCCUz6k4)hyMJ_Lq$SS(Rd8aWG-K{8TD zDUtTM2SQ|y5F;}M&9eL-xGpj#vTy0*Egq$K1aZnGq3I^$31WARgcJUb0T*QaRo~*Q*;H_Jc_7LeyDXHPh?}Ick1s{(QZWni3%OL|i zJ7foQ%gLbU+dOZP7Z^96OoW5YbS=0%+#j3#o3bYsnB}Ztbu_KuFcBz9M~>z z{s?I|KWR0CJT6eqNlIj57Jq@-><8 zV&>W=5}GL`X|of9PiXwZaoKWOehcgaB1!y0@zY^+$YFgk3UB@$4#qATzJk?b^M#iL zKe}&w?|SGj<-3Z>pDd^+G3w_>76zq%EZGhqzOYx6YQgnb;vA^%6(Sx4?gytM=^m`C z@c+mG0LSQOqF$oK!j8-B4hG`=`%8Hp#$+IvanscDc42T#q4=v2YuoSZd{VS%kBNtx zLd6U%s>y+0*0?dDt&wJ`=F&iRWyJS1Y>kZds97Z^J?Kmeu!Fh-L+F9?o#ZILhhvI& zyE^o10y()W>x@1skNd<(ehL$G%S9yZ>AxGNktZ_$h9RD?hd_YxvNIeb?3~*XE*54b z;}9`U&d_XFzBbijUqrX}i?s24Ox?EOfTz$aTz;dtw~F)!(XK9voHS_ii|YmI?eRrX z%Gr=T-7Qx7eB&|iMk+jCw4x6X6Hae`0esw}b;uVy6ljeACOq{ZM6e`2k%XdE* zcZotR`H{lmO?;6sfMz|Xv|aJ!F2{Ucp1Y5HM68;}hw4h%ntF`pl0QNFk@W?2S67+W zF1AU5YS7<_7H6+NrwMJ)&D8^-Sgj_rttU*gt3dvWH^sG8W6BbhtT{Lm3VV5cSo;$3 zNuSXq<>-4y>$9__aC`0aka&~k=}#N;Co3O<6()7bWgAZuB~%E!lv`DCbEMM)G$IQ< z*b89{3RV{((?H&X1kBl8+K_XHL`Hc=25|M6Djk8YZUc&s3Ki&|KcOb&!$LVf5~6*K z>pgW7g-7ASM5ZZ5?Ah_e13r7Z98K>?leVWPNQs_MXx_&Ftg92|SR`xrt$4|%fVGS- zTNZt(a#pl7RaYzzJlX1vk0kt*Vpxw_{M%KG%Q}`scIVU

pVX@HRij*jw$g4?}Pn zE7RuaO3V!l_a{`|jsZVjZSR#tYwAffrvo3AAynZ^vzgSR#N_HZ6Ark)t{_hJ^zSa( zT@R*X#7rxlaj%ZVUZ1?7!Q9{bw(p9N;v)bZUqGgPC=O&mM zRy{1k%Hlr=aPWCif%s7!4cpn_cTyB1=#k?e8m}0C$)+&PD!&)F?>9;L&0Lpv)ZfP| zJxlb;PjKA4x^1R%?vIk=kv;C0Y*;|7*_mO)hTMlfPH5JcHa>0BR$wlt@&-wZufD82 z51*ufTeW5&M!0=a$FS@0MJRlk*~l8^Wl?2mzt}H8ae}hQ7tSz0sBJs+8lQ!`o(21B z@HNyMoH{;2l$8FopO-a)0DQ&f_jq)|ZPO}_AjDPtuOl4>R^0rLnok(Ezuu@$4lJ`w zQ6-4DQIk{FwQJspTlz!>L$CVj^cN<|)t^;jR~M^L^a=dr5aA!{qg3Ek9p;X{QRIg1 z1oE`2L#=6s6vh%=R(TI9Z5ReZy&?Jtj8aEcyCiP*YaYk5=!QbxQSz|aBk58{{@nCc zSY}$niG-_Uad_iRV56Ju8STIoe{*WWn3_?3>0V>z8)z@g_|dm5vKgxu`{>`)X}aw) zyd~I|(HFpmTO&3smRUnoB$VU&snAXEY(aq=te76JpanOdrwx}UD4D8MQ34z&zcD8z><`W?<_; zvO01*U(i7v7=EAJ@&YE- z4Cz5FWI`J^+_;Ez1p&jMET;4j<<0ymV(~ma*ooWab$s6DuWt>sP0$fuap>j|b@rOb zu^i4yE`d@_H>;F8*y;JfvhSY_o*1uZB+)0G+l{2nmbRR>POBwArWP}e z*`!BSjr`p73wW@iA~}h|mFJDOdP|bAlqD)jwN_vU{ z0ntkb0iphH{UY}N?H5%fR25`pw6s}OWdGYUvdqjNg|VZ<>;{luC*iGup0bRpG-1*u zLmD>P9mq$M!k->%T2{@Ea^ZR|8LZp2lzpBQFAfvFIUps_-Vxkm4ldisDdti7Bn(qo zAYco0<;Bu1tt6?z=(H_4yD~5qL+2##Hfo|6qRB-vFmQ}Xpo&Qc^GdrM6&iQtrIVT_ z6q)qyz^vmNwsqEnS6Vw6kZ1XSL;dx94s%n6>F=ht<9+@6=i_*PK35N0Hd_yKD<^9< zODB6aDOYD_a~CURdlzd74_j|%YZosWKTB&jFMC%PR!b*yPtX5;conr7MQ9H6g65XG z7EMw%FD|O_`*U$^ye1(o}oGT&v6r7mQ)iC|9t;%`Wt_`W`dAAT;#O+)Ge! zPY6Umf)7Er6YsZ!=pEz^$%f~wDcEbz?9OR@jjSa(Rvr03@mNYZ%uLF}1I$B4Hj~*g zWOL7pdu2IQtK=^>^gM(G`DhbFDLZd6_AD4bHKi+I<{kGj!ftcccz}667=-{}7`0~m z(VVjxK=8g9faw}91J}cSq7PrpJi3tMmm)~lowHDOUZfP++x{^vOUJjZXkhn7qE^N! zV)eH6A;SGx&6U&c1EFgS6CAwUqS$$N)odq!@3|yVs}Lv@HEcBe?UTqFr9Nyab-F_) zNOXxFGKa2*Z|&o&`_h+{qBoSkb^_~=yo&NYU~qe1|9&TE|8^(T{$GE;wbq8_qB^!o zWNUaUctH}Q+oBtk0YrkWOS_G@9aP2`<7DUWB~FndluuPn;S@}GiG2Iia25p++<(6C zea7mI68gN(*_{_OvF&*I?P;Q+ZzmWcYlw2__v`ENA>SnKs!v266LL&z9X9riJ-15i z?+VKr6gj*!-w2v^x)aO%fNEX5_4-u@zsW(~Hen6*9N_w{$})i6E2y4Z$h5?;ZS!i! z#Q>M4TTsuI9=p|iU9!ExS=~piozz{USJ)(nwWf1TYy0Ul2epIh)bcRZA|?PU!4VrJ z^E`vzA;ZAfgAm2#Tu0K-8E!~1iW6{oBl4lS-5Fc2%_saw>BKrIuW`^4za9w7veO)+ z)~?rp*f&V-xoXD~e%a9Df~ixzE@AMs{a8am6R+SXhXPfqv!>(-9^g7!X;m~14_ReuNF;J z{)~ysZBHLY*>ow*`^ie7bhc3H$N1qVxaGt6xFusWF%owkNrl|{nn?h~fjxFur;u%{ zPf10%f#iPYY|=!*HH!WbI~jskWo9 z%vV&6J9*nXeR4B9>xWboSk9Eo;%Rc=iE)t~UQbj~kZ}4=;KwNN^|%wM#RG(8q5C1k z>f6|ABKw4TzF_F&4eI{KI~)AqlIA;D%ZP^dwp;M?kIJM*Nn1jZu`KDt@GR-|U9|cI z1nW&P8r5WLE6a}#e-Ogslihm9#r{J2n@QFmcUAr#tQi)Hpw4ELC$U8t>j~4TVQMBeq1ZPK`deHgU!QY`%5H8F{fX}O}fV)= zw|oE_A51>pxJ5Kp`wcemi6jERtbEsty7FV`lJt6lR?dhxnyg>(GW9ZID_9Ii$2i#G zdN8@uX$m?D%-Eq1v57~V)v%f8Se#&b=gLhg@U ze$?D?oYb{i2w@tccty}{bKwjeaiTuuL?Y(;;{c#-8v&4O?%RgKiToLey0P8POL9Kwj|;h#ul~;=V1gq!oLVrP zlwx-xwyB=#A|5Bw>09TQ+~jkdmGnJ$YrZ%|h0VcBeiw@b^J+BlumSY_)*u&%R)>JW z7(0lRtg+C9u68--7Kw&9^AeL`o5cpi$Cy>&&kBT$@!Nt_@iuYI<_q4`b~7LsTn<38 z@q_=pRRz<8vLEbi`ICI> ztVoyd+|~B7*q`1YG&7_fPT`QJ3v;k-%itr5x!$sYj;Y?a>MMPep@UxVTF#+1EV!N> z_6H2hN=N0Xcd@IV%9NJvYR74G?Ru3xuB)BwZmD7Zq}qomtW}na^#(qbREUPzmYN6p ziyU)gFriO8NCoWQj0cX0evy`_iBWmXRAqjv1s zUZv#j5;NRuz6K0Q1#jyMzmijh*97>D-0HyQpPUWas$-Ay(?|{416{@{5KP2ka?PEc zP8oI%1X4Fzj3>}EjfCUk#(+zT!v(}iw3p$!^Q@S^2sG(pZFxXmvZD}i1S#$t^890< z{qTT~_hK@t_;8eCDm(0+KRWb6`iW#<@oqli&F&)ud!?o@d#&sm5DU${T#J~}D*(W+tb(BT9{p5*$hl>S5#Xso0)3^_UA8`Gf}moKyx7WW&Za0bEVdTef`-Tw?^P zr({3nnvcOQnn@C^v4ZlJ=yE#rD^h{bm(KZBy#fUGpq~?g>prt}JS^tFeS?=|m?BaE zJ@8ZH<}v0~>8VyqJvJ#}R!cY&OHr9QC&Le-`&+%tpxZJGbNA}s(-?PsV!b$q%&_0+ zC$k1nfCE(B(j~5wJeTrsc466K?t9o4ZikU!~82D-nTxfSLC5X_z)Z!-7`Mxl(>;hU& zwS|rLUmoy3J@!cI)A2T1H2*w45C!(c8--k%iCVGPe+S%NbpuMfDLuXR2R<(-Sw*)Q7->L{-s5w3mfX% z?>dwU|98h&rogmI~+Qsg&`Cy24+@ zI~yTIuWMrcD~v&N)2vQrT9SR!dG`fB?z&e!-|lV$LSR7AG(bHzQ_;o8Ks!klRZlHs z@5q$YVtIP|a<0ze&Q5FD#f;Ht7tgR7)XE`-e2 z5vVHX7yNJH@VDzGGCwD3&Cv(4HA~0rre@MyJY3FgVyd_{ea3O;yVeEQJ4*-)5qs33 zN70F!zWStyRS@NYDW+6gDxGw=`~nt08}PMWhCD6!_JVcmsBLH{IV-gSc^LgclTkID z#*&}F&%i9%MP&SES zMzGEc)ZNPy=Pe~PxMIJEGf}r)daA7PevJ z9~2FSl=99aB`|MZDS^cR*40E>X4EU#m6FHPsurfX_nA42aR38WBr`!09eh=CTMTU4 zl~%%^;KR5%NlSXF?X@|}Nzv4dcNN+y5A)(8=UF7z_hF-i$MKDqj$UVS0g-WPyV6OL zuL{5wAthWbw>!-gJc}jYTscv0L})-yP{rUPfv+k9P(53RgvQc{t83(%8=TWEnJ)wh!#>`}qP_=0d( zpXBD5ujnfd8S4dSaF&g4qmxD%ZcDIqHsbGQdogW$0;r7pe{%LxZvJL` z)Sw{e>}9oM@k=(Jszzv1@-s+_s(2(wE3G)fjDXHCM`v_@jV67e?bV5N-QD0$C3zKK z-N)guBD&o&G#=>Pdw8OLjXj44&;h>!YZkRl>@noB4|)5}Ii9GhIkpa4&kWOcOhyRr zYx5XE6Z?9%mXL=$4#3A_%wWajqR1kAHqKxmm$x5@7@e3hWo_MNdf6MM9_$VgpoL*$ z(q{CFrM2<>{&S6Y`Toe=szf)7`jYyq-w&el6W+@arE9)tXY|B9U+jR~$~pq1W1&4( zf1+!D9CG<}H;#`2V#UaNc~{l_5Ivd<$=ro0i`rjH&%*uOT(BN-<|^pgFE!NF@KU5* zj~NZ;r9SIE?q%=3o+iJq==Y@ncGrYy%J1c~_suJ-ISHZ8;}7Ze!05^VW#JnSZ{I*& zIh*vqjYFYI!RPlGne6eHPoDm#*a$UbxXeR}t=rDi%u@AYv^@enQ$TaphrriwAw^mOF=o zL4X{Io~71KNrW8qCZt1ZAB`G432Db(WnJIQ9Xk;|poyayjFsO+K(=F|m6yMLxTfq2 zhmA&U#r#NiiRz~z8p#Dq)Z<0#?5fl-h3c zk>UdIdslOZew?=b_};J6j3dtba-*VcI`qcbk;`^8>kFo9S}}Tt9TLu=Z1ztD2YHPu zSZgnhwj72$6Yfmz|3b25Ha>8oD1+a}*z1w7`#@Py95vVcvT9dWRWBso7}3^OX!<5J zFcKmCk8_mJw*DB@`1;2cs z{yw*z5cIMwIsSwBJT&y%JBO71bq8VD$xeovL@et#f6tiC#UiA3`K|1TtQDghPWN8P zEdjNjpM*NYM&Wyck2a`6H)|X}!r?3)uN- zo_>B9W*}-{yshhLL1%rV{8BzHnQYJXCX7}POY9l?MPqbvfq+{Hef^*yK&|jtpz=8H z_xgmW~dlvT_#3qXgYW<(+du)1J=XdbY5|3?mgBC!dit@|i1pYvZ=t));Ws^GhP?7etFJ#A8#?jg99r^mOhBAF0jXRypO-&E7a&sa$~AcYYwYm|HmNboB84e)(T zMbK`=mwl{EXTkYc^^u;wdYm$I2%i?8R^+Xf1%XhS$iBcj=n`dTA0<<%tBGKw#pH_< z7yYlWMvJ8ygFM>pK6F^?P(R_40w80B#^gTpEC+Vb&&-!6^q&-vYPz)}``@sQ%YNR_ zNOaXl*@?QG{lR#3Gsel}$Q`3G)^I1q+oN;@z?#FkR0;YMyIDh(oqHLUT< zk%gnOLPl=j+HtG?g_Bx{A*S_^p$TG^ut?Hm$v?F`vMkXn_0D5fYW{-H;0MI!vWi7E zW&b|5>`<5JSg1K8FkRW`QJo!YzAX9xSr!^0mZUEfk+e_~Hmy%77CP-~XCFy_R*4Ny_`rntN5nAV}SQ6N8Kqw_8j7b%7ZDR?e^>X8K<8bXzAdC{U zbZE%9m#;pqPn(rbEIJk19@n!JN~SaxS$`yFfwM#h&6bLdZ|{BnweivPwU}5iB>tH2 z(DDBM^0Zt_|Dy<)@T|GowT3~5P4IWdOi;~Y6(Z-Ao7$ppc<*sKv0DE2 zQ7fJ1S??EtK+|tfC`0&UMEUqs_0z_`Tr-_=AzULJshV->?K>ppr+5%W&=*Se!)<}1 zK+gBXZb=Qr43OMnp>Vd>VvP)(DB)hLH~_LNbUK&g#Uu=wSZ1f)8T(5(=Gf2ks`Qa{xr90g&RZXd!6JA1Aw zH~bvvn5N$5qQCvfR*XVJ6iySM_p3Q6jj2|AA&s@!J8y>W`{M#gi1*@29nCFLvMWUb5-6g;Dkqe-W%-k<t{j$y~ zZ7Jv-AR3~g)EWPXi8B5gmP=?)iT9XMa^Qn@Af zcoYxd6o}pTBdGwc$_4n>X5-}pENro_;kLbQq#Dhu>sziG^)7u&Xr2tw>{M4F<>)%h z*d@4(v_5g`Ak*QtHlqz^vB9PvwxsxB4q`LjQ9BXRa9v*#!u0RuEzlJ)ycVg!jAzM< zYV{~*@!zH&U&Ky~T$-R{;HFjsr=cfwi1SeDIht|kx#-D|XfF8RB4qEs!reEjM<8hv zU=xYuWa`j&_=@NplwLBteU%fmX+IHI4fhNhJ(9zDJt6~n@mvvoH+3AG!+P>6J zoG)X6Iw7fjttAl^B_}-c(@4+*+h?Ha7Qe8QVJ}i!j`ualoyv4$& zTM5iU^f(^;K#s+&Qy=p_&aT6e@joE3-5OeTOqCbNH~Pmb+&wu*+Uz_5&+87~+0ARQ z-azQa1RfyT*cjWoYYQtMYJ{x=QO^7#VGg+K^X1L>lgQSiibOYd!ftWVlqi~aDO=o- z+b(cjHc_b9&hB%0moVs3e~5e42#vIrUbmI)E&zIrg7U)iRg@&c_Im;P!V|MaVmROn z?(JpEilGtTNb(aa@@UfeGqinFWh)iFm#LwOlE)&3%1~3TQSZ6O+$L@Lu`y7R^%~B7 zE}woyC&?yDU{|jD)NRh;$_FhR(|uJmsygG?T>{I2e56P`okogpWz{AU=73=yy67$ zcC?$q5B2xzV+^K8>>@tTcR2t~S#l77fpjIs0i$7=-9#ZS6mO&XpEqzg&DE)guyYm} zBoC;IEiNnv+0Qh}gVI%z<>#T09$#O%uyxfmobpOu2;?=Z-aZz6=B6kz5tC@rCfGX) zm<}1)3w~Ak;sJLFb4YQ8qVXCvDPZy^^(`&U1ynG$w4j!T$Pp2^f@mf0->j*ie}?xL z7WKMq_bK0TX!EyC5YGREoBl@HlmF3q9iv-mHLP2?PR$&VVlu(2lhn8^qDPP!iGg?h zzIDo*qoU|zggy^{%OZ?O8VEtAn78x`78Z~9{lSORlH*gcFFj!%J4HSZEP6Hzx`^H{LQLn>9BZE|(h!O@#5EOOBZcF z6-BayPVRUt0FB1~Gxql91k3tCxa8S(1yF5Zj?JXj^bmd60?)O(ng`Cu$~PW3dr}X8 zN0(%@SE59PaYtS_2R@rPDH1?-YAk&U%Bs#Z=4V}EIOnPTm}=;NWXJ80W5v^rP&yNw zOx@d(3Cb6uuitL3y+uFwv9=7EN!DQ1^%`EH2`&8D?HfvbAJ)#-iI= zlk*%1isoKmj-Lz`F!S+fW>x2w%1EB67abZ-T~^X9AReExl7sV@p9J8-1MZ>)VHZIm z?34yV$eyp&Kd(_of|WxGRb7B97~_HOR0NM;!K-gm@lH*%e@jhb{|Ov)Tpa(CBr;v= zQWZ-BT_m#=dlD(b6$e{ysnx3s0iOvUi<*Owh`j_qD!OBrQgpybQ~6jcbMp(ZWJK7{;R~r`CMiT z=_TjMgTlunNtE_VbG3eEqBqYns zV(n9T5S)pHyxSo=K-cG|D4z%`iKj@6P=$8kBid9^p^eMkn)3_HY4ENhpZ_?y#~&^q zTK>Z47dR=-AKZP##bkI~@>DexVZ9&9*vlk_BG!oJL1Ei#M3yJM(huR0QN0~M65s`i#`o=sciY?Ti;BPs;rIZ*Nq zOLVct7)Utdh%@Wu>TOw>M#Qu?*$o%i<8yo3KN|t0Y>nlq@cvM>s=!?CtyXsp#$?kii@j51YSaSHmqcD8K`ZPt{xYoH2h@X=f^)X&z zFqmL5sjK4cP8)@&nR2(wmzuA-zqIjoejdoZgD@i7SZ=glz76thfPhX~?i}^91xVVqU=pyesPK|Ax?EHnf z1O&K~Eu-T7cXLWl?UmAoE&TI@5*p(q*457~$mxu0e ze`?(Db8+hu9<5=8UiJ0_XK>hNA3^o12oCJ9D3=tOW);qG~lGfzo**>Xb&J}^Sz2Xu@*zcJSZM$@pHRhL$(%F)^$XaQro=Z}n;Ggf(0%SH%kli*5S`#7~u z*M<7&V*x48gsm0 zVUA_fXxXOx(k@c{oqGAp@b;izt}*_E2Yg|KJCV#CU6bcBo;72f!e%Kp2cO{V?3Fe; z>*8^i3-tkB7afkzC=wr4lTZ7o zsztT)HP5h$sNA@YlZtsRl=e&#Gl(QCszU{lpV(7~#vo^tR@oKk+x_vA>{9osLFsoy zS5)cL5glpM(sKT?8kN0^6 zqO7i<4UJYoF+rGw z)XET!cC!7sc9=ADGaCx}ewNH2F=eNn6mB&U6ll_bUDLk`21UpO#-y7->yTKIaI zZ~FG@O%6h9oJ%<1*TaXGsoji}?}tFbJVcwX1M=*aN60z#{5kg0_Z5>0uI~9vyp@R? zF(fli_tW(z(;EZXwIv(En9K(yAIs5~r2#tmIeG283az@`SA{HRf(#eVG=i!Po8$Iy z#~C&U@?B#rxgN=)qPzmQiPeE@&*|`S5~|rUOhc~rg0=`*x~v)Buyu}`;_64P7&B&; zX}AjY06Y@6)a?YSm-GRO%6f6ePC<^5w#0~Z_^LUu8VNnm)Q3^EfJ!W!p_0zgloie21K}^yuphA{ zr#G-tJ(dn|L()_VxUEim`lAM%-uW*Go?6X}k%Et&h0-V;ux`rvnYSm0U3mpf# z+auH5I<7}3GpsB~X9ldCt!$yBe5gUfraC6~=t%kSWLP(~_J=rU7 zR0Q{HWo|me08i&@@E?wZ^*zdJ45^LAG8Q_~NJ{>u5p<^$TyN3Jlg9x4;5;yoq*mdt znlDg8QcrIE?D?N2zrl!;+>Y>FoKcq~I;7>68J(W(V~*7VJ8M>A7|^ zP{=lk!0_Pc{oOSi0(6+_oJ9L%mJ~cV#qP_l8Vt2^s(wW|U9d@L5YO|Dx&W(SYB6TU zVvSt;VL?E|24F%SW$}4LUc`Ej;2X*s~%}Zs}ENa;}C`S-lWhTf07(0-sp+ntHd% zLgeH>7(T&*a9hy2z`|}sD;WmXD(L#Ye@teC#@?WZzZ0D1-x3`2|8_+Gi{Sp5)%*+1 zIjc`84vAxnSUN7Q{Hj{6i)EG`!EZ(?k0FQU!(~L0%v?O+CCR6@re%maiG0RmEi2lE zf7aM@9>~v~`Z&|Ub^m&Q3%iR?1l7RC##cw@OCAQVDA{%iC*`|?vfx+SJguGM=T3-u z4&+u)a!M$B48?#&<4vsFAXRj>-yxCvz&uuv;~frmzdtFPFj)L0BsSe*Gmuc`JD!#z zPa`c$gHeOUnc>^CEoevD+?_;w1|J|%L z0*cBks6lMxj!yTto>uK;kL4>$Rwc49p87NFU#fJO*KMo$Zewfzc8K|35;l96_aROf zb0;<%`}g5;b#pH}Z4YxFYY$IzCn-B?OGj&uf7v^4ohe@|9sECA73_=L5t!SW<_J&} zGg9=4nxsgO+&Q?^;wai+ACFW({&aY@f|5)>U$2{*-o+YYL29T-j8bB!`?2O6xB*mp z+m+gyhKbikZ(C3UnQv?1h^n0mCoT zG-)F7l#@A`)%bDwv}82PRoxo`N5Pnpx%LXG{7CBroox5+1)Lo^iuuGn%wB2(nvydI ztf;oYgnZ&zj>dZcMJ8SZ48a}_QZq|V&|c;}^%S&F0gedlP8tIO2R$<l0~Y0BWA( zSV|vwDB)Es1cO6Dq94jGL!#akBeCo}wGTYxbkfJ?HaSvNHU5IAga=PON?4nYe?HDt zz9--xcJ4mr8Hv&`-Pnm^es?x-zu-vqF}@0PQrw$uUTGzZBaPo_tZ|6?!%1$GddLfb z&CC(L)r?4F1VbnFJS~-H-m6mvRWiyVG7iI1-yhTnxW4%V62OxrjwT1wPAq-1?xeY3 zu97J`a#Uz!v#4y|8fjcuT@@ZuCUGYg&E_#?+;;)qd`m!jTA)%IOpQ?9;F-FQO+qXt z`z_Rj1`W8JS5BQCAb;9L#~CR4kV2p@K8BW=osN~CdGpmvj1%vXp(m8PJO<8E-uO|H zKjAQ+ABcrLNeMYreKI)BLzK*JDkHnzBMT7j%B~n`y*HS(P#=B2&2l4Yt`TF4VLhS- zM)_I2ct`%#d7>=lTbk<`4dD_xu)G)9RkK(@s;*&S^S251p!_$ZZHu)B7$M7?lHr-W zF%kEdYSwBGCi?dAMjwuuQl25^@qvB7`K+O3hKRZSSMK$|L=-#52Xfh0(%of7Slg56 z){|NTc7J~inp2I8F?ICJGS>rwP`NzKI!b0&NV!ysj-Z+@6E5SKuOjh|9@9KmC)Sq6 zc2*b44y~m+U);H434xpz7!4(t+WhIxA+fx@Aj-?SGo2BfY$dv=n1dS9rJ3*GA|GM7 zEsHJ%0?m=(MMtZJM`;;ImPA#DeXRr&oCH3CK^`x-Th#6RZ%;(*j_1a+w{&)aShu7r{tdXdk?WJ-bapM0|s?&8F+kibcI;Z z9Z-UtlJw?oG&;&NZSB9IEi;x5-qJKjWQrGy5d$ARAQ$wA@+G`d4m>e;Mm1sNfBDuX z;AlPXi|TGm(BpnE8T-ZXf{W~0Wx0qQ923F!n=H|$ktTp_<36%e?#jZTR%lsE?s`|G z_T*G`Yot#9M-G?e$E8&Z4^~CZQy!|3PN*F zDNfkD=^5SkBe6Yl_Le?z-ds^Xu zUGK3)J3ER-q{i5xeH_LQ#opHd`kzkZ8OR$wXuGOI0S9!4$bxd9rX#XpZE1rr4^nlI z%#Ifniqpe2QUU|_*1hla_WJzF5>$w}YuHz!Bn7$|L3T1o(*;+m?~4zM+b*Rf`2F@C zFENS_$mw8?Q|%@8ZDthiuM{w~NTxxb&VSsRle7&MYMAtnOu9n!RY4X8?EYiSeikH9 zOZndU(*0WjmH3|m`aikY$<@;Fy}`luezV8P+tc3XeMs5KTEf!O+S60T+{N7Xe=)PQ zhKd@t1bWcS73alQs#@~xV;CYJB5Mi?KBm+I_4{>vPgk`|r*9%;rv=}|<6hAJe6m%Q zMI{z_E?vq&91RPqy7IqXu2FoPGxhxefqJ98J2f-&`?k`IayjoSKR?nE_Zo_J0q**^ z=CMK65eJ9MM3UF=fpVw%jQosAdgrbkV|?jWk^G=GZgIWH-m}@m#m}e~pO>~^LxQ1C zxf5=MT9cUh7zX(?ajfHlS0m4UuFZU?mWD8edgL(v#~-b6dRBli37)yq(dkXa^0qYJ zm2>PSwXHmOY->)I(>c=@V=H#cH4iqkr>!Jcq>Rj7HCe5!sF`+DSryVrGhj1JPn0w1 zpz1F3V?}jAmjhC2W=WIhi1|62^IeKs_Vuu>tvlSbf{BEZssNH}YC!RXPf5va8 z&*O3h@9IqZw?VV$|3rnim%S6)e?vph!`#iy+C$pj^S%9L@&1{si;jnrl&j0TX1^=> zzle3jf3?G?B1XQFBaK`)JeJ#K>clF%=Vunm%H)`gIijk*u5HkZTQe8UY_h>oeW8^p z@_RMWVv0Q*F@)Uisoy6=JZF1;Y-Ts?hz7wmqN?rggTXHQJ*&xJNSfp}aD++2QG~si zmZ4!fZLnB;l)F@pm1^KxY6sa9z3@2v>*mIZV!qbQltmvKmnn`wiCxdz|KaPMqC?x7 zcHP*vZQGc!ZQHh!8QZpP8#A^sW7~FevVL5gZ|}V>M(b@{_p08j-tp8sUL>;HOB^b$ z;hIbdt|h(^Lz4!n2$`tDF>w>d+R^r-o8L4CV$Dx{(t;5vTIc;CPmAYCX2oT221P|P z0{m6DMhT zWW~*jfZ!{&jQk}73p}09Tf0mmdonALDG0GIE_*DY+Wdy$#(|jSR0=Mb{Usmq-&*Ok zCsP?iLH+L;SJ7sgXGBvgEBzL9X!Z;RdYm;+&8*;3+WY7|s0-y?RN9E6UFwIYEl&bu=-nMHo)d+Jw_>@v)eZkY$8$E+&w}~w$k+G*`#;JKQIBmWvt^#A{Oa{KQHq8GHYbN&e;1A7?*3)>&I>Ywl-Vf>E( zvQe0@{Tbw`B8+7nj^iMN)JBJMJ$R(z5LXRwgg`1KAfa*irOnlN`N+}PSeahWNpMH# zEkxJ;d(a<#rx3vg97J5ZWNArdiIsWV&-)W>2LT?HPe->0&o^vFLa%OWuTVX9U$?5V zfejQ?X|e?mz-n;a^uZt!@!@!QsCW=UAs?r zRTQ8XNK)|mhN);1*Wsgp=~a(a(w92^6ZpiaKY(SMu4&}wp%6OfyRLceC%f=xCKu3qzu@%oq+s|rI$JfnjjEiSl-yJ5 z&C_g*h8aF>XB<2ZUUb{fwE}K_wFQI*pmFoiWa1jwhB&aZpsjDf4n@s1PUvh=bKk*C zWaM%?xyG~!JU)K8UUYy2;p+0qDDAGskPGj)v*r6B2BAdWoLy{KH(Q7IIJhB130S>3 z=toe;P-9s7>Z@J+)~YG92JKow7C3C^J#6P|jnPB1!Rwqme_ipn11EyPmc@XS1EHFS zS%uv?Mosl{H8JrKN{f#G3;|qewLxT%X4^u_i>Fz}0Hd|^pCXn#=wA=R&w#{rDMJtI z*&o^M#SswkL;ycEj3FkB7P<59R9AXVo&TlI*!q9-F5_N$gO7st4#Kn4&qAwL1 ziF<%!Jg8Ee%Rr3Xvo9C&K|l*sRM(}efz`Gqe8mXaZaT$^<)VsFETikCE&uTWs3DGx zWx*Lp8pM_RVHS=@z8CgPNe)#U0t7Cd*wLtMBn#x}*}i7VPbu=sc9D}X;CdTPQJEKU z!`+jf%KLMi%F^;EZHM}qMQrSTOF?GVb_N7Y78K-1DWMeAJ>V^4{!G4ONMXe2mDhTE ztfTP05-4YxaNL=mTV9CBs$FRCk1*7;x1MMBZA(u3mM@oLRj89xoBa&8j~L+0i4)9o zcMIDE8-zVDve({jxwMBH6bZ;3Ry)bqL&Tz= zr-@}D>{Bm)oHD}UXpeSii4H8ck>-&k!B3XxBH|wa`0R6goeadkwK+w{@eWW`ozPTz zzJLC7khb;B?P!NKLSN9B>Rz>=rGQr;-4d34g-lkICG_Jdz1TZ|lQkU1`Q4g#k%5~G;DFt|mKYil=Ox%gkz zp}sQ~xzrDPfb_3y6wCkp-2UH`CHcu&cMky{iBt&{()hB;6kkw zP%0{lE%Zg3{OX9*0C#^X-QU03FtG7P>$saD*EhL3LBoIG*uYr6$~h!fMm~$ZSj8Df zMjOUCvdwJHWA0<`<4N}S{o_)406L?D-NU0J>!bFb$tm*w<_CjK?KyDg1?m**Q1F&x zvdA3LQMzE_Hu_PG9p8Bxi2HCoy0^C*C^v7$ywtlfB6`wGhENk7ye?;xxH_gr^j<|* z9Htl0oGx*#-6I<{2#ZdSh8oCICE5lv#lUjuc_gd1ND7QVuH)ol%3&KZh9aJHxnt5+ zoOs>TE@dPppAjuL+*mCi=6SCcMol=Vepu^7@EqmY(b?wl756n%fsW~wNrZd$k6$R1 z2~40ZH<(;xt+$7LuJcM=&e{1MgRYl5WJ0A1$C3PoVHme!Sjy&9C`}e&1;wB;C;A*2 z=zn0IKV9TBRf@}HLUf7wUPD*51(Z2OF-?aS8g9aGK19RG^p(MvSr*j-yJ~g`;DWQ@ zm>)jnf&y$qO43(PM>s>AzO@c0JT>h>Ml46?)9EG?S`3$r#{^%HIWQBrhVoRrP_hin zVZq6|`SdmdBU2ZIF_f< zwOk+eoCuOx{1Oa;*J8>1Dl~7xLUBf6U_0=tUBS`8K9P_XEDZ__5)FBJmf^FGg^9|3 z7|XM(3>NJ_OR62QE9Rz;RVXlwP1m!3l_XJ$;1bqgLzKSb;sdl;R{JK<+HjH+>=;|FgE)pRVZyy&y+fp6Kz6EOsS$nAil z)E&T0mU+z)s-ApBI_Q_!C)H$*TISc^zyE3l^#U6l=}c0y5DD6)m*t(~#`F$L5~=+; zg*v_EHOw_QcuQ?Ts3llUFA)Px%c8WdIf`U zwUs%DhS#-f$|o>`$MVsSLO%b>+YKvP9P6G4uKjRIlL29b%ULV zI;vtJ@0n`UcH@wNJC$W&9aQSf7Mw1(!(D8Iv#XggE8yhCXAO#R_FNiAtyG)W>@23? zS06PE--S7ya|$~!9cJKcg=H4nFtFurLci5Aq&A|RW5KWK6$LedAgKz--ouWjF;h2O zO?Mw&UeLh9uYdH;S-*W;4oh!-Xad3?2+(<}!<#uXCG#EYqswtbU1VA`t(Fd1C)rjJ z5lGFlCf@C`F|oel&7v6G+dNI|(d_Y;7 zIi!q0l$vFh7UBgcB(r~4Eszx?0!TAx7?N0Vs%j4vI4-k-CuPr6S5xoEY}gFyK$QZ5 zFl+%sE}f}p&ozcc*XpuDluDOFwyv<32n0)?8=9J*L&)N#`-cfEIBsP?OvmE!P#`P3 z@hBfK8ir4)L5}LY<`;lPOrAuQm8m+%)bj*e7&2v8JU`RM<$;kv7VYw|1KjF`CZyVq zQ;BY@l&6}Z3ILSqf+o^-g&8zYn3_A3W{LkCvcjxn$+1Y77M2+{SEkY<%ki!^B6Y-O z#IVs$I}{ez4=MCS2PZhR(SBp3gCLMa(6h|k^ocL8Ru{kfV3fX}Z|ww-Ig2O^a6ed+ zEigF}zE_#K%Od!Z7f<;&t0^|7nzl_Sh=Z84@<+;o2z#58Vz7S@*s{ZR6!Vaj%ya)v ziD~E^ClRVkP@NrNNF_?nJ4-HFQp97PVu(${w&6`I3 zAW}a~985bsE5sI6;-TNDBABp0QvlV1Lh;9`O=G7FXFF4lUdXVr@Yr;16ZKR+z$6;s zQ{9fUi9P|=&}ABh>jOeYeaE$}q>!#8Y%q?NM`0>>$kHHns3;l3sL2Rb z(3U|}J8`38Zwn!GrD>W0$t&Zp&F@&`D0KBYcDDgo*>h1|Ey3XydVqC~=G>q?L=edX zYFS8;47MB01Zsn`BMbKA>XvnjT71yfSLXwMPF7ayG|4ys(iA@%HNTFlpC{x6-}p6N zdhg{jk}pM3y?5#SItjDi5fCpE$>L`Qz#d^$pbC)=a%-NPHba*}>H#$&qo+jtvaTP)7PZStk*}35F|8HEoRnQRx;jguRohf(tGkLHrk{!MSDsI)YnZ^Pmmznq*))B<4J{?O=ge?P*=qdBr{SKk#JNQ z1vgFWb%qfIs)OzT;P!f_Pm$ru;d8nl8!A*+rGd(*$~T-9ll}1tW3xAU@}#MAuJC*L z0C;@^N&3czV9X-jWPjeFb+fOJoUQv$L{yq=a*L}Kd#At~5Bl0l{n zeH7>=^jr!`6Nz1t9E+x7hBY&EexVHXhIK%)k^qwsA*-id;Eark(C~&aV{~M|8FCKT zs0-mMgoGl>k#)iwf)-{t+Rg}68E}9kyIc=JP9+ezx{<7D4+gJ4$?_qsidkan7Hng9 zCqfv+1O!7he>OP?3up_hldSIDw+YYT+o!27ZtoW)_?spE>F+a%KZwEIS6_DqxSRs7 zGXTm=$d=h}<8TDfk%G@F4U>8n`pAr=6;CR%Ba>`9?1y|H4-O%sJ2%!5vA(7=JO&kk zX?ly;ss17g(X=9#nUWglspHq?j@f+YBG)GsQWG8CjK|mXGVC=3R zYy&BsP#C~;wC;oA{He+UWRN8A6vEWVGmaC&AtL|^>nR=S*@8mg_m-SSYh4o7h|5Rh z+5N2&1DIo0wnNW{IFH4fo70@u5TUL~e89t6qm;8njBvLCT0ODrN-b1qqwkByTP2d= z3u#x0Pu-GERkw}IAr@lU{IL_~viIH95L;=?Y4=(fUQbepY_C_Lo6EzVpM~N7wC48E zLHp>NA>#Mo3d}Fzy_x@bDfx6Ljk*Ot#qKu}-ktw3ZdgLkpxC?5r(fpz4J?9V`54+m zb5i>fCc7NelR{wncg9?ka!+E9YRr79{cE;0@@0$YTQU) zVH8x+&_YB1`T%(VJMj*;J3XT{mpNZc^^#0C*}^mP>=g<6Pl1l(q_P$Q2H6-Vr~qOV4Pn%(I>R>u8CrAVRH-FgLgmrn^!-+%wmWS zBI%O;v{5DdT?>bb1PlWdck;m& zG?8;NCa#=2oqHYKT0<~i3BRC?0{+JzM~g-D_D`yp+4N*OC-bxK``0V=Zxki%+)mDkS^pQ12u&|6wk0VNGM#$u+&mlTun2ByQ0crVttGAJx(LP92Vq6y3XSE|2J*}wga zKXbePGRmVA1~wR|#9mGR4wIkl+84^>OFy8}$=ce2qG0gZ=Sh{}4_e&=D03~pL5m{i zP(Ngin(dtf&?oVg55RB}PA>B3f9tXpk^5+?KN4NTze;pe{}w#|qx1ix&HhK^6l;Kc zYb~{Z_f$I6)+UnOFZ%7=*qzDvFsj)$nSTQGY00&)bYD$Vh z=Mp?E7@#elofl?nL+Ajyl*%veOj_a9#V>ZA19kX5)*frI<}B(>&E4Jdntt{df;j|DzDUxwq?|n{Hu!vR*H~>cCI&l7T$GeNk=Ng+1XBe( zfcX6q^Uq*Nu~&LYR2AFsz-f~tS7PbJ=!JATCIVojOo>QggJro0v5jy;xq3;fEzKkt zdb@do>>*3K#aFR`O2#+~Bsi;}M#`YH(+DnO1N5Hl-3d!{3G-A2gk&+M^dSK@3-NrK zytKdh{OIE4Dk@06#=(*W*_5ec^p=7JT_Um3)#?%xTs5fqy@kK*{is^ha)BbL66UmZ zXe+q8B`4Gc}VfQj zqdGkRB6Xjx*!hG7Eoh$%B)ih-SpfU!A)At?X5w7?>Lgj=RC!XmqJ@$`xkm$)&O{NE z7zj9>Wu5a1glJ6+sZqL&ku&qfJe_696xY%M+5{Q*03~s{gF+;MyxclXfz58vZb4r2 zGE@P$l^sMWnne@vmeP766QV|XTKw{f$_};3!{7iBk&;E3vrf2^l)d6O@R~&{!#Z9G zX{wlTM57#oM>Z;L3WuNo-J0C_&@>>~b{P#~_y_`gxG)DMEYUUqq0O(}&>ch-wC({e z9XT=mDtjJVyzNAu43=1Ow}&uu{|Uy8%0MEM-#-nIRG}=!CehVQKuYhrbe~6OK5OF$ zRDCn)f|R{sP1QnPJoZW14w{7rk!oBpOY@y=ix1R7IJkZobR>D$bv$aig~U4 zE<`A;fm7SCA4*XkiKemy+mlvxm*S7%=(0V0j2Cye5XTtz2x5PWHMEV}+>G zy7}=iU+iJQC?(sRT=??`!Z&fkLdo@J<0$1eA(GZuCJV;fWJV>y zia99Dv05Qs{8G83g^{w@@*~vZ2E5C3d$0$76^_=h0?Ay_FCq2?)2z|apx^r6Fq?X^ z&vU>OQWEXj+C6t)M+Gx;fk0RHH!H$ztpj}$<&!a8p{dft1imSbT$@s#(h=LWb3)Qz zYA8iL$QMWV@sfc=0CZ}{u_q6po+wOjpWrpy?q!;VBRBC7X7cF^bZ-eeB^f^> zQB`Z?1o{tEQvXOXqRY*(yLcw_fLf}o6r~WSG{{vGOiUVgD%J# z$j&gdK=e~U|J1hOZS(>U8Kj4rAvGrF1IWBx{2^Mp9Wk$g$C!xeTz`5gS{vz0 z-chgg;3v&I5-}eaJyclm^@TSC4tN8eor7K-uEcUJfuimwaZ64BEb%Suheq-h@Da~g zErZ@oft7xIYR7=)2~so^;HmQf-=SxIl&g3yZzQ)dn&;*|#&kWgLlX0cWP!F35QY=v zSB2>$;h|~6)Z{ZLT?-`a_JrYVoHNvsxvZ$p1q$y_cNN-mV}o;rcFMJONM=PnsDZIr zVC2MVapQDikYN5vCH)BZut{M2Q$T3})eTDtH9fqT2|SXZy|lnI`d{w$f~eB_D8UsS zn7lih>~118IeOB}ai<+1Y}Oohfff{nLFk}6M*X;93@U5h)p}SnK3uuK2q=fvx`Xyn zN>T9xkcy8E4;oi|>Ch|032-OHs zbh>nVJ8-&$cS0SUbBU)ew^T3qUYLo&ytrP?yM~iUh6a~yUEJE{s&}4%{tkwJ%I3pE z@~ClA0k^%03=gV<=L}RkZE7(7;dIzR{69fMY zU^Jt{-4CVPngMr)yA@ywB%OxN(9zlZeJ(P$YIo})tKSEG2nnWbN889d)`f#J(fV;cEu7)J%aN%~_$)Z>(fMP3Vw? zZ1PJCp0N}}5gDw$4Kt=g~m$O6&y+Kq$rbyR;oM+-R`+eqIfUr?P z^Tnv<)ZPK(iuebbZzaRTC4*x2up0rczT;GrI&O00wgD>Oq)Jp(5T~R}D0eh(ImW^V zq^(nk#P--V8q_ccE2YtLD|<`Rffk5wZr3k^DEXG3Po?}a=HOQVEB(M)*a!!fve8!z!Jf@HMHG$ z$9EKahtctY!Uf43{Inms%oP%|N{r%Wl8AXQreHG|%SgOX+R3KZ z^lNIxqQqP9lFtAjcNl}c`z!qTg|S|01BvwIC@gati68424l$8oM_w_9+~Bq9_mT)V#S**~fdp z@BLo^`s#=L`T%mcD=)EJ{Nzv_bWJw?j5-ReXPRv&KIY%_A8P(@L|Gh(XQ;v=Tp18@ z7r>|2AMn|^W-$2JU--UNcT(oY2iZbK8`9XdNGl$Xm&V*)@uAMX8u*)wDN`!HVV7d?xvknpLesf+@g5{Jqk@X&e0;gw;%` zRVef*D2U!@3ZuId8&n;3n2I&kYrq1EhU6q}s*ux(T+P&EymJ&Q7a<=G?M>9H*tV%h z23C!Wus=JN-k`lK#w861^^cSm_tZ{S?O=>Ak^9A(vodXxfpoNh_yg}l zM3JR4aSdggXNv$ftxyAIk0-;5u%ivhS2Q3>Fs1OA;)wuh>KVpmy;!!JQz+Fa)GQ^- zK!uQq2@hsSSp;nlsLM!C5tlR5`MNS6;IIr1_*gST6*BcvnIG;YyYGmmuR#K*= zW{uWUoEW*&=I0`Hp&gN!RL%z+39N<~#$AUFb$6G54ADoC(v^yC)==1-043o{yYRJP zyu`f4gc@N2j9u_+SNa&F=X+x+p#=hz8Lc@+1ki6W8YaIRTIemmIfy7dp&X{fj~8A5 z%MqUqz^ucP8mK;Nv?k6THibm?hKYU&l+RPs?&Z z1TK|`k~q+aFp8HT)feqXLhxS*m?YjEC#KtJaU7mYr$g!uMq%M1bm;dJ2e&Y7Q#L)5 zG4CQ59$X@{@~7_bQn`oLt_|6Bi~^4)#TQ}_xI$wrYB{JZq{uj9P__r4Tob6IC=Q}q zyu>Ec6-bEPsLB?pwBd4QBos#AOpVQ<=Ih6#w51-ET{XQ)KLY4HA`top_#AApi$CTs zpW(1RE-Yv4G@SK6yMC-3ZJll<7j}Q5jL!+2({qTggu>xjpO@Bs(qP7jm2sgow0Evu zUa5Pf zB$L4|q6bjR%lVO1em~M5oluvKL9?Kad-PZ0P0t16@Z#D(z;1?qUXOli*7Lg<#rW2V z0;mE!U_v+b8}Jit=ZwzDfy_G)d`c6&f+YBWELL)f^||ti_jW~^0=}#u{aqD1418FZ z=l{IshzcY0XC z`P8}4`8~_|wqkLI0@D1q?S++|j}8nchE+58NX4mY!|AqaMInDR7D9rWh0^j@qH!}( z0~#|rFu<)PAi@bY7dSWO(4;O(sW90AHT*0AgX0ClwN;lZ!_XRloGo^d(oR=yX`7eR z1>XR(6OY&6+M=Sd75vQ1EowgN+9r$4?EOtY4*lv1`$Lmj#GZ-`YDS!BGyYhnrmf$W z75wW^{L&R&KDp~P_kfF`!J&oab3foYFq|9uvJhbD!7kN%bw7DktjkmEy!5W?OT(c% zaGJp4Lp{#`F8Kj@Z>Ss0O%0@L z=_o3AS=j7D=%871sN3^>4%ZY_={S7NJKB5BZ|4RR zQ$Q7UxvnAL0uU9+9>1QsfJ}Vsk*j!!RFk+XflYjCk7$vTJ_2SjeXY~bvXqblWkH)8 zm_H8Xf6>cR-*W{BN_PLc7{{{Hc%%?Kj)Xka%N}5vxmf{!6{I)`F4FaaRen>B>7{M7 zFH;#D`{Vs0{<=mIehp`2#J!lZkG~;8{n4Mp0vT&&EO`ri*GTBE<@9%eA2EM~pMK|a z52w|kkFT#ceY#i1{l$%ZzzP>fzWZ#yiM*F4I6Ykr^6QAfqcIma+F$($yxTbswfDlgY zjgc~blW_GD#X`_8!LVXh#jx=VfgxneOSO`fgCvdo<$IRqBZc=+iQ4*V>q}zr*5$0y zCjk@J6MX~(C&%#*)pueRdgDq9e0j9PB zH6wwc{sz}!wSk_j`47%~w)U<~RoFV(39zI~L8E>5;}$1S)B!fUVwJTcH%^mMu~pJ2 zZPlV%ldph=kh!imgV=`k@d!MVYlsVmU#lPh>!3kmtG!ivoX)l=Bdj|w_Wt{f2|>{3 zNSJBa$L3sEA!C~DNco&iVHGD>@4!!uXNlu3Pk`?puU-1z@$Ouu+{YYp2%M>$YNN-R zX21B@IoT(UP0b=3v1js}LcOnCb?I|)r)^)mhCCFjNA8R6vyr}%?s@mhmn#KcH}bC% zW;QKLy@waI1`|<0|FQ+D!u#`z6h~9hlBk|$5N2e3gRK(2L6k3test;wIlH<@Hv+Qn92fx zxYGjYk#gV)nx5wDl36YZW|c(eQM1iTFxD$M4EWQ#@Ikmnos zgpO#tUHZE`YJGE~gbEs=MG9M`5m7I=qR>=1V z|2UtTmrRK@T1SpqX-PKPSeeIE#~-b^&hu!oPqmU-_+LgJG;WHj{q2!SZb7%m-xQ6! zprUP&%cs7y)ikUvpz?yHZLTdbd1_X+sV&8NcR6UqFVOS~I=djZX#X^7>faKhzJ#Bp zdXF`4{uJpL|DxC2*VjB(7e2@F)x1`h1r&p}vA@Wx#D!ct;SkNl>2{9Z_i?V?2dr?D zEd@K)v~=zX&B$_7XuJ*Q=;ZT)|s#?fm3jniC9CpukXut5IW=yN2N`|3UW`k#rI*J(Xog2^D)Y~x%W47}h`A5$ zmsV?ZyTV#5oJSmcHHL$rGkvPMqbhJO9T!=1UlzT!b*#&pQAD1fXRNT)LXTW-KH9P5 zqX6mHvf(zeb3x zEXeM>NHfb5+$HJGc+3)(nv@x8IBm+l(_C|(TuZNmP2*`>m!y$tW2AOSXO2r{YZStF z+Ccj=qg;lR(Uy42#$^$lL6qX^YC5E}J|Aurs@Ss9U?as1KZVF7dFk@jU~#Dse2ANf zF`pf3Q(VNOxBJMQUQBKAVH^sz485r#JAS)NU4%V+&Wow4Y{!*St3Gm=3c?7!luRLJ zg8-;Jw$eoq@LDU6z|5f3BMW1QW;(GV0rdsOsTMc{h*73QQFwmZi;R`xCLKjs4V{8z zpkLk}#kb!1H{sV&A#105ow)@<>CPfRO1^->7RCgfoa0qjRbtq>1#mQA6~Zmps*9$C zR{@xZBNKF?Mq2ai!d{@VHsOXn&+e@mbit@0s%m5tD@)I6_xzwH=z`O|vOpFckg9%m ze}V)thirtajxb6>mow9(IM=w0UNx?l27;MU_eGA7OLmk!q@j@SDNnEli|fF2ROYDX z(@@F^{@`$zOC}1MbT$&$^l@;LAtU!dl=fKGg;g3`;8!l{0*2`6io3n)3Z1lwW)qSMX&&H6B6op0BOsY^48CdE9CD;j|AytFc#uUQ^dVqKV zwPRM8q8!llV^uFELm7t;3^3M_RLO)8_Y+j<6@LtI9XsF1+}4a!SAPqcNLFg9^)`Fj zSgEmL4kjDU(UC-~)XR&&6b*YRSK8_SzPffPc3;=6(lfX%ve2OsF|@(LglrJAy6j&3 zQ53Gan!U=F)Di8RkReOBn>zer+=(TSwGnTf z*Rnzm*U6Wo*mtLhu4%hSke^_>nlU7&JcYPyEYiWY@cQ^DiF~Q?auFs3K@+K8;kuMg zwuV5kYV-V`8Pa0Rn8E0n?XNhH*Pzdpue#m!P-{kDo9Kc7o!U8?)FJFJY5DV=Q*K*H15|zoaeZ z;gxIT%0tMEjrEbAVn)F1EeL*5dWRT{nl;)MIguR%znlTsrb@ryC{?py2EGI|CFryT z!uC0_J2yACqMsk976rAxFnx|V^q+Qn7Iu;++gH158K^3#bC1z_krqGEZP2cH2SaAd zbWdZR#Bmx_1o4@I!Q%W3n9Tep>w1BA*_y zE*4?as4ov0?r$f9#I~7;2el*Mt(EV+zC5+-Le^6`%OR@XZ!})>Bn}{U%S&l75_70R zb>YYVd*B6-9;SVen?o4vme^s{;3Lh@2$FpuId@#!0V5XGt_n?Q?>0Aj{qI_?>+^xw zpWFpX8(TKSTB&wjom%A@uC4MfE>)(Z4|)#^vatul3d|Q&;^cbIOB)Ncc@bD-%Z)*b zPq1FtofUV>ei{WDtc7W$-qg(JrT|N}TkwuR+3~h=h~$sN2i|q+rc#10nyXjPFTte^ zX{QLKnDAZ)>$oJT&c$sbSl&ZaSmvY;Hy(U_{137EqvMIR4Tz3wJ*XZVoe?g>F+901 zYd1hLOzdEDvb{a#imlA+k7IPm1n=9%CPPZiV~iRw30G35qwSMmnzx? zIb+c;+iZk_2SHQzZBl&ygxB(x$tptwTl(*r^Cng#Z?J6bC#<$TK!Gh8s*s1u;;pQX zvRHWJVDysYrJS95YnW<`E0@-JJe=tSHzbs13RN2hQt&+7Ng;#3e^8-n6v{%EEkz8t7b~IQ zE0;F@wojhK9vK%HemcA8cBMI&s4v@}lHkJhXfrM1xj8Ej3nMj}xoUbosn^ObCdY7b ztp_(h)oP%ekys;b$wHPtmL%paSC_hQ*ReRSJSSzB+0-?Cy` z5(TS>p0S~tJG>R~%V(`qVL47z>BzEAo2^%wsckeF*O7_tEk%rL^AH+1}ZpX?fat+c#`9u{zqNInLk*PD-r4NK?HTgbbEW`hdk!^+)OerVxh}0<5*_sCkD)>jE>PECJ(`rs&vQSqiBi5#XrQ+l@&S1Yd zW~|6Kcs&JHx%qg0uNT5t*sdKbwI=mIMyH0=l~^7n4%Gx9Hr0&5HEkKzFe~Ccz#3>T z8x~`%;_^u&p%ch^L3|%V4fmqvp&jfpm{lcT_z+Z6sX{br`z*-z**l( zV*al|m~_3NXsFj%c&dvLtk<>Lzb&cp_>bRZ93&_w^(yYX=jDDbQn73PDp7cdU?aL*BL*VK;Q1cou@ z<%G;A5a@!4(@Hfo`NlXWafmoES8>Q#r+J<2e z(k-d+ZwTe`VlkbBAvPyD3t3`rz9J*x2ndxGh-PCkPFw{eMk~JwiK1`nq$^QlOp$CYm2hBso=rlg&n>nQl`gxTL!*$p%b2}P zBf8is+YZF7+2?v68)+4;J*=8pE|v(|x5qBE#a{YZEy5HT&i4U?GLdWzRHt;hud(O2N=D&%P3w#yDOqn~`& zeDzN3*cbj*P`#yuR3A_4HXNW$%i^6B_B8n4*HeP8ZuEu>)A(~TY$dutg3yjiq9{YiZ?V#Nt_LA)uWe9>rq zOHY``mM3W=EdOW_B57D+$7}l9V%T!+IC(oHe|atxeT|j1b1hi?4K?{V!Z>rS-^1@8 z=l5&k_Pl=J`@e>J5(Dl*2Vs8TAB=x%j{YCy*#9<1|Fiy=1;>BzKPK_(|NPN0lh*jjF#w9UmGnIgJ0%yOuB27j%sZCTS;t8-sn)vVC0#XPY$6p_koe4npSvG-=%AfGn*3X6--%4AUZ@@3_ahu(H#@uo&n zxre;2?qg+#zsr$OUQ@T-en-C`fQbw@O5YhpsEn&jzpAVR6zusmS^ltOlApN`RY_X~ zI;3&Oo?-f&#_gWM0U)t5HI+V1(@V7aD=M8lFE-^3tyu1#!4b=jvwO=Qleo`7FcV~*8oYO?n`U&ennfyJk^xQJE)AJRf`t%;S^ z`rFA&buF1xT+8q4X}bOSXMlwFm_N31W$SwnTG%Fk`{R(@-(`}(Hg{QC6mo|3uNnK`R*%TkSiL}N;=X8pxjI>x~k?l`hvnV_S^&7%)r-bq$H-gKFPQ1 zbPE7d;16MAoZJ~ZmW9r&iK%as6H9IJyyvmI?!@7Px0&B^L$k9cVQn6%oB2rdbW;lM zzlccZ`yY zb%o6E6xNkO*s7dVe9GAbbpt0G z#S(Rq!VJ14{_28x!6FY~v;`#sqGFDj(~AhsBH(PoQ(QJD5bF{JS}}>MFJl;{^0(8u z<~p337P0WT1+Z1U!t9=g6%jgQa-J~nW5YY*0L)x{M6)!a9E8i-C{Jf zC1qZ3Ju4q~Ov~+1ZN8NUe_VT+rbDnTLJ`I?T#rteXL)goXPMmWCA-9R870GE^e&K= zpw5b6wUSbaZMnvRYNF}#a#U4?33=bqiSdbQXve-VTu_dpjnWS-N2$V}PkQ+f)M1ce zS3vxWdnXr>Id@KfzEX=`WNer7%8^nn%(fsia8dL#VEHqwPSO0AywiDTzw+?k8iFB< zR)SiSjbbU1$53GloU_PXxbqpPwCAKk3%xQEsvusX%Z|>Y8 z$hFs9_1*nu9z7Q<)-#+=`|YAUlQPQTQDIKJ~`Bq9o{GoiVlM9 zks8$P!tjc6^$GbkdQ^iYJfTIohMEsb10N8G%WXpn@j)e)({uf8Z0=1zgBp*K#O1^u zX68l$9vUC+Hvsb1>qZ1096EvnKakT5X-ph$RjPebuUt|6!%uOq_mEeA5%}5C*LtvGPt2nN(CQ4$k*B4OxOsx=&{*8s}f87Kq>Ke&M;dh zo&PMi*My#^X$UgQM1Xz)M|lxbX0k8gq*DtnBErf`R9lR-7$cw59vzICBcG+YYO961 z@K&yAg4M?gGu!?(!lhm1W9BwIV6NaTS$&yXa!Jk%9cB?8mnUqLojR1UZX#C>ItR%; zG)_#*l;PTNF=kHof?cXZ*z}OqDTAckDzNk@I~rz$A&Yfttt9qf4rI|khDIwDkaCU0 z^{&56PF>BFbE~99Gu7d=+;EmYkd`~1b2M6~b&`{6A-5PHL|v%pwC}5f(ZX%K%v#z! zEg6NIPO&ZISs-$A9CmDoSN8Gr?>36*Qv;JNW5GxA`VKRyHULY~tkcJnk=aXVvn93a zv^?!_jh4r?GSp|#s|CM$XP*rVPo9;XwTDm!OcXxUzDIJ28bV)ZzH~feD?t22ytG@BiG0tF|Jr48RYwfkyUTe-hzpu0+vcJD^ zm1jDyZ`nlkG~eZbK*YsgFr2dmlDOKBhqZ?k=7km~+p9rBS&rhDAs$Hv&e(WQ!e00V zlb%AQAZBv$2TUq;OdBu26sDHtep#r@$42JkMaSdG(>!|=k-GdYZ$&d{JuBTtHSPns zcE^hIssoLqm!8pOT>gS;G0lDr0!OWbLxQurlvb}W9ogPdRow||T_}I_kmBf8)5d6O z(YyBp>hTvGD%o=7(~un0z*A_m(7@?eqIj9_Z7CWaJQiz9s3cyFpNShe9?ItFK`?E5 zpXL0a95Vq^BQ_oMGCLWT@+$t4Li(ln%P#6H^nKH?4A)P(S4}cJGs3C#d>NI@tW81s zij75YC|**UN#rEut6%X-TbDj=VoNPFvSB&m5^?dl#GcBbPZ=!m=GC6JODb|pSgZCw ztCg5B9PuE~OIR27yM(kMkQ(!Ayb3B97aDLpUe2mTmH^RYbkLF!W-<*pORgM&3RY5s zg->y6VNScDnxd0{AC*!28f+z{V4QhQq4&4FVZ3*R41Ar5Um(?ezKG+&&%9bfIA?M} zA9{i@<~yk3Dfs~1n4 z^@R26Nve`GN)Up+_acpcQyB{nAx4RYRdc8S$QIP7c?E7%!}0X$^5X zswW}mTFr6Z)wAfR#4*LC@Zr(ZX24543MFZLaO51*p(z*}G4P-52sT^khk#jOeWpzl2o!2Cc=buDucQ-a)H(-<0~A zgN{F!bDw%2A?63Ua6WjgUi-*deC;(kwk#Q$uy_N+Jq8TN*`sG#8s2XOELS-*0rZQF zre$(Nucb127C-ncK<7NfF#}p4#eG9J*|x=lDFdOoevYABGpHWRu>Le6p{46>jjd0G z7CwmzOJ-9=OmJlAfYKD!tWE4Q+Rn^}SYHVd>R6lyQ;$Dj-f}?qp3S~~{1VBz_iK1c z*2dOew4A+bma@?hLk1IUwYvdR&Bj&>_7yn$jeN%c>XPhYlwwjL&1|2^Df!~kgnolz zpp)zZcqrt1p}b#g8uGp$$8}a_Es*1sb4Y2m-fmwylOT!MukmT~H0658{#zf6@VAP@ z{HxGp_0wN$i4->&2cq)QAF(TC=XqA-%_F%|KF^+54?=Oy601KXeQEjTa->iF2*>${6U zNfJ7=tf9ndv)#TaYscj|kiq2aYO%3%V1#Pb#&v_gt})q~3Rhftzo*zb__9d)<;-T` z-WTuTJoD#xS~Ds1?$oh1JNulMim_Y7f#0$#naXiiT}_Xdp-MF|)K_C9wdvXyv%5-y zv=&BXwHKT?bgA13%ay~PkCV5H@RGHY+XLaK2QaYt!y;+hp#!6L8qp*MOeFNW{mIzH-2sTmXPW$mhoITa79;3sj0B`5yVnXsAFeC z9ZDFq4NNqb7#1P`fpMSN`T z*uXRg|6DEmNOyQtiG8>m#6Kv9V}lC`@K`{D=j&kMqDx=%RXm5Cs#?}NZ&Nckw0cO`W^Oc`hPtDT{_5b0WTY)dZ;8 zJ#&KTM2)%{3rt1enE@N&5v4?_1@OdUZn?U*`66nqHR|Gb>0h!<3W-O90hbQ&k# zOFNEtSV!X$Z0I^S&g*i3_`pPWc{K&*>4!C%EUetBw<7yuo5gc9T$B!axCqb{QTy(W z^#1NanWKZ7@1Me^J7Tqd!?spXS5Q#58l7Q`+!XVcPq|l#-8ws1?x?w0nkYHrBUNot z&gf=wtU(uMWI=R+;ukx_=|b$b&(09eFfUVAu=K8v`NO*k8p&oa2Sswj#TxpIf{Fr@ z(tViq2@(`F5I&mkMM>FQ7+j=3>gNofYMj8*I`Z#9&fih;50<=kIcAgLo|~R{pf)v` z$|oWmF>-GO%Lm=Vp`&b&hkP(X-7I+NEov>r*oQCfLrW#06P5=1aM%8QwzJWxUUgbM zd}6z`kDyFi6nnV*%hcf4OOdN_E2=Vk9sBCvKZB25VJPb7f`2PeB0RwFjZHLbsud>B z1dyZbAs+;_;)8!^A2&*6PLx0dJi9(t8H{=T&na_6*MA1*2zFChxe$C}qtkh{STX`B zAK>Atx8R3aPNf|W1L>EQBb0Yx*1inT$`Ow9$`*F&^q*O*EBGvZHcP`M3CH>lva- z)+;y$Y&K1gBDaAnEYFcRf`f>`N>F46K07E3qQx;O8zzS-d$r5*U%HQG9ydU0Gy|IZ zXJ_|zwLg4$B`^zKYg%l)LC*h63~KaHpa(1l2QE)&L-BX#saHBovuf~dm$X;TWgZ3^z|^;enzj_vgsX28+P== z1g#k33Mdl;W)o_+5MbR=1kQpO4B;wz`dnuYH;y6291Uu!S|jLym8>25G^ns+C`|i zU8?IW9*CTp+=#b1v3;Y^#gnj$#!+9~-|sxPtwrGTnms&B|#kyO6t`q~ZN) z-8vvD?Ni@K@@%2GwR4uD&%*w#xr>S@m~0^g3?_xG3yIyrQ6CRV_fuPnl-F=d`^?AX zqN8(~H)ERx><1xs6#_(7nFZ`Zn_$C<#Z#QKAMgjK6vXqkHN7lIM;2$a1`)G#dsp%3MXqQ{wZ zwi49qr;`zM68#yL*fzn`Zy;0UBVsAP5wjv8#}+Jr6m95Y0IfCV>V@ zbvtmr^LW8tUX$RWhiO>rp3Pf?u+B`GXp!>LMLVc9;05>a2 zJg&o$#;ZRz!6o zM+aOFeHgyi|3y;1HT~s)0vwjT4$uB`XqNHkGX|JE3rwSFZ*FXNO{*$x@XYAHF9euB zOPxR!tj6$=>Vc>ncnWFF6=Cu99TnveWvY;dB}fO*=jz$8^2oqZvCVhm(a3G)qhAId ziV&ZT=VdcI9fO~7JK{PfaAVnG(*ZCt_Gm>VlrhcJCtGjNTzP;?wh=9v`JIn#X!msA zrLV3}(zQ`NaiNV3U3C~@kypU2h{+$9cwifsq_f9O3rdU|0O>qFI?u;RqBqZNk7CJ7 z&bN5b6@lA2*K)iFnm1ZEIXsuEH-G)9!0fG@{es$9F}EXXf&2jKmJ2XsA)#caL_WWR z%TUPo6YkgK%^KbYtN3KnXElrVV?)7Iiq_SM^EO=WBOg{NQMP1~G<(Q$3etTtTooqz z269cn+^c>ZMaZxzD5hOH3l;p01qzD($UBz$R-@*KY#gO_`+f$w%N(Y`qyzct>8$qn z(+{*ZcOuU)#rtx|LZeXJ6=uvQ*lAgZmS|T@5O(s(D-a@Q?ayr@5L|2|Tg~@b_c>L2 z__306iq%m+V~qF|ACYkfKw@2R_x8;s&L%G&lTqswsbbZVW)adc+qf&Yk}xvc$5*Hs zagVTD?4VmRkx@0Huq5{>Ow41}GC-pn#uq1j{9>W!C#!^^&O#Qorn9Wg!-y6qM@Hue zltD~1T;WZB6p^cj=UtOntm|I}@3!o)2xEg7*X)Edk0Ky-fK zlJUBV+WA!)1|scHcmS1IS2+dMSbQ}7NBA4QZRYmjr15bEDB4JAnZ6yNQiy?}GU=8m z_LO*ACAVB!>ot4aZyUb(31GXc726pp{V9T{ZRe%vRC6#z(=tk)TL`C@5^K44rw?Rc z8~V=G3jbs~jxAArcF7d=(p)!m3ZHE@(5)^HA(K&E$5purbnHLtrd+b1-SlP`yS-_; zs(gPp);eC|BcB<--$ZA`Au9>%nZ%-H1n=5LuR*yuxjlpLK*OW~vo;pieYmOMNo8z< z+{>&h_|o*b5d+!4{Bv@D%CMklf!yP%?_o%UGk~!?^Q!^RMVLaTwYAdnjP;IzQ{C?c zuv>6|@i^+h&RwZ;u|OiYaI_~Y6sX_jGX0em)A^-l%B=R6_r`ejX4>>UJlGQyzhV~7 z7UEBjwMkz-AT;7Xgt~{a*NJoNIm<$|I*%{rk>Q^tFv!s@@a#Mxb9>7Mb?>Az3}5i# z!9W1HO)g>Q5n&fA5aAvP*WA(9Y(Kf6g1{H5*0SPOUN7o z%p2P2;4o09l~86ea|C^7znvop!ESRRyq*>}tr7vf(QOR$_V6riVv1WZZMV_ zKij&hvKF1vkP+LX!sPq`E!kNfBc7y$#~taz9UtA^7UgprsF_)y1;~Ry_)q*ZW1d$u zqTCy4I+?UI;f#B&DRznrAxfgrw=NkepspfGl1l)dh|){D2A1IphvFkWOeauvL9~n2 z{o`fCZZJ)G^evX4-41DP47S>$`O!em#-`S{Y8;T=5#(93h%qaig2 zNmzuYSAr{EEKnEE-X33eLrh`|7yCHEB8*K7K*Cun0!UEEj<%37yhOGHNSO6mpYAIp5NPaVSc9C{I!#62fF6mIEQ4?8sMEpE(o=9mky-V=L8TK-b^EV2!m+2m4c zE`)fOy&l!gie&EN`Ek<@>`rXD)UmsnW@E`k7%Gp$r;^e0*w*1J)T{t5)P{BLE`2p` z&RBkKZr)Qg@}QG7xp=00&A9}j zX{i}A7m@cV8btO(?xp&b;}E^r2}nJz3h8y8pJx=@4l>nsYb5BcKF*{ToSh4=-9g0Z zb)Ji2yc{J+v)`fAIQ*0+$Ty4SWD6T^=&0j{mFn`11?MH)Q@yG|joP^5P4BJ0GU{b9 zgG5``R2p!< zw1h!cv@m@@tjbOb-RiMdHA%4np26r3-GoG1E02X?W2~^SdUx)7d>7iq+4=HpfWm5R zCpo!$I^k@p-O+Tb`|;KJE}tjIvCr&A$&(u1aB=^IeS{I#$b(3GPC!WZft!euv0VQL zC%s;qM6RkX^&1BcQrKyq7b0%POVNLs7aEl%;X^dLxIf53jKVU zglZ0=okrM<2-%2jaNEZWGoD1kMSq!kv-+|pFQiQQo2AI5-1Si|v-Q{q+>$bF{R5vZ z0C>c{yy0gt>F|T%0-#sV5Bu=zmfMSY#~DmRI;%W*QyMF`fy?`8FxHofRh8L(pd9#& zb#iol1;`+wfFl3JT0dU7-!|pTa}F#4QlkMg*>x?oPL}e6FZUHIvy|EIqrsYGWzr5$ zp@6iWZVrWKSuy$KeXz2Iuw(8;M-&mgRI~;xo%M(6LqJY4BfqL*fgm;sdhZ8$%%bha zV1l61PHI34+lfw>Ys^~&4_$@Gbyk96Fef~;C{I}nK^DJG4XR|F)VJX&^V9dQZ-0oF zs6F8V+NWkvnni`AZ{LI}_J-hjhS~u)LLWEdY%H7*2{Dd=6*hs#TVU(J{fIq;An{!+ zn2E9-@ zZegpT_rXE8G#>nRy1^`PFscA@zvj@9dGerv1~1twD#bfWccCk}f9M(4R{{G+Xdpid z4xBBuZILxf;B5LMn~+%BC-~XsWfrFfI9JkG)0Ea%6w{014m)B|PL90ub8p2(2DX-m z8?3bf3dwMt1y(-_Q2g5?ZKI)b{kntGy^O zp23Ri;p0|TF733ZsFj*xQr3P(ET~^qr-%Ob<#$0~iCatY$H(a5T^5l6?ZBtp{7vXQ zswhdYscNN2y}nq5&+3AbZR>Vge}&Z;H@7ju4fN-=R2H-N%(&1+D#e>ru!x5(jVW>-HDcn3e*n zX1htG12i+^(gW&O{DdEi>_@-j^(U z5T3QjimlU@`B}qoK9=p6o#<6w?iB(~(kClUtuxD(6}y;MFESngI9m=Us@f$T%|J3o zaoL+0g0JBW&jdJMa~}E=kv)HGzSH0Lgd#`o(Qq3ifipq)M6qS)7`H8v+*#2#r>--C zY?X#Q0X!EvL9bjjNDeQq0*V^6J7^wA%Y*+*DXL{8cs1lFa466*l`Nh`wO$%hdBqOg^;OhX_VF} zQ6#S&_o-~%bm(%qpZ1v2$Y;I{dKilI)ZE)G*vKq9Pqb613ivS`X=&7f3>Zj- zKSd~}t{_w6Q!b&AvGTg_Wb@uJRrO;}Dx1|NiU&@Kn;TRk$|Y!rQcdH=8}F4%Uin(t z7W2uCLUq1ke+IBGzen))VEU<<)I-U z0r4L<3L+0=Bqfwp7!@S{(bc_0k~d^v5F7A^<(4Z9bO;D*TT>>}zxdIZo>-bQ-Oxf5 zu{C{R1?I8_3!WI;{AA&Kx8;|*Sxc|L%Yq3oukW?i;txy2_!Z7iCCTnOhujvVxsL8s zfLHR@l372@_uj9Z|0RHCOCe$cR#W&Fklmg2`(30gFlmnpxCv3<{R00jBpGmt)jxOF z-$7!m3g&ipU^Se7bt!nHfCVe;jepb31OcpxVKAgDnDqH}GqWiE0P=4v zM*~~qfA#gBV5Y@bA7+3DzB?F~`&QR(f^X2@Ud?}D{yE%DCHvdM^n&(};grErGS5tZ z)0sC#(phgcEQtOOkp8?$H#Mq-ZUMzJ{sGV*DzM)jo;M|3Z%-!PEWbznP2b&=Q@riG zlk>lv|J75!(1^Wz<~L>kt`!-7SU%tHo&RgV{pS2{s#)D0Wse1JLHtLi=ug!I?>6S9 zLejN_$q!o>{RPthtd(^a_okAL;4NH8iCeh;A2p`Cpf{CVu0?u&n3B{j(0^wQ{z$Ut zF3L@@iQ8Q&Df3g5{|HR{ZyGUoac@%YUrSm1Fhqr4PyPM@@$21lzgbIt%?SF#R&{=X@po9`C;Xsy0dCeKT$g13uui+5 z0{puM;jR|cUB@?HjlbPHOP;@U{EOm-yBIgK!q+d^|FClJUt#>_!rsi?U8j_P7-95J z-TpMeeD`E;CZujp^Iu|r>h)Jyz`M?GhLx{#T0cxN{^!pBAj5SRyKy50$qLSTURK|Fca-~JC(R-+UE literal 0 HcmV?d00001 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..19a6bde --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..adff685 --- /dev/null +++ b/gradlew @@ -0,0 +1,248 @@ +#!/bin/sh + +# +# Copyright © 2015 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC2039,SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..c4bdd3a --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,93 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 + +goto fail + +:execute +@rem Setup the command line + + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/infra/otel/alerts.yaml b/infra/otel/alerts.yaml new file mode 100644 index 0000000..656af7a --- /dev/null +++ b/infra/otel/alerts.yaml @@ -0,0 +1,45 @@ +groups: + - name: messenger + rules: + - alert: ApiHighErrorRate + expr: >- + sum(rate(lab_http_requests_total{status_class="5xx"}[30s])) / sum(rate(lab_http_requests_total[30s])) > 0.1 + for: 6s + annotations: + summary: "HTTP 5xx exceeds 10% in 30s" + runbook: "infra/otel/runbook.md#api" + - alert: AttachmentQueueLag + expr: >- + max(lab_queue_oldest_seconds{queue="attachments"}) > 8 and max(lab_queue_depth{queue="attachments"}) > 0 + for: 9s + annotations: + summary: "Oldest unfinished attachment exceeds eight seconds" + runbook: "infra/otel/runbook.md#queue" + - alert: ApiBurnFast + expr: >- + (sum(rate(lab_http_requests_total{status_class="5xx"}[1m])) / sum(rate(lab_http_requests_total[1m])) > 0.05) and (sum(rate(lab_http_requests_total{status_class="5xx"}[15s])) / sum(rate(lab_http_requests_total[15s])) > 0.05) and (sum(increase(lab_http_requests_total[1m])) >= 6) + for: 9s + annotations: + summary: "Api burn > 5x in 1m and 15s" + runbook: "infra/otel/runbook.md#api" + - alert: ApiBurnSlow + expr: >- + (sum(rate(lab_http_requests_total{status_class="5xx"}[3m])) / sum(rate(lab_http_requests_total[3m])) > 0.02) and (sum(rate(lab_http_requests_total{status_class="5xx"}[45s])) / sum(rate(lab_http_requests_total[45s])) > 0.02) and (sum(increase(lab_http_requests_total[3m])) >= 12) + for: 18s + annotations: + summary: "Api burn > 2x in 3m and 45s" + runbook: "infra/otel/runbook.md#api" + - alert: ReadyBurnFast + expr: >- + (sum(rate(lab_ready_sli_total{outcome="bad"}[1m])) / sum(rate(lab_ready_sli_total[1m])) > 0.25) and (sum(rate(lab_ready_sli_total{outcome="bad"}[15s])) / sum(rate(lab_ready_sli_total[15s])) > 0.25) and (sum(increase(lab_ready_sli_total[1m])) >= 6) + for: 9s + annotations: + summary: "Ready burn > 5x in 1m and 15s" + runbook: "infra/otel/runbook.md#queue" + - alert: ReadyBurnSlow + expr: >- + (sum(rate(lab_ready_sli_total{outcome="bad"}[3m])) / sum(rate(lab_ready_sli_total[3m])) > 0.1) and (sum(rate(lab_ready_sli_total{outcome="bad"}[45s])) / sum(rate(lab_ready_sli_total[45s])) > 0.1) and (sum(increase(lab_ready_sli_total[3m])) >= 12) + for: 18s + annotations: + summary: "Ready burn > 2x in 3m and 45s" + runbook: "infra/otel/runbook.md#queue" diff --git a/infra/otel/collector.yaml b/infra/otel/collector.yaml new file mode 100644 index 0000000..90a180c --- /dev/null +++ b/infra/otel/collector.yaml @@ -0,0 +1,77 @@ +receivers: + otlp: + protocols: + http: + endpoint: 127.0.0.1:14318 +processors: + memory_limiter: + check_interval: 1s + limit_mib: 128 + spike_limit_mib: 32 + batch: + timeout: 1s + send_batch_size: 128 + send_batch_max_size: 256 +exporters: + prometheus: + endpoint: 127.0.0.1:18889 + metric_expiration: 20s + otlp/tempo: + endpoint: tempo:4317 + tls: &id001 + ca_file: /pki/ca.crt + cert_file: /identity/service.crt + key_file: /identity/service.key + timeout: 2s + sending_queue: + queue_size: 32 + num_consumers: 1 + retry_on_failure: + initial_interval: 1s + max_interval: 3s + max_elapsed_time: 10s + otlphttp/loki: + endpoint: https://loki:3100/otlp + timeout: 2s + sending_queue: + queue_size: 32 + num_consumers: 1 + retry_on_failure: + initial_interval: 1s + max_interval: 3s + max_elapsed_time: 10s + tls: *id001 +service: + telemetry: + metrics: + readers: + - pull: + exporter: + prometheus: + host: 127.0.0.1 + port: 18888 + pipelines: + metrics: + receivers: + - otlp + processors: + - memory_limiter + - batch + exporters: + - prometheus + logs: + receivers: + - otlp + processors: + - memory_limiter + - batch + exporters: + - otlphttp/loki + traces: + receivers: + - otlp + processors: + - memory_limiter + - batch + exporters: + - otlp/tempo diff --git a/infra/otel/grafana/dashboards/messenger.json b/infra/otel/grafana/dashboards/messenger.json new file mode 100644 index 0000000..34b0685 --- /dev/null +++ b/infra/otel/grafana/dashboards/messenger.json @@ -0,0 +1,501 @@ +{ + "uid": "messenger-lab6", + "title": "Messenger Lab 6", + "schemaVersion": 39, + "version": 1, + "refresh": "5s", + "time": { + "from": "now-15m", + "to": "now" + }, + "panels": [ + { + "id": 1, + "title": "API requests / second", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 0, + "y": 0, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "reqps" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "sum by (status_class) (rate(lab_http_requests_total[1m]))", + "legendFormat": "{{status_class}}" + } + ] + }, + { + "id": 2, + "title": "API 5xx share", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 12, + "y": 0, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "(sum(rate(lab_http_requests_total{status_class=\"5xx\"}[1m])) or vector(0)) / sum(rate(lab_http_requests_total[1m]))", + "legendFormat": "5xx" + } + ] + }, + { + "id": 3, + "title": "HTTP latency across replicas", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 0, + "y": 8, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "histogram_quantile(0.5, sum by (le) (rate(lab_http_duration_seconds_bucket[1m])))", + "legendFormat": "p50" + }, + { + "refId": "B", + "expr": "histogram_quantile(0.95, sum by (le) (rate(lab_http_duration_seconds_bucket[1m])))", + "legendFormat": "p95" + }, + { + "refId": "C", + "expr": "histogram_quantile(0.99, sum by (le) (rate(lab_http_duration_seconds_bucket[1m])))", + "legendFormat": "p99" + } + ] + }, + { + "id": 4, + "title": "Worker delivery outcomes / second", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 12, + "y": 8, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "ops" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "sum by (outcome) (rate(lab_jobs_total[1m]))", + "legendFormat": "{{outcome}}" + } + ] + }, + { + "id": 5, + "title": "Worker delivery latency", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 0, + "y": 16, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "histogram_quantile(0.5, sum by (le) (rate(lab_job_duration_seconds_bucket[1m])))", + "legendFormat": "p50" + }, + { + "refId": "B", + "expr": "histogram_quantile(0.95, sum by (le) (rate(lab_job_duration_seconds_bucket[1m])))", + "legendFormat": "p95" + }, + { + "refId": "C", + "expr": "histogram_quantile(0.99, sum by (le) (rate(lab_job_duration_seconds_bucket[1m])))", + "legendFormat": "p99" + } + ] + }, + { + "id": 6, + "title": "Acceptance to READY", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 12, + "y": 16, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "histogram_quantile(0.5, sum by (le) (rate(lab_ready_duration_seconds_bucket[3m])))", + "legendFormat": "p50" + }, + { + "refId": "B", + "expr": "histogram_quantile(0.95, sum by (le) (rate(lab_ready_duration_seconds_bucket[3m])))", + "legendFormat": "p95" + }, + { + "refId": "C", + "expr": "histogram_quantile(0.99, sum by (le) (rate(lab_ready_duration_seconds_bucket[3m])))", + "legendFormat": "p99" + } + ] + }, + { + "id": 7, + "title": "Unfinished jobs", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 0, + "y": 24, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "max(lab_queue_depth)", + "legendFormat": "depth" + } + ] + }, + { + "id": 8, + "title": "Oldest unfinished job", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 12, + "y": 24, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "s" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "max(lab_queue_oldest_seconds)", + "legendFormat": "age" + } + ] + }, + { + "id": 9, + "title": "DB pool per API", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 0, + "y": 32, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "lab_db_pool_connections", + "legendFormat": "{{instance}} {{state}}" + } + ] + }, + { + "id": 10, + "title": "Worker saturation", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 12, + "y": 32, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "sum(lab_worker_busy) / sum(lab_worker_capacity)", + "legendFormat": "busy/capacity" + } + ] + }, + { + "id": 11, + "title": "Process CPU", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 0, + "y": 40, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "rate(lab_process_cpu_seconds_total[1m])", + "legendFormat": "{{job}} {{instance}}" + } + ] + }, + { + "id": 12, + "title": "Process RSS", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 12, + "y": 40, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "bytes" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "lab_process_rss_bytes", + "legendFormat": "{{job}} {{instance}}" + } + ] + }, + { + "id": 13, + "title": "Burn rates", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 0, + "y": 48, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "sum(rate(lab_http_requests_total{status_class=\"5xx\"}[1m])) / sum(rate(lab_http_requests_total[1m])) / 0.01", + "legendFormat": "API" + }, + { + "refId": "B", + "expr": "sum(rate(lab_ready_sli_total{outcome=\"bad\"}[1m])) / sum(rate(lab_ready_sli_total[1m])) / 0.05", + "legendFormat": "READY" + } + ] + }, + { + "id": 14, + "title": "Active alerts", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 12, + "y": 48, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "ALERTS{alertstate=~\"pending|firing\"}", + "legendFormat": "{{alertname}} {{alertstate}}" + } + ] + }, + { + "id": 15, + "title": "Correlated API and worker logs", + "type": "logs", + "datasource": { + "type": "loki", + "uid": "loki" + }, + "gridPos": { + "x": 0, + "y": 56, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "short" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "expr": "{service_name=~\"messenger-(api|worker|dispatcher)\"}", + "legendFormat": "" + } + ] + }, + { + "id": 16, + "title": "SLO attainment over 30 minutes", + "type": "timeseries", + "datasource": { + "type": "prometheus", + "uid": "prometheus" + }, + "gridPos": { + "x": 12, + "y": 56, + "w": 12, + "h": 8 + }, + "fieldConfig": { + "defaults": { + "unit": "percentunit" + }, + "overrides": [] + }, + "targets": [ + { + "refId": "A", + "legendFormat": "API success (target 99%)", + "expr": "1 - (sum(increase(lab_http_requests_total{status_class=\"5xx\"}[30m])) or vector(0)) / sum(increase(lab_http_requests_total[30m]))" + }, + { + "refId": "B", + "legendFormat": "READY within 5s (target 95%)", + "expr": "sum(increase(lab_ready_sli_total{outcome=\"good\"}[30m])) / sum(increase(lab_ready_sli_total[30m]))" + } + ] + } + ] +} diff --git a/infra/otel/grafana/provisioning/dashboards/provider.yaml b/infra/otel/grafana/provisioning/dashboards/provider.yaml new file mode 100644 index 0000000..3e9a5b6 --- /dev/null +++ b/infra/otel/grafana/provisioning/dashboards/provider.yaml @@ -0,0 +1,6 @@ +apiVersion: 1 +providers: + - name: messenger + type: file + options: + path: /var/lib/grafana/dashboards diff --git a/infra/otel/grafana/provisioning/datasources/datasources.yaml b/infra/otel/grafana/provisioning/datasources/datasources.yaml new file mode 100644 index 0000000..2388baf --- /dev/null +++ b/infra/otel/grafana/provisioning/datasources/datasources.yaml @@ -0,0 +1,45 @@ +apiVersion: 1 +datasources: +- name: Prometheus + type: prometheus + uid: prometheus + url: https://prometheus:9090 + isDefault: true + jsonData: + tlsAuth: true + tlsAuthWithCACert: true + tlsSkipVerify: false + secureJsonData: + tlsCACert: $TLS_CA + tlsClientCert: $TLS_CERT + tlsClientKey: $TLS_KEY +- name: Loki + type: loki + uid: loki + url: https://loki:3100 + jsonData: + derivedFields: + - name: TraceID + matcherType: label + matcherRegex: trace_id + datasourceUid: tempo + url: $${__value.raw} + tlsAuth: true + tlsAuthWithCACert: true + tlsSkipVerify: false + secureJsonData: + tlsCACert: $TLS_CA + tlsClientCert: $TLS_CERT + tlsClientKey: $TLS_KEY +- name: Tempo + type: tempo + uid: tempo + url: https://tempo:3200 + jsonData: + tlsAuth: true + tlsAuthWithCACert: true + tlsSkipVerify: false + secureJsonData: + tlsCACert: $TLS_CA + tlsClientCert: $TLS_CERT + tlsClientKey: $TLS_KEY diff --git a/infra/otel/loki.yaml b/infra/otel/loki.yaml new file mode 100644 index 0000000..184a7cc --- /dev/null +++ b/infra/otel/loki.yaml @@ -0,0 +1,31 @@ +auth_enabled: false +server: + http_listen_port: 13100 + http_listen_address: 127.0.0.1 + grpc_listen_address: 127.0.0.1 +common: + instance_addr: 127.0.0.1 + path_prefix: /loki + storage: + filesystem: + chunks_directory: /loki/chunks + rules_directory: /loki/rules + replication_factor: 1 + ring: + kvstore: + store: inmemory +schema_config: + configs: + - from: 2024-01-01 + store: tsdb + object_store: filesystem + schema: v13 + index: + prefix: index_ + period: 24h +limits_config: + allow_structured_metadata: true + retention_period: 24h +compactor: + retention_enabled: true + delete_request_store: filesystem diff --git a/infra/otel/prometheus.yaml b/infra/otel/prometheus.yaml new file mode 100644 index 0000000..f236930 --- /dev/null +++ b/infra/otel/prometheus.yaml @@ -0,0 +1,22 @@ +global: + scrape_interval: 3s + evaluation_interval: 3s +rule_files: +- /etc/prometheus/alerts.yaml +scrape_configs: +- job_name: otlp + honor_labels: true + static_configs: + - targets: + - otel-collector:8889 + scheme: https + tls_config: &id001 + ca_file: /pki/ca.crt + cert_file: /identity/service.crt + key_file: /identity/service.key +- job_name: collector + static_configs: + - targets: + - otel-collector:8888 + scheme: https + tls_config: *id001 diff --git a/infra/otel/runbook.md b/infra/otel/runbook.md new file mode 100644 index 0000000..3f17051 --- /dev/null +++ b/infra/otel/runbook.md @@ -0,0 +1,22 @@ +# Диагностика учебного стенда + +Откройте dashboard Messenger Lab 6 по адресу https://127.0.0.1:13007/d/messenger-lab6. Вход admin; пароль находится только в secrets/operator/grafana_password. Доверяйте secrets/public/ca.crt. Для определения времени инцидента используйте состояние правил Prometheus и отметки проб в evidence. Для локального запуска тестов используйте команды из REPORT.md. + +## API + +1. По панели API 5xx share найдите интервал деградации. Сопоставьте его с API latency и DB pool used/waiting. Проверьте наличие трафика перед интерпретацией доли ошибок. +2. В Explore выберите Loki. Запрос `{service_name="messenger-api"} | status_class="5xx"` покажет события завершения запросов. Найдите тот же `request_id`, что в HTTP-заголовке. Временно сузьте диапазон времени, чтобы исключить ошибки предыдущего опыта. +3. Скопируйте `trace_id` в Tempo или откройте ссылку TraceID. Длинный дочерний span `postgres.session.lookup` с ошибкой показывает, что запрос ждал PostgreSQL в ходе проверки сессии. Если задержка приходится на другое дочернее действие, смотрите его имя и статус. +4. Снимите операторскую блокировку и проверьте, что 200 восстановились, доля 5xx снизилась и правила перешли в inactive. При необходимости проверьте состояние DB-контейнера и ожидания в `pg_stat_activity`. + +## Queue + +1. При росте `Oldest unfinished job` сравните backlog с активностью worker. Большой backlog при исчезновении рядов capacity означает отсутствие свежей телеметрии воркеров. Подтвердите состояние контейнеров через `docker compose ps`. Активные воркеры при высоком busy/capacity указывают на насыщение. +2. По X-Request-Id принятого upload найдите `http.completed` в Loki. В Tempo проверьте producer `attachments publish` и consumer `attachments consume`. По `job.attempt` видно повторную обработку. Ошибки S3 и БД различаются по дочерним spans. +3. Восстановите работу воркеров. Проверьте исчезновение backlog, переход AttachmentQueueLag в inactive и завершение ранее принятых вложений. Ready burn может сработать после обработки накопившихся медленных вложений и завершится после выхода этих наблюдений из короткого окна. + +## Telemetry + +1. При отсутствии логов проверьте состояние Loki и запросы через datasource. Сопоставьте с Prometheus `up` для Collector и с `otelcol_exporter_send_failed_log_records_total`. +2. По `otelcol_exporter_queue_size` и `otelcol_exporter_queue_capacity` проверьте предел очереди. Рост ошибок экспорта после истечения retry window означает потерю наблюдений. +3. Проверьте HTTP-запись и чтение сообщений, затем восстановите Loki и найдите свежий `http.completed` в Grafana. SDK и Collector держат ограниченные очереди в памяти. diff --git a/infra/otel/tempo.yaml b/infra/otel/tempo.yaml new file mode 100644 index 0000000..c04bde6 --- /dev/null +++ b/infra/otel/tempo.yaml @@ -0,0 +1,23 @@ +server: + http_listen_port: 13200 + http_listen_address: 127.0.0.1 + grpc_listen_address: 127.0.0.1 + grpc_listen_port: 19095 +distributor: + receivers: + otlp: + protocols: + grpc: + endpoint: 127.0.0.1:14317 +ingester: + max_block_duration: 5m +compactor: + compaction: + block_retention: 24h +storage: + trace: + backend: local + local: + path: /var/tempo/blocks + wal: + path: /var/tempo/wal diff --git a/infra/security/api-start.sh b/infra/security/api-start.sh new file mode 100755 index 0000000..8dfbbbf --- /dev/null +++ b/infra/security/api-start.sh @@ -0,0 +1,5 @@ +set -eu +export INSTANCE_ID="$(cat /proc/sys/kernel/random/uuid)" +printf '%s' "$INSTANCE_ID" > /tmp/instance-id +export OTEL_RESOURCE_ATTRIBUTES="deployment.environment.name=lab,service.version=7.0.0,service.instance.id=$INSTANCE_ID" +exec java -Dfile.encoding=UTF-8 ${JAVA_OPTS:-} -jar app.jar diff --git a/infra/security/bao-migrate.hcl b/infra/security/bao-migrate.hcl new file mode 100644 index 0000000..8817859 --- /dev/null +++ b/infra/security/bao-migrate.hcl @@ -0,0 +1,6 @@ +storage_source "file" { path = "/old" } +storage_destination "raft" { + path = "/bao/file" + node_id = "bao-1" +} +cluster_addr = "https://127.0.0.1:8201" diff --git a/infra/security/bao.hcl b/infra/security/bao.hcl new file mode 100644 index 0000000..2008414 --- /dev/null +++ b/infra/security/bao.hcl @@ -0,0 +1,14 @@ +ui = true +storage "raft" { + path = "/bao/file" + node_id = "bao-1" +} +listener "tcp" { + address = "0.0.0.0:8200" + tls_cert_file = "/identity/service.crt" + tls_key_file = "/identity/service.key" + tls_client_ca_file = "/pki/ca.crt" +} +api_addr = "https://openbao:8200" + +cluster_addr = "https://openbao:8201" diff --git a/infra/security/gateway.conf b/infra/security/gateway.conf new file mode 100644 index 0000000..89de707 --- /dev/null +++ b/infra/security/gateway.conf @@ -0,0 +1,42 @@ +pid /tmp/nginx.pid; +worker_shutdown_timeout 5s; +error_log /dev/stderr warn; +events { worker_connections 1024; } +http { access_log off; client_body_temp_path /tmp/body; proxy_temp_path /tmp/proxy; client_max_body_size 11m; ssl_certificate /identity/service.crt; ssl_certificate_key /identity/service.key; ssl_client_certificate /pki/ca.crt; ssl_crl /pki/ca.crl; ssl_protocols TLSv1.2 TLSv1.3; ssl_session_tickets off; ssl_session_cache off; server { listen 3000 ssl; location / { proxy_pass http://127.0.0.1:13000; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } } +map $ssl_client_s_dn $allowed_4318 { default 0; CN=api 1; CN=worker 1; CN=dispatcher 1; } +server { listen 4318 ssl; ssl_verify_client on; + location / { if ($allowed_4318 = 0) { return 403; } proxy_pass http://127.0.0.1:14318; proxy_http_version 1.1; } +} +map $ssl_client_s_dn $allowed_8888 { default 0; CN=prometheus 1; } +server { listen 8888 ssl; ssl_verify_client on; + location / { if ($allowed_8888 = 0) { return 403; } proxy_pass http://127.0.0.1:18888; proxy_http_version 1.1; } +} +map $ssl_client_s_dn $allowed_8889 { default 0; CN=prometheus 1; } +server { listen 8889 ssl; ssl_verify_client on; + location / { if ($allowed_8889 = 0) { return 403; } proxy_pass http://127.0.0.1:18889; proxy_http_version 1.1; } +} +map $ssl_client_s_dn $allowed_9090 { default 0; CN=grafana 1; CN=operator 1; } +server { listen 9090 ssl; ssl_verify_client on; + location / { if ($allowed_9090 = 0) { return 403; } proxy_pass http://127.0.0.1:19090; proxy_http_version 1.1; } +} +map "$ssl_client_s_dn:$request_method:$uri" $loki_action { + default 0; + ~^CN=collector:POST:/otlp/v1/logs$ 1; + ~^CN=(grafana|operator):GET:/(loki/api/v1/|ready) 1; +} +map $ssl_client_s_dn $allowed_3100 { default 0; CN=collector 1; CN=grafana 1; CN=operator 1; } +server { listen 3100 ssl; ssl_verify_client on; + location / { if ($loki_action = 0) { return 403; } proxy_pass http://127.0.0.1:13100; proxy_http_version 1.1; } +} +map $ssl_client_s_dn $allowed_3200 { default 0; CN=grafana 1; CN=operator 1; } +server { listen 3200 ssl; ssl_verify_client on; + location / { if ($request_method != GET) { return 403; } if ($allowed_3200 = 0) { return 403; } proxy_pass http://127.0.0.1:13200; proxy_http_version 1.1; } +} + } +stream { ssl_certificate /identity/service.crt; ssl_certificate_key /identity/service.key; ssl_client_certificate /pki/ca.crt; ssl_crl /pki/ca.crl; ssl_protocols TLSv1.2 TLSv1.3; ssl_session_tickets off; ssl_session_cache off; map $ssl_client_s_dn $target_6379 { default 127.0.0.1:9; CN=worker 127.0.0.1:16379; CN=dispatcher 127.0.0.1:16379; CN=api 127.0.0.1:16379; CN=operator 127.0.0.1:16379; } +server { listen 6379 ssl; ssl_verify_client on; proxy_connect_timeout 2s; proxy_timeout 10s; proxy_pass $target_6379; } +map $ssl_client_s_dn $target_6380 { default 127.0.0.1:9; CN=api 127.0.0.1:16380; CN=operator 127.0.0.1:16380; } +server { listen 6380 ssl; ssl_verify_client on; proxy_connect_timeout 2s; proxy_timeout 10s; proxy_pass $target_6380; } +map $ssl_client_s_dn $target_4317 { default 127.0.0.1:9; CN=collector 127.0.0.1:14317; } +server { listen 4317 ssl; ssl_alpn h2; ssl_verify_client on; proxy_connect_timeout 2s; proxy_timeout 10s; proxy_pass $target_4317; } + } diff --git a/infra/security/grafana-start.sh b/infra/security/grafana-start.sh new file mode 100644 index 0000000..13d5d97 --- /dev/null +++ b/infra/security/grafana-start.sh @@ -0,0 +1,5 @@ +set -eu +export TLS_CA="$(cat /pki/ca.crt)" +export TLS_CERT="$(cat /identity/service.crt)" +export TLS_KEY="$(cat /identity/service.key)" +exec /run.sh diff --git a/infra/security/pg_hba.conf b/infra/security/pg_hba.conf new file mode 100644 index 0000000..d3de163 --- /dev/null +++ b/infra/security/pg_hba.conf @@ -0,0 +1,3 @@ +local all all trust +hostssl messenger api,worker,dispatcher,pipeline_operator all scram-sha-256 +host all all all reject diff --git a/infra/security/policies/api-s3.json b/infra/security/policies/api-s3.json new file mode 100644 index 0000000..0a24ac1 --- /dev/null +++ b/infra/security/policies/api-s3.json @@ -0,0 +1 @@ +{"Version": "2012-10-17", "Statement": [{"Effect": "Allow", "Action": ["s3:GetBucketLocation", "s3:ListBucket"], "Resource": ["arn:aws:s3:::messenger-attachments"]}, {"Effect": "Allow", "Action": ["s3:PutObject", "s3:GetObject", "s3:DeleteObject"], "Resource": ["arn:aws:s3:::messenger-attachments/staging/*"]}, {"Effect": "Allow", "Action": ["s3:GetObject"], "Resource": ["arn:aws:s3:::messenger-attachments/results/*"]}]} \ No newline at end of file diff --git a/infra/security/policies/api.hcl b/infra/security/policies/api.hcl new file mode 100644 index 0000000..e880a9e --- /dev/null +++ b/infra/security/policies/api.hcl @@ -0,0 +1,2 @@ +path "secret/data/api" { capabilities = ["read"] } +path "auth/token/revoke-self" { capabilities = ["update"] } diff --git a/infra/security/policies/dispatcher-s3.json b/infra/security/policies/dispatcher-s3.json new file mode 100644 index 0000000..1711227 --- /dev/null +++ b/infra/security/policies/dispatcher-s3.json @@ -0,0 +1 @@ +{"Version": "2012-10-17", "Statement": [{"Effect": "Allow", "Action": ["s3:GetBucketLocation", "s3:ListBucket"], "Resource": ["arn:aws:s3:::messenger-attachments"]}, {"Effect": "Allow", "Action": ["s3:DeleteObject"], "Resource": ["arn:aws:s3:::messenger-attachments/staging/*"]}, {"Effect": "Allow", "Action": ["s3:DeleteObject"], "Resource": ["arn:aws:s3:::messenger-attachments/results/*"]}]} \ No newline at end of file diff --git a/infra/security/policies/dispatcher.hcl b/infra/security/policies/dispatcher.hcl new file mode 100644 index 0000000..ca57393 --- /dev/null +++ b/infra/security/policies/dispatcher.hcl @@ -0,0 +1,2 @@ +path "secret/data/dispatcher" { capabilities = ["read"] } +path "auth/token/revoke-self" { capabilities = ["update"] } diff --git a/infra/security/policies/worker-s3.json b/infra/security/policies/worker-s3.json new file mode 100644 index 0000000..4d718a4 --- /dev/null +++ b/infra/security/policies/worker-s3.json @@ -0,0 +1 @@ +{"Version": "2012-10-17", "Statement": [{"Effect": "Allow", "Action": ["s3:GetBucketLocation"], "Resource": ["arn:aws:s3:::messenger-attachments"]}, {"Effect": "Allow", "Action": ["s3:GetObject", "s3:DeleteObject"], "Resource": ["arn:aws:s3:::messenger-attachments/staging/*"]}, {"Effect": "Allow", "Action": ["s3:PutObject", "s3:GetObject"], "Resource": ["arn:aws:s3:::messenger-attachments/results/*"]}]} \ No newline at end of file diff --git a/infra/security/policies/worker.hcl b/infra/security/policies/worker.hcl new file mode 100644 index 0000000..1a5e177 --- /dev/null +++ b/infra/security/policies/worker.hcl @@ -0,0 +1,2 @@ +path "secret/data/worker" { capabilities = ["read"] } +path "auth/token/revoke-self" { capabilities = ["update"] } diff --git a/infra/security/postgres-start.sh b/infra/security/postgres-start.sh new file mode 100644 index 0000000..6e72d18 --- /dev/null +++ b/infra/security/postgres-start.sh @@ -0,0 +1,7 @@ +set -eu +mkdir -p /tmp/pg-tls +cp /identity/service.crt /tmp/pg-tls/server.crt +cp /identity/service.key /tmp/pg-tls/server.key +chown -R postgres:postgres /tmp/pg-tls +chmod 600 /tmp/pg-tls/server.key +exec /usr/local/bin/docker-entrypoint.sh "$@" diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..4ee634a --- /dev/null +++ b/nginx.conf @@ -0,0 +1,42 @@ +pid /tmp/nginx.pid; +worker_shutdown_timeout 5s; +error_log /dev/stderr warn; +events { worker_connections 2048; } +http { + access_log off; + client_body_temp_path /tmp/body; + proxy_temp_path /tmp/proxy; + client_max_body_size 11m; + resolver 127.0.0.11 valid=2s; + upstream api_pool { zone api 64k; server api:8443 resolve max_fails=1 fail_timeout=2s; } + server { + listen 8443 ssl; + ssl_certificate /identity/service.crt; + ssl_certificate_key /identity/service.key; + ssl_protocols TLSv1.2 TLSv1.3; + ssl_session_tickets off; + error_page 413 = @too_large; + location @too_large { + default_type application/json; + add_header X-Request-Id $request_id always; + add_header X-Instance-Id ingress always; + return 413 '{"error":{"code":"payload_too_large","message":"Request exceeds byte limit","request_id":"$request_id"}}'; + } + location / { + proxy_pass https://api_pool; + proxy_ssl_server_name on; + proxy_ssl_name api; + proxy_ssl_verify on; + proxy_ssl_trusted_certificate /pki/ca.crt; + proxy_ssl_crl /pki/ca.crl; + proxy_ssl_certificate /identity/service.crt; + proxy_ssl_certificate_key /identity/service.key; + proxy_connect_timeout 1s; + proxy_read_timeout 25s; + proxy_next_upstream error timeout http_502; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Proto https; + proxy_set_header X-Forwarded-For $remote_addr; + } + } +} diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..28c2070 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[tool.black] +line-length = 100 +target-version = ['py39'] diff --git a/requirements-tools.txt b/requirements-tools.txt new file mode 100644 index 0000000..05d2fad --- /dev/null +++ b/requirements-tools.txt @@ -0,0 +1,7 @@ +-r requirements-dev.txt +black==25.9.0 +Pillow==13.0.0 +jsonschema==4.26.0 +cryptography==50.0.2 +PyYAML==6.0.3 +argon2-cffi==25.1.0 diff --git a/scripts/bootstrap.py b/scripts/bootstrap.py new file mode 100644 index 0000000..92e7794 --- /dev/null +++ b/scripts/bootstrap.py @@ -0,0 +1,239 @@ +import argparse +import ipaddress +import json +import secrets +import os +import subprocess +from datetime import datetime, timedelta, timezone +from pathlib import Path + +from cryptography import x509 +from cryptography.hazmat.primitives import hashes, serialization +from cryptography.hazmat.primitives.asymmetric import rsa +from cryptography.hazmat.primitives.serialization import pkcs12 +from cryptography.x509.oid import ExtendedKeyUsageOID, NameOID + +ROOT = Path(__file__).resolve().parents[1] +PRIVATE = ROOT / "secrets" +ROLES = ( + "lb", + "api", + "worker", + "dispatcher", + "gateway", + "db", + "minio", + "openbao", + "collector", + "prometheus", + "grafana", + "operator", + "intruder", +) + + +def write(path, value): + path.parent.mkdir(parents=True, exist_ok=True) + path.write_bytes(value.encode() if isinstance(value, str) else value) + + +def key_bytes(key): + return key.private_bytes( + serialization.Encoding.PEM, serialization.PrivateFormat.PKCS8, serialization.NoEncryption() + ) + + +def authority(): + path = PRIVATE / "operator/ca.key" + if path.exists(): + return serialization.load_pem_private_key( + path.read_bytes(), None + ), x509.load_pem_x509_certificate((PRIVATE / "public/ca.crt").read_bytes()) + key = rsa.generate_private_key(public_exponent=65537, key_size=3072) + now = datetime.now(timezone.utc) + name = x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, "Messenger lab7 local CA")]) + cert = ( + x509.CertificateBuilder() + .subject_name(name) + .issuer_name(name) + .public_key(key.public_key()) + .serial_number(x509.random_serial_number()) + .not_valid_before(now - timedelta(minutes=5)) + .not_valid_after(now + timedelta(days=365)) + .add_extension(x509.BasicConstraints(ca=True, path_length=0), True) + .add_extension( + x509.KeyUsage(False, False, False, False, False, True, True, False, False), True + ) + .sign(key, hashes.SHA256()) + ) + write(path, key_bytes(key)) + write(PRIVATE / "public/ca.crt", cert.public_bytes(serialization.Encoding.PEM)) + return key, cert + + +def leaf(role, ca_key, ca_cert, minutes=480): + key = rsa.generate_private_key(public_exponent=65537, key_size=2048) + now = datetime.now(timezone.utc) + names = [ + x509.DNSName(role), + x509.DNSName("localhost"), + x509.IPAddress(ipaddress.ip_address("127.0.0.1")), + x509.UniformResourceIdentifier("spiffe://messenger/" + role), + ] + if role == "gateway": + names += [ + x509.DNSName(n) + for n in ("broker", "redis", "otel-collector", "prometheus", "loki", "tempo", "grafana") + ] + cert = ( + x509.CertificateBuilder() + .subject_name(x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, role)])) + .issuer_name(ca_cert.subject) + .public_key(key.public_key()) + .serial_number(x509.random_serial_number()) + .not_valid_before(now - timedelta(minutes=1)) + .not_valid_after(now + timedelta(minutes=minutes)) + .add_extension(x509.BasicConstraints(ca=False, path_length=None), True) + .add_extension(x509.SubjectAlternativeName(names), False) + .add_extension( + x509.ExtendedKeyUsage( + [ExtendedKeyUsageOID.CLIENT_AUTH] + if role + in ( + "worker", + "dispatcher", + "collector", + "prometheus", + "grafana", + "operator", + "intruder", + ) + else [ExtendedKeyUsageOID.SERVER_AUTH, ExtendedKeyUsageOID.CLIENT_AUTH] + ), + False, + ) + .sign(ca_key, hashes.SHA256()) + ) + folder = PRIVATE / role + write(folder / "service.crt", cert.public_bytes(serialization.Encoding.PEM)) + write(folder / "service.key", key_bytes(key)) + write( + folder / "service.pk8", + key.private_bytes( + serialization.Encoding.DER, + serialization.PrivateFormat.PKCS8, + serialization.NoEncryption(), + ), + ) + write( + folder / "service.p12", + pkcs12.serialize_key_and_certificates( + role.encode(), key, cert, [ca_cert], serialization.NoEncryption() + ), + ) + write( + folder / "trust.p12", + pkcs12.serialize_java_truststore( + [pkcs12.PKCS12Certificate(ca_cert, b"local-ca")], serialization.NoEncryption() + ), + ) + return cert + + +def crl(ca_key, ca_cert, serials): + now = datetime.now(timezone.utc) + builder = ( + x509.CertificateRevocationListBuilder() + .issuer_name(ca_cert.subject) + .last_update(now) + .next_update(now + timedelta(days=7)) + ) + for serial in serials: + builder = builder.add_revoked_certificate( + x509.RevokedCertificateBuilder().serial_number(serial).revocation_date(now).build() + ) + write( + PRIVATE / "public/ca.crl", + builder.sign(ca_key, hashes.SHA256()).public_bytes(serialization.Encoding.PEM), + ) + + +def credentials(): + path = PRIVATE / "operator/credentials.json" + if path.exists(): + return + roles = {} + for role in ("api", "worker", "dispatcher"): + roles[role] = dict( + postgres_db="messenger", + postgres_user=role, + postgres_password=secrets.token_hex(24), + s3_access_key_id=role, + s3_secret_access_key=secrets.token_hex(24), + broker_user=role, + broker_password=secrets.token_hex(24), + cache_password=secrets.token_hex(24), + ) + data = dict( + roles=roles, + postgres_password=secrets.token_hex(24), + minio_root_user="operator", + minio_root_password=secrets.token_hex(24), + grafana_password=secrets.token_hex(24), + ) + write(path, json.dumps(data)) + for name in ("postgres_password", "minio_root_user", "minio_root_password", "grafana_password"): + write(PRIVATE / "operator" / name, data[name]) + + +def main(): + PRIVATE.mkdir(parents=True, exist_ok=True) + if os.name == "nt": + account = os.environ["USERDOMAIN"] + "\\" + os.environ["USERNAME"] + subprocess.run( + [ + "icacls", + str(PRIVATE), + "/inheritance:r", + "/grant:r", + account + ":(OI)(CI)F", + "*S-1-5-18:(OI)(CI)F", + ], + check=True, + capture_output=True, + ) + else: + PRIVATE.chmod(0o700) + parser = argparse.ArgumentParser() + parser.add_argument("--rotate", choices=ROLES) + args = parser.parse_args() + key, cert = authority() + for role in ([args.rotate] if args.rotate else ROLES): + if args.rotate or not (PRIVATE / role / "service.crt").exists(): + leaf(role, key, cert) + if not (PRIVATE / "foreign/service.crt").exists(): + foreign_key = rsa.generate_private_key(public_exponent=65537, key_size=2048) + now = datetime.now(timezone.utc) + name = x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, "Untrusted test CA")]) + foreign_ca = ( + x509.CertificateBuilder() + .subject_name(name) + .issuer_name(name) + .public_key(foreign_key.public_key()) + .serial_number(x509.random_serial_number()) + .not_valid_before(now - timedelta(minutes=1)) + .not_valid_after(now + timedelta(days=1)) + .add_extension(x509.BasicConstraints(ca=True, path_length=0), True) + .sign(foreign_key, hashes.SHA256()) + ) + leaf("foreign", foreign_key, foreign_ca) + if not (PRIVATE / "public/ca.crl").exists(): + crl(key, cert, []) + credentials() + if not (ROOT / ".env").exists(): + write(ROOT / ".env", "COMPOSE_PROJECT_NAME=messenger-lab7\nSESSION_TTL_SECONDS=3600\n") + print("Local PKI and operator credentials prepared; private values omitted.") + + +if __name__ == "__main__": + main() diff --git a/scripts/capture.py b/scripts/capture.py new file mode 100644 index 0000000..2840f63 --- /dev/null +++ b/scripts/capture.py @@ -0,0 +1,64 @@ +import argparse +import json +import subprocess +import sys +import time +from datetime import datetime, timezone +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] + + +def private_values(): + result = [] + + def collect(value): + if isinstance(value, dict): + for item in value.values(): + collect(item) + elif isinstance(value, list): + for item in value: + collect(item) + elif isinstance(value, str) and len(value) >= 20: + result.append(value) + + for path in (ROOT / "secrets/operator").glob("*.json"): + collect(json.loads(path.read_text())) + for path in (ROOT / "secrets/operator").glob("*.txt"): + value = path.read_text().strip() + if len(value) >= 20: + result.append(value) + return result + + +def run(name, command): + started = datetime.now(timezone.utc).isoformat() + before = time.monotonic() + output = subprocess.run(command, cwd=ROOT, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + text = output.stdout.decode("utf-8", errors="replace").replace("\r\n", "\n") + if any(value in text for value in private_values()): + raise RuntimeError("Private value detected in command output; evidence withheld") + report = ( + "Command: " + + json.dumps(command, ensure_ascii=False) + + "\nUTC: " + + started + + "\nExit code: " + + str(output.returncode) + + "\nElapsed seconds: " + + str(round(time.monotonic() - before, 3)) + + "\n\n" + + text + ) + (ROOT / "evidence" / (name + ".txt")).write_text(report, encoding="utf-8", newline="\n") + print(text, end="", flush=True) + if output.returncode: + raise SystemExit(output.returncode) + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + parser.add_argument("name") + parser.add_argument("command", nargs=argparse.REMAINDER) + args = parser.parse_args() + run(args.name, args.command) diff --git a/scripts/final_audit.py b/scripts/final_audit.py new file mode 100644 index 0000000..7999f1e --- /dev/null +++ b/scripts/final_audit.py @@ -0,0 +1,56 @@ +import hashlib +import json +import subprocess +import re +from datetime import datetime, timezone +from pathlib import Path + +from capture import ROOT, private_values + + +def main(): + names = subprocess.check_output(["git", "ls-files", "--cached", "-z"], cwd=ROOT) + files = [name.decode() for name in names.split(b"\0") if name] + secrets = private_values() + sources = [] + for name in files: + path = Path(name) + assert "secrets" not in path.parts, "Private directory staged" + assert path.name != ".env", "Environment secrets staged" + assert path.suffix not in { + ".key", + ".p12", + ".pfx", + ".jks", + ".pem", + }, "Private material staged" + content = subprocess.check_output(["git", "show", ":" + name], cwd=ROOT) + text = content.decode("utf-8", errors="replace") + assert not re.search( + r"^-----BEGIN (?:RSA |EC |OPENSSH )?PRIVATE KEY-----", text, re.MULTILINE + ), "Private key staged" + assert not any(value in text for value in secrets), "Known secret staged" + if path.parts[0] != "evidence": + sources.append(dict(path=name, sha256=hashlib.sha256(content).hexdigest())) + for path in (ROOT / "evidence").glob("*.txt"): + text = path.read_text(encoding="utf-8") + if text.startswith("Command:"): + assert "\nExit code: 0\n" in text, "Failed evidence: " + path.name + for target in re.findall(r"\]\(([^)]+)\)", (ROOT / "REPORT.md").read_text()): + if "://" not in target and target != "evidence/source-manifest.json": + assert (ROOT / target).exists(), "Missing report evidence: " + target + output = dict( + utc=datetime.now(timezone.utc).isoformat(), + upstream_base="20afc2c", + branch="solution/bvt2301-ivanov", + method="SHA-256 of staged source bytes; source list excludes evidence to avoid recursive hashes. Compare files after checkout with LF endings.", + no_known_secrets_or_private_keys_staged=True, + captured_commands_successful=True, + source_files=sources, + ) + (ROOT / "evidence/source-manifest.json").write_text(json.dumps(output, indent=2) + "\n") + print("PASS staged source integrity, secret exclusion and captured command exit codes") + + +if __name__ == "__main__": + main() diff --git a/scripts/provision.py b/scripts/provision.py new file mode 100644 index 0000000..bc65376 --- /dev/null +++ b/scripts/provision.py @@ -0,0 +1,220 @@ +import json +import secrets +import ssl +import subprocess +import urllib.error +import urllib.request +from pathlib import Path + +from bootstrap import PRIVATE, ROOT, write + + +def compose(*args, stdin=None): + result = subprocess.run( + ["docker", "compose", *args], + cwd=ROOT, + input=stdin.encode() if stdin is not None else None, + capture_output=True, + ) + if result.returncode: + raise RuntimeError("Compose operation failed: " + " ".join(args[:3])) + return result.stdout.decode() + + +def bao(path, data=None, token=None, method=None): + headers = {"Content-Type": "application/json"} + if token: + headers["X-Vault-Token"] = token + body = None if data is None else json.dumps(data).encode() + req = urllib.request.Request("https://127.0.0.1:18200/v1/" + path, body, headers, method=method) + context = ssl.create_default_context(cafile=str(PRIVATE / "public/ca.crt")) + with urllib.request.urlopen(req, context=context, timeout=10) as response: + raw = response.read() + return json.loads(raw) if raw else {} + + +def prepare(): + data = json.loads((PRIVATE / "operator/credentials.json").read_text()) + if "broker_operator_password" not in data: + data["broker_operator_password"] = secrets.token_hex(24) + write(PRIVATE / "operator/credentials.json", json.dumps(data)) + for source, target in [("service.crt", "public.crt"), ("service.key", "private.key")]: + write(PRIVATE / "minio" / target, (PRIVATE / "minio" / source).read_bytes()) + commands = dict( + worker="+ping +hello +client|setinfo +client|setname +xgroup +xreadgroup +xautoclaim +xack +xdel +xrange +hget +hdel +eval", + dispatcher="+ping +hello +client|setinfo +client|setname +eval +xadd +xrange +hget +hset", + api="+ping", + ) + acl = "user default off resetpass ~* &* +@all\n" + acl += f"user operator on >{data['broker_operator_password']} ~* +@all\n" + for role, values in data["roles"].items(): + acl += f"user {values['broker_user']} on >{values['broker_password']} ~attachment-jobs ~job-publications {commands[role]}\n" + write(PRIVATE / "operator/broker.acl", acl) + write( + PRIVATE / "operator/redis.acl", + f"user default off resetpass ~* &* +@all\nuser api on >{data['roles']['api']['cache_password']} ~sessions::* +ping +hello +client|setinfo +client|setname +get +set +del +unlink +pexpire +pttl\n", + ) + print("Local runtime files prepared.") + + +def initialize_bao(): + path = PRIVATE / "operator/bao-init.json" + if not path.exists(): + write(path, json.dumps(bao("sys/init", {"secret_shares": 1, "secret_threshold": 1}))) + init = json.loads(path.read_text()) + bao("sys/unseal", {"key": init["keys"][0]}) + token = init["root_token"] + for endpoint, body in [ + ("sys/mounts/secret", dict(type="kv", options={"version": "2"})), + ("sys/auth/cert", dict(type="cert")), + ]: + try: + bao(endpoint, body, token) + except urllib.error.HTTPError as error: + if error.code != 400: + raise + bao("auth/cert/crls/lab7", {"crl": (PRIVATE / "public/ca.crl").read_text()}, token) + roles = json.loads((PRIVATE / "operator/credentials.json").read_text())["roles"] + ca = (PRIVATE / "public/ca.crt").read_text() + for role, values in roles.items(): + policy = f'path "secret/data/{role}" {{ capabilities = ["read"] }}\npath "auth/token/revoke-self" {{ capabilities = ["update"] }}\n' + write(ROOT / "infra/security/policies" / (role + ".hcl"), policy) + bao("sys/policies/acl/" + role, {"policy": policy}, token) + bao( + "auth/cert/certs/" + role, + dict( + certificate=ca, + allowed_common_names=[role], + allowed_uri_sans=["spiffe://messenger/" + role], + token_policies=[role], + token_no_default_policy=True, + token_ttl=60, + token_max_ttl=60, + ), + token, + ) + bao("secret/data/" + role, {"data": values}, token) + print("Persistent OpenBao initialized/unsealed; scoped cert authentication configured.") + + +def initialize_db(): + data = json.loads((PRIVATE / "operator/credentials.json").read_text()) + roles = data["roles"] + if "pipeline_operator_password" not in data: + data["pipeline_operator_password"] = __import__("secrets").token_hex(24) + write(PRIVATE / "operator/credentials.json", json.dumps(data)) + write( + PRIVATE / "operator/pipeline.json", + json.dumps( + dict( + postgres_db="messenger", + postgres_user="pipeline_operator", + postgres_password=data["pipeline_operator_password"], + ) + ), + ) + diagnostics = dict( + postgres_db="messenger", + postgres_user="pipeline_operator", + postgres_password=data["pipeline_operator_password"], + s3_access_key_id=data["minio_root_user"], + s3_secret_access_key=data["minio_root_password"], + ) + write(PRIVATE / "operator/diagnostics.json", json.dumps(diagnostics)) + migration = (ROOT / "src/main/resources/db/migration/V1__init.sql").read_text() + existing = compose( + "exec", + "-T", + "db", + "psql", + "-U", + "operator", + "-d", + "messenger", + "-Atc", + "SELECT to_regclass('public.users')", + ) + sql = "BEGIN;\n" + if not existing.strip(): + sql += migration + for role, values in roles.items(): + sql += f"\nDO $$ BEGIN IF NOT EXISTS(SELECT 1 FROM pg_roles WHERE rolname='{role}') THEN CREATE ROLE {role} LOGIN; END IF; END $$;\nALTER ROLE {role} WITH PASSWORD '{values['postgres_password']}';\nGRANT CONNECT ON DATABASE messenger TO {role}; GRANT USAGE ON SCHEMA public TO {role};\n" + sql += "REVOKE ALL ON DATABASE messenger FROM PUBLIC; REVOKE CREATE ON SCHEMA public FROM PUBLIC;\n" + sql += "REVOKE ALL ON ALL TABLES IN SCHEMA public FROM api,worker,dispatcher;\n" + sql += "GRANT SELECT,INSERT ON users,chats,chat_members,messages,sessions,attachments,message_attachments,processing_jobs,processing_outbox,login_budget TO api; GRANT UPDATE(password_hash) ON users TO api; GRANT UPDATE(title) ON chats TO api; GRANT UPDATE(status) ON attachments TO api; GRANT UPDATE ON sessions,login_budget TO api; GRANT SELECT,INSERT,UPDATE,DELETE ON idempotency_keys TO api; GRANT SELECT ON attachment_variants TO api;\n" + sql += "GRANT SELECT(id,object_key,staging_key,content_type,checksum,size_bytes,pipeline_version,status,updated_at,error_code,created_at) ON attachments TO worker; GRANT UPDATE(object_key,staging_key,status,updated_at,error_code) ON attachments TO worker; GRANT SELECT ON processing_jobs TO worker; GRANT UPDATE(status,attempt,lease_token,lease_until,next_at,next_publish_at,error_code,completed_at) ON processing_jobs TO worker; GRANT SELECT,INSERT ON attachment_variants TO worker; GRANT INSERT ON pipeline_events TO worker;\n" + sql += "GRANT SELECT(id,object_key,staging_key,pipeline_version,status,updated_at,error_code) ON attachments TO dispatcher; GRANT UPDATE(staging_key,status,updated_at,error_code) ON attachments TO dispatcher; GRANT SELECT ON processing_jobs,processing_outbox,attachment_variants TO dispatcher; GRANT UPDATE(status,lease_until,next_at,next_publish_at,error_code,completed_at) ON processing_jobs TO dispatcher; GRANT UPDATE(published_at,publish_count) ON processing_outbox TO dispatcher; GRANT INSERT ON pipeline_events TO dispatcher;\n" + sql += "GRANT USAGE ON SEQUENCE pipeline_events_seq_seq TO worker,dispatcher;\n" + password = data["pipeline_operator_password"] + sql += f"DO $$ BEGIN IF NOT EXISTS(SELECT 1 FROM pg_roles WHERE rolname='pipeline_operator') THEN CREATE ROLE pipeline_operator LOGIN; END IF; END $$; ALTER ROLE pipeline_operator PASSWORD '{password}';\n" + sql += "GRANT CONNECT ON DATABASE messenger TO pipeline_operator; GRANT USAGE ON SCHEMA public TO pipeline_operator; GRANT SELECT,INSERT,UPDATE ON attachments,processing_jobs,processing_outbox,pipeline_events TO pipeline_operator; GRANT SELECT ON attachment_variants TO pipeline_operator; GRANT USAGE ON SEQUENCE pipeline_events_seq_seq TO pipeline_operator;\n" + sql += "COMMIT;\n" + compose( + "exec", + "-T", + "db", + "psql", + "-v", + "ON_ERROR_STOP=1", + "-U", + "operator", + "-d", + "messenger", + stdin=sql, + ) + print("Schema and restricted database roles ready.") + + +def initialize_s3(): + data = json.loads((PRIVATE / "operator/credentials.json").read_text()) + script = ( + "set -eu\nmc alias set local https://minio:9000 " + + data["minio_root_user"] + + " " + + data["minio_root_password"] + + " >/dev/null\nmc mb --ignore-existing local/messenger-attachments >/dev/null\nmc anonymous set none local/messenger-attachments >/dev/null\n" + ) + for role, values in data["roles"].items(): + statements = [ + dict( + Effect="Allow", + Action=( + ["s3:GetBucketLocation"] + if role == "worker" + else ["s3:GetBucketLocation", "s3:ListBucket"] + ), + Resource=["arn:aws:s3:::messenger-attachments"], + ) + ] + rights = { + "api": [ + ("staging/*", ["s3:PutObject", "s3:GetObject", "s3:DeleteObject"]), + ("results/*", ["s3:GetObject"]), + ], + "worker": [ + ("staging/*", ["s3:GetObject", "s3:DeleteObject"]), + ("results/*", ["s3:PutObject", "s3:GetObject"]), + ], + "dispatcher": [("staging/*", ["s3:DeleteObject"]), ("results/*", ["s3:DeleteObject"])], + }[role] + for prefix, actions in rights: + statements.append( + dict( + Effect="Allow", + Action=actions, + Resource=["arn:aws:s3:::messenger-attachments/" + prefix], + ) + ) + policy = json.dumps(dict(Version="2012-10-17", Statement=statements)) + write(ROOT / f"infra/security/policies/{role}-s3.json", policy) + script += f"mc admin user add local {values['s3_access_key_id']} {values['s3_secret_access_key']} >/dev/null\nmc admin policy create local {role} /policies/{role}-s3.json >/dev/null\nmc admin policy attach local {role} --user {values['s3_access_key_id']} >/dev/null\n" + compose("run", "--rm", "--no-deps", "-T", "s3-admin", stdin=script) + print("Private S3 bucket and separate prefix policies ready.") + + +if __name__ == "__main__": + import sys + + {"prepare": prepare, "bao": initialize_bao, "db": initialize_db, "s3": initialize_s3}[ + sys.argv[1] + ]() diff --git a/scripts/restart.cmd b/scripts/restart.cmd new file mode 100644 index 0000000..ac81c54 --- /dev/null +++ b/scripts/restart.cmd @@ -0,0 +1,3 @@ +@echo off +"%~dp0..\.venv\Scripts\python.exe" "%~dp0stack_operator.py" restart +exit /b %errorlevel% diff --git a/scripts/restart.sh b/scripts/restart.sh new file mode 100755 index 0000000..fedb9f3 --- /dev/null +++ b/scripts/restart.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu +cd "$(dirname "$0")/.." +python3 scripts/stack_operator.py restart diff --git a/scripts/scan.py b/scripts/scan.py new file mode 100644 index 0000000..55ea5c9 --- /dev/null +++ b/scripts/scan.py @@ -0,0 +1,168 @@ +import hashlib +import json +import subprocess +from collections import Counter +from pathlib import Path + +import yaml + +ROOT = Path(__file__).resolve().parents[1] +RAW = ROOT / "build/scans" +SCANNER = ( + "aquasec/trivy:0.69.3@sha256:bcc376de8d77cfe086a917230e818dc9f8528e3c852f7b1aff648949b6258d1c" +) + + +def scan(name, mode, target, mount=None, extra=()): + command = [ + "docker", + "run", + "--rm", + "--security-opt", + "no-new-privileges:true", + "--cap-drop", + "ALL", + "-v", + "messenger-lab7-trivy-cache:/root/.cache/trivy", + "-v", + str(RAW) + ":/reports", + ] + if mount: + command += ["-v", mount] + command += [ + SCANNER, + mode, + "--timeout", + "15m", + "--scanners", + "vuln", + "--no-progress", + "--skip-version-check", + "--format", + "json", + "--output", + "/reports/" + name + ".json", + *extra, + target, + ] + result = subprocess.run(command, capture_output=True) + if result.returncode: + raise RuntimeError( + "Scanner failed for " + name + ": " + result.stderr.decode(errors="replace")[-1000:] + ) + return command + + +def summary(path, command): + raw = path.read_bytes() + document = json.loads(raw) + rows = [] + packages = set() + for result in document.get("Results", []): + for package in result.get("Packages", []): + packages.add((package["Name"], package.get("Version", "not recorded"))) + for value in result.get("Vulnerabilities", []): + rows.append( + { + k: value.get(k) + for k in ( + "VulnerabilityID", + "PkgName", + "InstalledVersion", + "FixedVersion", + "Severity", + "Status", + "PrimaryURL", + ) + } + ) + return dict( + command=command, + exit_code=0, + artifact=document.get("ArtifactName"), + scanner=document.get("Metadata", {}).get("RepoDigests", []), + raw_sha256=hashlib.sha256(raw).hexdigest(), + findings=len(rows), + severity=dict(Counter(r["Severity"] for r in rows)), + resolved_package_records=len(packages), + vulnerabilities=rows, + ) + + +def main(): + RAW.mkdir(parents=True, exist_ok=True) + compose = yaml.safe_load((ROOT / "docker-compose.yml").read_text()) + jars = list((ROOT / "build/libs").glob("messenger-lab7-*.jar")) + if len(jars) != 1: + raise RuntimeError("Build exactly one current messenger-lab7 bootJar first") + jobs = [ + ( + "worker-resolved-scan", + "fs", + "/scan", + str(ROOT / "worker/requirements-resolved.txt") + ":/scan/requirements.txt:ro", + (), + ), + ("java-scan", "rootfs", "/scan", str(jars[0]) + ":/scan/app.jar:ro", ()), + ( + "image-jre-scan", + "image", + (ROOT / "Dockerfile").read_text().split("FROM ")[-1].split()[0], + None, + ("--image-src", "remote", "--pkg-types", "os"), + ), + ( + "image-worker-updated-scan", + "image", + (ROOT / "worker/Dockerfile").read_text().splitlines()[0].split()[1], + None, + ("--image-src", "remote", "--pkg-types", "os"), + ), + ( + "image-nginx-scan", + "image", + compose["services"]["gateway"]["image"], + None, + ("--image-src", "remote"), + ), + ( + "image-bao-scan", + "image", + compose["services"]["openbao"]["image"], + None, + ("--image-src", "remote"), + ), + ] + previous = ROOT / "evidence/scan-summary.json" + old = json.loads(previous.read_text()).get("reports", {}) if previous.exists() else {} + results = { + name: value + for name, value in old.items() + if "before" in name or name == "image-worker-base-scan" + } + for name, mode, target, mount, extra in jobs: + command = scan(name, mode, target, mount, extra) + results[name] = summary(RAW / (name + ".json"), command) + print(name + ": " + str(results[name]["severity"]), flush=True) + for path in (ROOT / "evidence").glob("*-scan*.json"): + if path.name == "scan-summary.json": + continue + if "before" in path.stem or path.stem == "image-worker-base-scan": + results[path.stem] = summary( + path, "Initial recorded Trivy 0.69.3 baseline; see SCAN_TRIAGE.md" + ) + output = dict( + scanner=SCANNER, + scope="Runtime Java JAR, all resolved worker packages including pip, four production base images. OS packages are unchanged by application Dockerfiles; no socket or secrets mount. Native libraries bundled inside wheels and all other infrastructure images are not a complete SBOM coverage claim.", + reports=results, + ) + (ROOT / "evidence/scan-summary.json").write_text( + json.dumps(output, indent=2) + "\n", encoding="utf-8" + ) + for name in ("worker-resolved-scan", "java-scan"): + if results[name]["findings"]: + raise RuntimeError("Runtime application dependency findings require triage: " + name) + + +if __name__ == "__main__": + main() diff --git a/scripts/stack_operator.py b/scripts/stack_operator.py new file mode 100644 index 0000000..28c2ee8 --- /dev/null +++ b/scripts/stack_operator.py @@ -0,0 +1,108 @@ +import json +import os +import subprocess +import sys +import time +from pathlib import Path + +from bootstrap import PRIVATE, ROOT, write +from provision import bao, compose + + +def snapshot(): + ids = compose("ps", "-a", "-q").splitlines() + result = {} + for item in json.loads(subprocess.check_output(["docker", "inspect", *ids])): + name = item["Config"]["Labels"]["com.docker.compose.service"] + if ( + "com.docker.compose.oneoff" in item["Config"]["Labels"] + and item["Config"]["Labels"]["com.docker.compose.oneoff"] == "True" + ): + continue + result[item["Name"].lstrip("/")] = dict( + service=name, + started_at=item["State"]["StartedAt"], + image=item["Image"], + status=item["State"]["Status"], + ) + return result + + +def unseal(): + init = json.loads((PRIVATE / "operator/bao-init.json").read_text()) + for _ in range(20): + try: + bao("sys/unseal", {"key": init["keys"][0]}) + return + except Exception: + time.sleep(1) + raise RuntimeError("Operator unseal failed") + + +def restart(): + before = snapshot() + compose("restart", "openbao") + unseal() + compose("restart", "gateway") + roles = ( + "db", + "redis", + "broker", + "minio", + "otel-collector", + "prometheus", + "loki", + "tempo", + "grafana", + "api-agent", + "worker-agent", + "dispatcher-agent", + "api", + "worker", + "dispatcher", + "lb", + ) + compose("restart", "--timeout", "5", *roles) + after = snapshot() + changed = { + name: row["started_at"] != before[name]["started_at"] + for name, row in after.items() + if name in before + } + if not changed or not all(changed.values()): + raise RuntimeError("Not all intended containers restarted") + write( + ROOT / "evidence/restart-containers.json", + json.dumps( + dict(before=before, after=after, all_start_times_changed=True, volumes_preserved=True), + indent=2, + ) + + "\n", + ) + + +def stop_one(): + target = os.environ["TARGET_INSTANCE_ID"] + selected = [] + for identifier in compose("ps", "-q", "api").splitlines(): + alias = ( + subprocess.check_output(["docker", "exec", identifier, "cat", "/tmp/instance-id"]) + .decode() + .strip() + ) + if alias == target: + selected.append(identifier) + if len(selected) != 1: + raise RuntimeError("Instance alias did not resolve to exactly one running replica") + before = snapshot() + subprocess.run(["docker", "stop", "--time", "1", selected[0]], capture_output=True, check=True) + history = ROOT / "evidence/failover-containers.json" + events = json.loads(history.read_text()) if history.exists() else [] + events.append( + dict(alias=target, stopped_container=selected[0], before=before, after=snapshot()) + ) + write(history, json.dumps(events, indent=2) + "\n") + + +if __name__ == "__main__": + {"restart": restart, "stop-one": stop_one, "unseal": unseal}[sys.argv[1]]() diff --git a/scripts/start.ps1 b/scripts/start.ps1 new file mode 100644 index 0000000..2fb5d04 --- /dev/null +++ b/scripts/start.ps1 @@ -0,0 +1,22 @@ +$ErrorActionPreference = 'Stop' +Set-Location (Split-Path $PSScriptRoot -Parent) +$Python = Join-Path (Get-Location) '.venv\Scripts\python.exe' + +function Invoke-Step { + param([string]$Program, [string[]]$Arguments) + & $Program @Arguments + if ($LASTEXITCODE -ne 0) { + throw "Step failed: $Program $($Arguments[0])" + } +} + +Invoke-Step $Python @('scripts/bootstrap.py') +Invoke-Step $Python @('scripts/provision.py', 'prepare') +Invoke-Step 'docker' @('compose', 'build') +Invoke-Step 'docker' @('compose', 'run', '--rm', '--no-deps', '-T', 'bao-permissions') +Invoke-Step 'docker' @('compose', 'run', '--rm', '--no-deps', '-T', 's3-permissions') +Invoke-Step 'docker' @('compose', 'up', '-d', '--wait', '--wait-timeout', '120', 'gateway', 'db', 'minio', 'openbao') +Invoke-Step $Python @('scripts/provision.py', 'bao') +Invoke-Step $Python @('scripts/provision.py', 'db') +Invoke-Step $Python @('scripts/provision.py', 's3') +Invoke-Step 'docker' @('compose', 'up', '-d', '--wait', '--wait-timeout', '180') diff --git a/scripts/start.sh b/scripts/start.sh new file mode 100755 index 0000000..4aaee76 --- /dev/null +++ b/scripts/start.sh @@ -0,0 +1,14 @@ +#!/bin/sh +set -eu +cd "$(dirname "$0")/.." +PYTHON="${PYTHON:-.venv/bin/python}" +"$PYTHON" scripts/bootstrap.py +"$PYTHON" scripts/provision.py prepare +docker compose build +docker compose run --rm --no-deps -T bao-permissions +docker compose run --rm --no-deps -T s3-permissions +docker compose up -d --wait --wait-timeout 120 gateway db minio openbao +"$PYTHON" scripts/provision.py bao +"$PYTHON" scripts/provision.py db +"$PYTHON" scripts/provision.py s3 +docker compose up -d --wait --wait-timeout 180 diff --git a/scripts/stop-one.cmd b/scripts/stop-one.cmd new file mode 100644 index 0000000..cc9ad00 --- /dev/null +++ b/scripts/stop-one.cmd @@ -0,0 +1,3 @@ +@echo off +"%~dp0..\.venv\Scripts\python.exe" "%~dp0stack_operator.py" stop-one +exit /b %errorlevel% diff --git a/scripts/stop-one.sh b/scripts/stop-one.sh new file mode 100755 index 0000000..4eb8662 --- /dev/null +++ b/scripts/stop-one.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu +cd "$(dirname "$0")/.." +python3 scripts/stack_operator.py stop-one diff --git a/scripts/style.py b/scripts/style.py new file mode 100644 index 0000000..6b1ee5f --- /dev/null +++ b/scripts/style.py @@ -0,0 +1,88 @@ +import argparse +import hashlib +import os +import re +from pathlib import Path +import subprocess +import sys +import tempfile +import urllib.request + + +ROOT = Path(__file__).resolve().parents[1] +VERSION = "1.28.0" +SHA256 = "32342e7c1b4600f80df3471da46aee8012d3e1445d5ea1be1fb71289b07cc735" + + +def formatter(): + jar = Path(tempfile.gettempdir()) / f"google-java-format-{VERSION}-all-deps.jar" + if not jar.exists(): + url = ( + "https://repo.maven.apache.org/maven2/com/google/googlejavaformat/" + f"google-java-format/{VERSION}/{jar.name}" + ) + with urllib.request.urlopen(url, timeout=60) as response: + jar.write_bytes(response.read()) + if hashlib.sha256(jar.read_bytes()).hexdigest() != SHA256: + raise RuntimeError("Java formatter checksum mismatch") + return jar + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--apply", action="store_true") + args = parser.parse_args() + java_home = os.environ.get("JAVA_HOME") + java = str(Path(java_home) / "bin" / "java") if java_home else "java" + files = sorted(str(p.relative_to(ROOT)) for p in (ROOT / "src").rglob("*.java")) + mode = ["--replace"] if args.apply else ["--dry-run", "--set-exit-if-changed"] + subprocess.run([java, "-jar", str(formatter()), "--aosp", *mode, *files], cwd=ROOT, check=True) + python = ["worker/pipeline"] + python += sorted( + str(p.relative_to(ROOT)) + for p in (ROOT / "scripts").glob("*.py") + if p.name not in {"check_contract.py", "validate_openapi.py"} + ) + python += sorted(str(p.relative_to(ROOT)) for p in (ROOT / "student-tests").glob("*.py")) + subprocess.run( + [sys.executable, "-m", "black", *([] if args.apply else ["--check"]), *python], + cwd=ROOT, + check=True, + ) + check_controllers() + print("PASS Java AOSP / Python Black style") + + +def check_controllers(): + directory = ROOT / "src/main/java/ru/mtusi/messenger/controller" + operations = 0 + for path in directory.glob("*Controller.java"): + source = path.read_text(encoding="utf-8") + fields = re.findall(r"private final (\w+Service) (\w+);", source) + if "@RequiredArgsConstructor" not in source or len(fields) != 1: + raise AssertionError(f"Controller DI contract: {path.name}") + bodies = re.findall(r"@Override\s+public [^{}]+\{([^{}]*)\}", source) + if not bodies: + raise AssertionError(f"Controller has no operations: {path.name}") + service = fields[0][1] + for body in bodies: + if body.count(";") != 1 or len(re.findall(rf"\b{service}\.\w+\(", body)) != 1: + raise AssertionError(f"Controller must call one service: {path.name}") + if not re.fullmatch(rf"\s*(?:return )?{service}\.\w+\([^;]*\);\s*", body): + raise AssertionError(f"Controller contains extra logic: {path.name}") + operations += len(bodies) + for path in directory.glob("*Api.java"): + source = path.read_text(encoding="utf-8") + if source.count("/**") != source.count("@Operation(") + 1: + raise AssertionError(f"Missing API documentation: {path.name}") + for path in (ROOT / "src/main/java").rglob("*.java"): + source = path.read_text(encoding="utf-8") + if "@Autowired" in source: + raise AssertionError(f"Use constructor injection: {path.name}") + if re.search(r"^import .*\*;", source, re.MULTILINE): + raise AssertionError(f"Use explicit imports: {path.name}") + print(f"PASS {operations} controller operations: one service call, constructor DI, API Javadoc") + + +if __name__ == "__main__": + main() diff --git a/scripts/verify_pipeline.py b/scripts/verify_pipeline.py new file mode 100644 index 0000000..1727e41 --- /dev/null +++ b/scripts/verify_pipeline.py @@ -0,0 +1,58 @@ +import argparse +import os +import sys +from pathlib import Path + +from capture import run +from provision import compose, prepare, initialize_db + + +def permission(statement): + compose( + "exec", + "-T", + "db", + "psql", + "-U", + "operator", + "-d", + "messenger", + "-v", + "ON_ERROR_STOP=1", + stdin=statement, + ) + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--faults-only", action="store_true") + args = parser.parse_args() + prepare() + initialize_db() + compose("restart", "broker") + os.environ["PYTHONPATH"] = "tests" + os.environ["BASE_URL"] = "https://127.0.0.1:8443" + os.environ["CA_FILE"] = str(Path("secrets/public/ca.crt").resolve()) + for name in ( + "pipeline_core", + "pipeline_filename", + "pipeline_history_capacity", + "pipeline_boundaries", + "pipeline_upload_crash", + ): + if not args.faults_only: + run(name, [sys.executable, "student-tests/" + name + ".py"]) + os.environ["COMPOSE_FILE"] = os.pathsep.join(("docker-compose.yml", "compose.test.yaml")) + permission("GRANT SELECT,UPDATE ON pipeline_faults TO worker,dispatcher;") + try: + compose("up", "-d", "--wait", "--wait-timeout", "180", "api", "worker", "dispatcher") + for name in ("pipeline_faults", "pipeline_ack_guard", "pipeline_retention", "observe"): + run(name, [sys.executable, "student-tests/" + name + ".py"]) + finally: + os.environ.pop("COMPOSE_FILE", None) + compose("up", "-d", "--wait", "--wait-timeout", "180", "api", "worker", "dispatcher") + permission("REVOKE ALL ON pipeline_faults FROM worker,dispatcher;") + + +if __name__ == "__main__": + main() diff --git a/scripts/verify_security.py b/scripts/verify_security.py new file mode 100644 index 0000000..9d29813 --- /dev/null +++ b/scripts/verify_security.py @@ -0,0 +1,27 @@ +import os +import sys +from pathlib import Path + +from capture import run + + +def main(): + os.environ["PYTHONPATH"] = "tests" + os.environ["BASE_URL"] = "https://127.0.0.1:8443" + os.environ["CA_FILE"] = str(Path("secrets/public/ca.crt").resolve()) + for name in ("security_auth", "security_baseline"): + run(name.replace("_", "-"), [sys.executable, "student-tests/" + name + ".py"]) + run( + "bao-policy", + ["docker", "compose", "run", "--rm", "--no-deps", "-T", "audit", "/checks/bao_policy.py"], + ) + run("security-lifecycle", [sys.executable, "student-tests/security_lifecycle.py"]) + run( + "tls-matrix", + ["docker", "compose", "run", "--rm", "--no-deps", "-T", "audit", "/checks/tls_matrix.py"], + ) + run("security-inventory", [sys.executable, "student-tests/security_inventory.py"]) + + +if __name__ == "__main__": + main() diff --git a/security/SCAN_TRIAGE.md b/security/SCAN_TRIAGE.md new file mode 100644 index 0000000..6700cbc --- /dev/null +++ b/security/SCAN_TRIAGE.md @@ -0,0 +1,37 @@ +# Dependency/image scan и применимость + +Оператор запускает `./.venv/Scripts/python.exe scripts/scan.py` после `gradlew bootJar`. Scanner: Trivy 0.69.3 с закреплённым digest; vulnerability DB загружается штатно, не используется искусственно пустая база. Без `--ignore-unfixed`, severity-фильтров и suppression-файла. [scan-summary.json](../evidence/scan-summary.json) содержит точные команды, coverage, raw SHA-256, counts и каждый finding: CVE/package/installed/fixed/severity/status/primary URL. Большие исходные JSON остаются в ignored `build/scans`, компактные результаты версионируются. Scanner не получает Docker socket или secrets mounts. + +Покрытие: итоговый Java bootJar и его вложенные Maven packages; **все 27 разрешённых worker packages**, включая транзитивные и pip; production base images JRE/Python/Nginx/OpenBao. Image OS inventory применим к app images, поскольку Dockerfiles не устанавливают дополнительные OS packages: добавляют пользователя, исходники/JAR и перечисленные Python dependencies. Это не полный аудит всех backends и native библиотек внутри wheels, не доказательство отсутствия неизвестных CVE. + +Для JAR нужен **rootfs** scan: обычный Trivy fs не анализирует Java archives. Для нестандартного имени Python lock он монтируется как `/scan/requirements.txt`; проверяется число packages. Первичный fs scan одного direct manifest сам по себе не считается полным transitive coverage. CLI/image SBOM без контекста здесь не выдаётся за оценку риска. + +## Исправления по результатам + +| Находка/группа | Применимость | Изменение и проверка | +| --- | --- | --- | +| Старый Pillow 12.0.0: malformed image/EXIF/decoder findings | Прямой untrusted upload path, исправление обязательно | Pillow 13.0.0; pixel/byte/timeout/cgroup limits сохранены; full decode/EXIF/crop/WebP и corruption tests повторяются | +| Tomcat 11.0.24, Jackson 2.21.5/3.1.5 | HTTP/JSON surface API, нельзя ограничиться словами «только локально» | Spring Boot 4.1.3 BOM: Tomcat 11.0.27, Jackson 2.21.8/3.1.8; HTTPS public tests и JUnit | +| Bouncy Castle 1.78.1, Guava 33.6.0, snappy-java 1.1.10.8, OTel Java 1.62.0 | Crypto/пароли и доступные application libraries; отдельные функции могли не вызываться, но доступны безопасные совместимые обновления | BC 1.85, Guava 33.7.2-jre, snappy 1.1.10.9, единый OTel BOM 1.68.0; итоговый JAR scan без findings | +| OTel Python API 1.34.1 и pip 25.0.1 при расширении scan до resolved inventory | W3C parsing — часть pipeline; pip не обслуживает запросы, но остаётся в runtime image | OTel SDK/exporters 1.45.2 и pip 26.3, новый resolved lock; import-check, correlation test и итоговый transitive scan | +| Старый Python base / OpenSSL и прочие OS packages | Python TLS и image codecs обрабатывают внешние данные | Закреплён Python 3.12.16 bookworm image; реальный image scan сохранён со всеми остаточными findings | +| Старый Nginx 1.27 / JRE | Ingress и Java image decoder — непосредственно exposed code | Nginx 1.30.8 и Temurin JRE 21.0.13.1+2, закреплённые digests; TLS/smoke/decoder tests | +| OpenBao 2.4.4: в том числе certificate-auth renewal и старый crypto/tls | Критическая граница выдачи secrets; старую версию не оставляли как «внутреннюю» | OpenBao 2.7.3. File storage штатно offline migrated в Raft, прежние unseal material и три KV bundles сохранены: [доказательство](../evidence/bao-upgrade.json). Certificate auth/policy/revoke/seal checks повторяются | + +Первичный Java scan показывал 28 findings, direct Pillow manifest — 62; соответствующие исходные baseline результаты включены в summary. Итоговое покрытие шире начального: численное уменьшение разных package inventories не выдаётся за контролируемый performance/security benchmark. Проверяемый результат — отсутствие зарегистрированных findings в итоговых application JAR/resolved Python libraries, при сохранении поведения tests. + +## Остаточные image findings + +Они **не скрываются и не объявляются исправленными**. Полный список и vendor status находится в summary. Категории применимости: + +| Группа | Причина/путь | Решение и остаточный риск | +| --- | --- | --- | +| CVE-2023-45853, zlib1g bookworm, CRITICAL по upstream score | Уязвим contrib/minizip; Debian указывает, что соответствующий код в binary packages bookworm из src:zlib не собирался | `will_not_fix/ignored` — не переносится автоматически на PNG inflate. Основание: [Debian tracker](https://security-tracker.debian.org/tracker/CVE-2023-45853). pyminizip отсутствует в resolved packages | +| CVE-2025-7458, libsqlite3-0, CRITICAL по upstream score | Требуется выполнение специально составленного SQLite SQL; worker использует PostgreSQL и не имеет SQLite query path | Package остаётся уязвимым; путь из upload не найден, не используется как основание для «починено». [Debian](https://security-tracker.debian.org/tracker/CVE-2025-7458) помечает bookworm no-dsa/minor. При RCE доступ к собственному процессу worker уже входит в модель; cgroup/роль ограничивают последствия | +| Worker image: util-linux/mount/PAM/ncurses/perl и связанные libraries, HIGH/MEDIUM | Privilege/login/mount/terminal/utility paths не вызываются image pipeline; attacker с RCE уже может выполнять непривилегированный код | Non-root, no-new-privileges, cap_drop ALL, read_only, без host mounts/socket; su/setuid/mount не дают дополнительных прав. Не исправленные vendor packages остаются accepted platform risk, требуют последующих обновлений образа | +| Worker compression/native packages без vendor fix | Их наличие нельзя исключить простым grep Python imports; часть codecs использует bundled native code | Pillow обновлён, размеры/decode/RLIMIT/timeout ограничены. Это **mitigation, не доказательство отсутствия memory-safety bug**; blast radius проверяется треком compromise | +| Nginx libxml2, CVE-2026-11979/86138/86139/86140/86142/86143, HIGH | xmlcatalog/XML/XSLT/XPointer functions; custom gateway/LB config не загружает XSLT module и не парсит XML | Уязвимый package присутствует, соответствующий request path выключен; update libxml2/base image нужен при включении XML-функций. HTTPS JSON/image proxy не считается XML parsing path | +| OpenBao 2.7.3, CVE-2026-116587 go-jose v3/v4, HIGH | Crafted RSA JWK parsing. Разрешён только cert auth; JWT/OIDC auth не включён, identities/policies не разрешают настройку соответствующих engines | Остаточный dependency risk. Нет утверждения об исправлении до vendor release; ограничены operator surface и scoped paths. Переход на JWK/OIDC потребует обновления go-jose/OpenBao | +| Остальные JRE/OpenBao OS/Go MEDIUM/LOW | Не все системные packages являются exposed API; один score не доказывает reachable exploit | Точные package/version/CVE не удаляются из summary. JRE и OpenBao обновлены до закреплённых текущих patch releases; остаётся vendor/platform risk и необходимость последующего scan. Не приравнивается к нулевому риску | + +Тесты доказывают свойства заявленной конфигурации, а не невозможность RCE в принципе. Если изменяются enabled modules, trust boundary, dependencies или база CVE, triage нужно повторить. Не предполагается безопасность старой shared gateway области при компрометации одного из её backend процессов. diff --git a/security/THREAT_MODEL.md b/security/THREAT_MODEL.md index 31da287..2800412 100644 --- a/security/THREAT_MODEL.md +++ b/security/THREAT_MODEL.md @@ -1,19 +1,34 @@ -# Модель угроз — заполнить +# Модель угроз — Иванов Данил, БВТ2301 ## Активы и акторы -TODO: пользовательские credentials/сессии, сообщения/вложения, service identities, CA/secrets, telemetry. Акторы: участник чата, посторонний пользователь, внешний клиент, скомпрометированный сервис, оператор. Опишите доступ атакующего и границы учебного стенда. +Активы: password hashes и сессии, сообщения, оригиналы/варианты и jobs/outbox, service credentials/certificates, CA/root/unseal, наблюдаемость. Акторы: анонимный REST-клиент, участник чата, посторонний участник другого чата, контейнер с чужим сертификатом того же CA, атакующий с RCE/правами worker, доверенный оператор Docker-host. Используются синтетические данные. Оператор и host/kernel доверены; компрометация host/CA выходит за доказанную модель. ## Границы доверия -TODO: схема и ссылка на заполненную contracts/trust-matrix.md; публичные/внутренние интерфейсы, процессы, секреты и их выдача. +Публичный TLS ingress → mTLS API → PostgreSQL/S3 и отдельно worker/dispatcher. [Матрица](../contracts/trust-matrix.md) задаёт все endpoints и credentials. API, worker, dispatcher и agents имеют отдельные mounts/identities. Gateway и loopback backends — явно общая доверенная область зависимостей; worker не находится в её namespace. Административные host bindings — только loopback; root credentials доступны только оператору. | Угроза и конкретный путь | Нарушаемый инвариант | Контроль | Отрицательный тест | Остаточное ограничение | | --- | --- | --- | --- | --- | -| TODO | TODO | TODO | TODO | TODO | +| Злоумышленник подменяет ingress/S3/OpenBao сертификат | Credentials/данные не отправляются неподтверждённому серверу | CA + DNS/IP SAN, verify-full; нет insecure fallback | `make test-security`, `tls_matrix.py`, worker DB trust tests | Один локальный CA, его компрометация критична | +| Контейнер с доверенным intruder cert обращается напрямую к API | Только LB может быть транспортным клиентом бизнес-API | Native обязательный mTLS + точный CN allowlist; API ports не опубликованы | `tls_matrix.py` для обеих реальных API replicas: no cert / wrong CA / same-CA wrong role | Доверенная LB identity остаётся высокопривилегированной | +| Пользователь Eve подставляет X-User-Id или чужой attachment ID | Bearer определяет отправителя; доступ только участникам чата | DB membership ACL для metadata/content/message, отсутствующий и чужой объект одинаково 404 | Public smoke и `pipeline_core.py` | Любой действительный участник может ссылаться на вложение своего чата по контракту | +| Перебор паролей дорогостоящим Argon2 на двух API | Ограничены CPU/RAM KDF, пароль не раскрывается | Argon2id 19 MiB/t2/p1; общий атомарный SQL budget 60/min, 2 slots/API; rehash через CAS | `security_auth.py`: 72 запроса, 8 clients, 2 replicas, 429/Retry-After, expiry и rehash | Общий budget допускает denial законным пользователям; fixed-window boundary допускает краткий burst | +| Worker читает users/sessions, удаляет сообщения, использует DDL | Компрометация обработки не становится компрометацией аккаунтов | Отдельная PG role, без superuser/DDL/прав на эти таблицы; TLS | `worker_rights.py` выполняется внутри настоящего worker | Worker всё ещё может повреждать доступные ему pipeline metadata | +| Worker стирает broker либо читает чужие keys | Не выдаётся административный доступ к очереди | mTLS CN allowlist + consumer Redis ACL; producer API/dispatcher отделён | `worker_rights.py`, `tls_matrix.py`; FLUSHALL/foreign key/XADD denied | Consumer может мешать доставке своих jobs; PG outbox нужен для повторного publish | +| Worker использует S3 credentials вне своих prefixes или удаляет опубликованный result | Ограничен S3 blast radius | Private bucket; worker без ListBucket и DeleteObject results/admin прав | `worker_rights.py`, isolated broad-policy baseline | PutObject на results необходим для обработки и позволяет подменить bytes при полном RCE; Object Lock/per-job credentials не реализованы | +| Worker получает API secret/root через OpenBao | Identity даёт только собственный KV bundle | Cert auth с CN/URI SAN, отдельная read-only policy, token TTL 60 s; no root mounts | `bao_policy.py`: cross-path/write/policy/expired-token deny | Статические credentials требуют явного downstream revoke | +| Скомпрометированный worker посылает telemetry или читает backend под чужой ролью | Service identity ограничивает маршрут | mTLS Collector; datasource/ingest role ACL и read-only Loki/Tempo routes | `tls_matrix.py`, `observe.py` | Допущенный publisher может подделать собственные telemetry attributes; это не криптографическая аттестация события | +| PNG/JPEG/EXIF вызывает bomb, OOM, hang или утечку credentials | Неограниченное декодирование не попадает в API/worker | Bytes ≤10 MiB, pixels ≤40M до decode; subprocess 768 MiB, timeout 60 s, worker cgroup 1 CPU/1 GiB; safe filename | `pipeline_core.py`, JUnit, `pipeline_retention.py`, pipeline fault tests | Сам parser/native libraries остаются поверхностью атаки; обновление Pillow и image scan обязательны | +| Отказ между S3 PUT, DB COMMIT, publish, effects и ACK | Подтверждённое намерение не теряется, дубли не публикуют второй результат | Atomic attachment+job+outbox; Lua publication index; durable stream; token/version/lease fencing и atomic manifest | `pipeline_upload_crash.py`, `pipeline_faults.py`, `security_lifecycle.py` | Orphan S3 может оставаться до janitor grace; это не распределённая транзакция S3+PG | +| Утечка secret/token в Git, образ, env или telemetry | Бизнес-ответы и диагностика не раскрывают credentials | Ignored secrets, Windows ACL, readonly scoped mounts, build allowlist, безопасные event fields | `security_inventory.py`, `observe.py`, staged-file scan перед commit | Доверенный оператор читает bootstrap files; SDK queues могут терять telemetry при outage | На 4 минимум 6 конкретных угроз. Не заменяйте сценарии словами «SQL injection», «безопасный Docker», «mTLS включён» без пути и проверки. ## Lifecycle и инциденты -TODO: bootstrap, expiry/renewal, revoke/rotation, компрометация identity, sealed OpenBao и восстановление. Указать владельца CA/unseal и способ защиты bootstrap credentials. Сопоставить scan findings с реальной применимостью и исправлением/остаточным риском. +Оператор создаёт CA/leaf и secrets через `scripts/bootstrap.py`, защищает каталог ACL и запускает OpenBao с persistent storage вне dev mode. Init/unseal выполняется его инструментами; `bao-init.json` не монтируется в сервер или workload. Сервисные agents проходят cert auth каждые 10 s, читают свой path и revoke-self; cached bundle/lease действует не более 40 s. Ручной renewal leaf выполняется до 8 h, с reload/restart клиента; автоматический PKI/CA rollover не заявлен, выбран трек 1. + +Эксперимент `security_lifecycle.py`: перед отзывом подтверждаются 10 uploads; worker останавливается; старые DB/S3/broker secrets отзываются, client certificate попадает в CRL gateway/OpenBao, старые DB connections завершаются; новый leaf и secret bundle восстанавливают обработку без build. Новые connections со старой identity запрещены. Проверяются все 10 SHA-256 и ровно 30 variant rows. Sealed OpenBao приводит к fail-closed после cache budget, unseal восстанавливает прежнюю сессию. + +[Сравнение широких и ограниченных прав](../evidence/worker-compromise.json) использует transaction rollback/NOLOGIN role, отдельный disposable broker без сети и временный S3 bucket. Производственные роли в ходе baseline не расширяются. [Lifecycle](../evidence/security-lifecycle.json) содержит измеренное время восстановления. [Разбор scanner findings](SCAN_TRIAGE.md) различает исправленные зависимости, неиспользуемые функции и оставшийся риск базовых образов. diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..3205305 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,8 @@ +pluginManagement { + repositories { + mavenCentral() + gradlePluginPortal() + } +} + +rootProject.name = 'messenger-lab7' diff --git a/src/main/java/ru/mtusi/messenger/MessengerLab1Application.java b/src/main/java/ru/mtusi/messenger/MessengerLab1Application.java new file mode 100644 index 0000000..664f1ba --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/MessengerLab1Application.java @@ -0,0 +1,17 @@ +package ru.mtusi.messenger; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.context.properties.ConfigurationPropertiesScan; +import org.springframework.boot.security.autoconfigure.UserDetailsServiceAutoConfiguration; +import org.springframework.scheduling.annotation.EnableScheduling; + +@ConfigurationPropertiesScan +@SpringBootApplication(exclude = UserDetailsServiceAutoConfiguration.class) +@EnableScheduling +public class MessengerLab1Application { + + public static void main(String[] args) { + SpringApplication.run(MessengerLab1Application.class, args); + } +} diff --git a/src/main/java/ru/mtusi/messenger/cache/CacheHealthTracker.java b/src/main/java/ru/mtusi/messenger/cache/CacheHealthTracker.java new file mode 100644 index 0000000..16031c9 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/cache/CacheHealthTracker.java @@ -0,0 +1,19 @@ +package ru.mtusi.messenger.cache; + +import org.springframework.stereotype.Component; + +import java.util.concurrent.atomic.AtomicBoolean; + +@Component +public class CacheHealthTracker { + + private final AtomicBoolean stale = new AtomicBoolean(false); + + public void markStale() { + stale.set(true); + } + + public boolean consumeStale() { + return stale.getAndSet(false); + } +} diff --git a/src/main/java/ru/mtusi/messenger/config/JacksonConfig.java b/src/main/java/ru/mtusi/messenger/config/JacksonConfig.java new file mode 100644 index 0000000..8912c67 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/JacksonConfig.java @@ -0,0 +1,31 @@ +package ru.mtusi.messenger.config; + +import lombok.extern.slf4j.Slf4j; + +import org.springframework.boot.jackson.autoconfigure.JsonMapperBuilderCustomizer; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import tools.jackson.databind.DeserializationFeature; +import tools.jackson.databind.cfg.CoercionAction; +import tools.jackson.databind.cfg.CoercionInputShape; + +@Configuration +@Slf4j +public class JacksonConfig { + + @Bean + public JsonMapperBuilderCustomizer strictJacksonCustomizer() { + return builder -> + builder.enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + .withCoercionConfigDefaults( + config -> { + config.setCoercion( + CoercionInputShape.Boolean, CoercionAction.Fail); + config.setCoercion( + CoercionInputShape.Integer, CoercionAction.Fail); + config.setCoercion( + CoercionInputShape.Float, CoercionAction.Fail); + }); + } +} diff --git a/src/main/java/ru/mtusi/messenger/config/MinioConfig.java b/src/main/java/ru/mtusi/messenger/config/MinioConfig.java new file mode 100644 index 0000000..be56c5f --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/MinioConfig.java @@ -0,0 +1,32 @@ +package ru.mtusi.messenger.config; + +import io.minio.MinioClient; + +import lombok.RequiredArgsConstructor; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import ru.mtusi.messenger.config.properties.S3Properties; + +@Configuration +@RequiredArgsConstructor +public class MinioConfig { + private final S3Properties props; + + @Bean + public MinioClient minioClient() { + return MinioClient.builder() + .endpoint(props.endpoint()) + .httpClient( + new okhttp3.OkHttpClient.Builder() + .connectTimeout(java.time.Duration.ofSeconds(2)) + .readTimeout(java.time.Duration.ofSeconds(10)) + .writeTimeout(java.time.Duration.ofSeconds(10)) + .callTimeout(java.time.Duration.ofSeconds(20)) + .build()) + .region(props.region()) + .credentials(props.resolvedAccessKey(), props.resolvedSecretKey()) + .build(); + } +} diff --git a/src/main/java/ru/mtusi/messenger/config/OpenApiConfig.java b/src/main/java/ru/mtusi/messenger/config/OpenApiConfig.java new file mode 100644 index 0000000..ef82a28 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/OpenApiConfig.java @@ -0,0 +1,15 @@ +package ru.mtusi.messenger.config; + +import io.swagger.v3.oas.annotations.enums.SecuritySchemeType; +import io.swagger.v3.oas.annotations.security.SecurityScheme; + +import org.springframework.context.annotation.Configuration; + +@Configuration +@SecurityScheme(name = "basicAuth", type = SecuritySchemeType.HTTP, scheme = "basic") +@SecurityScheme( + name = "bearerAuth", + type = SecuritySchemeType.HTTP, + scheme = "bearer", + bearerFormat = "opaque session token") +public class OpenApiConfig {} diff --git a/src/main/java/ru/mtusi/messenger/config/RateLimitConfig.java b/src/main/java/ru/mtusi/messenger/config/RateLimitConfig.java new file mode 100644 index 0000000..02db302 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/RateLimitConfig.java @@ -0,0 +1,29 @@ +package ru.mtusi.messenger.config; + +import io.github.bucket4j.Bandwidth; +import io.github.bucket4j.Bucket; + +import lombok.RequiredArgsConstructor; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +import ru.mtusi.messenger.config.properties.RateLimitProperties; + +import java.time.Duration; + +@Configuration +@RequiredArgsConstructor +public class RateLimitConfig { + private final RateLimitProperties props; + + @Bean + public Bucket rateLimitBucket() { + Bandwidth limit = + Bandwidth.builder() + .capacity(props.ratePerMinute()) + .refillGreedy(props.ratePerMinute(), Duration.ofMinutes(1)) + .build(); + return Bucket.builder().addLimit(limit).build(); + } +} diff --git a/src/main/java/ru/mtusi/messenger/config/RedisConfig.java b/src/main/java/ru/mtusi/messenger/config/RedisConfig.java new file mode 100644 index 0000000..2cd4f03 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/RedisConfig.java @@ -0,0 +1,132 @@ +package ru.mtusi.messenger.config; + +import io.lettuce.core.ClientOptions; +import io.lettuce.core.SocketOptions; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.cache.Cache; +import org.springframework.cache.annotation.CachingConfigurer; +import org.springframework.cache.annotation.EnableCaching; +import org.springframework.cache.interceptor.CacheErrorHandler; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.data.redis.cache.RedisCacheConfiguration; +import org.springframework.data.redis.cache.RedisCacheManager; +import org.springframework.data.redis.connection.RedisConnectionFactory; +import org.springframework.data.redis.connection.RedisStandaloneConfiguration; +import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration; +import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; +import org.springframework.data.redis.serializer.JacksonJsonRedisSerializer; +import org.springframework.data.redis.serializer.RedisSerializationContext; + +import ru.mtusi.messenger.cache.CacheHealthTracker; +import ru.mtusi.messenger.config.properties.RedisProperties; +import ru.mtusi.messenger.config.properties.SessionProperties; +import ru.mtusi.messenger.service.SessionService; + +@Slf4j +@Configuration +@EnableCaching +@EnableConfigurationProperties(RedisProperties.class) +@RequiredArgsConstructor +public class RedisConfig implements CachingConfigurer { + private final SessionProperties sessionProperties; + private final RedisProperties redisProperties; + private final CacheHealthTracker cacheHealthTracker; + + @Bean + public RedisConnectionFactory redisConnectionFactory() { + RedisStandaloneConfiguration server = + new RedisStandaloneConfiguration(redisProperties.host(), redisProperties.port()); + server.setUsername("api"); + server.setPassword(redisProperties.password()); + + SocketOptions socketOptions = + SocketOptions.builder() + .connectTimeout(redisProperties.connectTimeout()) + .keepAlive( + SocketOptions.KeepAliveOptions.builder() + .enable() + .idle(redisProperties.keepAliveIdle()) + .interval(redisProperties.keepAliveInterval()) + .count(3) + .build()) + .tcpUserTimeout( + SocketOptions.TcpUserTimeoutOptions.builder() + .tcpUserTimeout(redisProperties.tcpUserTimeout()) + .enable() + .build()) + .build(); + + ClientOptions clientOptions = + ClientOptions.builder() + .socketOptions(socketOptions) + .autoReconnect(true) + .sslOptions( + io.lettuce.core.SslOptions.builder() + .trustManager(new java.io.File("/pki/ca.crt")) + .keyManager( + new java.io.File("/identity/service.crt"), + new java.io.File("/identity/service.key"), + null) + .build()) + .build(); + + LettuceClientConfiguration client = + LettuceClientConfiguration.builder() + .useSsl() + .and() + .commandTimeout(redisProperties.commandTimeout()) + .shutdownTimeout(redisProperties.shutdownTimeout()) + .clientOptions(clientOptions) + .build(); + + return new LettuceConnectionFactory(server, client); + } + + @Bean + public RedisCacheManager cacheManager(RedisConnectionFactory cf) { + RedisCacheConfiguration cfg = + RedisCacheConfiguration.defaultCacheConfig() + .entryTtl(sessionProperties.ttl()) + .disableCachingNullValues() + .serializeValuesWith( + RedisSerializationContext.SerializationPair.fromSerializer( + new JacksonJsonRedisSerializer<>( + SessionService.SessionRecord.class))); + return RedisCacheManager.builder(cf).cacheDefaults(cfg).build(); + } + + @Override + public CacheErrorHandler errorHandler() { + return new CacheErrorHandler() { + @Override + public void handleCacheGetError(RuntimeException e, Cache cache, Object key) { + cacheHealthTracker.markStale(); + log.warn("Cache GET failed ({}): {}", cache.getName(), e.getMessage()); + } + + @Override + public void handleCachePutError( + RuntimeException e, Cache cache, Object key, Object value) { + cacheHealthTracker.markStale(); + log.warn("Cache PUT failed ({}): {}", cache.getName(), e.getMessage()); + } + + @Override + public void handleCacheEvictError(RuntimeException e, Cache cache, Object key) { + cacheHealthTracker.markStale(); + log.warn("Cache EVICT failed ({}): {}", cache.getName(), e.getMessage()); + } + + @Override + public void handleCacheClearError(RuntimeException e, Cache cache) { + cacheHealthTracker.markStale(); + log.warn("Cache CLEAR failed ({}): {}", cache.getName(), e.getMessage()); + } + }; + } +} diff --git a/src/main/java/ru/mtusi/messenger/config/SecurityConfig.java b/src/main/java/ru/mtusi/messenger/config/SecurityConfig.java new file mode 100644 index 0000000..6ec46aa --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/SecurityConfig.java @@ -0,0 +1,86 @@ +package ru.mtusi.messenger.config; + +import lombok.RequiredArgsConstructor; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.http.HttpMethod; +import org.springframework.security.authentication.AuthenticationManager; +import org.springframework.security.authentication.ProviderManager; +import org.springframework.security.config.annotation.web.builders.HttpSecurity; +import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; +import org.springframework.security.config.annotation.web.configurers.AbstractHttpConfigurer; +import org.springframework.security.config.http.SessionCreationPolicy; +import org.springframework.security.crypto.argon2.Argon2PasswordEncoder; +import org.springframework.security.crypto.password.PasswordEncoder; +import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver; +import org.springframework.security.oauth2.server.resource.web.DefaultBearerTokenResolver; +import org.springframework.security.web.SecurityFilterChain; +import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; + +import ru.mtusi.messenger.exception.ApiErrorFactory; +import ru.mtusi.messenger.security.ApiAuthenticationEntryPoint; +import ru.mtusi.messenger.security.SessionAuthenticationFilter; +import ru.mtusi.messenger.security.SessionAuthenticationProvider; + +@Configuration +@EnableWebSecurity +@RequiredArgsConstructor +public class SecurityConfig { + private final SessionAuthenticationProvider sessionAuthenticationProvider; + private final ApiAuthenticationEntryPoint entryPoint; + private final ApiErrorFactory errors; + + @Bean + public PasswordEncoder passwordEncoder() { + return new Argon2PasswordEncoder(16, 32, 1, 19456, 2); + } + + @Bean + public AuthenticationManager authenticationManager() { + return new ProviderManager(sessionAuthenticationProvider); + } + + @Bean + public SecurityFilterChain filterChain( + HttpSecurity http, + AuthenticationManager authenticationManager, + BearerTokenResolver bearerTokenResolver) + throws Exception { + SessionAuthenticationFilter sessionFilter = + new SessionAuthenticationFilter(bearerTokenResolver, authenticationManager, errors); + + http.csrf(AbstractHttpConfigurer::disable) + .httpBasic(AbstractHttpConfigurer::disable) + .formLogin(AbstractHttpConfigurer::disable) + .logout(AbstractHttpConfigurer::disable) + .sessionManagement(sm -> sm.sessionCreationPolicy(SessionCreationPolicy.STATELESS)) + .authorizeHttpRequests( + auth -> + auth.requestMatchers("/health/**") + .permitAll() + .requestMatchers( + "/swagger-ui.html", + "/swagger-ui/**", + "/v3/api-docs", + "/v3/api-docs/**") + .permitAll() + .requestMatchers(HttpMethod.POST, "/api/v1/users") + .permitAll() + .requestMatchers(HttpMethod.POST, "/api/v1/auth/sessions") + .permitAll() + .requestMatchers("/actuator/health", "/actuator/health/**") + .permitAll() + .anyRequest() + .authenticated()) + .addFilterBefore(sessionFilter, UsernamePasswordAuthenticationFilter.class) + .exceptionHandling(eh -> eh.authenticationEntryPoint(entryPoint)); + + return http.build(); + } + + @Bean + public BearerTokenResolver bearerTokenResolver() { + return new DefaultBearerTokenResolver(); + } +} diff --git a/src/main/java/ru/mtusi/messenger/config/properties/AppProperties.java b/src/main/java/ru/mtusi/messenger/config/properties/AppProperties.java new file mode 100644 index 0000000..532fa1b --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/properties/AppProperties.java @@ -0,0 +1,6 @@ +package ru.mtusi.messenger.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +@ConfigurationProperties(prefix = "app.limits") +public record AppProperties(int maxMessagesPerChat) {} diff --git a/src/main/java/ru/mtusi/messenger/config/properties/IdempotencyProperties.java b/src/main/java/ru/mtusi/messenger/config/properties/IdempotencyProperties.java new file mode 100644 index 0000000..3d7f9ee --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/properties/IdempotencyProperties.java @@ -0,0 +1,6 @@ +package ru.mtusi.messenger.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +@ConfigurationProperties(prefix = "app.idempotency") +public record IdempotencyProperties(int keyMaxLength, String keyPattern, int retentionHours) {} diff --git a/src/main/java/ru/mtusi/messenger/config/properties/InstanceProperties.java b/src/main/java/ru/mtusi/messenger/config/properties/InstanceProperties.java new file mode 100644 index 0000000..1945da4 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/properties/InstanceProperties.java @@ -0,0 +1,6 @@ +package ru.mtusi.messenger.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +@ConfigurationProperties(prefix = "app.instance") +public record InstanceProperties(String id) {} diff --git a/src/main/java/ru/mtusi/messenger/config/properties/RateLimitProperties.java b/src/main/java/ru/mtusi/messenger/config/properties/RateLimitProperties.java new file mode 100644 index 0000000..303aedc --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/properties/RateLimitProperties.java @@ -0,0 +1,6 @@ +package ru.mtusi.messenger.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +@ConfigurationProperties(prefix = "app.rate") +public record RateLimitProperties(int ratePerMinute, int retryAfterSeconds) {} diff --git a/src/main/java/ru/mtusi/messenger/config/properties/RedisProperties.java b/src/main/java/ru/mtusi/messenger/config/properties/RedisProperties.java new file mode 100644 index 0000000..12d9e36 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/properties/RedisProperties.java @@ -0,0 +1,17 @@ +package ru.mtusi.messenger.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +import java.time.Duration; + +@ConfigurationProperties(prefix = "app.redis") +public record RedisProperties( + String host, + String password, + int port, + Duration commandTimeout, + Duration connectTimeout, + Duration shutdownTimeout, + Duration keepAliveIdle, + Duration keepAliveInterval, + Duration tcpUserTimeout) {} diff --git a/src/main/java/ru/mtusi/messenger/config/properties/S3Properties.java b/src/main/java/ru/mtusi/messenger/config/properties/S3Properties.java new file mode 100644 index 0000000..5b41186 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/properties/S3Properties.java @@ -0,0 +1,40 @@ +package ru.mtusi.messenger.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.boot.context.properties.bind.DefaultValue; + +@ConfigurationProperties(prefix = "s3") +public record S3Properties( + String endpoint, + String bucket, + @DefaultValue("us-east-1") String region, + @DefaultValue("") String accessKey, + @DefaultValue("") String secretKey, + @DefaultValue("true") boolean pathStyleAccess, + @DefaultValue("300") int presignExpirySeconds) { + public String resolvedAccessKey() { + var file = System.getenv("S3_ACCESS_KEY_ID_FILE"); + if (file != null && !file.isBlank()) { + try { + return new String(java.nio.file.Files.readAllBytes(java.nio.file.Paths.get(file))) + .strip(); + } catch (Exception e) { + throw new RuntimeException("Failed to read S3_ACCESS_KEY_ID_FILE: " + file, e); + } + } + return accessKey; + } + + public String resolvedSecretKey() { + var file = System.getenv("S3_SECRET_ACCESS_KEY_FILE"); + if (file != null && !file.isBlank()) { + try { + return new String(java.nio.file.Files.readAllBytes(java.nio.file.Paths.get(file))) + .strip(); + } catch (Exception e) { + throw new RuntimeException("Failed to read S3_SECRET_ACCESS_KEY_FILE: " + file, e); + } + } + return secretKey; + } +} diff --git a/src/main/java/ru/mtusi/messenger/config/properties/SessionProperties.java b/src/main/java/ru/mtusi/messenger/config/properties/SessionProperties.java new file mode 100644 index 0000000..e4c904d --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/properties/SessionProperties.java @@ -0,0 +1,8 @@ +package ru.mtusi.messenger.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +import java.time.Duration; + +@ConfigurationProperties(prefix = "app.session") +public record SessionProperties(Duration ttl) {} diff --git a/src/main/java/ru/mtusi/messenger/config/properties/UploadProperties.java b/src/main/java/ru/mtusi/messenger/config/properties/UploadProperties.java new file mode 100644 index 0000000..8e99c1e --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/config/properties/UploadProperties.java @@ -0,0 +1,12 @@ +package ru.mtusi.messenger.config.properties; + +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.boot.context.properties.bind.DefaultValue; + +import java.util.List; + +@ConfigurationProperties(prefix = "upload") +public record UploadProperties( + @DefaultValue("10485760") long maxBytes, + @DefaultValue("40000000") long maxPixels, + @DefaultValue({"image/png", "image/jpeg"}) List allowedContentTypes) {} diff --git a/src/main/java/ru/mtusi/messenger/controller/AttachmentController.java b/src/main/java/ru/mtusi/messenger/controller/AttachmentController.java new file mode 100644 index 0000000..921387c --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/AttachmentController.java @@ -0,0 +1,43 @@ +package ru.mtusi.messenger.controller; + +import jakarta.servlet.http.HttpServletRequest; + +import lombok.RequiredArgsConstructor; + +import org.springframework.http.ResponseEntity; +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.web.bind.annotation.RestController; + +import ru.mtusi.messenger.dto.AttachmentDTO; +import ru.mtusi.messenger.security.SessionPrincipal; +import ru.mtusi.messenger.service.AttachmentService; + +import java.util.UUID; + +@RestController +@RequiredArgsConstructor +public class AttachmentController implements AttachmentsApi { + private final AttachmentService service; + + @Override + public AttachmentDTO uploadAttachment( + UUID chatId, + String filename, + HttpServletRequest body, + String contentType, + @AuthenticationPrincipal SessionPrincipal principal) { + return service.upload(chatId, principal.userId(), filename, body, contentType); + } + + @Override + public AttachmentDTO getAttachment( + UUID attachmentId, @AuthenticationPrincipal SessionPrincipal principal) { + return service.getMetadata(attachmentId, principal.userId()); + } + + @Override + public ResponseEntity downloadAttachment( + UUID attachmentId, String variant, SessionPrincipal principal) { + return service.downloadResponse(attachmentId, principal.userId(), variant); + } +} diff --git a/src/main/java/ru/mtusi/messenger/controller/AttachmentsApi.java b/src/main/java/ru/mtusi/messenger/controller/AttachmentsApi.java new file mode 100644 index 0000000..3fd0f0c --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/AttachmentsApi.java @@ -0,0 +1,314 @@ +package ru.mtusi.messenger.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.enums.ParameterIn; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.security.SecurityRequirement; +import io.swagger.v3.oas.annotations.tags.Tag; + +import jakarta.servlet.http.HttpServletRequest; + +import org.hibernate.validator.constraints.CodePointLength; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestHeader; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseStatus; + +import ru.mtusi.messenger.dto.AttachmentDTO; +import ru.mtusi.messenger.dto.ErrorDTO; +import ru.mtusi.messenger.security.SessionPrincipal; + +import java.util.UUID; + +/** HTTP-контракт; валидация и описание операций отделены от реализации. */ +@Validated +@Tag(name = "Attachments", description = "Загрузка и скачивание вложений (PNG/JPEG) в чатах.") +@RequestMapping("${openapi.mTUSIMessenger2.base-path:}") +public interface AttachmentsApi { + + /** + * Принимает PNG/JPEG до 10 MiB для участника чата. Возвращает 202 queued только после + * сохранения исходника и COMMIT вложения, задания и outbox; обработка выполняется отдельно. + */ + @Operation( + operationId = "uploadAttachment", + summary = "Принять один PNG/JPEG, до 10 MiB", + tags = {"Attachments"}, + responses = { + @ApiResponse( + responseCode = "202", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = AttachmentDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "413", + description = "Превышен лимит", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "415", + description = "Неподдерживаемый тип", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.POST, + value = "/api/v1/chats/{chat_id}/attachments", + consumes = {MediaType.IMAGE_PNG_VALUE, MediaType.IMAGE_JPEG_VALUE}, + produces = {MediaType.APPLICATION_JSON_VALUE}) + @ResponseStatus(org.springframework.http.HttpStatus.ACCEPTED) + AttachmentDTO uploadAttachment( + @Parameter(name = "chat_id", required = true, in = ParameterIn.PATH) + @PathVariable("chat_id") + UUID chatId, + @Parameter(name = "filename", required = true, in = ParameterIn.QUERY) + @CodePointLength(min = 1, max = 255) + @RequestParam("filename") + String filename, + HttpServletRequest body, + @RequestHeader("Content-Type") String contentType, + @AuthenticationPrincipal SessionPrincipal principal); + + /** Возвращает согласованный снимок вложения; варианты доступны только в состоянии ready. */ + @Operation( + operationId = "getAttachment", + summary = "Метаданные вложения, доступ участникам чата", + tags = {"Attachments"}, + responses = { + @ApiResponse( + responseCode = "200", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = AttachmentDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.GET, + value = "/api/v1/attachments/{attachment_id}", + produces = {MediaType.APPLICATION_JSON_VALUE}) + @ResponseStatus(org.springframework.http.HttpStatus.OK) + AttachmentDTO getAttachment( + @Parameter(name = "attachment_id", required = true, in = ParameterIn.PATH) + @PathVariable("attachment_id") + UUID attachmentId, + @AuthenticationPrincipal SessionPrincipal principal); + + /** + * Возвращает байты выбранного варианта участнику чата; до ready отвечает 409 без редиректа в + * S3. + */ + @Operation( + operationId = "downloadAttachment", + summary = "Скачать байты через авторизованный API", + tags = {"Attachments"}, + responses = { + @ApiResponse( + responseCode = "200", + description = "Успех", + content = { + @Content( + mediaType = "image/png", + schema = @Schema(type = "string", format = "binary")), + @Content( + mediaType = "image/jpeg", + schema = @Schema(type = "string", format = "binary")), + @Content( + mediaType = "image/webp", + schema = @Schema(type = "string", format = "binary")) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.GET, + value = "/api/v1/attachments/{attachment_id}/content") + ResponseEntity downloadAttachment( + @Parameter(name = "attachment_id", required = true, in = ParameterIn.PATH) + @PathVariable("attachment_id") + UUID attachmentId, + @Parameter(name = "variant", in = ParameterIn.QUERY) + @RequestParam(value = "variant", required = false, defaultValue = "original") + String variant, + @AuthenticationPrincipal SessionPrincipal principal); +} diff --git a/src/main/java/ru/mtusi/messenger/controller/AuthApi.java b/src/main/java/ru/mtusi/messenger/controller/AuthApi.java new file mode 100644 index 0000000..bfd4a2d --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/AuthApi.java @@ -0,0 +1,138 @@ +package ru.mtusi.messenger.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.security.SecurityRequirement; +import io.swagger.v3.oas.annotations.tags.Tag; + +import jakarta.servlet.http.HttpServletRequest; + +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseStatus; + +import ru.mtusi.messenger.dto.ErrorDTO; +import ru.mtusi.messenger.dto.SessionDTO; + +/** HTTP-контракт; валидация и описание операций отделены от реализации. */ +@Validated +@Tag( + name = "Auth", + description = "Аутентификация: вход по Basic и выдача/отзыв сессионного Bearer-токена.") +@RequestMapping("${openapi.mTUSIMessenger2.base-path:}") +public interface AuthApi { + + /** Вход: Basic username:password; выдаёт сессию. */ + @Operation( + operationId = "createSession", + summary = "Вход: Basic username:password; выдаёт сессию", + tags = {"Auth"}, + responses = { + @ApiResponse( + responseCode = "201", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = SessionDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "basicAuth")}) + @RequestMapping( + method = RequestMethod.POST, + value = "/api/v1/auth/sessions", + produces = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.CREATED) + SessionDTO createSession(HttpServletRequest request); + + /** Отозвать текущую сессию. */ + @Operation( + operationId = "revokeSession", + summary = "Отозвать текущую сессию", + tags = {"Auth"}, + responses = { + @ApiResponse(responseCode = "204", description = "Успех"), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.DELETE, + value = "/api/v1/auth/sessions/current", + produces = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.NO_CONTENT) + void revokeSession(); +} diff --git a/src/main/java/ru/mtusi/messenger/controller/AuthController.java b/src/main/java/ru/mtusi/messenger/controller/AuthController.java new file mode 100644 index 0000000..7c4de8c --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/AuthController.java @@ -0,0 +1,28 @@ +package ru.mtusi.messenger.controller; + +import jakarta.servlet.http.HttpServletRequest; + +import lombok.RequiredArgsConstructor; + +import org.springframework.http.HttpHeaders; +import org.springframework.web.bind.annotation.RestController; + +import ru.mtusi.messenger.dto.SessionDTO; +import ru.mtusi.messenger.service.AuthService; + +@RestController +@RequiredArgsConstructor +public class AuthController implements AuthApi { + private final AuthService authService; + + @Override + public SessionDTO createSession(HttpServletRequest request) { + return authService.login( + request.getHeader(HttpHeaders.AUTHORIZATION), request.getContentLengthLong()); + } + + @Override + public void revokeSession() { + authService.logout(); + } +} diff --git a/src/main/java/ru/mtusi/messenger/controller/ChatController.java b/src/main/java/ru/mtusi/messenger/controller/ChatController.java new file mode 100644 index 0000000..7f60bd4 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/ChatController.java @@ -0,0 +1,37 @@ +package ru.mtusi.messenger.controller; + +import lombok.RequiredArgsConstructor; + +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.web.bind.annotation.RestController; + +import ru.mtusi.messenger.dto.ChatDTO; +import ru.mtusi.messenger.dto.ChatPageDTO; +import ru.mtusi.messenger.dto.CreateChatDTO; +import ru.mtusi.messenger.security.SessionPrincipal; +import ru.mtusi.messenger.service.ChatService; + +import java.util.UUID; + +@RestController +@RequiredArgsConstructor +public class ChatController implements ChatsApi { + private final ChatService chatService; + + @Override + public ChatDTO createChat( + CreateChatDTO createChatDTO, @AuthenticationPrincipal SessionPrincipal principal) { + return chatService.createChat(principal.userId(), createChatDTO); + } + + @Override + public ChatDTO getChat(UUID chatId, @AuthenticationPrincipal SessionPrincipal principal) { + return chatService.getChatDTO(principal.userId(), chatId); + } + + @Override + public ChatPageDTO listChats( + Integer limit, String cursor, @AuthenticationPrincipal SessionPrincipal principal) { + return chatService.listChats(principal.userId(), limit, cursor); + } +} diff --git a/src/main/java/ru/mtusi/messenger/controller/ChatsApi.java b/src/main/java/ru/mtusi/messenger/controller/ChatsApi.java new file mode 100644 index 0000000..832907a --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/ChatsApi.java @@ -0,0 +1,298 @@ +package ru.mtusi.messenger.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.enums.ParameterIn; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.security.SecurityRequirement; +import io.swagger.v3.oas.annotations.tags.Tag; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.Size; + +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseStatus; + +import ru.mtusi.messenger.dto.ChatDTO; +import ru.mtusi.messenger.dto.ChatPageDTO; +import ru.mtusi.messenger.dto.CreateChatDTO; +import ru.mtusi.messenger.dto.ErrorDTO; +import ru.mtusi.messenger.security.SessionPrincipal; + +import java.util.UUID; + +/** HTTP-контракт; валидация и описание операций отделены от реализации. */ +@Validated +@Tag(name = "Chats", description = "Управление чатами и доступ к чатам текущего пользователя.") +@RequestMapping("${openapi.mTUSIMessenger2.base-path:}") +public interface ChatsApi { + + /** Создать чат; вызывающий должен входить в member_ids. */ + @Operation( + operationId = "createChat", + summary = "Создать чат; вызывающий должен входить в member_ids", + tags = {"Chats"}, + responses = { + @ApiResponse( + responseCode = "201", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ChatDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.POST, + value = "/api/v1/chats", + produces = {"application/json"}, + consumes = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.CREATED) + ChatDTO createChat( + @Parameter(name = "CreateChatDTO", description = "", required = true) + @Valid + @RequestBody + CreateChatDTO createChatDTO, + @AuthenticationPrincipal SessionPrincipal principal); + + /** Получить доступный чат. */ + @Operation( + operationId = "getChatDTO", + summary = "Получить доступный чат", + tags = {"Chats"}, + responses = { + @ApiResponse( + responseCode = "200", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ChatDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.GET, + value = "/api/v1/chats/{chat_id}", + produces = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.OK) + ChatDTO getChat( + @Parameter(name = "chat_id", description = "", required = true, in = ParameterIn.PATH) + @PathVariable("chat_id") + UUID chatId, + @AuthenticationPrincipal SessionPrincipal principal); + + /** Чаты текущего пользователя. */ + @Operation( + operationId = "listChats", + summary = "Чаты текущего пользователя", + tags = {"Chats"}, + responses = { + @ApiResponse( + responseCode = "200", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ChatPageDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.GET, + value = "/api/v1/chats", + produces = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.OK) + ChatPageDTO listChats( + @Min(1) + @Max(100) + @Parameter(name = "limit", description = "", in = ParameterIn.QUERY) + @Valid + @RequestParam(value = "limit", required = false, defaultValue = "50") + Integer limit, + @Size(min = 1) + @Parameter(name = "cursor", description = "", in = ParameterIn.QUERY) + @Valid + @RequestParam(value = "cursor", required = false) + String cursor, + @AuthenticationPrincipal SessionPrincipal principal); +} diff --git a/src/main/java/ru/mtusi/messenger/controller/HealthApi.java b/src/main/java/ru/mtusi/messenger/controller/HealthApi.java new file mode 100644 index 0000000..a534602 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/HealthApi.java @@ -0,0 +1,92 @@ +package ru.mtusi.messenger.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.tags.Tag; + +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseStatus; + +import ru.mtusi.messenger.dto.ErrorDTO; +import ru.mtusi.messenger.dto.HealthDTO; + +/** HTTP-контракт; валидация и описание операций отделены от реализации. */ +@Validated +@Tag( + name = "Health", + description = "Проверки живости и готовности процесса. Публичные, без аутентификации.") +@RequestMapping("${openapi.mTUSIMessenger2.base-path:}") +public interface HealthApi { + + /** Процесс жив. */ + @Operation( + operationId = "liveness", + summary = "Процесс жив", + tags = {"Health"}, + responses = { + @ApiResponse( + responseCode = "200", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = HealthDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }) + @RequestMapping( + method = RequestMethod.GET, + value = "/health/live", + produces = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.OK) + HealthDTO liveness(); + + /** Готов принимать трафик. */ + @Operation( + operationId = "readiness", + summary = "Готов принимать трафик", + tags = {"Health"}, + responses = { + @ApiResponse( + responseCode = "200", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = HealthDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }) + @RequestMapping( + method = RequestMethod.GET, + value = "/health/ready", + produces = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.OK) + HealthDTO readiness(); +} diff --git a/src/main/java/ru/mtusi/messenger/controller/HealthController.java b/src/main/java/ru/mtusi/messenger/controller/HealthController.java new file mode 100644 index 0000000..376ee12 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/HealthController.java @@ -0,0 +1,24 @@ +package ru.mtusi.messenger.controller; + +import lombok.RequiredArgsConstructor; + +import org.springframework.web.bind.annotation.RestController; + +import ru.mtusi.messenger.dto.HealthDTO; +import ru.mtusi.messenger.service.HealthService; + +@RestController +@RequiredArgsConstructor +public class HealthController implements HealthApi { + private final HealthService healthService; + + @Override + public HealthDTO liveness() { + return healthService.liveness(); + } + + @Override + public HealthDTO readiness() { + return healthService.readiness(); + } +} diff --git a/src/main/java/ru/mtusi/messenger/controller/MessageController.java b/src/main/java/ru/mtusi/messenger/controller/MessageController.java new file mode 100644 index 0000000..31ab145 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/MessageController.java @@ -0,0 +1,39 @@ +package ru.mtusi.messenger.controller; + +import lombok.RequiredArgsConstructor; + +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.web.bind.annotation.RestController; + +import ru.mtusi.messenger.dto.CreateMessageDTO; +import ru.mtusi.messenger.dto.MessageDTO; +import ru.mtusi.messenger.dto.MessagePageDTO; +import ru.mtusi.messenger.security.SessionPrincipal; +import ru.mtusi.messenger.service.MessageService; + +import java.util.UUID; + +@RestController +@RequiredArgsConstructor +public class MessageController implements MessagesApi { + private final MessageService messageService; + + @Override + public MessageDTO createMessage( + UUID chatId, + String idempotencyKey, + CreateMessageDTO createMessageDTO, + @AuthenticationPrincipal SessionPrincipal principal) { + return messageService.createMessage( + principal.userId(), chatId, createMessageDTO, idempotencyKey); + } + + @Override + public MessagePageDTO listMessages( + UUID chatId, + Integer limit, + String cursor, + @AuthenticationPrincipal SessionPrincipal principal) { + return messageService.listMessages(principal.userId(), chatId, limit, cursor); + } +} diff --git a/src/main/java/ru/mtusi/messenger/controller/MessagesApi.java b/src/main/java/ru/mtusi/messenger/controller/MessagesApi.java new file mode 100644 index 0000000..fc24bbf --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/MessagesApi.java @@ -0,0 +1,228 @@ +package ru.mtusi.messenger.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.enums.ParameterIn; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.security.SecurityRequirement; +import io.swagger.v3.oas.annotations.tags.Tag; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.Size; + +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestHeader; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseStatus; + +import ru.mtusi.messenger.dto.CreateMessageDTO; +import ru.mtusi.messenger.dto.ErrorDTO; +import ru.mtusi.messenger.dto.MessageDTO; +import ru.mtusi.messenger.dto.MessagePageDTO; +import ru.mtusi.messenger.security.SessionPrincipal; + +import java.util.UUID; + +/** HTTP-контракт; валидация и описание операций отделены от реализации. */ +@Validated +@Tag(name = "Messages", description = "Отправка и чтение сообщений внутри доступного чата.") +@RequestMapping("${openapi.mTUSIMessenger2.base-path:}") +public interface MessagesApi { + + /** + * Создаёт сообщение идемпотентно в пределах пользователя и чата. Повтор ключа с другим телом + * даёт 409; queued/processing вложения допустимы, failed отклоняются до COMMIT сообщения. + */ + @Operation( + operationId = "createMessage", + summary = "Отправить сообщение", + tags = {"Messages"}, + responses = { + @ApiResponse( + responseCode = "201", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = MessageDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.POST, + value = "/api/v1/chats/{chat_id}/messages", + produces = {"application/json"}, + consumes = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.CREATED) + MessageDTO createMessage( + @Parameter(name = "chat_id", description = "", required = true, in = ParameterIn.PATH) + @PathVariable("chat_id") + UUID chatId, + @Parameter(name = "Idempotency-Key", required = true, in = ParameterIn.HEADER) + @RequestHeader(value = "Idempotency-Key", required = true) + String idempotencyKey, + @Parameter(name = "CreateMessageDTO", description = "", required = true) + @Valid + @RequestBody + CreateMessageDTO createMessageDTO, + @AuthenticationPrincipal SessionPrincipal principal); + + /** Сообщения по (created_at, id) по возрастанию. */ + @Operation( + operationId = "listMessages", + summary = "Сообщения по (created_at, id) по возрастанию", + tags = {"Messages"}, + responses = { + @ApiResponse( + responseCode = "200", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = MessagePageDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.GET, + value = "/api/v1/chats/{chat_id}/messages", + produces = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.OK) + MessagePageDTO listMessages( + @Parameter(name = "chat_id", description = "", required = true, in = ParameterIn.PATH) + @PathVariable("chat_id") + UUID chatId, + @Min(1) + @Max(100) + @Parameter(name = "limit", description = "", in = ParameterIn.QUERY) + @Valid + @RequestParam(value = "limit", required = false, defaultValue = "50") + Integer limit, + @Size(min = 1) + @Parameter(name = "cursor", description = "", in = ParameterIn.QUERY) + @Valid + @RequestParam(value = "cursor", required = false) + String cursor, + @AuthenticationPrincipal SessionPrincipal principal); +} diff --git a/src/main/java/ru/mtusi/messenger/controller/UserController.java b/src/main/java/ru/mtusi/messenger/controller/UserController.java new file mode 100644 index 0000000..719e69f --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/UserController.java @@ -0,0 +1,27 @@ +package ru.mtusi.messenger.controller; + +import lombok.RequiredArgsConstructor; + +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.web.bind.annotation.RestController; + +import ru.mtusi.messenger.dto.CreateUserDTO; +import ru.mtusi.messenger.dto.UserDTO; +import ru.mtusi.messenger.security.SessionPrincipal; +import ru.mtusi.messenger.service.UserService; + +@RestController +@RequiredArgsConstructor +public class UserController implements UsersApi { + private final UserService userService; + + @Override + public UserDTO currentUser(@AuthenticationPrincipal SessionPrincipal principal) { + return userService.currentUser(principal.userId()); + } + + @Override + public UserDTO registerUser(CreateUserDTO createUserDTO) { + return userService.registerUser(createUserDTO); + } +} diff --git a/src/main/java/ru/mtusi/messenger/controller/UsersApi.java b/src/main/java/ru/mtusi/messenger/controller/UsersApi.java new file mode 100644 index 0000000..d438835 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/UsersApi.java @@ -0,0 +1,178 @@ +package ru.mtusi.messenger.controller; + +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.media.Content; +import io.swagger.v3.oas.annotations.media.Schema; +import io.swagger.v3.oas.annotations.responses.ApiResponse; +import io.swagger.v3.oas.annotations.security.SecurityRequirement; +import io.swagger.v3.oas.annotations.tags.Tag; + +import jakarta.validation.Valid; + +import org.springframework.security.core.annotation.AuthenticationPrincipal; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseStatus; + +import ru.mtusi.messenger.dto.CreateUserDTO; +import ru.mtusi.messenger.dto.ErrorDTO; +import ru.mtusi.messenger.dto.UserDTO; +import ru.mtusi.messenger.security.SessionPrincipal; + +/** HTTP-контракт; валидация и описание операций отделены от реализации. */ +@Validated +@Tag( + name = "Users", + description = "Регистрация пользователей и доступ к профилю текущего пользователя.") +@RequestMapping("${openapi.mTUSIMessenger2.base-path:}") +public interface UsersApi { + + /** Текущий пользователь. */ + @Operation( + operationId = "currentUser", + summary = "Текущий пользователь", + tags = {"Users"}, + responses = { + @ApiResponse( + responseCode = "200", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = UserDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "401", + description = "Нет действительной аутентификации", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "404", + description = "Объект отсутствует или недоступен", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }, + security = {@SecurityRequirement(name = "bearerAuth")}) + @RequestMapping( + method = RequestMethod.GET, + value = "/api/v1/users/me", + produces = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.OK) + UserDTO currentUser(@AuthenticationPrincipal SessionPrincipal principal); + + /** Создать пользователя. */ + @Operation( + operationId = "registerUser", + summary = "Создать пользователя", + tags = {"Users"}, + responses = { + @ApiResponse( + responseCode = "201", + description = "Успех", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = UserDTO.class)) + }), + @ApiResponse( + responseCode = "400", + description = "Неверный запрос", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "409", + description = "Конфликт", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "429", + description = "Ограничение частоты запросов", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "503", + description = "Зависимость недоступна", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }), + @ApiResponse( + responseCode = "500", + description = "Неожиданная ошибка без внутренних деталей", + content = { + @Content( + mediaType = "application/json", + schema = @Schema(implementation = ErrorDTO.class)) + }) + }) + @RequestMapping( + method = RequestMethod.POST, + value = "/api/v1/users", + produces = {"application/json"}, + consumes = {"application/json"}) + @ResponseStatus(org.springframework.http.HttpStatus.CREATED) + UserDTO registerUser( + @Parameter(name = "CreateUserDTO", description = "", required = true) + @Valid + @RequestBody + CreateUserDTO createUserDTO); +} diff --git a/src/main/java/ru/mtusi/messenger/controller/controllerAdvice/GlobalExceptionHandler.java b/src/main/java/ru/mtusi/messenger/controller/controllerAdvice/GlobalExceptionHandler.java new file mode 100644 index 0000000..8da6d0c --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/controller/controllerAdvice/GlobalExceptionHandler.java @@ -0,0 +1,247 @@ +package ru.mtusi.messenger.controller.controllerAdvice; + +import jakarta.servlet.http.HttpServletRequest; +import jakarta.validation.ConstraintViolationException; + +import lombok.RequiredArgsConstructor; + +import org.springframework.dao.DataAccessException; +import org.springframework.dao.DataAccessResourceFailureException; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.http.converter.HttpMessageNotReadableException; +import org.springframework.transaction.CannotCreateTransactionException; +import org.springframework.web.HttpMediaTypeNotSupportedException; +import org.springframework.web.HttpRequestMethodNotSupportedException; +import org.springframework.web.bind.MethodArgumentNotValidException; +import org.springframework.web.bind.MissingRequestHeaderException; +import org.springframework.web.bind.MissingServletRequestParameterException; +import org.springframework.web.bind.annotation.ExceptionHandler; +import org.springframework.web.bind.annotation.RestControllerAdvice; +import org.springframework.web.method.annotation.HandlerMethodValidationException; +import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException; + +import ru.mtusi.messenger.config.properties.RateLimitProperties; +import ru.mtusi.messenger.dto.ErrorDTO; +import ru.mtusi.messenger.dto.ErrorErrorDTO; +import ru.mtusi.messenger.exception.ApiErrorFactory; +import ru.mtusi.messenger.exception.ConflictException; +import ru.mtusi.messenger.exception.InvalidRequestException; +import ru.mtusi.messenger.exception.NotFoundException; +import ru.mtusi.messenger.exception.PayloadTooLargeException; +import ru.mtusi.messenger.exception.RateLimitedException; +import ru.mtusi.messenger.exception.ServiceUnavailableException; +import ru.mtusi.messenger.exception.StorageUnavailableException; +import ru.mtusi.messenger.exception.UnauthorizedException; +import ru.mtusi.messenger.exception.UnsupportedMediaTypeException; + +@RestControllerAdvice +@RequiredArgsConstructor +public class GlobalExceptionHandler { + private static final org.slf4j.Logger log = + org.slf4j.LoggerFactory.getLogger(GlobalExceptionHandler.class); + private final RateLimitProperties limitProperties; + private final ApiErrorFactory errors; + + @ExceptionHandler(InvalidRequestException.class) + public ResponseEntity invalidRequest( + InvalidRequestException e, HttpServletRequest req) { + return respond( + HttpStatus.BAD_REQUEST, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + e.getMessage(), + req); + } + + @ExceptionHandler(UnauthorizedException.class) + public ResponseEntity unauthorized(UnauthorizedException e, HttpServletRequest req) { + boolean isLogin = "/api/v1/auth/sessions".equals(req.getRequestURI()); + String challenge = + isLogin + ? "Basic realm=\"messenger\", charset=\"UTF-8\"" + : "Bearer realm=\"messenger\""; + return ResponseEntity.status(HttpStatus.UNAUTHORIZED) + .header("WWW-Authenticate", challenge) + .body(errors.error(ErrorErrorDTO.CodeEnum.UNAUTHORIZED, e.getMessage(), req)); + } + + @ExceptionHandler(NotFoundException.class) + public ResponseEntity notFound(NotFoundException e, HttpServletRequest req) { + return respond(HttpStatus.NOT_FOUND, ErrorErrorDTO.CodeEnum.NOT_FOUND, e.getMessage(), req); + } + + @ExceptionHandler(ConflictException.class) + public ResponseEntity conflict(ConflictException e, HttpServletRequest req) { + return respond(HttpStatus.CONFLICT, ErrorErrorDTO.CodeEnum.CONFLICT, e.getMessage(), req); + } + + @ExceptionHandler(PayloadTooLargeException.class) + public ResponseEntity payloadTooLarge( + PayloadTooLargeException e, HttpServletRequest req) { + return respond( + HttpStatus.PAYLOAD_TOO_LARGE, + ErrorErrorDTO.CodeEnum.PAYLOAD_TOO_LARGE, + e.getMessage(), + req); + } + + @ExceptionHandler(MethodArgumentNotValidException.class) + public ResponseEntity validation( + MethodArgumentNotValidException e, HttpServletRequest req) { + return respond( + HttpStatus.BAD_REQUEST, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Validation failed", + req); + } + + @ExceptionHandler(HttpMessageNotReadableException.class) + public ResponseEntity unreadable(Exception e, HttpServletRequest req) { + return respond( + HttpStatus.BAD_REQUEST, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Malformed request body", + req); + } + + @ExceptionHandler(MissingServletRequestParameterException.class) + public ResponseEntity missingParam(Exception e, HttpServletRequest req) { + return respond( + HttpStatus.BAD_REQUEST, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Missing parameter", + req); + } + + @ExceptionHandler(MethodArgumentTypeMismatchException.class) + public ResponseEntity typeMismatch(Exception e, HttpServletRequest req) { + return respond( + HttpStatus.BAD_REQUEST, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Invalid parameter type", + req); + } + + @ExceptionHandler(HttpMediaTypeNotSupportedException.class) + public ResponseEntity mediaType(Exception e, HttpServletRequest req) { + return respond( + HttpStatus.UNSUPPORTED_MEDIA_TYPE, + ErrorErrorDTO.CodeEnum.UNSUPPORTED_MEDIA_TYPE, + "Unsupported media type", + req); + } + + @ExceptionHandler(HandlerMethodValidationException.class) + public ResponseEntity methodValidation(Exception e, HttpServletRequest req) { + return respond( + HttpStatus.BAD_REQUEST, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Validation failed", + req); + } + + @ExceptionHandler(HttpRequestMethodNotSupportedException.class) + public ResponseEntity methodNotAllowed(Exception e, HttpServletRequest req) { + return respond( + HttpStatus.METHOD_NOT_ALLOWED, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Method not allowed", + req); + } + + @ExceptionHandler(RateLimitedException.class) + public ResponseEntity rateLimited(RateLimitedException e, HttpServletRequest req) { + return ResponseEntity.status(HttpStatus.TOO_MANY_REQUESTS) + .header("Retry-After", String.valueOf(limitProperties.retryAfterSeconds())) + .body(errors.error(ErrorErrorDTO.CodeEnum.RATE_LIMITED, e.getMessage(), req)); + } + + @ExceptionHandler(ConstraintViolationException.class) + public ResponseEntity constraint( + ConstraintViolationException e, HttpServletRequest req) { + return respond( + HttpStatus.BAD_REQUEST, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Validation failed", + req); + } + + @ExceptionHandler(Exception.class) + public ResponseEntity fallback(Exception e, HttpServletRequest req) { + log.error("Unexpected API failure type={}", e.getClass().getName()); + return respond( + HttpStatus.INTERNAL_SERVER_ERROR, + ErrorErrorDTO.CodeEnum.INTERNAL_ERROR, + "Internal error", + req); + } + + @ExceptionHandler(ServiceUnavailableException.class) + public ResponseEntity serviceUnavailable( + ServiceUnavailableException e, HttpServletRequest req) { + return respond( + HttpStatus.SERVICE_UNAVAILABLE, + ErrorErrorDTO.CodeEnum.UNAVAILABLE, + e.getMessage(), + req); + } + + @ExceptionHandler({ + CannotCreateTransactionException.class, + DataAccessResourceFailureException.class + }) + public ResponseEntity dependencyUnavailable(Exception e, HttpServletRequest req) { + return respond( + HttpStatus.SERVICE_UNAVAILABLE, + ErrorErrorDTO.CodeEnum.UNAVAILABLE, + "Dependency unavailable", + req); + } + + @ExceptionHandler(DataAccessException.class) + public ResponseEntity dataAccess(DataAccessException e, HttpServletRequest req) { + return respond( + HttpStatus.INTERNAL_SERVER_ERROR, + ErrorErrorDTO.CodeEnum.INTERNAL_ERROR, + "Database error", + req); + } + + @ExceptionHandler(MissingRequestHeaderException.class) + public ResponseEntity missingHeader( + MissingRequestHeaderException e, HttpServletRequest req) { + return respond( + HttpStatus.BAD_REQUEST, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Missing header: " + e.getHeaderName(), + req); + } + + @ExceptionHandler(UnsupportedMediaTypeException.class) + public ResponseEntity unsupportedMedia( + UnsupportedMediaTypeException e, HttpServletRequest req) { + return respond( + HttpStatus.UNSUPPORTED_MEDIA_TYPE, + ErrorErrorDTO.CodeEnum.UNSUPPORTED_MEDIA_TYPE, + e.getMessage(), + req); + } + + @ExceptionHandler(StorageUnavailableException.class) + public ResponseEntity storageUnavailable( + StorageUnavailableException e, HttpServletRequest req) { + return respond( + HttpStatus.SERVICE_UNAVAILABLE, + ErrorErrorDTO.CodeEnum.UNAVAILABLE, + e.getMessage(), + req); + } + + private ResponseEntity respond( + HttpStatus status, + ErrorErrorDTO.CodeEnum code, + String message, + HttpServletRequest req) { + return ResponseEntity.status(status).body(errors.error(code, message, req)); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/AttachmentDTO.java b/src/main/java/ru/mtusi/messenger/dto/AttachmentDTO.java new file mode 100644 index 0000000..5ca0bac --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/AttachmentDTO.java @@ -0,0 +1,417 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.annotation.Generated; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; +import jakarta.validation.constraints.Size; + +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.UUID; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.10.0") +public class AttachmentDTO { + + private UUID id; + + private UUID chatId; + + private UUID ownerId; + + private String filename; + + public enum ContentTypeEnum { + IMAGE_PNG("image/png"), + IMAGE_JPEG("image/jpeg"); + + private final String value; + + ContentTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ContentTypeEnum fromValue(String value) { + for (ContentTypeEnum b : ContentTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private ContentTypeEnum contentType; + + private Long sizeBytes; + + private String sha256; + + public enum StatusEnum { + QUEUED("queued"), + PROCESSING("processing"), + READY("ready"), + FAILED("failed"); + + private final String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private StatusEnum status; + + @Valid private List<@Valid VariantDTO> variants = new ArrayList<>(); + + private String errorCode; + + private Instant createdAt; + + private Instant updatedAt; + + public AttachmentDTO() { + super(); + } + + public AttachmentDTO( + UUID id, + UUID chatId, + UUID ownerId, + String filename, + ContentTypeEnum contentType, + Long sizeBytes, + String sha256, + StatusEnum status, + List<@Valid VariantDTO> variants, + String errorCode, + Instant createdAt, + Instant updatedAt) { + this.id = id; + this.chatId = chatId; + this.ownerId = ownerId; + this.filename = filename; + this.contentType = contentType; + this.sizeBytes = sizeBytes; + this.sha256 = sha256; + this.status = status; + this.variants = variants; + this.errorCode = errorCode; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + public AttachmentDTO id(UUID id) { + this.id = id; + return this; + } + + @Valid + @Schema(name = "id", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public UUID getId() { + return id; + } + + public void setId(UUID id) { + this.id = id; + } + + public AttachmentDTO chatId(UUID chatId) { + this.chatId = chatId; + return this; + } + + @Valid + @Schema(name = "chat_id", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("chat_id") + public UUID getChatId() { + return chatId; + } + + public void setChatId(UUID chatId) { + this.chatId = chatId; + } + + public AttachmentDTO ownerId(UUID ownerId) { + this.ownerId = ownerId; + return this; + } + + @Valid + @Schema(name = "owner_id", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("owner_id") + public UUID getOwnerId() { + return ownerId; + } + + public void setOwnerId(UUID ownerId) { + this.ownerId = ownerId; + } + + public AttachmentDTO filename(String filename) { + this.filename = filename; + return this; + } + + @NotNull + @Size(min = 1, max = 255) + @Schema(name = "filename", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("filename") + public String getFilename() { + return filename; + } + + public void setFilename(String filename) { + this.filename = filename; + } + + public AttachmentDTO contentType(ContentTypeEnum contentType) { + this.contentType = contentType; + return this; + } + + @NotNull + @Schema(name = "content_type", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("content_type") + public ContentTypeEnum getContentType() { + return contentType; + } + + public void setContentType(ContentTypeEnum contentType) { + this.contentType = contentType; + } + + public AttachmentDTO sizeBytes(Long sizeBytes) { + this.sizeBytes = sizeBytes; + return this; + } + + @NotNull + @Min(1L) + @Max(10485760L) + @Schema(name = "size_bytes", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("size_bytes") + public Long getSizeBytes() { + return sizeBytes; + } + + public void setSizeBytes(Long sizeBytes) { + this.sizeBytes = sizeBytes; + } + + public AttachmentDTO sha256(String sha256) { + this.sha256 = sha256; + return this; + } + + @NotNull + @Pattern(regexp = "^[a-f0-9]{64}$") + @Schema(name = "sha256", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("sha256") + public String getSha256() { + return sha256; + } + + public void setSha256(String sha256) { + this.sha256 = sha256; + } + + public AttachmentDTO status(StatusEnum status) { + this.status = status; + return this; + } + + @NotNull + @Schema(name = "status", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("status") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public AttachmentDTO variants(List<@Valid VariantDTO> variants) { + this.variants = variants; + return this; + } + + public AttachmentDTO addVariantsItem(VariantDTO variantsItem) { + if (this.variants == null) { + this.variants = new ArrayList<>(); + } + this.variants.add(variantsItem); + return this; + } + + @NotNull + @Valid + @Schema(name = "variants", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("variants") + public List<@Valid VariantDTO> getVariants() { + return variants; + } + + public void setVariants(List<@Valid VariantDTO> variants) { + this.variants = variants; + } + + public AttachmentDTO errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + @Schema(name = "error_code", requiredMode = Schema.RequiredMode.REQUIRED, nullable = true) + @JsonProperty("error_code") + public String getErrorCode() { + return errorCode; + } + + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + public AttachmentDTO createdAt(Instant createdAt) { + this.createdAt = createdAt; + return this; + } + + @NotNull + @Schema(name = "created_at", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("created_at") + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } + + public AttachmentDTO updatedAt(Instant updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + @NotNull + @Schema(name = "updated_at", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("updated_at") + public Instant getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Instant updatedAt) { + this.updatedAt = updatedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttachmentDTO attachment = (AttachmentDTO) o; + return Objects.equals(this.id, attachment.id) + && Objects.equals(this.chatId, attachment.chatId) + && Objects.equals(this.ownerId, attachment.ownerId) + && Objects.equals(this.filename, attachment.filename) + && Objects.equals(this.contentType, attachment.contentType) + && Objects.equals(this.sizeBytes, attachment.sizeBytes) + && Objects.equals(this.sha256, attachment.sha256) + && Objects.equals(this.status, attachment.status) + && Objects.equals(this.variants, attachment.variants) + && Objects.equals(this.errorCode, attachment.errorCode) + && Objects.equals(this.createdAt, attachment.createdAt) + && Objects.equals(this.updatedAt, attachment.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash( + id, + chatId, + ownerId, + filename, + contentType, + sizeBytes, + sha256, + status, + variants, + errorCode, + createdAt, + updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachmentDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" chatId: ").append(toIndentedString(chatId)).append("\n"); + sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append(" sizeBytes: ").append(toIndentedString(sizeBytes)).append("\n"); + sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" variants: ").append(toIndentedString(variants)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/ChatDTO.java b/src/main/java/ru/mtusi/messenger/dto/ChatDTO.java new file mode 100644 index 0000000..33ab2cb --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/ChatDTO.java @@ -0,0 +1,155 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.annotation.Generated; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; + +import org.hibernate.validator.constraints.CodePointLength; + +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.UUID; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.10.0") +public class ChatDTO { + + private UUID id; + + private String title; + + @Valid private List memberIds = new ArrayList<>(); + + private Instant createdAt; + + public ChatDTO() { + super(); + } + + public ChatDTO(String title, List memberIds) { + this.title = title; + this.memberIds = memberIds; + } + + public ChatDTO id(UUID id) { + this.id = id; + return this; + } + + @Valid + @Schema(name = "id", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public UUID getId() { + return id; + } + + public void setId(UUID id) { + this.id = id; + } + + public ChatDTO title(String title) { + this.title = title; + return this; + } + + @NotNull + @CodePointLength(min = 1, max = 100) + @Schema(name = "title", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("title") + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public ChatDTO memberIds(List memberIds) { + this.memberIds = memberIds; + return this; + } + + public ChatDTO addMemberIdsItem(UUID memberIdsItem) { + if (this.memberIds == null) { + this.memberIds = new ArrayList<>(); + } + this.memberIds.add(memberIdsItem); + return this; + } + + @NotNull + @Valid + @Size(min = 1, max = 100) + @Schema(name = "member_ids", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("member_ids") + public List getMemberIds() { + return memberIds; + } + + public void setMemberIds(List memberIds) { + this.memberIds = memberIds; + } + + public ChatDTO createdAt(Instant createdAt) { + this.createdAt = createdAt; + return this; + } + + @NotNull + @Schema(name = "created_at", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("created_at") + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChatDTO createChat = (ChatDTO) o; + return Objects.equals(this.id, createChat.id) + && Objects.equals(this.title, createChat.title) + && Objects.equals(this.memberIds, createChat.memberIds) + && Objects.equals(this.createdAt, createChat.createdAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, title, memberIds, createdAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChatDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" memberIds: ").append(toIndentedString(memberIds)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/ChatPageDTO.java b/src/main/java/ru/mtusi/messenger/dto/ChatPageDTO.java new file mode 100644 index 0000000..bd67e75 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/ChatPageDTO.java @@ -0,0 +1,105 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +public class ChatPageDTO { + + @Valid private List<@Valid ChatDTO> items = new ArrayList<>(); + + private String nextCursor = null; + + public ChatPageDTO() { + super(); + } + + public ChatPageDTO(List<@Valid ChatDTO> items, String nextCursor) { + this.items = items; + this.nextCursor = nextCursor; + } + + public ChatPageDTO items(List<@Valid ChatDTO> items) { + this.items = items; + return this; + } + + public ChatPageDTO addItemsItem(ChatDTO itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + @NotNull + @Valid + @Schema(name = "items", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("items") + public List<@Valid ChatDTO> getItems() { + return items; + } + + public void setItems(List<@Valid ChatDTO> items) { + this.items = items; + } + + public ChatPageDTO nextCursor(String nextCursor) { + this.nextCursor = nextCursor; + return this; + } + + @JsonInclude(JsonInclude.Include.ALWAYS) + @Schema(name = "next_cursor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("next_cursor") + public String getNextCursor() { + return nextCursor; + } + + public void setNextCursor(String nextCursor) { + this.nextCursor = nextCursor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChatPageDTO chatPageDTO = (ChatPageDTO) o; + return Objects.equals(this.items, chatPageDTO.items) + && Objects.equals(this.nextCursor, chatPageDTO.nextCursor); + } + + @Override + public int hashCode() { + return Objects.hash(items, nextCursor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChatPageDTO {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" nextCursor: ").append(toIndentedString(nextCursor)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/CreateChatDTO.java b/src/main/java/ru/mtusi/messenger/dto/CreateChatDTO.java new file mode 100644 index 0000000..32bb755 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/CreateChatDTO.java @@ -0,0 +1,107 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.annotation.Generated; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; + +import org.hibernate.validator.constraints.CodePointLength; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.UUID; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.10.0") +public class CreateChatDTO { + + private String title; + + @Valid private List memberIds = new ArrayList<>(); + + public CreateChatDTO() { + super(); + } + + public CreateChatDTO(String title, List memberIds) { + this.title = title; + this.memberIds = memberIds; + } + + public CreateChatDTO title(String title) { + this.title = title; + return this; + } + + @NotNull + @CodePointLength(min = 1, max = 100) + @Schema(name = "title", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("title") + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public CreateChatDTO memberIds(List memberIds) { + this.memberIds = memberIds; + return this; + } + + public CreateChatDTO addMemberIdsItem(UUID memberIdsItem) { + if (this.memberIds == null) { + this.memberIds = new ArrayList<>(); + } + this.memberIds.add(memberIdsItem); + return this; + } + + @NotNull + @Valid + @Size(min = 1, max = 100) + @Schema(name = "member_ids", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("member_ids") + public List getMemberIds() { + return memberIds; + } + + public void setMemberIds(List memberIds) { + this.memberIds = memberIds; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateChatDTO that = (CreateChatDTO) o; + return Objects.equals(title, that.title) && Objects.equals(memberIds, that.memberIds); + } + + @Override + public int hashCode() { + return Objects.hash(title, memberIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateChatDTO {\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" memberIds: ").append(toIndentedString(memberIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) return "null"; + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/CreateMessageDTO.java b/src/main/java/ru/mtusi/messenger/dto/CreateMessageDTO.java new file mode 100644 index 0000000..533cac0 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/CreateMessageDTO.java @@ -0,0 +1,60 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.constraints.NotNull; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.UUID; + +@Schema(name = "CreateMessage") +public class CreateMessageDTO { + + private String text; + + private List attachmentIds = new ArrayList<>(); + + public CreateMessageDTO() {} + + public CreateMessageDTO text(String text) { + this.text = text; + return this; + } + + @NotNull + @Schema(name = "text", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("text") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + @Schema(name = "attachment_ids", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("attachment_ids") + public List getAttachmentIds() { + return attachmentIds; + } + + public void setAttachmentIds(List attachmentIds) { + this.attachmentIds = attachmentIds; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (!(o instanceof CreateMessageDTO d)) return false; + return Objects.equals(text, d.text) && Objects.equals(attachmentIds, d.attachmentIds); + } + + @Override + public int hashCode() { + return Objects.hash(text, attachmentIds); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/CreateUserDTO.java b/src/main/java/ru/mtusi/messenger/dto/CreateUserDTO.java new file mode 100644 index 0000000..7872083 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/CreateUserDTO.java @@ -0,0 +1,120 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; + +import org.hibernate.validator.constraints.CodePointLength; + +import java.util.Objects; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.10.0") +public class CreateUserDTO { + + private String username; + + private String displayName; + + private String password; + + public CreateUserDTO() { + super(); + } + + public CreateUserDTO(String username, String displayName, String password) { + this.username = username; + this.displayName = displayName; + this.password = password; + } + + public CreateUserDTO username(String username) { + this.username = username; + return this; + } + + @NotNull + @Pattern(regexp = "^[a-z0-9_]{3,32}$") + @Schema(name = "username", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("username") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public CreateUserDTO displayName(String displayName) { + this.displayName = displayName; + return this; + } + + @NotNull + @CodePointLength(min = 1, max = 100) + @Schema(name = "display_name", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("display_name") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public CreateUserDTO password(String password) { + this.password = password; + return this; + } + + @NotNull + @CodePointLength(min = 12, max = 128) + @Schema( + name = "password", + requiredMode = Schema.RequiredMode.REQUIRED, + accessMode = Schema.AccessMode.WRITE_ONLY) + @JsonProperty(value = "password", access = JsonProperty.Access.WRITE_ONLY) + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + CreateUserDTO createUser = (CreateUserDTO) o; + return Objects.equals(this.username, createUser.username) + && Objects.equals(this.displayName, createUser.displayName) + && Objects.equals(this.password, createUser.password); + } + + @Override + public int hashCode() { + return Objects.hash(username, displayName, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateUserDTO {\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" password: ").append(password != null ? "***" : "null").append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) return "null"; + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/ErrorDTO.java b/src/main/java/ru/mtusi/messenger/dto/ErrorDTO.java new file mode 100644 index 0000000..1d17bcc --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/ErrorDTO.java @@ -0,0 +1,73 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +import java.util.Objects; + +public class ErrorDTO { + + private ErrorErrorDTO error; + + public ErrorDTO() { + super(); + } + + public ErrorDTO(ErrorErrorDTO error) { + this.error = error; + } + + public ErrorDTO error(ErrorErrorDTO error) { + this.error = error; + return this; + } + + @NotNull + @Valid + @Schema(name = "error", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("error") + public ErrorErrorDTO getError() { + return error; + } + + public void setError(ErrorErrorDTO error) { + this.error = error; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ErrorDTO errorDTO = (ErrorDTO) o; + return Objects.equals(this.error, errorDTO.error); + } + + @Override + public int hashCode() { + return Objects.hash(error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ErrorDTO {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/ErrorErrorDTO.java b/src/main/java/ru/mtusi/messenger/dto/ErrorErrorDTO.java new file mode 100644 index 0000000..108eb4f --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/ErrorErrorDTO.java @@ -0,0 +1,156 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; + +import java.util.Objects; + +public class ErrorErrorDTO { + + public enum CodeEnum { + INVALID_REQUEST("invalid_request"), + UNAUTHORIZED("unauthorized"), + NOT_FOUND("not_found"), + CONFLICT("conflict"), + PAYLOAD_TOO_LARGE("payload_too_large"), + UNSUPPORTED_MEDIA_TYPE("unsupported_media_type"), + RATE_LIMITED("rate_limited"), + UNAVAILABLE("unavailable"), + INTERNAL_ERROR("internal_error"); + + private String value; + + CodeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CodeEnum fromValue(String value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private CodeEnum code; + + private String message; + + private String requestId; + + public ErrorErrorDTO() { + super(); + } + + public ErrorErrorDTO(CodeEnum code, String message, String requestId) { + this.code = code; + this.message = message; + this.requestId = requestId; + } + + public ErrorErrorDTO code(CodeEnum code) { + this.code = code; + return this; + } + + @NotNull + @Schema(name = "code", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("code") + public CodeEnum getCode() { + return code; + } + + public void setCode(CodeEnum code) { + this.code = code; + } + + public ErrorErrorDTO message(String message) { + this.message = message; + return this; + } + + @NotNull + @Size(min = 1) + @Schema(name = "message", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("message") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public ErrorErrorDTO requestId(String requestId) { + this.requestId = requestId; + return this; + } + + @NotNull + @Size(min = 1) + @Schema(name = "request_id", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("request_id") + public String getRequestId() { + return requestId; + } + + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ErrorErrorDTO errorErrorDTO = (ErrorErrorDTO) o; + return Objects.equals(this.code, errorErrorDTO.code) + && Objects.equals(this.message, errorErrorDTO.message) + && Objects.equals(this.requestId, errorErrorDTO.requestId); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, requestId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ErrorErrorDTO {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/HealthDTO.java b/src/main/java/ru/mtusi/messenger/dto/HealthDTO.java new file mode 100644 index 0000000..455e043 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/HealthDTO.java @@ -0,0 +1,103 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.constraints.NotNull; + +import java.util.Objects; + +public class HealthDTO { + + public enum StatusEnum { + OK("ok"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private StatusEnum status; + + public HealthDTO() { + super(); + } + + public HealthDTO(StatusEnum status) { + this.status = status; + } + + public HealthDTO status(StatusEnum status) { + this.status = status; + return this; + } + + @NotNull + @Schema(name = "status", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("status") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HealthDTO healthDTO = (HealthDTO) o; + return Objects.equals(this.status, healthDTO.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HealthDTO {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/MessageDTO.java b/src/main/java/ru/mtusi/messenger/dto/MessageDTO.java new file mode 100644 index 0000000..5b1aa25 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/MessageDTO.java @@ -0,0 +1,197 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +import org.hibernate.validator.constraints.CodePointLength; + +import java.time.Instant; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.UUID; + +public class MessageDTO { + + private UUID id; + + private UUID chatId; + + private UUID senderId; + + private String text; + + private Instant createdAt; + + private List attachmentIds = new ArrayList<>(); + + public MessageDTO() { + super(); + } + + public MessageDTO(UUID id, UUID chatId, UUID senderId, String text, Instant createdAt) { + this.id = id; + this.chatId = chatId; + this.senderId = senderId; + this.text = text; + this.createdAt = createdAt; + } + + public MessageDTO( + UUID id, + UUID chatId, + UUID senderId, + String text, + Instant createdAt, + List attachmentIds) { + this.id = id; + this.chatId = chatId; + this.senderId = senderId; + this.text = text; + this.createdAt = createdAt; + this.attachmentIds = attachmentIds != null ? attachmentIds : new ArrayList<>(); + } + + public MessageDTO id(UUID id) { + this.id = id; + return this; + } + + @NotNull + @Valid + @Schema(name = "id", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public UUID getId() { + return id; + } + + public void setId(UUID id) { + this.id = id; + } + + public MessageDTO chatId(UUID chatId) { + this.chatId = chatId; + return this; + } + + @NotNull + @Valid + @Schema(name = "chat_id", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("chat_id") + public UUID getChatId() { + return chatId; + } + + public void setChatId(UUID chatId) { + this.chatId = chatId; + } + + public MessageDTO senderId(UUID senderId) { + this.senderId = senderId; + return this; + } + + @NotNull + @Valid + @Schema(name = "sender_id", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("sender_id") + public UUID getSenderId() { + return senderId; + } + + public void setSenderId(UUID senderId) { + this.senderId = senderId; + } + + public MessageDTO text(String text) { + this.text = text; + return this; + } + + @NotNull + @CodePointLength(min = 1, max = 4000) + @Schema(name = "text", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("text") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + public MessageDTO createdAt(Instant createdAt) { + this.createdAt = createdAt; + return this; + } + + @NotNull + @Valid + @Schema(name = "created_at", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("created_at") + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } + + @Valid + @Schema(name = "attachment_ids", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("attachment_ids") + public List getAttachmentIds() { + return attachmentIds; + } + + public void setAttachmentIds(List attachmentIds) { + this.attachmentIds = attachmentIds; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageDTO messageDTO = (MessageDTO) o; + return Objects.equals(this.id, messageDTO.id) + && Objects.equals(this.chatId, messageDTO.chatId) + && Objects.equals(this.senderId, messageDTO.senderId) + && Objects.equals(this.text, messageDTO.text) + && Objects.equals(this.createdAt, messageDTO.createdAt) + && Objects.equals(this.attachmentIds, messageDTO.attachmentIds); + } + + @Override + public int hashCode() { + return Objects.hash(id, chatId, senderId, text, createdAt, attachmentIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" chatId: ").append(toIndentedString(chatId)).append("\n"); + sb.append(" senderId: ").append(toIndentedString(senderId)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" attachmentIds: ").append(toIndentedString(attachmentIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/MessagePageDTO.java b/src/main/java/ru/mtusi/messenger/dto/MessagePageDTO.java new file mode 100644 index 0000000..6b0f70e --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/MessagePageDTO.java @@ -0,0 +1,105 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +public class MessagePageDTO { + + @Valid private List<@Valid MessageDTO> items = new ArrayList<>(); + + private String nextCursor = null; + + public MessagePageDTO() { + super(); + } + + public MessagePageDTO(List<@Valid MessageDTO> items, String nextCursor) { + this.items = items; + this.nextCursor = nextCursor; + } + + public MessagePageDTO items(List<@Valid MessageDTO> items) { + this.items = items; + return this; + } + + public MessagePageDTO addItemsItem(MessageDTO itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + @NotNull + @Valid + @Schema(name = "items", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("items") + public List<@Valid MessageDTO> getItems() { + return items; + } + + public void setItems(List<@Valid MessageDTO> items) { + this.items = items; + } + + public MessagePageDTO nextCursor(String nextCursor) { + this.nextCursor = nextCursor; + return this; + } + + @JsonInclude(JsonInclude.Include.ALWAYS) + @Schema(name = "next_cursor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("next_cursor") + public String getNextCursor() { + return nextCursor; + } + + public void setNextCursor(String nextCursor) { + this.nextCursor = nextCursor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessagePageDTO messagePageDTO = (MessagePageDTO) o; + return Objects.equals(this.items, messagePageDTO.items) + && Objects.equals(this.nextCursor, messagePageDTO.nextCursor); + } + + @Override + public int hashCode() { + return Objects.hash(items, nextCursor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessagePageDTO {\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" nextCursor: ").append(toIndentedString(nextCursor)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/SessionDTO.java b/src/main/java/ru/mtusi/messenger/dto/SessionDTO.java new file mode 100644 index 0000000..ac5ea61 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/SessionDTO.java @@ -0,0 +1,172 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; + +import java.time.Instant; +import java.util.Objects; + +public class SessionDTO { + + private String token; + + public enum TokenTypeEnum { + BEARER("Bearer"); + + private String value; + + TokenTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TokenTypeEnum fromValue(String value) { + for (TokenTypeEnum b : TokenTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private TokenTypeEnum tokenType; + + private Instant expiresAt; + + private UserDTO user; + + public SessionDTO() { + super(); + } + + public SessionDTO(String token, TokenTypeEnum tokenType, Instant expiresAt, UserDTO user) { + this.token = token; + this.tokenType = tokenType; + this.expiresAt = expiresAt; + this.user = user; + } + + public SessionDTO token(String token) { + this.token = token; + return this; + } + + @NotNull + @Size(min = 32) + @Schema(name = "token", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("token") + public String getToken() { + return token; + } + + public void setToken(String token) { + this.token = token; + } + + public SessionDTO tokenType(TokenTypeEnum tokenType) { + this.tokenType = tokenType; + return this; + } + + @NotNull + @Schema(name = "token_type", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("token_type") + public TokenTypeEnum getTokenType() { + return tokenType; + } + + public void setTokenType(TokenTypeEnum tokenType) { + this.tokenType = tokenType; + } + + public SessionDTO expiresAt(Instant expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + @NotNull + @Valid + @Schema(name = "expires_at", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("expires_at") + public Instant getExpiresAt() { + return expiresAt; + } + + public void setExpiresAt(Instant expiresAt) { + this.expiresAt = expiresAt; + } + + public SessionDTO user(UserDTO user) { + this.user = user; + return this; + } + + @NotNull + @Valid + @Schema(name = "user", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("user") + public UserDTO getUser() { + return user; + } + + public void setUser(UserDTO user) { + this.user = user; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SessionDTO sessionDTO = (SessionDTO) o; + return Objects.equals(this.token, sessionDTO.token) + && Objects.equals(this.tokenType, sessionDTO.tokenType) + && Objects.equals(this.expiresAt, sessionDTO.expiresAt) + && Objects.equals(this.user, sessionDTO.user); + } + + @Override + public int hashCode() { + return Objects.hash(token, tokenType, expiresAt, user); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SessionDTO {\n"); + sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n"); + sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/UserDTO.java b/src/main/java/ru/mtusi/messenger/dto/UserDTO.java new file mode 100644 index 0000000..d32ca90 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/UserDTO.java @@ -0,0 +1,140 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; + +import org.hibernate.validator.constraints.CodePointLength; + +import java.time.Instant; +import java.util.Objects; +import java.util.UUID; + +public class UserDTO { + + private UUID id; + + private String username; + + private String displayName; + + private Instant createdAt; + + public UserDTO() { + super(); + } + + public UserDTO(String username, String displayName) { + this.username = username; + this.displayName = displayName; + } + + public UserDTO username(String username) { + this.username = username; + return this; + } + + @Valid + @Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public UUID getId() { + return id; + } + + public void setId(UUID id) { + this.id = id; + } + + public UserDTO id(UUID id) { + this.id = id; + return this; + } + + @NotNull + @Pattern(regexp = "^[a-z0-9_]{3,32}$") + @Schema(name = "username", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("username") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public UserDTO displayName(String displayName) { + this.displayName = displayName; + return this; + } + + @NotNull + @CodePointLength(min = 1, max = 100) + @Schema(name = "display_name", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("display_name") + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public UserDTO createdAt(Instant createdAt) { + this.createdAt = createdAt; + return this; + } + + @NotNull + @Schema(name = "created_at", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("created_at") + public Instant getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Instant createdAt) { + this.createdAt = createdAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserDTO userDTO = (UserDTO) o; + return Objects.equals(this.id, userDTO.id) + && Objects.equals(this.username, userDTO.username) + && Objects.equals(this.displayName, userDTO.displayName) + && Objects.equals(this.createdAt, userDTO.createdAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, username, displayName, createdAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserDTO {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/dto/VariantDTO.java b/src/main/java/ru/mtusi/messenger/dto/VariantDTO.java new file mode 100644 index 0000000..f5ab84f --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/dto/VariantDTO.java @@ -0,0 +1,258 @@ +package ru.mtusi.messenger.dto; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.swagger.v3.oas.annotations.media.Schema; + +import jakarta.annotation.Generated; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Pattern; + +import java.util.Objects; + +@Generated( + value = "org.openapitools.codegen.languages.SpringCodegen", + comments = "Generator version: 7.10.0") +public class VariantDTO { + + public enum NameEnum { + THUMBNAIL("thumbnail"), + CROP("crop"), + OPTIMIZED("optimized"); + + private final String value; + + NameEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static NameEnum fromValue(String value) { + for (NameEnum b : NameEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private NameEnum name; + + public enum ContentTypeEnum { + IMAGE_JPEG("image/jpeg"), + IMAGE_PNG("image/png"), + IMAGE_WEBP("image/webp"); + + private final String value; + + ContentTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ContentTypeEnum fromValue(String value) { + for (ContentTypeEnum b : ContentTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private ContentTypeEnum contentType; + + private Long sizeBytes; + + private Integer width; + + private Integer height; + + private String sha256; + + public VariantDTO() { + super(); + } + + public VariantDTO( + NameEnum name, + ContentTypeEnum contentType, + Long sizeBytes, + Integer width, + Integer height, + String sha256) { + this.name = name; + this.contentType = contentType; + this.sizeBytes = sizeBytes; + this.width = width; + this.height = height; + this.sha256 = sha256; + } + + public VariantDTO name(NameEnum name) { + this.name = name; + return this; + } + + @NotNull + @Schema(name = "name", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public NameEnum getName() { + return name; + } + + public void setName(NameEnum name) { + this.name = name; + } + + public VariantDTO contentType(ContentTypeEnum contentType) { + this.contentType = contentType; + return this; + } + + @NotNull + @Schema(name = "content_type", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("content_type") + public ContentTypeEnum getContentType() { + return contentType; + } + + public void setContentType(ContentTypeEnum contentType) { + this.contentType = contentType; + } + + public VariantDTO sizeBytes(Long sizeBytes) { + this.sizeBytes = sizeBytes; + return this; + } + + @NotNull + @Min(1L) + @Schema(name = "size_bytes", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("size_bytes") + public Long getSizeBytes() { + return sizeBytes; + } + + public void setSizeBytes(Long sizeBytes) { + this.sizeBytes = sizeBytes; + } + + public VariantDTO width(Integer width) { + this.width = width; + return this; + } + + @NotNull + @Min(1) + @Schema(name = "width", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("width") + public Integer getWidth() { + return width; + } + + public void setWidth(Integer width) { + this.width = width; + } + + public VariantDTO height(Integer height) { + this.height = height; + return this; + } + + @NotNull + @Min(1) + @Schema(name = "height", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("height") + public Integer getHeight() { + return height; + } + + public void setHeight(Integer height) { + this.height = height; + } + + public VariantDTO sha256(String sha256) { + this.sha256 = sha256; + return this; + } + + @NotNull + @Pattern(regexp = "^[a-f0-9]{64}$") + @Schema(name = "sha256", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("sha256") + public String getSha256() { + return sha256; + } + + public void setSha256(String sha256) { + this.sha256 = sha256; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VariantDTO variant = (VariantDTO) o; + return Objects.equals(this.name, variant.name) + && Objects.equals(this.contentType, variant.contentType) + && Objects.equals(this.sizeBytes, variant.sizeBytes) + && Objects.equals(this.width, variant.width) + && Objects.equals(this.height, variant.height) + && Objects.equals(this.sha256, variant.sha256); + } + + @Override + public int hashCode() { + return Objects.hash(name, contentType, sizeBytes, width, height, sha256); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VariantDTO {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append(" sizeBytes: ").append(toIndentedString(sizeBytes)).append("\n"); + sb.append(" width: ").append(toIndentedString(width)).append("\n"); + sb.append(" height: ").append(toIndentedString(height)).append("\n"); + sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/ApiErrorFactory.java b/src/main/java/ru/mtusi/messenger/exception/ApiErrorFactory.java new file mode 100644 index 0000000..9d9efc8 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/ApiErrorFactory.java @@ -0,0 +1,80 @@ +package ru.mtusi.messenger.exception; + +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import lombok.RequiredArgsConstructor; + +import org.slf4j.MDC; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; +import org.springframework.stereotype.Component; + +import ru.mtusi.messenger.dto.ErrorDTO; +import ru.mtusi.messenger.dto.ErrorErrorDTO; + +import tools.jackson.databind.ObjectMapper; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.UUID; + +@Component +@RequiredArgsConstructor +public class ApiErrorFactory { + private static final String DEFAULT_MESSAGE = "Error"; + private static final String REQUEST_ID_ATTR = "requestId"; + private static final String REQUEST_ID_MDC = "requestId"; + + private final ObjectMapper objectMapper; + + public ErrorDTO error(ErrorErrorDTO.CodeEnum code, String message, HttpServletRequest request) { + ErrorErrorDTO inner = new ErrorErrorDTO(); + inner.setCode(code); + inner.setMessage(normalizeMessage(message)); + inner.setRequestId(resolveRequestId(request)); + + ErrorDTO outer = new ErrorDTO(); + outer.setError(inner); + return outer; + } + + public void writeError( + HttpServletResponse response, + HttpServletRequest request, + HttpStatus status, + String wwwAuthenticate, + ErrorErrorDTO.CodeEnum code, + String message) + throws IOException { + String requestId = resolveRequestId(request); + response.setStatus(status.value()); + response.setHeader("X-Request-Id", requestId); + if (wwwAuthenticate != null) { + response.setHeader(HttpHeaders.WWW_AUTHENTICATE, wwwAuthenticate); + } + response.setContentType(MediaType.APPLICATION_JSON_VALUE); + response.setCharacterEncoding(StandardCharsets.UTF_8.name()); + objectMapper.writeValue(response.getWriter(), error(code, message, request)); + } + + public String resolveRequestId(HttpServletRequest request) { + Object attr = request.getAttribute(REQUEST_ID_ATTR); + if (attr instanceof String s && !s.isBlank()) { + return s; + } + String mdc = MDC.get(REQUEST_ID_MDC); + if (mdc != null && !mdc.isBlank()) { + request.setAttribute(REQUEST_ID_ATTR, mdc); + return mdc; + } + String generated = UUID.randomUUID().toString(); + request.setAttribute(REQUEST_ID_ATTR, generated); + return generated; + } + + private String normalizeMessage(String message) { + return (message == null || message.isBlank()) ? DEFAULT_MESSAGE : message; + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/ConflictException.java b/src/main/java/ru/mtusi/messenger/exception/ConflictException.java new file mode 100644 index 0000000..aedbacb --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/ConflictException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class ConflictException extends RuntimeException { + public ConflictException(String message) { + super(message); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/InvalidRequestException.java b/src/main/java/ru/mtusi/messenger/exception/InvalidRequestException.java new file mode 100644 index 0000000..3b6ab25 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/InvalidRequestException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class InvalidRequestException extends RuntimeException { + public InvalidRequestException(String message) { + super(message); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/NotFoundException.java b/src/main/java/ru/mtusi/messenger/exception/NotFoundException.java new file mode 100644 index 0000000..ebd7eca --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/NotFoundException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class NotFoundException extends RuntimeException { + public NotFoundException(String message) { + super(message); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/PayloadTooLargeException.java b/src/main/java/ru/mtusi/messenger/exception/PayloadTooLargeException.java new file mode 100644 index 0000000..1dab465 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/PayloadTooLargeException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class PayloadTooLargeException extends RuntimeException { + public PayloadTooLargeException(String message) { + super(message); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/RateLimitedException.java b/src/main/java/ru/mtusi/messenger/exception/RateLimitedException.java new file mode 100644 index 0000000..7d2b891 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/RateLimitedException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class RateLimitedException extends RuntimeException { + public RateLimitedException(String message) { + super(message); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/ServiceUnavailableException.java b/src/main/java/ru/mtusi/messenger/exception/ServiceUnavailableException.java new file mode 100644 index 0000000..c59fa53 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/ServiceUnavailableException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class ServiceUnavailableException extends RuntimeException { + public ServiceUnavailableException(String message) { + super(message); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/StaleAttachmentException.java b/src/main/java/ru/mtusi/messenger/exception/StaleAttachmentException.java new file mode 100644 index 0000000..e5a488d --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/StaleAttachmentException.java @@ -0,0 +1,11 @@ +package ru.mtusi.messenger.exception; + +public class StaleAttachmentException extends RuntimeException { + public StaleAttachmentException(String message) { + super(message); + } + + public StaleAttachmentException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/StorageUnavailableException.java b/src/main/java/ru/mtusi/messenger/exception/StorageUnavailableException.java new file mode 100644 index 0000000..70d92ce --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/StorageUnavailableException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class StorageUnavailableException extends RuntimeException { + public StorageUnavailableException(String message, Throwable cause) { + super(message, cause); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/UnauthorizedException.java b/src/main/java/ru/mtusi/messenger/exception/UnauthorizedException.java new file mode 100644 index 0000000..6f79b51 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/UnauthorizedException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class UnauthorizedException extends RuntimeException { + public UnauthorizedException(String message) { + super(message); + } +} diff --git a/src/main/java/ru/mtusi/messenger/exception/UnsupportedMediaTypeException.java b/src/main/java/ru/mtusi/messenger/exception/UnsupportedMediaTypeException.java new file mode 100644 index 0000000..6dcd389 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/exception/UnsupportedMediaTypeException.java @@ -0,0 +1,7 @@ +package ru.mtusi.messenger.exception; + +public class UnsupportedMediaTypeException extends RuntimeException { + public UnsupportedMediaTypeException(String message) { + super(message); + } +} diff --git a/src/main/java/ru/mtusi/messenger/filter/InstanceIdFilter.java b/src/main/java/ru/mtusi/messenger/filter/InstanceIdFilter.java new file mode 100644 index 0000000..5c88ff2 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/filter/InstanceIdFilter.java @@ -0,0 +1,33 @@ +package ru.mtusi.messenger.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import lombok.RequiredArgsConstructor; + +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; +import org.springframework.stereotype.Component; +import org.springframework.web.filter.OncePerRequestFilter; + +import ru.mtusi.messenger.config.properties.InstanceProperties; + +import java.io.IOException; + +@Component +@Order(Ordered.HIGHEST_PRECEDENCE) +@RequiredArgsConstructor +public class InstanceIdFilter extends OncePerRequestFilter { + + private final InstanceProperties props; + + @Override + protected void doFilterInternal( + HttpServletRequest request, HttpServletResponse response, FilterChain chain) + throws ServletException, IOException { + response.setHeader("X-Instance-Id", props.id()); + chain.doFilter(request, response); + } +} diff --git a/src/main/java/ru/mtusi/messenger/filter/PasswordBudgetFilter.java b/src/main/java/ru/mtusi/messenger/filter/PasswordBudgetFilter.java new file mode 100644 index 0000000..249faf0 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/filter/PasswordBudgetFilter.java @@ -0,0 +1,71 @@ +package ru.mtusi.messenger.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import lombok.RequiredArgsConstructor; + +import org.springframework.core.annotation.Order; +import org.springframework.http.HttpStatus; +import org.springframework.stereotype.Component; +import org.springframework.web.filter.OncePerRequestFilter; + +import ru.mtusi.messenger.dto.ErrorErrorDTO; +import ru.mtusi.messenger.exception.ApiErrorFactory; +import ru.mtusi.messenger.security.LoginBudget; + +import java.io.IOException; +import java.util.concurrent.Semaphore; + +@Component +@Order(1) +@RequiredArgsConstructor +public class PasswordBudgetFilter extends OncePerRequestFilter { + private final ApiErrorFactory errors; + private final LoginBudget budget; + private final Semaphore hashing = new Semaphore(2); + + @Override + protected boolean shouldNotFilter(HttpServletRequest request) { + return !"POST".equals(request.getMethod()) + || !("/api/v1/auth/sessions".equals(request.getRequestURI()) + || "/api/v1/users".equals(request.getRequestURI())); + } + + @Override + protected void doFilterInternal( + HttpServletRequest request, HttpServletResponse response, FilterChain chain) + throws IOException, ServletException { + boolean allowed; + try { + allowed = budget.acquire(); + } catch (org.springframework.dao.DataAccessException exception) { + errors.writeError( + response, + request, + HttpStatus.SERVICE_UNAVAILABLE, + null, + ErrorErrorDTO.CodeEnum.UNAVAILABLE, + "Login protection unavailable"); + return; + } + if (!allowed || !hashing.tryAcquire()) { + response.setHeader("Retry-After", "60"); + errors.writeError( + response, + request, + HttpStatus.TOO_MANY_REQUESTS, + null, + ErrorErrorDTO.CodeEnum.RATE_LIMITED, + "Login budget exhausted"); + return; + } + try { + chain.doFilter(request, response); + } finally { + hashing.release(); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/filter/RateLimitFilter.java b/src/main/java/ru/mtusi/messenger/filter/RateLimitFilter.java new file mode 100644 index 0000000..5fdae8a --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/filter/RateLimitFilter.java @@ -0,0 +1,54 @@ +package ru.mtusi.messenger.filter; + +import io.github.bucket4j.Bucket; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import lombok.RequiredArgsConstructor; + +import org.springframework.core.annotation.Order; +import org.springframework.http.HttpStatus; +import org.springframework.stereotype.Component; +import org.springframework.web.filter.OncePerRequestFilter; + +import ru.mtusi.messenger.config.properties.RateLimitProperties; +import ru.mtusi.messenger.dto.ErrorErrorDTO; +import ru.mtusi.messenger.exception.ApiErrorFactory; + +import java.io.IOException; + +@Component +@Order(2) +@RequiredArgsConstructor +public class RateLimitFilter extends OncePerRequestFilter { + private final RateLimitProperties limitProperties; + private final Bucket bucket; + private final ApiErrorFactory errors; + + @Override + protected void doFilterInternal( + HttpServletRequest req, HttpServletResponse res, FilterChain chain) + throws ServletException, IOException { + if (!req.getRequestURI().startsWith("/api/")) { + chain.doFilter(req, res); + return; + } + + if (bucket.tryConsume(1)) { + chain.doFilter(req, res); + return; + } + + res.setHeader("Retry-After", String.valueOf(limitProperties.retryAfterSeconds())); + errors.writeError( + res, + req, + HttpStatus.TOO_MANY_REQUESTS, + null, + ErrorErrorDTO.CodeEnum.RATE_LIMITED, + "Rate limit exceeded. Try again later."); + } +} diff --git a/src/main/java/ru/mtusi/messenger/filter/RequestIdFilter.java b/src/main/java/ru/mtusi/messenger/filter/RequestIdFilter.java new file mode 100644 index 0000000..8af5c1b --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/filter/RequestIdFilter.java @@ -0,0 +1,35 @@ +package ru.mtusi.messenger.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import org.slf4j.MDC; +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; +import org.springframework.stereotype.Component; +import org.springframework.web.filter.OncePerRequestFilter; + +import java.io.IOException; +import java.util.UUID; + +@Component +@Order(Ordered.HIGHEST_PRECEDENCE + 1) +public class RequestIdFilter extends OncePerRequestFilter { + + @Override + protected void doFilterInternal( + HttpServletRequest req, HttpServletResponse res, FilterChain chain) + throws ServletException, IOException { + String rid = UUID.randomUUID().toString(); + res.setHeader("X-Request-Id", rid); + req.setAttribute("requestId", rid); + MDC.put("requestId", rid); + try { + chain.doFilter(req, res); + } finally { + MDC.clear(); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/filter/SecretLeaseFilter.java b/src/main/java/ru/mtusi/messenger/filter/SecretLeaseFilter.java new file mode 100644 index 0000000..9de2a78 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/filter/SecretLeaseFilter.java @@ -0,0 +1,50 @@ +package ru.mtusi.messenger.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import lombok.RequiredArgsConstructor; + +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; +import org.springframework.http.HttpStatus; +import org.springframework.stereotype.Component; +import org.springframework.web.filter.OncePerRequestFilter; + +import ru.mtusi.messenger.dto.ErrorErrorDTO; +import ru.mtusi.messenger.exception.ApiErrorFactory; +import ru.mtusi.messenger.security.SecretLease; + +import java.io.IOException; + +@Component +@Order(Ordered.HIGHEST_PRECEDENCE + 4) +@RequiredArgsConstructor +public class SecretLeaseFilter extends OncePerRequestFilter { + private final SecretLease lease; + private final ApiErrorFactory errors; + + @Override + protected boolean shouldNotFilter(HttpServletRequest request) { + return request.getLocalPort() == 8081 || "/health/live".equals(request.getRequestURI()); + } + + @Override + protected void doFilterInternal( + HttpServletRequest request, HttpServletResponse response, FilterChain chain) + throws ServletException, IOException { + if (!lease.valid()) { + errors.writeError( + response, + request, + HttpStatus.SERVICE_UNAVAILABLE, + null, + ErrorErrorDTO.CodeEnum.UNAVAILABLE, + "Service credentials unavailable"); + return; + } + chain.doFilter(request, response); + } +} diff --git a/src/main/java/ru/mtusi/messenger/filter/ServiceIdentityFilter.java b/src/main/java/ru/mtusi/messenger/filter/ServiceIdentityFilter.java new file mode 100644 index 0000000..506e813 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/filter/ServiceIdentityFilter.java @@ -0,0 +1,52 @@ +package ru.mtusi.messenger.filter; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import lombok.RequiredArgsConstructor; + +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; +import org.springframework.http.HttpStatus; +import org.springframework.stereotype.Component; +import org.springframework.web.filter.OncePerRequestFilter; + +import ru.mtusi.messenger.dto.ErrorErrorDTO; +import ru.mtusi.messenger.exception.ApiErrorFactory; + +import java.io.IOException; +import java.security.cert.X509Certificate; + +@Component +@Order(Ordered.HIGHEST_PRECEDENCE + 2) +@RequiredArgsConstructor +public class ServiceIdentityFilter extends OncePerRequestFilter { + private final ApiErrorFactory errors; + + @Override + protected boolean shouldNotFilter(HttpServletRequest request) { + return request.getLocalPort() == 8081; + } + + @Override + protected void doFilterInternal( + HttpServletRequest request, HttpServletResponse response, FilterChain chain) + throws ServletException, IOException { + Object value = request.getAttribute("jakarta.servlet.request.X509Certificate"); + if (!(value instanceof X509Certificate[] certificates) + || certificates.length == 0 + || !"CN=lb".equals(certificates[0].getSubjectX500Principal().getName())) { + errors.writeError( + response, + request, + HttpStatus.FORBIDDEN, + null, + ErrorErrorDTO.CodeEnum.INVALID_REQUEST, + "Service identity denied"); + return; + } + chain.doFilter(request, response); + } +} diff --git a/src/main/java/ru/mtusi/messenger/filter/TelemetryFilter.java b/src/main/java/ru/mtusi/messenger/filter/TelemetryFilter.java new file mode 100644 index 0000000..15879f3 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/filter/TelemetryFilter.java @@ -0,0 +1,122 @@ +package ru.mtusi.messenger.filter; + +import io.opentelemetry.api.common.AttributeKey; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.metrics.DoubleHistogram; +import io.opentelemetry.api.metrics.LongCounter; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.StatusCode; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; +import org.springframework.stereotype.Component; +import org.springframework.web.filter.OncePerRequestFilter; +import org.springframework.web.servlet.HandlerMapping; + +import ru.mtusi.messenger.telemetry.Telemetry; + +import java.io.IOException; +import java.util.List; +import java.util.Set; + +@Component +@Order(Ordered.HIGHEST_PRECEDENCE + 3) +public class TelemetryFilter extends OncePerRequestFilter { + private static final Set METHODS = + Set.of("GET", "POST", "DELETE", "PUT", "PATCH", "HEAD", "OPTIONS"); + private static final Set ROUTES = + Set.of( + "/api/v1/users", + "/api/v1/users/me", + "/api/v1/auth/sessions", + "/api/v1/auth/sessions/current", + "/api/v1/chats", + "/api/v1/chats/{chat_id}", + "/api/v1/chats/{chat_id}/messages", + "/api/v1/chats/{chat_id}/attachments", + "/api/v1/attachments/{attachment_id}", + "/api/v1/attachments/{attachment_id}/content"); + + private final Telemetry telemetry; + private final LongCounter requests; + private final DoubleHistogram duration; + + public TelemetryFilter(Telemetry telemetry) { + this.telemetry = telemetry; + var meter = telemetry.openTelemetry().getMeter("ru.mtusi.messenger"); + requests = meter.counterBuilder("lab_http_requests").build(); + duration = + meter.histogramBuilder("lab_http_duration") + .setUnit("s") + .setExplicitBucketBoundariesAdvice( + List.of( + 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.0, 5.0, + 10.0, 30.0)) + .build(); + } + + @Override + protected boolean shouldNotFilter(HttpServletRequest request) { + return !request.getRequestURI().startsWith("/api/v1/"); + } + + @Override + protected void doFilterInternal( + HttpServletRequest request, HttpServletResponse response, FilterChain chain) + throws ServletException, IOException { + long started = System.nanoTime(); + Span span = telemetry.server(request); + try (var scope = span.makeCurrent()) { + int status = 500; + try { + chain.doFilter(request, response); + status = response.getStatus(); + } finally { + record(request, response, span, status, (System.nanoTime() - started) / 1e9); + } + } finally { + span.end(); + } + } + + private void record( + HttpServletRequest request, + HttpServletResponse response, + Span span, + int status, + double seconds) { + String method = METHODS.contains(request.getMethod()) ? request.getMethod() : "OTHER"; + String pattern = + String.valueOf( + request.getAttribute(HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE)); + String route = ROUTES.contains(pattern) ? pattern : "unmatched"; + Attributes labels = + Attributes.builder() + .put("method", method) + .put("route", route) + .put("status_class", status / 100 + "xx") + .build(); + requests.add(1, labels); + duration.record(seconds, labels); + span.updateName(method + " " + route); + span.setAllAttributes(labels); + span.setAttribute("http.response.status_code", status); + if (status >= 500) { + span.setStatus(StatusCode.ERROR); + } + String id = response.getHeader("X-Request-Id"); + Attributes log = + labels.toBuilder() + .put("event", "http.completed") + .put("http.response.status_code", status) + .put("duration_seconds", seconds) + .put(AttributeKey.stringKey("request_id"), id == null ? "" : id) + .build(); + telemetry.log("http.completed", status >= 500, log); + } +} diff --git a/src/main/java/ru/mtusi/messenger/mapper/AttachmentMapper.java b/src/main/java/ru/mtusi/messenger/mapper/AttachmentMapper.java new file mode 100644 index 0000000..6c1614e --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/mapper/AttachmentMapper.java @@ -0,0 +1,64 @@ +package ru.mtusi.messenger.mapper; + +import org.mapstruct.Mapper; +import org.mapstruct.Mapping; +import org.mapstruct.Named; + +import ru.mtusi.messenger.dto.AttachmentDTO; +import ru.mtusi.messenger.model.Attachment; +import ru.mtusi.messenger.model.AttachmentStatus; +import ru.mtusi.messenger.model.Chat; +import ru.mtusi.messenger.model.User; + +import java.util.Collections; + +@Mapper(componentModel = "spring") +public interface AttachmentMapper { + @Mapping(target = "chatId", source = "chat.id") + @Mapping(target = "ownerId", source = "owner.id") + @Mapping(target = "sha256", source = "checksum") + @Mapping(target = "status", source = "status", qualifiedByName = "mapStatus") + @Mapping(target = "contentType", source = "contentType", qualifiedByName = "mapContentType") + @Mapping(target = "variants", expression = "java(emptyVariants())") + @Mapping(target = "errorCode", source = "errorCode") + AttachmentDTO toDto(Attachment entity); + + @Named("mapStatus") + default AttachmentDTO.StatusEnum mapStatus(AttachmentStatus status) { + return switch (status) { + case QUEUED -> AttachmentDTO.StatusEnum.QUEUED; + case PROCESSING -> AttachmentDTO.StatusEnum.PROCESSING; + case READY -> AttachmentDTO.StatusEnum.READY; + default -> AttachmentDTO.StatusEnum.FAILED; + }; + } + + @Named("mapContentType") + default AttachmentDTO.ContentTypeEnum mapContentType(String contentType) { + if (contentType == null) { + return null; + } + return AttachmentDTO.ContentTypeEnum.fromValue(contentType); + } + + default java.util.List emptyVariants() { + return Collections.emptyList(); + } + + @Mapping(target = "id", ignore = true) + @Mapping(target = "createdAt", ignore = true) + @Mapping(target = "updatedAt", ignore = true) + @Mapping(target = "status", constant = "QUEUED") + @Mapping(target = "objectKey", source = "objectKey") + @Mapping(target = "stagingKey", source = "objectKey") + @Mapping(target = "errorCode", ignore = true) + @Mapping(target = "pipelineVersion", constant = "1L") + Attachment toEntity( + String objectKey, + String filename, + String contentType, + Long sizeBytes, + String checksum, + Chat chat, + User owner); +} diff --git a/src/main/java/ru/mtusi/messenger/mapper/ChatMapper.java b/src/main/java/ru/mtusi/messenger/mapper/ChatMapper.java new file mode 100644 index 0000000..79234ec --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/mapper/ChatMapper.java @@ -0,0 +1,36 @@ +package ru.mtusi.messenger.mapper; + +import org.mapstruct.Mapper; +import org.mapstruct.Mapping; +import org.mapstruct.Named; + +import ru.mtusi.messenger.dto.ChatDTO; +import ru.mtusi.messenger.dto.CreateChatDTO; +import ru.mtusi.messenger.model.Chat; +import ru.mtusi.messenger.model.User; + +import java.util.ArrayList; +import java.util.List; +import java.util.Set; +import java.util.UUID; + +@Mapper(componentModel = "spring") +public interface ChatMapper { + + @Mapping(target = "id", ignore = true) + @Mapping(target = "createdAt", ignore = true) + @Mapping(target = "members", ignore = true) + @Mapping(target = "messages", ignore = true) + Chat toChat(CreateChatDTO dto); + + @Mapping(target = "memberIds", source = "members", qualifiedByName = "usersToIds") + ChatDTO toChatDto(Chat chat); + + @Named("usersToIds") + default List usersToIds(Set users) { + if (users == null) return new ArrayList<>(); + List ids = new ArrayList<>(users.size()); + for (User u : users) ids.add(u.getId()); + return ids; + } +} diff --git a/src/main/java/ru/mtusi/messenger/mapper/MessageMapper.java b/src/main/java/ru/mtusi/messenger/mapper/MessageMapper.java new file mode 100644 index 0000000..afb0c04 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/mapper/MessageMapper.java @@ -0,0 +1,31 @@ +package ru.mtusi.messenger.mapper; + +import org.mapstruct.Mapper; +import org.mapstruct.Mapping; + +import ru.mtusi.messenger.dto.CreateMessageDTO; +import ru.mtusi.messenger.dto.MessageDTO; +import ru.mtusi.messenger.model.Message; + +@Mapper(componentModel = "spring") +public interface MessageMapper { + + @Mapping(target = "id", ignore = true) + @Mapping(target = "chat", ignore = true) + @Mapping(target = "sender", ignore = true) + @Mapping(target = "createdAt", ignore = true) + @Mapping(target = "attachmentIds", ignore = true) + Message toMessage(MessageDTO dto); + + @Mapping(target = "chatId", source = "chat.id") + @Mapping(target = "senderId", source = "sender.id") + @Mapping(target = "attachmentIds", source = "attachmentIds") + MessageDTO toMessageDTO(Message entity); + + @Mapping(target = "id", ignore = true) + @Mapping(target = "chat", ignore = true) + @Mapping(target = "sender", ignore = true) + @Mapping(target = "createdAt", ignore = true) + @Mapping(target = "attachmentIds", source = "attachmentIds") + Message toMessage(CreateMessageDTO dto); +} diff --git a/src/main/java/ru/mtusi/messenger/mapper/SessionMapper.java b/src/main/java/ru/mtusi/messenger/mapper/SessionMapper.java new file mode 100644 index 0000000..cbc0727 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/mapper/SessionMapper.java @@ -0,0 +1,20 @@ +package ru.mtusi.messenger.mapper; + +import org.mapstruct.Mapper; +import org.mapstruct.Mapping; + +import ru.mtusi.messenger.dto.SessionDTO; +import ru.mtusi.messenger.dto.UserDTO; +import ru.mtusi.messenger.model.Session; + +@Mapper(componentModel = "spring") +public interface SessionMapper { + + @Mapping(target = "token", source = "tokenRaw") + @Mapping( + target = "tokenType", + expression = "java(ru.mtusi.messenger.dto.SessionDTO.TokenTypeEnum.BEARER)") + @Mapping(target = "expiresAt", source = "session.expiresAt") + @Mapping(target = "user", source = "userDTO") + SessionDTO toSessionDTO(Session session, String tokenRaw, UserDTO userDTO); +} diff --git a/src/main/java/ru/mtusi/messenger/mapper/UserMapper.java b/src/main/java/ru/mtusi/messenger/mapper/UserMapper.java new file mode 100644 index 0000000..d232ac7 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/mapper/UserMapper.java @@ -0,0 +1,21 @@ +package ru.mtusi.messenger.mapper; + +import org.mapstruct.Mapper; +import org.mapstruct.Mapping; + +import ru.mtusi.messenger.dto.CreateUserDTO; +import ru.mtusi.messenger.dto.UserDTO; +import ru.mtusi.messenger.model.User; + +@Mapper(componentModel = "spring") +public interface UserMapper { + + @Mapping(target = "id", ignore = true) + @Mapping(target = "createdAt", ignore = true) + @Mapping(target = "passwordHash", ignore = true) + @Mapping(target = "chats", ignore = true) + @Mapping(target = "messages", ignore = true) + User toUser(CreateUserDTO dto); + + UserDTO toUserDto(User user); +} diff --git a/src/main/java/ru/mtusi/messenger/model/Attachment.java b/src/main/java/ru/mtusi/messenger/model/Attachment.java new file mode 100644 index 0000000..7a0f84a --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/model/Attachment.java @@ -0,0 +1,87 @@ +package ru.mtusi.messenger.model; + +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EnumType; +import jakarta.persistence.Enumerated; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.PrePersist; +import jakarta.persistence.PreUpdate; +import jakarta.persistence.Table; + +import lombok.Getter; +import lombok.Setter; + +import java.time.Instant; +import java.time.temporal.ChronoUnit; +import java.util.UUID; + +@Entity +@Table(name = "attachments") +@Getter +@Setter +public class Attachment { + + @Id + @GeneratedValue(strategy = GenerationType.UUID) + private UUID id; + + @Column(name = "object_key", nullable = false, unique = true, length = 512) + private String objectKey; + + @Column(nullable = false, length = 255) + private String filename; + + @Column(name = "content_type", nullable = false, length = 100) + private String contentType; + + @Column(name = "size_bytes", nullable = false) + private Long sizeBytes; + + @Column(nullable = false, length = 64) + private String checksum; + + @Enumerated(EnumType.STRING) + @Column(nullable = false, length = 20) + private AttachmentStatus status; + + @Column(name = "staging_key", length = 512) + private String stagingKey; + + @Column(name = "error_code", length = 64) + private String errorCode; + + @Column(name = "pipeline_version", nullable = false) + private long pipelineVersion = 1; + + @ManyToOne(fetch = FetchType.LAZY, optional = false) + @JoinColumn(name = "chat_id", nullable = false) + private Chat chat; + + @ManyToOne(fetch = FetchType.LAZY, optional = false) + @JoinColumn(name = "owner_id", nullable = false) + private User owner; + + @Column(name = "created_at", nullable = false) + private Instant createdAt; + + @Column(name = "updated_at", nullable = false) + private Instant updatedAt; + + @PrePersist + private void onCreate() { + Instant now = Instant.now().truncatedTo(ChronoUnit.MILLIS); + this.createdAt = now; + this.updatedAt = now; + } + + @PreUpdate + private void onUpdate() { + this.updatedAt = Instant.now().truncatedTo(ChronoUnit.MILLIS); + } +} diff --git a/src/main/java/ru/mtusi/messenger/model/AttachmentStatus.java b/src/main/java/ru/mtusi/messenger/model/AttachmentStatus.java new file mode 100644 index 0000000..b9e9e53 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/model/AttachmentStatus.java @@ -0,0 +1,10 @@ +package ru.mtusi.messenger.model; + +public enum AttachmentStatus { + UPLOADING, + QUEUED, + PROCESSING, + READY, + FAILED, + BROKEN +} diff --git a/src/main/java/ru/mtusi/messenger/model/Chat.java b/src/main/java/ru/mtusi/messenger/model/Chat.java new file mode 100644 index 0000000..98bd9a2 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/model/Chat.java @@ -0,0 +1,67 @@ +package ru.mtusi.messenger.model; + +import jakarta.persistence.CascadeType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; +import jakarta.persistence.PrePersist; +import jakarta.persistence.Table; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +import java.time.Instant; +import java.time.temporal.ChronoUnit; +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.UUID; + +@Entity +@Table(name = "chats") +@Getter +@Setter +@NoArgsConstructor +public class Chat { + + @Id + @Column(nullable = false, updatable = false) + @GeneratedValue(strategy = GenerationType.UUID) + private UUID id; + + @Column(nullable = false, length = 100) + private String title; + + @Column(name = "created_at", nullable = false, updatable = false) + private Instant createdAt; + + @ManyToMany(fetch = FetchType.LAZY) + @JoinTable( + name = "chat_members", + joinColumns = @JoinColumn(name = "chat_id"), + inverseJoinColumns = @JoinColumn(name = "user_id")) + private Set members = new HashSet<>(); + + @OneToMany( + mappedBy = "chat", + fetch = FetchType.LAZY, + cascade = CascadeType.ALL, + orphanRemoval = true) + @OrderBy("createdAt ASC, id ASC") + private List messages = new ArrayList<>(); + + @PrePersist + private void onCreate() { + this.createdAt = Instant.now().truncatedTo(ChronoUnit.MILLIS); + } +} diff --git a/src/main/java/ru/mtusi/messenger/model/IdempotencyKey.java b/src/main/java/ru/mtusi/messenger/model/IdempotencyKey.java new file mode 100644 index 0000000..da767ed --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/model/IdempotencyKey.java @@ -0,0 +1,54 @@ +package ru.mtusi.messenger.model; + +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Table; + +import lombok.Getter; +import lombok.Setter; + +import org.hibernate.annotations.JdbcTypeCode; +import org.hibernate.type.SqlTypes; + +import java.time.Instant; +import java.util.UUID; + +@Entity +@Table(name = "idempotency_keys") +@Getter +@Setter +public class IdempotencyKey { + + @Id + @Column(nullable = false, updatable = false) + @GeneratedValue(strategy = GenerationType.UUID) + private UUID id; + + @Column(name = "user_id", nullable = false) + private UUID userId; + + @Column(nullable = false, length = 16) + private String method; + + @Column(name = "chat_id", nullable = false) + private UUID chatId; + + @Column(name = "idempotency_key", nullable = false, length = 128) + private String idempotencyKey; + + @Column(name = "request_hash", nullable = false, length = 64) + private String requestHash; + + @Column(name = "status_code") + private Short statusCode; + + @JdbcTypeCode(SqlTypes.JSON) + @Column(name = "response_body", columnDefinition = "jsonb") + private String responseBody; + + @Column(name = "created_at", nullable = false) + private Instant createdAt; +} diff --git a/src/main/java/ru/mtusi/messenger/model/Message.java b/src/main/java/ru/mtusi/messenger/model/Message.java new file mode 100644 index 0000000..e3ab7fe --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/model/Message.java @@ -0,0 +1,63 @@ +package ru.mtusi.messenger.model; + +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.PrePersist; +import jakarta.persistence.Table; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +import java.time.Instant; +import java.time.temporal.ChronoUnit; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +@Entity +@Table(name = "messages") +@Getter +@Setter +@NoArgsConstructor +public class Message { + + @Id + @Column(nullable = false, updatable = false) + @GeneratedValue(strategy = GenerationType.UUID) + private UUID id; + + @ManyToOne(fetch = FetchType.LAZY, optional = false) + @JoinColumn(name = "chat_id", nullable = false) + private Chat chat; + + @ManyToOne(fetch = FetchType.LAZY, optional = false) + @JoinColumn(name = "sender_id", nullable = false) + private User sender; + + @Column(nullable = false, length = 4000) + private String text; + + @Column(name = "created_at", nullable = false, updatable = false) + private Instant createdAt; + + @ElementCollection + @CollectionTable(name = "message_attachments", joinColumns = @JoinColumn(name = "message_id")) + @Column(name = "attachment_id") + @OrderColumn(name = "attachment_order") + private List attachmentIds = new ArrayList<>(); + + @PrePersist + private void onCreate() { + this.createdAt = Instant.now().truncatedTo(ChronoUnit.MILLIS); + } +} diff --git a/src/main/java/ru/mtusi/messenger/model/Session.java b/src/main/java/ru/mtusi/messenger/model/Session.java new file mode 100644 index 0000000..d004bc1 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/model/Session.java @@ -0,0 +1,48 @@ +package ru.mtusi.messenger.model; + +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.PrePersist; +import jakarta.persistence.Table; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +import java.time.Instant; +import java.time.temporal.ChronoUnit; +import java.util.UUID; + +@Entity +@Table(name = "sessions") +@Getter +@Setter +@NoArgsConstructor +public class Session { + @Id + @GeneratedValue(strategy = GenerationType.UUID) + private UUID id; + + @Column(name = "user_id", nullable = false) + private UUID userId; + + @Column(name = "token_hash", nullable = false, unique = true) + private byte[] tokenHash; + + @Column(name = "created_at", nullable = false) + private Instant createdAt; + + @Column(name = "expires_at", nullable = false) + private Instant expiresAt; + + @Column(name = "revoked_at") + private Instant revokedAt; + + @PrePersist + private void onCreate() { + this.createdAt = Instant.now().truncatedTo(ChronoUnit.MILLIS); + } +} diff --git a/src/main/java/ru/mtusi/messenger/model/User.java b/src/main/java/ru/mtusi/messenger/model/User.java new file mode 100644 index 0000000..d5f7e47 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/model/User.java @@ -0,0 +1,60 @@ +package ru.mtusi.messenger.model; + +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.OneToMany; +import jakarta.persistence.PrePersist; +import jakarta.persistence.Table; + +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; + +import java.time.Instant; +import java.time.temporal.ChronoUnit; +import java.util.HashSet; +import java.util.Set; +import java.util.UUID; + +@Entity +@Table(name = "users") +@Getter +@Setter +@NoArgsConstructor +@AllArgsConstructor +public class User { + + @Id() + @Column(nullable = false, updatable = false) + @GeneratedValue(strategy = GenerationType.UUID) + private UUID id; + + @Column(nullable = false, unique = true, length = 32) + private String username; + + @Column(name = "display_name", nullable = false, length = 100) + private String displayName; + + @Column(name = "password_hash", nullable = false, length = 255) + private String passwordHash; + + @Column(name = "created_at", nullable = false, updatable = false) + private Instant createdAt; + + @ManyToMany(mappedBy = "members", fetch = FetchType.LAZY) + private Set chats = new HashSet<>(); + + @OneToMany(mappedBy = "sender", fetch = FetchType.LAZY) + private Set messages = new HashSet<>(); + + @PrePersist + private void onCreate() { + this.createdAt = Instant.now().truncatedTo(ChronoUnit.MILLIS); + } +} diff --git a/src/main/java/ru/mtusi/messenger/repository/AttachmentRepository.java b/src/main/java/ru/mtusi/messenger/repository/AttachmentRepository.java new file mode 100644 index 0000000..b53b036 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/repository/AttachmentRepository.java @@ -0,0 +1,18 @@ +package ru.mtusi.messenger.repository; + +import jakarta.persistence.LockModeType; + +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Lock; +import org.springframework.data.jpa.repository.Query; + +import ru.mtusi.messenger.model.Attachment; + +import java.util.Optional; +import java.util.UUID; + +public interface AttachmentRepository extends JpaRepository { + @Lock(LockModeType.PESSIMISTIC_READ) + @Query("select attachment from Attachment attachment where attachment.id = :id") + Optional findForMessage(UUID id); +} diff --git a/src/main/java/ru/mtusi/messenger/repository/ChatRepository.java b/src/main/java/ru/mtusi/messenger/repository/ChatRepository.java new file mode 100644 index 0000000..9e6d58f --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/repository/ChatRepository.java @@ -0,0 +1,52 @@ +package ru.mtusi.messenger.repository; + +import jakarta.persistence.LockModeType; + +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.EntityGraph; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Lock; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import ru.mtusi.messenger.model.Chat; + +import java.time.Instant; +import java.util.List; +import java.util.Optional; +import java.util.UUID; + +public interface ChatRepository extends JpaRepository { + + @Lock(LockModeType.PESSIMISTIC_WRITE) + @Query("select c from Chat c where c.id = :chatId") + Optional findForMessageCreation(@Param("chatId") UUID chatId); + + @EntityGraph(attributePaths = "members") + @Query( + """ + select distinct c from Chat c + join c.members m + where m.id = :userId + order by c.createdAt asc, c.id asc + """) + List findPageByMember(@Param("userId") UUID userId, Pageable pageable); + + @EntityGraph(attributePaths = "members") + @Query( + """ + select distinct c from Chat c + join c.members m + where m.id = :userId + and (c.createdAt > :cursorCreated + or (c.createdAt = :cursorCreated and c.id > :cursorId)) + order by c.createdAt asc, c.id asc + """) + List findPageByMemberAfterCursor( + @Param("userId") UUID userId, + @Param("cursorCreated") Instant cursorCreated, + @Param("cursorId") UUID cursorId, + Pageable pageable); + + boolean existsByIdAndMembersId(UUID chatId, UUID userId); +} diff --git a/src/main/java/ru/mtusi/messenger/repository/IdempotencyRepository.java b/src/main/java/ru/mtusi/messenger/repository/IdempotencyRepository.java new file mode 100644 index 0000000..413f887 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/repository/IdempotencyRepository.java @@ -0,0 +1,46 @@ +package ru.mtusi.messenger.repository; + +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.stereotype.Repository; + +import ru.mtusi.messenger.model.IdempotencyKey; + +import java.util.Optional; +import java.util.UUID; + +@Repository +public interface IdempotencyRepository extends JpaRepository { + + @Modifying(clearAutomatically = true, flushAutomatically = true) + @Query( + value = + """ + INSERT INTO idempotency_keys + (user_id, method, chat_id, idempotency_key, request_hash, created_at) + VALUES (:userId, :method, :chatId, :key, :hash, NOW()) + ON CONFLICT (user_id, method, chat_id, idempotency_key) DO NOTHING + """, + nativeQuery = true) + int tryClaim(UUID userId, String method, UUID chatId, String key, String hash); + + @Modifying(clearAutomatically = true, flushAutomatically = true) + @Query( + value = + """ + UPDATE idempotency_keys + SET status_code = :statusCode, + response_body = CAST(:body AS jsonb) + WHERE user_id = :userId + AND method = :method + AND chat_id = :chatId + AND idempotency_key = :key + """, + nativeQuery = true) + int commitResponse( + UUID userId, String method, UUID chatId, String key, int statusCode, String body); + + Optional findByUserIdAndMethodAndChatIdAndIdempotencyKey( + UUID userId, String method, UUID chatId, String idempotencyKey); +} diff --git a/src/main/java/ru/mtusi/messenger/repository/MessageRepository.java b/src/main/java/ru/mtusi/messenger/repository/MessageRepository.java new file mode 100644 index 0000000..f0bdf83 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/repository/MessageRepository.java @@ -0,0 +1,42 @@ +package ru.mtusi.messenger.repository; + +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.EntityGraph; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import ru.mtusi.messenger.model.Message; + +import java.time.Instant; +import java.util.List; +import java.util.UUID; + +public interface MessageRepository extends JpaRepository { + + long countByChatId(UUID chatId); + + @EntityGraph(attributePaths = "sender") + @Query( + """ + select m from Message m + where m.chat.id = :chatId + order by m.createdAt asc, m.id asc + """) + List findPageByChat(@Param("chatId") UUID chatId, Pageable pageable); + + @EntityGraph(attributePaths = "sender") + @Query( + """ + select m from Message m + where m.chat.id = :chatId + and (m.createdAt > :cursorCreated + or (m.createdAt = :cursorCreated and m.id > :cursorId)) + order by m.createdAt asc, m.id asc + """) + List findPageByChatAfterCursor( + @Param("chatId") UUID chatId, + @Param("cursorCreated") Instant cursorCreated, + @Param("cursorId") UUID cursorId, + Pageable pageable); +} diff --git a/src/main/java/ru/mtusi/messenger/repository/SessionRepository.java b/src/main/java/ru/mtusi/messenger/repository/SessionRepository.java new file mode 100644 index 0000000..b4ea902 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/repository/SessionRepository.java @@ -0,0 +1,12 @@ +package ru.mtusi.messenger.repository; + +import org.springframework.data.jpa.repository.JpaRepository; + +import ru.mtusi.messenger.model.Session; + +import java.util.Optional; +import java.util.UUID; + +public interface SessionRepository extends JpaRepository { + Optional findByTokenHash(byte[] tokenHash); +} diff --git a/src/main/java/ru/mtusi/messenger/repository/UserRepository.java b/src/main/java/ru/mtusi/messenger/repository/UserRepository.java new file mode 100644 index 0000000..620e5f4 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/repository/UserRepository.java @@ -0,0 +1,33 @@ +package ru.mtusi.messenger.repository; + +import jakarta.persistence.LockModeType; + +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Lock; +import org.springframework.data.jpa.repository.Modifying; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; + +import ru.mtusi.messenger.model.User; + +import java.util.Optional; +import java.util.Set; +import java.util.UUID; + +public interface UserRepository extends JpaRepository { + + Optional findByUsername(String username); + + @Modifying + @Query( + "update User u set u.passwordHash = :replacement where u.id = :id and u.passwordHash =" + + " :previous") + int upgradePasswordHash( + @Param("id") UUID id, + @Param("previous") String previous, + @Param("replacement") String replacement); + + @Lock(LockModeType.PESSIMISTIC_READ) + @Query("select u from User u where u.id in :ids") + Set findAllByIdForShare(@Param("ids") Set ids); +} diff --git a/src/main/java/ru/mtusi/messenger/security/ApiAuthenticationEntryPoint.java b/src/main/java/ru/mtusi/messenger/security/ApiAuthenticationEntryPoint.java new file mode 100644 index 0000000..def07ff --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/ApiAuthenticationEntryPoint.java @@ -0,0 +1,43 @@ +package ru.mtusi.messenger.security; + +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import lombok.RequiredArgsConstructor; + +import org.springframework.http.HttpStatus; +import org.springframework.security.core.AuthenticationException; +import org.springframework.security.web.AuthenticationEntryPoint; +import org.springframework.stereotype.Component; + +import ru.mtusi.messenger.dto.ErrorErrorDTO; +import ru.mtusi.messenger.exception.ApiErrorFactory; + +import java.io.IOException; + +@Component +@RequiredArgsConstructor +public class ApiAuthenticationEntryPoint implements AuthenticationEntryPoint { + private final ApiErrorFactory errors; + + @Override + public void commence( + HttpServletRequest request, + HttpServletResponse response, + AuthenticationException authException) + throws IOException { + boolean isLogin = "/api/v1/auth/sessions".equals(request.getRequestURI()); + String challenge = + isLogin + ? "Basic realm=\"messenger\", charset=\"UTF-8\"" + : "Bearer realm=\"messenger\""; + + errors.writeError( + response, + request, + HttpStatus.UNAUTHORIZED, + challenge, + ErrorErrorDTO.CodeEnum.UNAUTHORIZED, + "No valid authentication"); + } +} diff --git a/src/main/java/ru/mtusi/messenger/security/BasicCredentials.java b/src/main/java/ru/mtusi/messenger/security/BasicCredentials.java new file mode 100644 index 0000000..bc5d423 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/BasicCredentials.java @@ -0,0 +1,29 @@ +package ru.mtusi.messenger.security; + +import ru.mtusi.messenger.exception.UnauthorizedException; + +import java.nio.charset.StandardCharsets; +import java.util.Base64; + +public record BasicCredentials(String username, String password) { + + public static BasicCredentials parse(String header) { + if (header == null || !header.regionMatches(true, 0, "Basic ", 0, 6)) { + throw new UnauthorizedException("Basic authentication required"); + } + String decoded; + try { + decoded = + new String( + Base64.getDecoder().decode(header.substring(6).trim()), + StandardCharsets.UTF_8); + } catch (IllegalArgumentException e) { + throw new UnauthorizedException("Invalid Basic encoding"); + } + int i = decoded.indexOf(':'); + if (i < 0) { + throw new UnauthorizedException("Invalid Basic credentials"); + } + return new BasicCredentials(decoded.substring(0, i), decoded.substring(i + 1)); + } +} diff --git a/src/main/java/ru/mtusi/messenger/security/LoginBudget.java b/src/main/java/ru/mtusi/messenger/security/LoginBudget.java new file mode 100644 index 0000000..b5a642d --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/LoginBudget.java @@ -0,0 +1,26 @@ +package ru.mtusi.messenger.security; + +import lombok.RequiredArgsConstructor; + +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.stereotype.Component; + +@Component +@RequiredArgsConstructor +public class LoginBudget { + private final JdbcTemplate jdbc; + + public boolean acquire() { + Integer count = + jdbc.queryForObject( + """ + INSERT INTO login_budget(window_start,attempts) + VALUES (floor(extract(epoch FROM clock_timestamp()) / 60)::bigint,1) + ON CONFLICT (window_start) DO UPDATE + SET attempts=LEAST(login_budget.attempts+1,61) + RETURNING attempts + """, + Integer.class); + return count != null && count <= 60; + } +} diff --git a/src/main/java/ru/mtusi/messenger/security/RequiredDependenciesHealth.java b/src/main/java/ru/mtusi/messenger/security/RequiredDependenciesHealth.java new file mode 100644 index 0000000..71503e9 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/RequiredDependenciesHealth.java @@ -0,0 +1,29 @@ +package ru.mtusi.messenger.security; + +import lombok.RequiredArgsConstructor; + +import org.springframework.boot.health.contributor.Health; +import org.springframework.boot.health.contributor.HealthIndicator; +import org.springframework.stereotype.Component; + +import ru.mtusi.messenger.service.HealthService; + +@Component("requiredDependencies") +@RequiredArgsConstructor +public class RequiredDependenciesHealth implements HealthIndicator { + private final HealthService healthService; + private final SecretLease lease; + + @Override + public Health health() { + if (!lease.valid()) { + return Health.down().build(); + } + try { + healthService.readiness(); + return Health.up().build(); + } catch (RuntimeException exception) { + return Health.down().build(); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/security/SecretLease.java b/src/main/java/ru/mtusi/messenger/security/SecretLease.java new file mode 100644 index 0000000..9cff088 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/SecretLease.java @@ -0,0 +1,20 @@ +package ru.mtusi.messenger.security; + +import org.springframework.stereotype.Component; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.time.Instant; + +@Component +public class SecretLease { + public boolean valid() { + try { + double expiry = Double.parseDouble(Files.readString(Path.of("/runtime/lease"))); + return Instant.now().getEpochSecond() < expiry; + } catch (IOException | NumberFormatException exception) { + return false; + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationFilter.java b/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationFilter.java new file mode 100644 index 0000000..db44d8a --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationFilter.java @@ -0,0 +1,64 @@ +package ru.mtusi.messenger.security; + +import jakarta.servlet.FilterChain; +import jakarta.servlet.ServletException; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; + +import lombok.RequiredArgsConstructor; + +import org.springframework.dao.DataAccessException; +import org.springframework.http.HttpStatus; +import org.springframework.security.authentication.AuthenticationManager; +import org.springframework.security.core.Authentication; +import org.springframework.security.core.AuthenticationException; +import org.springframework.security.core.context.SecurityContext; +import org.springframework.security.core.context.SecurityContextHolder; +import org.springframework.security.oauth2.server.resource.web.BearerTokenResolver; +import org.springframework.transaction.TransactionException; +import org.springframework.web.filter.OncePerRequestFilter; + +import ru.mtusi.messenger.dto.ErrorErrorDTO; +import ru.mtusi.messenger.exception.ApiErrorFactory; + +import java.io.IOException; + +@RequiredArgsConstructor +public class SessionAuthenticationFilter extends OncePerRequestFilter { + private final BearerTokenResolver bearerTokenResolver; + private final AuthenticationManager authenticationManager; + private final ApiErrorFactory errors; + + @Override + protected void doFilterInternal( + HttpServletRequest request, HttpServletResponse response, FilterChain chain) + throws ServletException, IOException { + try { + String token = bearerTokenResolver.resolve(request); + if (token != null && !token.isBlank()) { + try { + Authentication auth = + authenticationManager.authenticate( + new SessionAuthenticationToken(token)); + SecurityContext context = SecurityContextHolder.createEmptyContext(); + context.setAuthentication(auth); + SecurityContextHolder.setContext(context); + } catch (DataAccessException | TransactionException e) { + errors.writeError( + response, + request, + HttpStatus.SERVICE_UNAVAILABLE, + null, + ErrorErrorDTO.CodeEnum.UNAVAILABLE, + "Session storage unavailable"); + return; + } catch (AuthenticationException e) { + SecurityContextHolder.clearContext(); + } + } + chain.doFilter(request, response); + } finally { + SecurityContextHolder.clearContext(); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationProvider.java b/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationProvider.java new file mode 100644 index 0000000..b15d1a7 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationProvider.java @@ -0,0 +1,36 @@ +package ru.mtusi.messenger.security; + +import lombok.RequiredArgsConstructor; + +import org.springframework.security.authentication.AuthenticationProvider; +import org.springframework.security.authentication.BadCredentialsException; +import org.springframework.security.core.Authentication; +import org.springframework.security.core.AuthenticationException; +import org.springframework.stereotype.Component; + +import ru.mtusi.messenger.exception.UnauthorizedException; +import ru.mtusi.messenger.service.SessionService; + +@Component +@RequiredArgsConstructor +public class SessionAuthenticationProvider implements AuthenticationProvider { + private final SessionService sessionService; + + @Override + public Authentication authenticate(Authentication authentication) + throws AuthenticationException { + String token = (String) authentication.getCredentials(); + try { + var rec = sessionService.requireActive(token); + return new SessionAuthenticationToken( + new SessionPrincipal(rec.userId(), rec.sessionId())); + } catch (UnauthorizedException e) { + throw new BadCredentialsException(e.getMessage(), e); + } + } + + @Override + public boolean supports(Class authentication) { + return SessionAuthenticationToken.class.isAssignableFrom(authentication); + } +} diff --git a/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationToken.java b/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationToken.java new file mode 100644 index 0000000..05d6440 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/SessionAuthenticationToken.java @@ -0,0 +1,34 @@ +package ru.mtusi.messenger.security; + +import org.springframework.security.authentication.AbstractAuthenticationToken; + +import java.util.List; + +public class SessionAuthenticationToken extends AbstractAuthenticationToken { + private final String rawToken; + private final SessionPrincipal principal; + + public SessionAuthenticationToken(String rawToken) { + super(List.of()); + this.rawToken = rawToken; + this.principal = null; + setAuthenticated(false); + } + + public SessionAuthenticationToken(SessionPrincipal principal) { + super(List.of()); + this.rawToken = null; + this.principal = principal; + setAuthenticated(true); + } + + @Override + public Object getCredentials() { + return rawToken; + } + + @Override + public Object getPrincipal() { + return principal; + } +} diff --git a/src/main/java/ru/mtusi/messenger/security/SessionPrincipal.java b/src/main/java/ru/mtusi/messenger/security/SessionPrincipal.java new file mode 100644 index 0000000..444652c --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/security/SessionPrincipal.java @@ -0,0 +1,5 @@ +package ru.mtusi.messenger.security; + +import java.util.UUID; + +public record SessionPrincipal(UUID userId, UUID sessionId) {} diff --git a/src/main/java/ru/mtusi/messenger/service/AttachmentService.java b/src/main/java/ru/mtusi/messenger/service/AttachmentService.java new file mode 100644 index 0000000..38076e5 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/AttachmentService.java @@ -0,0 +1,274 @@ +package ru.mtusi.messenger.service; + +import io.minio.GetObjectArgs; +import io.minio.MinioClient; +import io.minio.PutObjectArgs; +import io.minio.RemoveObjectArgs; + +import jakarta.servlet.http.HttpServletRequest; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import org.springframework.dao.DataAccessException; +import org.springframework.http.ContentDisposition; +import org.springframework.http.MediaType; +import org.springframework.http.ResponseEntity; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import ru.mtusi.messenger.config.properties.S3Properties; +import ru.mtusi.messenger.dto.AttachmentDTO; +import ru.mtusi.messenger.exception.ConflictException; +import ru.mtusi.messenger.exception.InvalidRequestException; +import ru.mtusi.messenger.exception.NotFoundException; +import ru.mtusi.messenger.exception.PayloadTooLargeException; +import ru.mtusi.messenger.exception.ServiceUnavailableException; +import ru.mtusi.messenger.exception.StorageUnavailableException; +import ru.mtusi.messenger.exception.UnsupportedMediaTypeException; +import ru.mtusi.messenger.mapper.AttachmentMapper; +import ru.mtusi.messenger.model.Attachment; +import ru.mtusi.messenger.model.AttachmentStatus; +import ru.mtusi.messenger.model.Chat; +import ru.mtusi.messenger.model.User; +import ru.mtusi.messenger.repository.AttachmentRepository; +import ru.mtusi.messenger.repository.UserRepository; +import ru.mtusi.messenger.telemetry.Telemetry; +import ru.mtusi.messenger.validation.AttachmentValidator; + +import java.io.IOException; +import java.io.InputStream; +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import java.util.HexFormat; +import java.util.UUID; +import java.util.concurrent.Semaphore; +import java.util.concurrent.TimeUnit; + +@Service +@RequiredArgsConstructor +@Slf4j +public class AttachmentService { + private final Telemetry telemetry; + private final Semaphore uploads = new Semaphore(1, true); + private final JdbcTemplate jdbc; + private final ProcessingJobService jobs; + private final AttachmentVariantService variants; + private final UserRepository userRepository; + private final ChatService chatService; + private final MinioClient minio; + private final AttachmentRepository attachmentRepository; + private final S3Properties s3Props; + private final AttachmentValidator validator; + private final AttachmentMapper attachmentMapper; + + @Transactional + public AttachmentDTO upload( + UUID chatId, + UUID caller, + String filename, + HttpServletRequest request, + String declaredType) { + acquireUploadSlot(); + try { + return performUpload(chatId, caller, filename, request, declaredType); + } finally { + uploads.release(); + } + } + + private void acquireUploadSlot() { + try { + if (!uploads.tryAcquire(30, TimeUnit.SECONDS)) + throw new ServiceUnavailableException("Upload capacity exhausted"); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ServiceUnavailableException("Upload interrupted"); + } + } + + private AttachmentDTO performUpload( + UUID chatId, + UUID caller, + String filename, + HttpServletRequest request, + String declaredType) { + jdbc.execute("select pg_advisory_xact_lock_shared(741204)"); + Chat chat = chatService.getChat(caller, chatId); + String safeFilename = validator.sanitizeFilename(filename); + byte[] body = readBounded(request); + String contentType = validator.validate(body, safeFilename); + if (!contentType.equals(declaredType)) + throw new UnsupportedMediaTypeException("MIME mismatch"); + jobs.requireCapacity(); + String objectKey = "staging/" + UUID.randomUUID(); + String checksum = + telemetry.dependency( + "s3.staging.put", () -> uploadToS3(body, objectKey, contentType)); + return saveAttachmentQueued( + objectKey, safeFilename, contentType, body, checksum, chat, caller); + } + + private byte[] readBounded(HttpServletRequest request) { + try { + byte[] bytes = request.getInputStream().readNBytes(10485761); + if (bytes.length > 10485760) throw new PayloadTooLargeException("File exceeds limit"); + return bytes; + } catch (IOException e) { + throw new InvalidRequestException("Incomplete upload"); + } + } + + AttachmentDTO saveAttachmentQueued( + String objectKey, + String safeFilename, + String contentType, + byte[] body, + String checksum, + Chat chat, + UUID caller) { + try { + Attachment attachment = + buildAttachment( + objectKey, safeFilename, contentType, body, checksum, chat, caller); + attachment.setStatus(AttachmentStatus.QUEUED); + attachmentRepository.saveAndFlush(attachment); + jobs.enqueue(attachment.getId()); + return attachmentMapper.toDto(attachment); + } catch (DataAccessException e) { + compensateS3Upload(objectKey); + throw e; + } + } + + @Transactional( + readOnly = true, + isolation = org.springframework.transaction.annotation.Isolation.REPEATABLE_READ) + public AttachmentDTO getMetadata(UUID attachmentId, UUID userId) { + Attachment attachment = requireAttachmentForMember(attachmentId, userId); + AttachmentDTO result = attachmentMapper.toDto(attachment); + result.setVariants(variants.metadata(attachment)); + return result; + } + + public DownloadedAttachment download(UUID attachmentId, UUID userId, String variant) { + Attachment attachment = requireAttachmentForMember(attachmentId, userId); + if (attachment.getStatus() != AttachmentStatus.READY) + throw new ConflictException("Attachment not ready"); + return streamFromS3(attachment, variant); + } + + void compensateS3Upload(String objectKey) { + try { + minio.removeObject( + RemoveObjectArgs.builder().bucket(s3Props.bucket()).object(objectKey).build()); + log.info("Compensated S3 upload: removed objectKey={}", objectKey); + } catch (Exception e) { + log.error( + "Failed to compensate S3 upload for objectKey={}: {}", + objectKey, + e.getMessage(), + e); + } + } + + private String uploadToS3(byte[] body, String objectKey, String contentType) { + try { + MessageDigest digest = MessageDigest.getInstance("SHA-256"); + try (var digestIn = + new java.security.DigestInputStream( + new java.io.ByteArrayInputStream(body), digest)) { + minio.putObject( + PutObjectArgs.builder().bucket(s3Props.bucket()).object(objectKey).stream( + digestIn, (long) body.length, -1L) + .contentType(contentType) + .build()); + } + return HexFormat.of().formatHex(digest.digest()); + } catch (Exception e) { + log.error("S3 upload failed for objectKey: {}", objectKey, e); + throw new StorageUnavailableException("S3 upload failed", e); + } + } + + private Attachment buildAttachment( + String objectKey, + String filename, + String contentType, + byte[] body, + String checksum, + Chat chat, + UUID caller) { + User owner = userRepository.getReferenceById(caller); + return attachmentMapper.toEntity( + objectKey, filename, contentType, (long) body.length, checksum, chat, owner); + } + + private Attachment requireAttachmentForMember(UUID attachmentId, UUID userId) { + Attachment attachment = + attachmentRepository + .findById(attachmentId) + .orElseThrow(() -> new NotFoundException("Attachment not found")); + assertMember(attachment.getChat().getId(), userId); + return attachment; + } + + private DownloadedAttachment streamFromS3(Attachment attachment, String variant) { + var content = variants.content(attachment, variant); + try { + var stream = + minio.getObject( + GetObjectArgs.builder() + .bucket(s3Props.bucket()) + .object(content.objectKey()) + .build()); + return new DownloadedAttachment( + stream, content.contentType(), attachment.getFilename()); + } catch (Exception e) { + throw translateS3Exception(e, attachment.getId(), attachment.getObjectKey()); + } + } + + private RuntimeException translateS3Exception( + Exception e, UUID attachmentId, String objectKey) { + if (e instanceof io.minio.errors.ErrorResponseException minioEx) { + if ("NoSuchKey".equals(minioEx.errorResponse().code())) { + log.warn("S3 object missing for attachment {}", attachmentId); + return new NotFoundException("Attachment content not found"); + } + } + log.error("S3 download failed for {}", objectKey, e); + return new StorageUnavailableException("S3 download failed", e); + } + + private void assertMember(UUID chatId, UUID userId) { + boolean isMember = chatService.existsByIdAndMembersId(chatId, userId); + if (!isMember) { + throw new NotFoundException("Attachment not found"); + } + } + + @Transactional( + readOnly = true, + isolation = org.springframework.transaction.annotation.Isolation.READ_COMMITTED) + public ResponseEntity downloadResponse(UUID id, UUID user, String variant) { + jdbc.execute("SELECT pg_advisory_xact_lock_shared(741204)"); + var file = download(id, user, variant); + try (var in = file.stream()) { + return ResponseEntity.ok() + .contentType(MediaType.parseMediaType(file.contentType())) + .header( + "Content-Disposition", + ContentDisposition.attachment() + .filename(file.filename(), StandardCharsets.UTF_8) + .build() + .toString()) + .body(in.readNBytes(10485761)); + } catch (IOException e) { + throw new StorageUnavailableException("Download failed", e); + } + } + + public record DownloadedAttachment(InputStream stream, String contentType, String filename) {} +} diff --git a/src/main/java/ru/mtusi/messenger/service/AttachmentVariantService.java b/src/main/java/ru/mtusi/messenger/service/AttachmentVariantService.java new file mode 100644 index 0000000..ceef319 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/AttachmentVariantService.java @@ -0,0 +1,57 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; + +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.stereotype.Service; + +import ru.mtusi.messenger.dto.VariantDTO; +import ru.mtusi.messenger.exception.NotFoundException; +import ru.mtusi.messenger.model.Attachment; +import ru.mtusi.messenger.model.AttachmentStatus; + +import java.util.List; + +@Service +@RequiredArgsConstructor +public class AttachmentVariantService { + private final JdbcTemplate jdbc; + + public List metadata(Attachment attachment) { + if (attachment.getStatus() != AttachmentStatus.READY) return List.of(); + return jdbc.query( + """ + SELECT * FROM attachment_variants + WHERE attachment_id = ? AND pipeline_version = ? ORDER BY name + """, + (row, index) -> + new VariantDTO( + VariantDTO.NameEnum.fromValue(row.getString("name")), + VariantDTO.ContentTypeEnum.fromValue(row.getString("content_type")), + row.getLong("size_bytes"), + row.getInt("width"), + row.getInt("height"), + row.getString("sha256")), + attachment.getId(), + attachment.getPipelineVersion()); + } + + public Content content(Attachment attachment, String variant) { + if ("original".equals(variant)) + return new Content(attachment.getObjectKey(), attachment.getContentType()); + List rows = + jdbc.query( + """ + SELECT object_key, content_type FROM attachment_variants + WHERE attachment_id = ? AND pipeline_version = ? AND name = ? + """, + (row, index) -> new Content(row.getString(1), row.getString(2)), + attachment.getId(), + attachment.getPipelineVersion(), + variant); + if (rows.isEmpty()) throw new NotFoundException("Variant not found"); + return rows.getFirst(); + } + + public record Content(String objectKey, String contentType) {} +} diff --git a/src/main/java/ru/mtusi/messenger/service/AuthService.java b/src/main/java/ru/mtusi/messenger/service/AuthService.java new file mode 100644 index 0000000..69c8930 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/AuthService.java @@ -0,0 +1,38 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; + +import org.springframework.security.core.Authentication; +import org.springframework.security.core.context.SecurityContextHolder; +import org.springframework.stereotype.Service; + +import ru.mtusi.messenger.dto.SessionDTO; +import ru.mtusi.messenger.dto.UserDTO; +import ru.mtusi.messenger.exception.InvalidRequestException; +import ru.mtusi.messenger.exception.UnauthorizedException; +import ru.mtusi.messenger.security.BasicCredentials; +import ru.mtusi.messenger.security.SessionPrincipal; + +@Service +@RequiredArgsConstructor +public class AuthService { + private final UserService userService; + private final SessionService sessionService; + + public SessionDTO login(String authorizationHeader, long contentLength) { + if (contentLength > 0) { + throw new InvalidRequestException("Request body is not allowed"); + } + var creds = BasicCredentials.parse(authorizationHeader); + UserDTO userDTO = userService.authenticate(creds.username(), creds.password()); + return sessionService.createSession(userDTO); + } + + public void logout() { + Authentication auth = SecurityContextHolder.getContext().getAuthentication(); + if (auth == null || !(auth.getPrincipal() instanceof SessionPrincipal sp)) { + throw new UnauthorizedException("No active session"); + } + sessionService.revoke(sp.sessionId()); + } +} diff --git a/src/main/java/ru/mtusi/messenger/service/ChatService.java b/src/main/java/ru/mtusi/messenger/service/ChatService.java new file mode 100644 index 0000000..896e859 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/ChatService.java @@ -0,0 +1,135 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import org.springframework.dao.DataIntegrityViolationException; +import org.springframework.data.domain.Pageable; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import ru.mtusi.messenger.dto.ChatDTO; +import ru.mtusi.messenger.dto.ChatPageDTO; +import ru.mtusi.messenger.dto.CreateChatDTO; +import ru.mtusi.messenger.exception.InvalidRequestException; +import ru.mtusi.messenger.exception.NotFoundException; +import ru.mtusi.messenger.mapper.ChatMapper; +import ru.mtusi.messenger.model.Chat; +import ru.mtusi.messenger.model.User; +import ru.mtusi.messenger.repository.ChatRepository; +import ru.mtusi.messenger.util.CursorCodec; +import ru.mtusi.messenger.validation.ChatValidator; + +import java.util.List; +import java.util.Set; +import java.util.UUID; + +@Service +@Slf4j +@RequiredArgsConstructor +public class ChatService { + private final ChatMapper chatMapper; + private final ChatValidator chatValidator; + private final ChatRepository chatRepository; + + @Transactional + public ChatDTO createChat(UUID caller, CreateChatDTO createChatDTO) { + Set members = chatValidator.validateCreate(caller, createChatDTO); + Chat chat = buildChat(createChatDTO, members); + chat = persistChat(chat); + return chatMapper.toChatDto(chat); + } + + private Chat buildChat(CreateChatDTO createChatDTO, Set members) { + Chat chat = chatMapper.toChat(createChatDTO); + chat.setMembers(members); + return chat; + } + + private Chat persistChat(Chat chat) { + try { + return chatRepository.saveAndFlush(chat); + } catch (DataIntegrityViolationException e) { + throw new InvalidRequestException("Cannot create chat: invalid data"); + } + } + + @Transactional(readOnly = true) + public ChatDTO getChatDTO(UUID caller, UUID chatId) { + Chat chat = requireChatForMember(caller, chatId); + return chatMapper.toChatDto(chat); + } + + @Transactional(readOnly = true) + public Chat getChat(UUID caller, UUID chatId) { + return requireChatForMember(caller, chatId); + } + + private Chat requireChatForMember(UUID caller, UUID chatId) { + Chat chat = + chatRepository + .findById(chatId) + .orElseThrow(() -> new NotFoundException("Chat not found")); + if (chat.getMembers().stream().noneMatch(m -> m.getId().equals(caller))) { + throw new NotFoundException("Chat not found"); + } + return chat; + } + + @Transactional(readOnly = true) + public ChatPageDTO listChats(UUID userId, Integer limit, String cursor) { + int size = resolveSize(limit); + CursorCodec.Cursor decoded = parseChatsCursor(cursor); + List rows = loadChatPage(userId, decoded, size); + return buildPage(rows, size); + } + + private int resolveSize(Integer limit) { + return (limit == null) ? 50 : limit; + } + + private List loadChatPage(UUID userId, CursorCodec.Cursor cursor, int size) { + if (cursor == null) { + return chatRepository.findPageByMember(userId, Pageable.ofSize(size + 1)); + } + return chatRepository.findPageByMemberAfterCursor( + userId, + cursor.boundary().createdAt(), + cursor.boundary().id(), + Pageable.ofSize(size + 1)); + } + + private CursorCodec.Cursor parseChatsCursor(String cursor) { + if (cursor == null) return null; + if (cursor.isEmpty()) throw new InvalidRequestException("Cursor must not be empty"); + CursorCodec.Cursor decoded = CursorCodec.decode(cursor); + if (decoded.scopeId() != null) throw new InvalidRequestException("Invalid cursor"); + return decoded; + } + + private ChatPageDTO buildPage(List rows, int size) { + List items = rows.stream().limit(size).map(chatMapper::toChatDto).toList(); + + ChatPageDTO page = new ChatPageDTO(); + page.setItems(items); + page.setNextCursor(buildNextCursor(rows, size)); + return page; + } + + private String buildNextCursor(List rows, int size) { + if (rows.size() <= size) { + return null; + } + Chat last = rows.get(size - 1); + return CursorCodec.encode(null, boundaryOf(last)); + } + + private CursorCodec.PageBoundary boundaryOf(Chat chat) { + return new CursorCodec.PageBoundary(chat.getCreatedAt(), chat.getId()); + } + + @Transactional + public boolean existsByIdAndMembersId(UUID chatId, UUID userId) { + return chatRepository.existsByIdAndMembersId(chatId, userId); + } +} diff --git a/src/main/java/ru/mtusi/messenger/service/HealthService.java b/src/main/java/ru/mtusi/messenger/service/HealthService.java new file mode 100644 index 0000000..84e1db7 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/HealthService.java @@ -0,0 +1,63 @@ +package ru.mtusi.messenger.service; + +import com.zaxxer.hikari.HikariDataSource; + +import lombok.RequiredArgsConstructor; + +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.stereotype.Service; + +import ru.mtusi.messenger.dto.HealthDTO; +import ru.mtusi.messenger.exception.ServiceUnavailableException; + +import javax.sql.DataSource; + +@Service +@RequiredArgsConstructor +public class HealthService { + + private final JdbcTemplate jdbcTemplate; + private final DataSource dataSource; + private final io.minio.MinioClient minio; + private final ru.mtusi.messenger.config.properties.S3Properties s3; + + public HealthDTO readiness() { + requirePoolAvailable(); + requireDatabaseReachable(); + try { + if (!minio.bucketExists( + io.minio.BucketExistsArgs.builder().bucket(s3.bucket()).build())) + throw new ServiceUnavailableException("Storage unavailable"); + } catch (Exception e) { + throw new ServiceUnavailableException("Storage unavailable"); + } + return ok(); + } + + public HealthDTO liveness() { + return ok(); + } + + private void requirePoolAvailable() { + if (dataSource instanceof HikariDataSource hikari) { + var pool = hikari.getHikariPoolMXBean(); + if (pool != null && pool.getActiveConnections() >= hikari.getMaximumPoolSize()) { + throw new ServiceUnavailableException("Database connection pool exhausted"); + } + } + } + + private void requireDatabaseReachable() { + try { + jdbcTemplate.queryForObject("SELECT 1", Integer.class); + } catch (Exception e) { + throw new ServiceUnavailableException("Database unavailable"); + } + } + + private HealthDTO ok() { + HealthDTO h = new HealthDTO(); + h.setStatus(HealthDTO.StatusEnum.OK); + return h; + } +} diff --git a/src/main/java/ru/mtusi/messenger/service/IdempotencyService.java b/src/main/java/ru/mtusi/messenger/service/IdempotencyService.java new file mode 100644 index 0000000..c91889a --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/IdempotencyService.java @@ -0,0 +1,83 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; + +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import ru.mtusi.messenger.exception.ConflictException; +import ru.mtusi.messenger.model.IdempotencyKey; +import ru.mtusi.messenger.repository.IdempotencyRepository; +import ru.mtusi.messenger.util.converter.IdempotencyPayloadConverter; +import ru.mtusi.messenger.validation.IdempotencyValidator; + +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import java.util.HexFormat; +import java.util.UUID; +import java.util.function.Supplier; + +@Service +@RequiredArgsConstructor +public class IdempotencyService { + + private final IdempotencyRepository idempotencyRepository; + private final IdempotencyPayloadConverter converter; + private final IdempotencyValidator validator; + + @Transactional + public T execute( + UUID userId, + String method, + UUID chatId, + String key, + Object requestBody, + Class responseType, + Supplier action) { + validator.validateKey(key); + String hash = hashRequest(requestBody); + + int claimed = idempotencyRepository.tryClaim(userId, method, chatId, key, hash); + if (claimed == 0) { + return replay(userId, method, chatId, key, hash, responseType); + } + + T result = action.get(); + idempotencyRepository.commitResponse( + userId, method, chatId, key, 201, converter.toJson(result)); + return result; + } + + private T replay( + UUID userId, + String method, + UUID chatId, + String key, + String hash, + Class responseType) { + IdempotencyKey stored = + idempotencyRepository + .findByUserIdAndMethodAndChatIdAndIdempotencyKey( + userId, method, chatId, key) + .orElseThrow( + () -> + new IllegalStateException( + "Idempotency row not visible after conflict")); + if (!stored.getRequestHash().equals(hash)) + throw new ConflictException("Idempotency-Key reused with a different request body"); + if (stored.getStatusCode() == null || stored.getStatusCode() != 201) + throw new ConflictException("Idempotency-Key has unexpected status"); + return converter.fromJson(stored.getResponseBody(), responseType); + } + + private String hashRequest(Object body) { + try { + byte[] digest = + MessageDigest.getInstance("SHA-256") + .digest(converter.toJson(body).getBytes(StandardCharsets.UTF_8)); + return HexFormat.of().formatHex(digest); + } catch (Exception e) { + throw new IllegalStateException("Cannot hash request body", e); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/service/MessageService.java b/src/main/java/ru/mtusi/messenger/service/MessageService.java new file mode 100644 index 0000000..04a64cf --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/MessageService.java @@ -0,0 +1,165 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import org.springframework.dao.DataIntegrityViolationException; +import org.springframework.data.domain.Pageable; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import ru.mtusi.messenger.config.properties.AppProperties; +import ru.mtusi.messenger.dto.CreateMessageDTO; +import ru.mtusi.messenger.dto.MessageDTO; +import ru.mtusi.messenger.dto.MessagePageDTO; +import ru.mtusi.messenger.exception.ConflictException; +import ru.mtusi.messenger.exception.InvalidRequestException; +import ru.mtusi.messenger.exception.NotFoundException; +import ru.mtusi.messenger.exception.PayloadTooLargeException; +import ru.mtusi.messenger.mapper.MessageMapper; +import ru.mtusi.messenger.model.AttachmentStatus; +import ru.mtusi.messenger.model.Chat; +import ru.mtusi.messenger.model.Message; +import ru.mtusi.messenger.model.User; +import ru.mtusi.messenger.repository.AttachmentRepository; +import ru.mtusi.messenger.repository.ChatRepository; +import ru.mtusi.messenger.repository.MessageRepository; +import ru.mtusi.messenger.repository.UserRepository; +import ru.mtusi.messenger.util.CursorCodec; + +import java.util.List; +import java.util.UUID; + +@Service +@Slf4j +@RequiredArgsConstructor +public class MessageService { + private final AttachmentRepository attachments; + private final IdempotencyService idempotencyService; + private final MessageRepository messageRepository; + private final ChatRepository chatRepository; + private final ChatService chatService; + private final UserRepository userRepository; + private final MessageMapper messageMapper; + private final AppProperties appProperties; + + @Transactional + public MessageDTO createMessage( + UUID senderId, UUID chatId, CreateMessageDTO dto, String idempotencyKey) { + Chat chat = chatService.getChat(senderId, chatId); + + return idempotencyService.execute( + senderId, + "POST", + chatId, + idempotencyKey, + dto, + MessageDTO.class, + () -> doCreate(senderId, chatId, dto, chat)); + } + + private MessageDTO doCreate(UUID senderId, UUID chatId, CreateMessageDTO dto, Chat chat) { + validateCreate(chatId, dto); + requireHistoryCapacity(chatId); + User sender = userRepository.getReferenceById(senderId); + Message message = buildMessage(dto, sender, chat); + try { + message = messageRepository.saveAndFlush(message); + } catch (DataIntegrityViolationException e) { + throw new NotFoundException("Cannot create message: referenced entity is missing"); + } + log.info("Created message id={} in chat={}", message.getId(), chatId); + return messageMapper.toMessageDTO(message); + } + + private void validateCreate(UUID chatId, CreateMessageDTO dto) { + if (dto.getText() == null + || (dto.getText().isBlank() + && (dto.getAttachmentIds() == null || dto.getAttachmentIds().isEmpty()))) { + throw new InvalidRequestException("Empty text"); + } + var ids = dto.getAttachmentIds(); + if (ids == null + || ids.size() > 10 + || ids.contains(null) + || new java.util.HashSet<>(ids).size() != ids.size() + || dto.getText().codePointCount(0, dto.getText().length()) > 4000) { + throw new InvalidRequestException("Invalid message"); + } + validateAttachments(chatId, ids); + } + + private void validateAttachments(UUID chatId, List ids) { + for (UUID id : ids.stream().sorted().toList()) { + var attachment = + attachments + .findForMessage(id) + .filter(a -> a.getChat().getId().equals(chatId)) + .orElseThrow(() -> new NotFoundException("Attachment not found")); + if ((attachment.getStatus() == AttachmentStatus.FAILED + || attachment.getStatus() == AttachmentStatus.BROKEN)) { + throw new ConflictException("Attachment not ready"); + } + } + } + + private void requireHistoryCapacity(UUID chatId) { + chatRepository + .findForMessageCreation(chatId) + .orElseThrow(() -> new NotFoundException("Chat not found")); + if (messageRepository.countByChatId(chatId) >= appProperties.maxMessagesPerChat()) { + throw new PayloadTooLargeException("Chat history limit reached"); + } + } + + private Message buildMessage(CreateMessageDTO createMessageDTO, User sender, Chat chat) { + Message message = messageMapper.toMessage(createMessageDTO); + message.setChat(chat); + message.setSender(sender); + return message; + } + + @Transactional(readOnly = true) + public MessagePageDTO listMessages(UUID userId, UUID chatId, Integer limit, String cursor) { + int size = (limit == null) ? 50 : limit; + chatService.getChatDTO(userId, chatId); + CursorCodec.Cursor decoded = parseMessagesCursor(cursor, chatId); + List rows = + (decoded == null) + ? messageRepository.findPageByChat(chatId, Pageable.ofSize(size + 1)) + : messageRepository.findPageByChatAfterCursor( + chatId, + decoded.boundary().createdAt(), + decoded.boundary().id(), + Pageable.ofSize(size + 1)); + return buildPage(rows, size, chatId); + } + + private CursorCodec.Cursor parseMessagesCursor(String cursor, UUID chatId) { + if (cursor == null) return null; + if (cursor.isEmpty()) throw new InvalidRequestException("Cursor must not be empty"); + CursorCodec.Cursor decoded = CursorCodec.decode(cursor); + if (decoded.scopeId() == null || !decoded.scopeId().equals(chatId)) + throw new InvalidRequestException("Cursor from another chat"); + return decoded; + } + + private MessagePageDTO buildPage(List rows, int size, UUID chatId) { + List items = + rows.stream().limit(size).map(messageMapper::toMessageDTO).toList(); + + MessagePageDTO page = new MessagePageDTO(); + page.setItems(items); + page.setNextCursor(buildNextCursor(rows, size, chatId)); + return page; + } + + private String buildNextCursor(List rows, int size, UUID chatId) { + if (rows.size() <= size) { + return null; + } + Message last = rows.get(size - 1); + return CursorCodec.encode( + chatId, new CursorCodec.PageBoundary(last.getCreatedAt(), last.getId())); + } +} diff --git a/src/main/java/ru/mtusi/messenger/service/ProcessingJobService.java b/src/main/java/ru/mtusi/messenger/service/ProcessingJobService.java new file mode 100644 index 0000000..b010ad2 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/ProcessingJobService.java @@ -0,0 +1,63 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.jdbc.core.JdbcTemplate; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import ru.mtusi.messenger.exception.ServiceUnavailableException; +import ru.mtusi.messenger.telemetry.Telemetry; + +import java.util.UUID; + +@Service +@RequiredArgsConstructor +public class ProcessingJobService { + private final Telemetry telemetry; + private final JdbcTemplate jdbc; + + @Value("${pipeline.max-pending:100}") + private int maxPending; + + @Value("${pipeline.max-attempts:5}") + private int maxAttempts; + + @Transactional(propagation = Propagation.MANDATORY) + public void requireCapacity() { + jdbc.execute("SELECT pg_advisory_xact_lock(741205)"); + Long pending = + jdbc.queryForObject( + "SELECT count(*) FROM processing_jobs WHERE status IN" + + " ('QUEUED','PROCESSING')", + Long.class); + if (pending == null || pending >= maxPending) { + throw new ServiceUnavailableException("Processing queue capacity exhausted"); + } + } + + @Transactional(propagation = Propagation.MANDATORY) + public void enqueue(UUID attachmentId) { + var context = telemetry.carrier(); + jdbc.update( + """ + WITH job AS ( + INSERT INTO processing_jobs(attachment_id, pipeline_version, attempt_limit) + VALUES (?, 1, ?) RETURNING * + ) + INSERT INTO processing_outbox(job_id, payload) + SELECT job_id, jsonb_strip_nulls(jsonb_build_object('schema_version',1,'job_id',job_id, + 'type','attachment.process.v1','attachment_id',attachment_id, + 'pipeline_version',pipeline_version,'attempt',1, + 'created_at',to_char(created_at AT TIME ZONE 'UTC','YYYY-MM-DD"T"HH24:MI:SS.MS"Z"'), + 'traceparent',CAST(? AS text),'tracestate',CAST(? AS text))) + FROM job + """, + attachmentId, + maxAttempts, + context.get("traceparent"), + context.get("tracestate")); + } +} diff --git a/src/main/java/ru/mtusi/messenger/service/SessionCacheService.java b/src/main/java/ru/mtusi/messenger/service/SessionCacheService.java new file mode 100644 index 0000000..de0dd44 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/SessionCacheService.java @@ -0,0 +1,74 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import org.springframework.cache.Cache; +import org.springframework.cache.CacheManager; +import org.springframework.cache.annotation.CacheEvict; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import ru.mtusi.messenger.cache.CacheHealthTracker; +import ru.mtusi.messenger.repository.SessionRepository; +import ru.mtusi.messenger.telemetry.Telemetry; + +@Slf4j +@Service +@RequiredArgsConstructor +public class SessionCacheService { + private final Telemetry telemetry; + + public static final String SESSIONS = "sessions"; + + private final SessionRepository sessionRepository; + private final CacheManager cacheManager; + private final CacheHealthTracker cacheHealthTracker; + + @Transactional(readOnly = true) + public SessionService.SessionRecord lookupByHash(String hex) { + byte[] hash = hexToBytes(hex); + return telemetry.dependency( + "postgres.session.lookup", + () -> + sessionRepository + .findByTokenHash(hash) + .filter(s -> s.getRevokedAt() == null) + .map( + s -> + new SessionService.SessionRecord( + s.getId(), s.getUserId(), s.getExpiresAt())) + .orElse(null)); + } + + @CacheEvict(value = SESSIONS, key = "#hex") + public void evict(String hex) {} + + public void dropCacheIfStale() { + if (!cacheHealthTracker.consumeStale()) { + return; + } + try { + Cache cache = cacheManager.getCache(SESSIONS); + if (cache != null) { + cache.clear(); + } + log.info("Cache '{}' cleared after stale flag", SESSIONS); + } catch (RuntimeException e) { + log.warn("Cache clear failed: {}", e.getMessage()); + cacheHealthTracker.markStale(); + } + } + + private static byte[] hexToBytes(String hex) { + int len = hex.length(); + byte[] out = new byte[len / 2]; + for (int i = 0; i < len; i += 2) { + out[i / 2] = + (byte) + ((Character.digit(hex.charAt(i), 16) << 4) + + Character.digit(hex.charAt(i + 1), 16)); + } + return out; + } +} diff --git a/src/main/java/ru/mtusi/messenger/service/SessionService.java b/src/main/java/ru/mtusi/messenger/service/SessionService.java new file mode 100644 index 0000000..b27b8fa --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/SessionService.java @@ -0,0 +1,82 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import ru.mtusi.messenger.config.properties.SessionProperties; +import ru.mtusi.messenger.dto.SessionDTO; +import ru.mtusi.messenger.dto.UserDTO; +import ru.mtusi.messenger.exception.UnauthorizedException; +import ru.mtusi.messenger.mapper.SessionMapper; +import ru.mtusi.messenger.model.Session; +import ru.mtusi.messenger.repository.SessionRepository; +import ru.mtusi.messenger.util.TokenGenerator; +import ru.mtusi.messenger.util.TokenHasher; + +import java.time.Instant; +import java.time.temporal.ChronoUnit; +import java.util.UUID; + +@Slf4j +@RequiredArgsConstructor +@Service +public class SessionService { + private final TokenGenerator tokenGenerator; + private final TokenHasher tokenHasher; + private final SessionProperties sessionProperties; + private final SessionRepository sessionRepository; + private final SessionMapper sessionMapper; + private final SessionCacheService sessionCacheService; + + @Transactional + public SessionDTO createSession(UserDTO userDTO) { + String token = tokenGenerator.generate(); + Session session = sessionRepository.save(buildSession(userDTO, token)); + return sessionMapper.toSessionDTO(session, token, userDTO); + } + + public SessionRecord requireActive(String token) { + sessionCacheService.dropCacheIfStale(); + String hex = tokenHasher.hash(token); + SessionRecord record = sessionCacheService.lookupByHash(hex); + requireNotExpired(record, hex); + return record; + } + + private void requireNotExpired(SessionRecord record, String hex) { + if (record == null || isExpired(record)) { + sessionCacheService.evict(hex); + throw new UnauthorizedException("Invalid or expired session"); + } + } + + private boolean isExpired(SessionRecord record) { + return record.expiresAt().isBefore(Instant.now()); + } + + @Transactional + public void revoke(UUID sessionId) { + sessionRepository.findById(sessionId).ifPresent(this::markRevokedAndEvict); + } + + private void markRevokedAndEvict(Session session) { + if (session.getRevokedAt() == null) { + session.setRevokedAt(Instant.now().truncatedTo(ChronoUnit.MILLIS)); + } + sessionCacheService.evict(tokenHasher.hash(session.getTokenHash())); + } + + private Session buildSession(UserDTO userDTO, String token) { + Session session = new Session(); + session.setUserId(userDTO.getId()); + session.setTokenHash(tokenHasher.sha256(token)); + session.setExpiresAt( + Instant.now().plus(sessionProperties.ttl()).truncatedTo(ChronoUnit.MILLIS)); + return session; + } + + public record SessionRecord(UUID sessionId, UUID userId, Instant expiresAt) {} +} diff --git a/src/main/java/ru/mtusi/messenger/service/UserService.java b/src/main/java/ru/mtusi/messenger/service/UserService.java new file mode 100644 index 0000000..d0422e7 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/service/UserService.java @@ -0,0 +1,91 @@ +package ru.mtusi.messenger.service; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; + +import org.springframework.dao.DataIntegrityViolationException; +import org.springframework.security.crypto.password.PasswordEncoder; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import ru.mtusi.messenger.dto.CreateUserDTO; +import ru.mtusi.messenger.dto.UserDTO; +import ru.mtusi.messenger.exception.ConflictException; +import ru.mtusi.messenger.exception.NotFoundException; +import ru.mtusi.messenger.exception.UnauthorizedException; +import ru.mtusi.messenger.mapper.UserMapper; +import ru.mtusi.messenger.model.User; +import ru.mtusi.messenger.repository.UserRepository; + +import java.util.Collection; +import java.util.HashSet; +import java.util.Set; +import java.util.UUID; +import java.util.stream.Collectors; + +@Service +@RequiredArgsConstructor +@Slf4j +public class UserService { + private final PasswordEncoder passwordEncoder; + private final UserMapper userMapper; + private final UserRepository userRepository; + + @Transactional + public Set requireUsers(Collection ids) { + Set uniqueIds = new HashSet<>(ids); + Set users = userRepository.findAllByIdForShare(uniqueIds); + if (users.size() != uniqueIds.size()) { + throw new NotFoundException("Users not found: " + findMissing(uniqueIds, users)); + } + return users; + } + + private Set findMissing(Set requested, Set found) { + Set foundIds = found.stream().map(User::getId).collect(Collectors.toSet()); + + Set missing = new HashSet<>(requested); + missing.removeAll(foundIds); + return missing; + } + + @Transactional + public UserDTO authenticate(String username, String password) { + User user = + userRepository + .findByUsername(username) + .orElseGet( + () -> { + passwordEncoder.encode(password); + throw new UnauthorizedException("Bad credentials"); + }); + + if (!passwordEncoder.matches(password, user.getPasswordHash())) { + throw new UnauthorizedException("Bad credentials"); + } + if (passwordEncoder.upgradeEncoding(user.getPasswordHash())) { + userRepository.upgradePasswordHash( + user.getId(), user.getPasswordHash(), passwordEncoder.encode(password)); + } + return userMapper.toUserDto(user); + } + + @Transactional + public UserDTO registerUser(CreateUserDTO createUserDTO) { + User user = userMapper.toUser(createUserDTO); + user.setPasswordHash(passwordEncoder.encode(createUserDTO.getPassword())); + try { + return userMapper.toUserDto(userRepository.saveAndFlush(user)); + } catch (DataIntegrityViolationException exception) { + throw new ConflictException("Username already exists"); + } + } + + @Transactional(readOnly = true) + public UserDTO currentUser(UUID userId) { + return userMapper.toUserDto( + userRepository + .findById(userId) + .orElseThrow(() -> new NotFoundException("User not found"))); + } +} diff --git a/src/main/java/ru/mtusi/messenger/telemetry/Telemetry.java b/src/main/java/ru/mtusi/messenger/telemetry/Telemetry.java new file mode 100644 index 0000000..2210966 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/telemetry/Telemetry.java @@ -0,0 +1,169 @@ +package ru.mtusi.messenger.telemetry; + +import com.sun.management.OperatingSystemMXBean; +import com.zaxxer.hikari.HikariDataSource; + +import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.api.common.AttributeKey; +import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.api.logs.Severity; +import io.opentelemetry.api.trace.Span; +import io.opentelemetry.api.trace.SpanKind; +import io.opentelemetry.api.trace.StatusCode; +import io.opentelemetry.context.Context; +import io.opentelemetry.context.propagation.TextMapGetter; +import io.opentelemetry.context.propagation.TextMapSetter; +import io.opentelemetry.sdk.OpenTelemetrySdk; +import io.opentelemetry.sdk.autoconfigure.AutoConfiguredOpenTelemetrySdk; + +import jakarta.servlet.http.HttpServletRequest; + +import org.springframework.stereotype.Component; + +import java.io.IOException; +import java.lang.management.ManagementFactory; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.function.Supplier; + +import javax.sql.DataSource; + +@Component +public class Telemetry implements AutoCloseable { + private static final String SCOPE = "ru.mtusi.messenger"; + private static final TextMapSetter> SETTER = Map::put; + private static final TextMapGetter HEADERS = + new TextMapGetter<>() { + @Override + public Iterable keys(HttpServletRequest request) { + return Collections.list(request.getHeaderNames()); + } + + @Override + public String get(HttpServletRequest request, String key) { + return request.getHeader(key); + } + }; + + private final OpenTelemetrySdk sdk; + private final OpenTelemetry otel; + + public Telemetry(DataSource dataSource) { + sdk = + System.getenv("OTEL_EXPORTER_OTLP_ENDPOINT") == null + ? null + : AutoConfiguredOpenTelemetrySdk.builder() + .disableShutdownHook() + .build() + .getOpenTelemetrySdk(); + otel = sdk == null ? OpenTelemetry.noop() : sdk; + registerProcess(); + if (dataSource instanceof HikariDataSource pool) { + registerPool(pool); + } + } + + public OpenTelemetry openTelemetry() { + return otel; + } + + public Span server(HttpServletRequest request) { + Context parent = + otel.getPropagators() + .getTextMapPropagator() + .extract(Context.root(), request, HEADERS); + return otel.getTracer(SCOPE) + .spanBuilder("HTTP request") + .setParent(parent) + .setSpanKind(SpanKind.SERVER) + .startSpan(); + } + + public Map carrier() { + Map value = new HashMap<>(); + otel.getPropagators().getTextMapPropagator().inject(Context.current(), value, SETTER); + return value; + } + + public T dependency(String name, Supplier operation) { + Span span = + otel.getTracer(SCOPE).spanBuilder(name).setSpanKind(SpanKind.CLIENT).startSpan(); + try (var scope = span.makeCurrent()) { + return operation.get(); + } catch (RuntimeException error) { + span.setStatus(StatusCode.ERROR); + span.setAttribute("error.type", error.getClass().getSimpleName()); + throw error; + } finally { + span.end(); + } + } + + public void log(String event, boolean error, Attributes attributes) { + otel.getLogsBridge() + .get(SCOPE) + .logRecordBuilder() + .setSeverity(error ? Severity.ERROR : Severity.INFO) + .setContext(Context.current()) + .setBody(event) + .setAllAttributes(attributes) + .emit(); + } + + private void registerProcess() { + var meter = otel.getMeter(SCOPE); + if (ManagementFactory.getOperatingSystemMXBean() instanceof OperatingSystemMXBean process) { + meter.counterBuilder("lab_process_cpu") + .ofDoubles() + .setUnit("s") + .buildWithCallback(result -> result.record(process.getProcessCpuTime() / 1e9)); + } + meter.gaugeBuilder("lab_process_rss") + .ofLongs() + .setUnit("By") + .buildWithCallback( + result -> { + try (var lines = Files.lines(Path.of("/proc/self/status"))) { + lines.filter(line -> line.startsWith("VmRSS:")) + .findFirst() + .ifPresent( + line -> + result.record( + Long.parseLong(line.split("\s+")[1]) + * 1024)); + } catch (IOException ignored) { + } + }); + } + + private void registerPool(HikariDataSource pool) { + var meter = otel.getMeter(SCOPE); + meter.gaugeBuilder("lab_db_pool_connections") + .ofLongs() + .buildWithCallback( + result -> { + var state = pool.getHikariPoolMXBean(); + if (state != null) { + result.record( + state.getActiveConnections(), + Attributes.of(AttributeKey.stringKey("state"), "used")); + result.record( + state.getThreadsAwaitingConnection(), + Attributes.of(AttributeKey.stringKey("state"), "waiting")); + result.record( + pool.getMaximumPoolSize(), + Attributes.of(AttributeKey.stringKey("state"), "capacity")); + } + }); + } + + @Override + public void close() { + if (sdk != null) { + sdk.close(); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/util/CursorCodec.java b/src/main/java/ru/mtusi/messenger/util/CursorCodec.java new file mode 100644 index 0000000..a2da636 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/util/CursorCodec.java @@ -0,0 +1,41 @@ +package ru.mtusi.messenger.util; + +import ru.mtusi.messenger.exception.InvalidRequestException; + +import java.nio.charset.StandardCharsets; +import java.time.Instant; +import java.util.Base64; +import java.util.UUID; + +public final class CursorCodec { + + private CursorCodec() {} + + public record PageBoundary(Instant createdAt, UUID id) {} + + public record Cursor(UUID scopeId, PageBoundary boundary) {} + + public static String encode(UUID scopeId, PageBoundary boundary) { + String raw = + (scopeId == null ? "" : scopeId.toString()) + + "|" + + boundary.createdAt() + + "|" + + boundary.id(); + return Base64.getUrlEncoder() + .withoutPadding() + .encodeToString(raw.getBytes(StandardCharsets.UTF_8)); + } + + public static Cursor decode(String cursor) { + try { + String raw = new String(Base64.getUrlDecoder().decode(cursor), StandardCharsets.UTF_8); + String[] p = raw.split("\\|", -1); + UUID scopeId = p[0].isEmpty() ? null : UUID.fromString(p[0]); + PageBoundary boundary = new PageBoundary(Instant.parse(p[1]), UUID.fromString(p[2])); + return new Cursor(scopeId, boundary); + } catch (Exception e) { + throw new InvalidRequestException("Invalid cursor"); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/util/TokenGenerator.java b/src/main/java/ru/mtusi/messenger/util/TokenGenerator.java new file mode 100644 index 0000000..7ccc499 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/util/TokenGenerator.java @@ -0,0 +1,17 @@ +package ru.mtusi.messenger.util; + +import org.springframework.stereotype.Component; + +import java.security.SecureRandom; +import java.util.Base64; + +@Component +public class TokenGenerator { + private final SecureRandom rng = new SecureRandom(); + + public String generate() { + byte[] raw = new byte[32]; + rng.nextBytes(raw); + return Base64.getUrlEncoder().withoutPadding().encodeToString(raw); + } +} diff --git a/src/main/java/ru/mtusi/messenger/util/TokenHasher.java b/src/main/java/ru/mtusi/messenger/util/TokenHasher.java new file mode 100644 index 0000000..c7c103c --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/util/TokenHasher.java @@ -0,0 +1,37 @@ +package ru.mtusi.messenger.util; + +import org.springframework.stereotype.Component; + +import java.nio.charset.StandardCharsets; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; + +@Component("tokenHasher") +public class TokenHasher { + + public byte[] sha256(String token) { + try { + return MessageDigest.getInstance("SHA-256") + .digest(token.getBytes(StandardCharsets.UTF_8)); + } catch (NoSuchAlgorithmException e) { + throw new IllegalStateException("SHA-256 not available", e); + } + } + + public String hash(String token) { + return toHex(sha256(token)); + } + + public String hash(byte[] bytes) { + return toHex(bytes); + } + + private String toHex(byte[] bytes) { + StringBuilder sb = new StringBuilder(bytes.length * 2); + for (byte b : bytes) { + sb.append(Character.forDigit((b >> 4) & 0xF, 16)); + sb.append(Character.forDigit(b & 0xF, 16)); + } + return sb.toString(); + } +} diff --git a/src/main/java/ru/mtusi/messenger/util/converter/IdempotencyPayloadConverter.java b/src/main/java/ru/mtusi/messenger/util/converter/IdempotencyPayloadConverter.java new file mode 100644 index 0000000..93df952 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/util/converter/IdempotencyPayloadConverter.java @@ -0,0 +1,31 @@ +package ru.mtusi.messenger.util.converter; + +import lombok.RequiredArgsConstructor; + +import org.springframework.stereotype.Component; + +import tools.jackson.core.JacksonException; +import tools.jackson.databind.json.JsonMapper; + +@Component +@RequiredArgsConstructor +public class IdempotencyPayloadConverter { + + private final JsonMapper jsonMapper; + + public String toJson(Object payload) { + try { + return jsonMapper.writeValueAsString(payload); + } catch (JacksonException e) { + throw new IllegalStateException("Cannot serialize idempotency payload", e); + } + } + + public T fromJson(String json, Class type) { + try { + return jsonMapper.readValue(json, type); + } catch (JacksonException e) { + throw new IllegalStateException("Corrupt idempotency payload", e); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/validation/AttachmentValidator.java b/src/main/java/ru/mtusi/messenger/validation/AttachmentValidator.java new file mode 100644 index 0000000..c6d7116 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/validation/AttachmentValidator.java @@ -0,0 +1,81 @@ +package ru.mtusi.messenger.validation; + +import lombok.RequiredArgsConstructor; + +import org.springframework.stereotype.Component; + +import ru.mtusi.messenger.config.properties.UploadProperties; +import ru.mtusi.messenger.exception.InvalidRequestException; +import ru.mtusi.messenger.exception.PayloadTooLargeException; +import ru.mtusi.messenger.exception.UnsupportedMediaTypeException; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.util.Locale; + +import javax.imageio.ImageIO; +import javax.imageio.ImageReader; +import javax.imageio.stream.MemoryCacheImageInputStream; + +@Component +@RequiredArgsConstructor +public class AttachmentValidator { + private final UploadProperties props; + + public String validate(byte[] bytes, String filename) { + if (bytes.length > props.maxBytes()) { + throw new PayloadTooLargeException("File exceeds max size"); + } + try (var input = new MemoryCacheImageInputStream(new ByteArrayInputStream(bytes))) { + var readers = ImageIO.getImageReaders(input); + if (!readers.hasNext()) { + throw new UnsupportedMediaTypeException("Only PNG/JPEG allowed"); + } + ImageReader reader = readers.next(); + try { + reader.setInput(input, true, true); + return inspect(reader); + } finally { + reader.dispose(); + } + } catch (IOException e) { + throw new UnsupportedMediaTypeException("Corrupted or unsupported image"); + } + } + + private String inspect(ImageReader reader) throws IOException { + String mime = contentType(reader.getFormatName()); + validateDimensions(reader.getWidth(0), reader.getHeight(0)); + reader.read(0); + return mime; + } + + private String contentType(String format) { + return switch (format.toLowerCase(Locale.ROOT)) { + case "png" -> "image/png"; + case "jpeg", "jpg" -> "image/jpeg"; + default -> throw new UnsupportedMediaTypeException("Only PNG/JPEG allowed"); + }; + } + + private void validateDimensions(int width, int height) { + if (width <= 0 || height <= 0) { + throw new UnsupportedMediaTypeException("Invalid image dimensions"); + } + if ((long) width * height > props.maxPixels()) { + throw new PayloadTooLargeException("Image dimensions exceed limit"); + } + } + + public String sanitizeFilename(String filename) { + if (filename == null + || filename.isBlank() + || filename.codePointCount(0, filename.length()) > 255 + || filename.contains("/") + || filename.contains("\\") + || filename.codePoints().anyMatch(Character::isISOControl)) { + throw new InvalidRequestException("Invalid filename"); + } + return filename; + } +} diff --git a/src/main/java/ru/mtusi/messenger/validation/ChatValidator.java b/src/main/java/ru/mtusi/messenger/validation/ChatValidator.java new file mode 100644 index 0000000..3661322 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/validation/ChatValidator.java @@ -0,0 +1,68 @@ +package ru.mtusi.messenger.validation; + +import lombok.RequiredArgsConstructor; + +import org.springframework.stereotype.Component; + +import ru.mtusi.messenger.dto.CreateChatDTO; +import ru.mtusi.messenger.exception.InvalidRequestException; +import ru.mtusi.messenger.exception.NotFoundException; +import ru.mtusi.messenger.model.User; +import ru.mtusi.messenger.service.UserService; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.UUID; + +@Component +@RequiredArgsConstructor +public class ChatValidator { + + private final UserService userService; + + public Set validateCreate(UUID caller, CreateChatDTO createChatDTO) { + List memberIds = createChatDTO.getMemberIds(); + String title = createChatDTO.getTitle(); + + requireNotBlank(title, "Title must not be blank"); + requireNonEmpty(memberIds, "member_ids must not be empty"); + requireNoDuplicates(memberIds, "member_ids contains duplicates"); + requireContains(memberIds, caller, "Вызывающий должен быть участником"); + + return requireAllUsersExist(memberIds); + } + + private void requireNotBlank(String value, String message) { + if (value == null || value.trim().isEmpty()) { + throw new InvalidRequestException(message); + } + } + + private void requireNonEmpty(List ids, String message) { + if (ids == null || ids.isEmpty()) { + throw new InvalidRequestException(message); + } + } + + private void requireNoDuplicates(List ids, String message) { + Set unique = new HashSet<>(ids); + if (unique.size() != ids.size()) { + throw new InvalidRequestException(message); + } + } + + private void requireContains(List ids, UUID value, String message) { + if (!ids.contains(value)) { + throw new InvalidRequestException(message); + } + } + + private Set requireAllUsersExist(List ids) { + try { + return userService.requireUsers(ids); + } catch (NotFoundException e) { + throw new InvalidRequestException(e.getMessage()); + } + } +} diff --git a/src/main/java/ru/mtusi/messenger/validation/IdempotencyValidator.java b/src/main/java/ru/mtusi/messenger/validation/IdempotencyValidator.java new file mode 100644 index 0000000..b846f17 --- /dev/null +++ b/src/main/java/ru/mtusi/messenger/validation/IdempotencyValidator.java @@ -0,0 +1,41 @@ +package ru.mtusi.messenger.validation; + +import lombok.RequiredArgsConstructor; + +import org.springframework.stereotype.Component; + +import ru.mtusi.messenger.config.properties.IdempotencyProperties; +import ru.mtusi.messenger.exception.InvalidRequestException; + +import java.util.regex.Pattern; + +@Component +@RequiredArgsConstructor +public class IdempotencyValidator { + + private final IdempotencyProperties properties; + + public void validateKey(String key) { + requireNotBlank(key); + requireMaxLength(key); + requirePattern(key); + } + + private void requireNotBlank(String key) { + if (key == null || key.isEmpty()) { + throw new InvalidRequestException("Idempotency-Key header is required"); + } + } + + private void requireMaxLength(String key) { + if (key.length() > properties.keyMaxLength()) { + throw new InvalidRequestException("Idempotency-Key is too long"); + } + } + + private void requirePattern(String key) { + if (!Pattern.matches(properties.keyPattern(), key)) { + throw new InvalidRequestException("Idempotency-Key contains invalid characters"); + } + } +} diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..5db8037 --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,147 @@ +spring: + application: + name: messenger-lab7 + config: + import: "optional:configtree:/run/secrets/" + lifecycle: + timeout-per-shutdown-phase: 30s + jackson: + default-property-inclusion: always + datasource: + driver-class-name: org.postgresql.Driver + url: ${SPRING_DATASOURCE_URL:jdbc:postgresql://db:5432/messenger?sslmode=verify-full&sslrootcert=/pki/ca.crt} + username: ${SPRING_DATASOURCE_USERNAME:} + password: ${SPRING_DATASOURCE_PASSWORD:} + hikari: + maximum-pool-size: 20 + minimum-idle: 5 + connection-timeout: 2000 + connection-init-sql: "SET statement_timeout = 5000" + validation-timeout: 1000 + idle-timeout: 60000 + max-lifetime: 1800000 + jpa: + hibernate: + ddl-auto: validate + open-in-view: false + properties: + hibernate: + jdbc: + time_zone: UTC + flyway: + enabled: true + locations: classpath:db/migration + data: + redis: + host: ${SPRING_DATA_REDIS_HOST:localhost} + port: ${SPRING_DATA_REDIS_PORT:6379} + cache: + type: redis + + servlet: + multipart: + max-file-size: ${MAX_UPLOAD_BYTES:10485760} + max-request-size: ${MAX_UPLOAD_BYTES:10485760} + file-size-threshold: 0 + resolve-lazily: false + +server: + address: ${APP_HOST:0.0.0.0} + port: ${APP_PORT:8443} + ssl: + enabled: true + client-auth: need + certificate: file:/identity/service.crt + certificate-private-key: file:/identity/service.key + trust-certificate: file:/pki/ca.crt + shutdown: graceful + +management: + server: + address: 127.0.0.1 + port: 8081 + ssl: + enabled: false + endpoints: + web: + exposure: + include: health + endpoint: + health: + group: + readiness: + include: readinessState,requiredDependencies + probes: + enabled: true + show-details: always + caches: + enabled: true + + +app: + idempotency: + key-max-length: ${IDEMPOTENCY_KEY_MAX_LENGTH:128} + key-pattern: '${IDEMPOTENCY_KEY_PATTERN:^[A-Za-z0-9._:-]+$}' + retention-hours: ${IDEMPOTENCY_RETENTION_HOURS:24} + instance: + id: ${INSTANCE_ID:${random.uuid}} + limits: + max-messages-per-chat: ${MAX_MESSAGES_PER_CHAT:10000} + rate: + rate-per-minute: ${RATE_PER_MINUTE:600} + retry-after-seconds: ${RETRY_AFTER_SECONDS:60} + session: + ttl: ${SESSION_TTL_SECONDS:3600}s + redis: + host: ${SPRING_DATA_REDIS_HOST:localhost} + port: ${SPRING_DATA_REDIS_PORT:6379} + command-timeout: ${REDIS_COMMAND_TIMEOUT:500ms} + connect-timeout: ${REDIS_CONNECT_TIMEOUT:500ms} + shutdown-timeout: ${REDIS_SHUTDOWN_TIMEOUT:100ms} + keep-alive-idle: ${REDIS_KEEP_ALIVE_IDLE:30s} + keep-alive-interval: ${REDIS_KEEP_ALIVE_INTERVAL:10s} + tcp-user-timeout: ${REDIS_TCP_USER_TIMEOUT:10s} + +s3: + endpoint: ${S3_ENDPOINT:https://minio:9000} + bucket: ${S3_BUCKET:messenger-attachments} + region: ${S3_REGION:us-east-1} + access-key: ${S3_ACCESS_KEY_ID:} + secret-key: ${S3_SECRET_ACCESS_KEY:} + path-style-access: true + presign-expiry-seconds: ${S3_PRESIGN_EXPIRY_SECONDS:300} + +upload: + max-bytes: ${MAX_UPLOAD_BYTES:10485760} + max-pixels: ${MAX_IMAGE_PIXELS:40000000} + allowed-content-types: + - image/png + - image/jpeg + +reconciler: + enabled: ${RECONCILER_ENABLED:true} + interval-ms: ${RECONCILER_INTERVAL_MS:3600000} + grace-period-minutes: ${RECONCILER_GRACE_PERIOD_MINUTES:15} + dry-run: ${RECONCILER_DRY_RUN:false} + batch-size: ${RECONCILER_BATCH_SIZE:100} + max-s3-retries: ${RECONCILER_MAX_S3_RETRIES:3} + lock-at-most-for: ${RECONCILER_LOCK_AT_MOST_FOR:30m} + lock-at-least-for: ${RECONCILER_LOCK_AT_LEAST_FOR:1m} + +logging: + pattern: + console: "%d{ISO8601} %-5level [%X{requestId}] %logger{20} - %msg%n" + level: + org.springframework.cache: WARN + org.springframework.cache.interceptor: WARN + software.amazon.awssdk: WARN + +pipeline: + max-pending: ${MAX_PENDING_JOBS:100} + max-attempts: ${JOB_MAX_ATTEMPTS:5} + +springdoc: + api-docs: + enabled: false + swagger-ui: + enabled: false diff --git a/src/main/resources/db/migration/V1__init.sql b/src/main/resources/db/migration/V1__init.sql new file mode 100644 index 0000000..7145234 --- /dev/null +++ b/src/main/resources/db/migration/V1__init.sql @@ -0,0 +1,185 @@ +CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; + +CREATE TABLE login_budget ( + window_start BIGINT PRIMARY KEY, + attempts INTEGER NOT NULL +); + +CREATE TABLE users ( + id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), + username VARCHAR(32) NOT NULL, + display_name VARCHAR(100) NOT NULL, + password_hash VARCHAR(255) NOT NULL, + created_at TIMESTAMPTZ NOT NULL, + CONSTRAINT uq_users_username UNIQUE (username), + CONSTRAINT ck_users_username_format + CHECK (username ~ '^[a-z0-9_]{3,32}$'), + CONSTRAINT ck_users_display_name_not_blank + CHECK (length(btrim(display_name)) > 0) +); + +CREATE TABLE chats ( + id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), + title VARCHAR(100) NOT NULL, + created_at TIMESTAMPTZ NOT NULL, + CONSTRAINT ck_chats_title_not_blank CHECK (length(btrim(title)) > 0) +); + +CREATE TABLE chat_members ( + chat_id UUID NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE, + PRIMARY KEY (chat_id, user_id) +); + +CREATE TABLE messages ( + id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), + chat_id UUID NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + sender_id UUID NOT NULL REFERENCES users(id) ON DELETE RESTRICT, + text VARCHAR(4000) NOT NULL, + created_at TIMESTAMPTZ NOT NULL +); + +CREATE TABLE sessions ( + id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), + user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE, + token_hash BYTEA NOT NULL, + created_at TIMESTAMPTZ NOT NULL, + expires_at TIMESTAMPTZ NOT NULL, + revoked_at TIMESTAMPTZ, + CONSTRAINT uq_sessions_token_hash UNIQUE (token_hash), + CONSTRAINT ck_sessions_expiry CHECK (expires_at > created_at), + CONSTRAINT ck_sessions_token_len CHECK (octet_length(token_hash) = 32) +); + +CREATE TABLE idempotency_keys ( + id uuid PRIMARY KEY DEFAULT uuid_generate_v4(), + user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE, + method VARCHAR(16) NOT NULL, + chat_id UUID NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + idempotency_key VARCHAR(128) NOT NULL, + request_hash VARCHAR(64) NOT NULL, + status_code SMALLINT, + response_body JSONB, + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + CONSTRAINT uq_idempotency_scope UNIQUE (user_id, method, chat_id, idempotency_key), + CONSTRAINT ck_idem_key_format CHECK (idempotency_key ~ '^[A-Za-z0-9._:-]{1,128}$'), + CONSTRAINT ck_idem_status_body_paired CHECK ((status_code IS NULL) = (response_body IS NULL)) +); + +CREATE TABLE attachments ( + id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), + object_key VARCHAR(512) NOT NULL, + filename VARCHAR(255) NOT NULL, + content_type VARCHAR(100) NOT NULL, + size_bytes BIGINT NOT NULL, + checksum VARCHAR(64) NOT NULL, + status VARCHAR(20) NOT NULL DEFAULT 'READY' + CONSTRAINT attachments_status_check + CHECK (status IN ('UPLOADING', 'QUEUED', 'PROCESSING', 'READY', 'FAILED', 'BROKEN')), + chat_id UUID NOT NULL REFERENCES chats(id) ON DELETE CASCADE, + owner_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE, + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + updated_at TIMESTAMPTZ NOT NULL DEFAULT now(), + staging_key VARCHAR(512), + error_code VARCHAR(64), + pipeline_version BIGINT NOT NULL DEFAULT 1, + CONSTRAINT uq_attachments_object_key UNIQUE (object_key) +); + +CREATE TABLE shedlock ( + name VARCHAR(64) NOT NULL PRIMARY KEY, + lock_until TIMESTAMP NOT NULL, + locked_at TIMESTAMP NOT NULL, + locked_by VARCHAR(255) NOT NULL +); + +CREATE INDEX idx_messages_chat_created_asc_id + ON messages (chat_id, created_at ASC, id ASC); + +CREATE INDEX idx_chat_members_user + ON chat_members (user_id); + +CREATE INDEX idx_chats_created_asc_id + ON chats (created_at ASC, id ASC); + +CREATE INDEX idx_sessions_user_active + ON sessions (user_id) + WHERE revoked_at IS NULL; + +CREATE INDEX idx_sessions_expires_active + ON sessions (expires_at) + WHERE revoked_at IS NULL; + +CREATE INDEX idx_idempotency_created + ON idempotency_keys (created_at); + +CREATE INDEX idx_attachments_object_key ON attachments(object_key); +CREATE INDEX idx_attachments_chat_id ON attachments(chat_id); +CREATE INDEX idx_attachments_owner_id ON attachments(owner_id); +CREATE INDEX idx_attachments_status ON attachments(status); +CREATE INDEX idx_attachments_created_at ON attachments(created_at); + +CREATE TABLE message_attachments ( + message_id UUID NOT NULL REFERENCES messages(id) ON DELETE CASCADE, + attachment_id UUID NOT NULL CONSTRAINT fk_message_attachment REFERENCES attachments(id), + attachment_order INTEGER NOT NULL, + PRIMARY KEY (message_id, attachment_order) +); + +CREATE INDEX idx_message_attachments_attachment_id ON message_attachments(attachment_id); + +CREATE TABLE processing_jobs ( + job_id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), + attachment_id UUID NOT NULL REFERENCES attachments(id), + pipeline_version BIGINT NOT NULL, + status VARCHAR(20) NOT NULL DEFAULT 'QUEUED', + attempt INTEGER NOT NULL DEFAULT 0, + attempt_limit INTEGER NOT NULL DEFAULT 5, + lease_token UUID, + lease_until TIMESTAMPTZ, + next_at TIMESTAMPTZ NOT NULL DEFAULT now(), + next_publish_at TIMESTAMPTZ NOT NULL DEFAULT now(), + error_code VARCHAR(64), + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + completed_at TIMESTAMPTZ, + UNIQUE (attachment_id, pipeline_version), + CHECK (status IN ('QUEUED','PROCESSING','READY','FAILED','SUPERSEDED')) +); +CREATE TABLE processing_outbox ( + job_id UUID PRIMARY KEY REFERENCES processing_jobs(job_id), + payload JSONB NOT NULL, + published_at TIMESTAMPTZ, + publish_count INTEGER NOT NULL DEFAULT 0 +); +CREATE TABLE attachment_variants ( + attachment_id UUID NOT NULL REFERENCES attachments(id), + pipeline_version BIGINT NOT NULL, + name VARCHAR(20) NOT NULL, + object_key VARCHAR(512) NOT NULL UNIQUE, + content_type VARCHAR(100) NOT NULL, + size_bytes BIGINT NOT NULL, + width INTEGER NOT NULL, + height INTEGER NOT NULL, + sha256 VARCHAR(64) NOT NULL, + PRIMARY KEY (attachment_id, pipeline_version, name) +); +CREATE TABLE pipeline_events ( + seq BIGSERIAL PRIMARY KEY, + job_id UUID REFERENCES processing_jobs(job_id), + event VARCHAR(64) NOT NULL, + attempt INTEGER NOT NULL DEFAULT 0, + created_at TIMESTAMPTZ NOT NULL DEFAULT now() +); +CREATE TABLE pipeline_faults ( + attachment_id UUID NOT NULL REFERENCES attachments(id), + pipeline_version BIGINT NOT NULL, + point VARCHAR(64) NOT NULL, + action VARCHAR(20) NOT NULL, + remaining INTEGER NOT NULL DEFAULT 1, + hits INTEGER NOT NULL DEFAULT 0, + PRIMARY KEY (attachment_id, pipeline_version, point) +); +CREATE INDEX processing_jobs_pending ON processing_jobs (next_at, next_publish_at) WHERE status IN ('QUEUED','PROCESSING'); +CREATE INDEX pipeline_events_job ON pipeline_events(job_id); + +CREATE INDEX idx_attachments_staging_key ON attachments(staging_key) WHERE staging_key IS NOT NULL; diff --git a/src/test/java/ru/mtusi/messenger/AttachmentIntegrationTest.java b/src/test/java/ru/mtusi/messenger/AttachmentIntegrationTest.java new file mode 100644 index 0000000..90de413 --- /dev/null +++ b/src/test/java/ru/mtusi/messenger/AttachmentIntegrationTest.java @@ -0,0 +1,49 @@ +package ru.mtusi.messenger; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatThrownBy; + +import org.junit.jupiter.api.Test; + +import ru.mtusi.messenger.config.properties.UploadProperties; +import ru.mtusi.messenger.exception.InvalidRequestException; +import ru.mtusi.messenger.exception.PayloadTooLargeException; +import ru.mtusi.messenger.exception.UnsupportedMediaTypeException; +import ru.mtusi.messenger.validation.AttachmentValidator; + +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.List; + +class AttachmentIntegrationTest { + private final AttachmentValidator validator = + new AttachmentValidator( + new UploadProperties(10485760, 40000000, List.of("image/png", "image/jpeg"))); + + @Test + void acceptsRealFixture() throws Exception { + assertThat( + validator.validate( + Files.readAllBytes(Path.of("tests/fixtures/sample.png")), + "sample.png")) + .isEqualTo("image/png"); + } + + @Test + void rejectsControlCharactersWithoutSilentlyRenaming() { + for (String name : List.of("a/b.png", "a\\b.png", "a\n.png", "a\u007f.png")) { + assertThatThrownBy(() -> validator.sanitizeFilename(name)) + .isInstanceOf(InvalidRequestException.class); + } + assertThat(validator.sanitizeFilename("photo..png")).isEqualTo("photo..png"); + } + + @Test + void rejectsTruncatedImageAndOversizedBody() throws Exception { + byte[] png = Files.readAllBytes(Path.of("tests/fixtures/sample.png")); + assertThatThrownBy(() -> validator.validate(java.util.Arrays.copyOf(png, 40), "x.png")) + .isInstanceOf(UnsupportedMediaTypeException.class); + assertThatThrownBy(() -> validator.validate(new byte[10485761], "x.png")) + .isInstanceOf(PayloadTooLargeException.class); + } +} diff --git a/src/test/java/ru/mtusi/messenger/MessengerLab1ApplicationTests.java b/src/test/java/ru/mtusi/messenger/MessengerLab1ApplicationTests.java new file mode 100644 index 0000000..b7033ea --- /dev/null +++ b/src/test/java/ru/mtusi/messenger/MessengerLab1ApplicationTests.java @@ -0,0 +1,23 @@ +package ru.mtusi.messenger; + +import static org.assertj.core.api.Assertions.assertThat; + +import org.junit.jupiter.api.Test; + +import ru.mtusi.messenger.util.CursorCodec; + +import java.time.Instant; +import java.util.UUID; + +class MessengerLab1ApplicationTests { + @Test + void cursorPreservesScopeAndBoundary() { + UUID scope = UUID.randomUUID(); + var boundary = + new CursorCodec.PageBoundary( + Instant.parse("2026-01-01T00:00:00Z"), UUID.randomUUID()); + var decoded = CursorCodec.decode(CursorCodec.encode(scope, boundary)); + assertThat(decoded.scopeId()).isEqualTo(scope); + assertThat(decoded.boundary()).isEqualTo(boundary); + } +} diff --git a/student-tests/bao_policy.py b/student-tests/bao_policy.py new file mode 100644 index 0000000..39e657d --- /dev/null +++ b/student-tests/bao_policy.py @@ -0,0 +1,66 @@ +import json +import time +import urllib.error +import urllib.request + +from tls_matrix import context + + +def request(role, path, body=None, token=None): + headers = {"Content-Type": "application/json"} + if token: + headers["X-Vault-Token"] = token + req = urllib.request.Request( + "https://openbao:8200/v1/" + path, + None if body is None else json.dumps(body).encode(), + headers, + ) + with urllib.request.urlopen(req, context=context(role), timeout=3) as response: + raw = response.read() + return json.loads(raw) if raw else {} + + +def denied(role, path, token, body=None): + try: + request(role, path, body, token) + except urllib.error.HTTPError as error: + assert error.code == 403 + return + raise AssertionError("Scoped policy did not deny operation") + + +def main(): + results = {} + old = None + started = time.monotonic() + for role in ("api", "worker", "dispatcher"): + auth = request(role, "auth/cert/login", {"name": role})["auth"] + token = auth["client_token"] + assert 0 < auth["lease_duration"] <= 60 + assert auth["policies"] == [role] + data = request(role, "secret/data/" + role, token=token)["data"]["data"] + assert data["postgres_user"] == role + for other in {"api", "worker", "dispatcher"} - {role}: + denied(role, "secret/data/" + other, token) + denied( + role, "sys/policies/acl/escape", token, {"policy": 'path "*" {capabilities=["sudo"]}'} + ) + denied(role, "secret/data/" + role, token, {"data": {"escape": "denied"}}) + results[role] = dict( + ttl=auth["lease_duration"], + only_own_path=True, + other_secrets_denied=True, + policy_write_denied=True, + secret_write_denied=True, + ) + if old is None: + old = (role, token) + else: + request(role, "auth/token/revoke-self", {}, token) + time.sleep(max(0, 63 - (time.monotonic() - started))) + denied(old[0], "secret/data/" + old[0], old[1]) + print(json.dumps(dict(status="PASS", policies=results, expired_token_rejected=True), indent=2)) + + +if __name__ == "__main__": + main() diff --git a/student-tests/broker_recovery.py b/student-tests/broker_recovery.py new file mode 100644 index 0000000..635cb14 --- /dev/null +++ b/student-tests/broker_recovery.py @@ -0,0 +1,63 @@ +import json +import time +from pathlib import Path +from client import check, run +from pipeline_support import broker, compose, wait_for + + +def snapshot(): + groups = [ + dict(zip(row[::2], row[1::2])) + for row in json.loads(broker("XINFO", "GROUPS", "attachment-jobs")) + ] + return { + "entries": json.loads(broker("XRANGE", "attachment-jobs", "-", "+")), + "groups": [ + {key: value for key, value in group.items() if key != "consumers"} for group in groups + ], + "consumer_counts": [group["consumers"] for group in groups], + } + + +def main(): + compose("stop", "worker", "dispatcher") + try: + before = snapshot() + started = time.monotonic() + compose("restart", "broker") + wait_for(lambda: broker("PING") == "PONG") + after = snapshot() + check(before["entries"] == after["entries"], "AOF restart changed stream entries") + check( + before["groups"] == after["groups"], + "AOF restart changed delivery cursor or pending state", + ) + unauthenticated = compose("exec", "-T", "broker", "redis-cli", "-p", "16379", "PING") + check("NOAUTH" in unauthenticated, "Unauthenticated broker access accepted") + default = json.loads(broker("ACL", "GETUSER", "default")) + permissions = dict(zip(default[::2], default[1::2])) + check("off" in permissions["flags"], "Default broker user enabled") + check(not permissions["passwords"], "Default broker credentials configured") + logs = compose("logs", "--since", "30s", "broker") + check("CRITICAL" not in logs, "AOF loading reported errors") + report = dict( + status="PASS", + stream_and_consumer_groups_identical=True, + stream_entries=len(after["entries"]), + consumer_counts_before=before["consumer_counts"], + consumer_counts_after=after["consumer_counts"], + consumer_metadata="Idle consumers without any delivered message may disappear on restart; cursor, pending count, entries-read and lag are compared exactly.", + no_authentication_returns="NOAUTH", + default_user_disabled_without_password=True, + aof_replay_errors=0, + restart_seconds=round(time.monotonic() - started, 3), + explanation="Redis 7.4 AOF MULTI replay uses default ACL. Disabled passwordless-without-nopass default has internal permissions, but cannot authenticate. Runtime roles remain restricted.", + ) + Path("evidence/broker-recovery.json").write_text(json.dumps(report, indent=2) + "\n") + print(json.dumps(report, indent=2)) + finally: + compose("start", "worker", "dispatcher") + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/failover_other.py b/student-tests/failover_other.py new file mode 100644 index 0000000..f5596f5 --- /dev/null +++ b/student-tests/failover_other.py @@ -0,0 +1,104 @@ +import concurrent.futures +import json +import os +import subprocess +import sys +import time +import uuid +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "tests")) +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) +from client import Client, check +from provision import compose +from bootstrap import ROOT, write +from stack_operator import stop_one + + +def main(): + c = Client(base_url="https://127.0.0.1:8443", ca_file="secrets/public/ca.crt", timeout=3) + actor, _, _, chat = c.bootstrap() + instances = {c.call("GET", "/health/ready")["headers"]["X-Instance-Id"] for _ in range(12)} + check(len(instances) == 2, "Expected two active replicas") + existing = c.message(actor, chat, "confirmed-before-other-failure")["json"] + target = next( + value + for value in compose("ps", "-q", "api").splitlines() + if subprocess.check_output(["docker", "inspect", "--format", "{{.Name}}", value]) + .decode() + .strip() + .endswith("-api-1") + ) + alias = ( + subprocess.check_output(["docker", "exec", target, "cat", "/tmp/instance-id"]) + .decode() + .strip() + ) + os.environ["TARGET_INSTANCE_ID"] = alias + started = time.monotonic() + + def writer(index): + local = Client( + base_url="https://127.0.0.1:8443", ca_file="secrets/public/ca.crt", timeout=3 + ) + confirmed = [] + errors = 0 + n = 0 + while time.monotonic() - started < 15: + key = uuid.uuid4().hex + text = f"other-{index}-{n}" + for _ in range(2): + try: + confirmed.append(local.message(actor, chat, text, key)["json"]) + break + except Exception: + errors += 1 + n += 1 + return confirmed, errors + + try: + with concurrent.futures.ThreadPoolExecutor(max_workers=4) as pool: + futures = [pool.submit(writer, i) for i in range(4)] + time.sleep(1) + stop_one() + results = [f.result() for f in futures] + confirmed = [row for rows, _ in results for row in rows] + check(bool(confirmed), "No successful concurrent writes") + visible = [] + cursor = None + while True: + path = "/api/v1/chats/" + chat["id"] + "/messages?limit=100" + if cursor: + path += "&cursor=" + __import__("urllib.parse", fromlist=["quote"]).quote(cursor) + page = c.call("GET", path, actor=actor, schema="MessagePage")["json"] + visible += page["items"] + cursor = page["next_cursor"] + if not cursor: + break + ids = {row["id"] for row in visible} + check(all(row["id"] in ids for row in confirmed + [existing]), "Confirmed message lost") + check(len({row["text"] for row in visible}) == len(visible), "Retry duplicated message") + check( + alias + not in {c.call("GET", "/health/ready")["headers"]["X-Instance-Id"] for _ in range(10)}, + "Stopped process still served requests", + ) + result = dict( + status="PASS", + stopped_replica="api-1", + concurrency=4, + duration_seconds=round(time.monotonic() - started, 3), + confirmed_writes=len(confirmed), + failed_attempts=sum(n for _, n in results), + confirmed_preserved=True, + duplicate_effects=0, + stopped_alias_absent=True, + ) + write(ROOT / "evidence/failover-other.json", json.dumps(result, indent=2) + "\n") + print(json.dumps(result, indent=2)) + finally: + compose("start", "--wait", "--wait-timeout", "120", "api") + + +if __name__ == "__main__": + main() diff --git a/student-tests/incidents.py b/student-tests/incidents.py new file mode 100644 index 0000000..8bdca5d --- /dev/null +++ b/student-tests/incidents.py @@ -0,0 +1,314 @@ +import os +import subprocess +import threading +import time +from concurrent.futures import ThreadPoolExecutor +from contextlib import contextmanager +from urllib.error import HTTPError, URLError + +from client import Client, check, run +from observe import trace_for, upload +from pipeline_support import COMPOSE, compose, ready_api, sql, wait_ready +from telemetry_support import logs, save, spans, states, value, wait_until + + +API_ALERTS = ["ApiHighErrorRate", "ApiBurnFast", "ApiBurnSlow"] +READY_ALERTS = ["ReadyBurnFast", "ReadyBurnSlow"] + + +class Traffic: + def __init__(self, actor): + self.actor = actor + self.stop = threading.Event() + self.lock = threading.Lock() + self.counts = {} + self.error = None + self.slowest_ok = 0 + + def run(self): + client = Client(timeout=12) + while not self.stop.is_set(): + started = time.monotonic() + try: + response = client.call( + "GET", "/api/v1/users/me", actor=self.actor, expected=[200, 503] + ) + status = response["status"] + elapsed = time.monotonic() - started + with self.lock: + self.counts[status] = self.counts.get(status, 0) + 1 + if status == 200: + self.slowest_ok = max(self.slowest_ok, elapsed) + else: + self.error = response["headers"]["X-Request-Id"] + except Exception as error: + with self.lock: + name = type(error).__name__ + self.counts[name] = self.counts.get(name, 0) + 1 + self.stop.wait(0.2) + + @contextmanager + def start(self, clients=6): + with ThreadPoolExecutor(max_workers=clients) as pool: + workers = [pool.submit(self.run) for _ in range(clients)] + try: + yield self + finally: + self.stop.set() + for worker in workers: + worker.result() + + def snapshot(self): + with self.lock: + return dict(self.counts) + + +@contextmanager +def session_lock(seconds): + command = "psql -v ON_ERROR_STOP=1 -U operator -d messenger -At" + with subprocess.Popen( + COMPOSE + ["exec", "-T", "db", "sh", "-c", command], + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + text=True, + ) as process: + process.stdin.write( + f"SET application_name='lab6-incident'; BEGIN; LOCK TABLE sessions IN ACCESS EXCLUSIVE MODE; " + f"SELECT pg_sleep({seconds}); ROLLBACK;\n" + ) + process.stdin.close() + try: + wait_until( + lambda: sql( + "SELECT count(*) FROM pg_stat_activity WHERE application_name='lab6-incident'" + " AND wait_event='PgSleep';" + ) + == "1", + 15, + "database lock not acquired", + ) + yield time.monotonic() + finally: + sql( + "SELECT pg_cancel_backend(pid) FROM pg_stat_activity" + " WHERE application_name='lab6-incident' AND state='active';" + ) + process.wait(timeout=15) + + +def monitor(names, firing, timeout, started): + samples = [] + + reached = set() + target = "firing" if firing else "inactive" + + def check_state(): + snapshot = states() + samples.append( + { + "seconds": round(time.monotonic() - started, 2), + "states": {name: snapshot[name] for name in names}, + } + ) + reached.update(name for name in names if snapshot[name] == target) + return ( + len(reached) == len(names) + if firing + else all(snapshot[name] == target for name in names) + ) + + wait_until(check_state, timeout, "unexpected alert states: " + str(names)) + return samples + + +def find_failed_dependency(request_id, since): + trace_id = wait_until(lambda: trace_for(request_id, since), 35, "DB incident log missing") + + def dependency(): + try: + rows = spans(trace_id) + except HTTPError as error: + if error.code == 404: + return None + raise + for row in rows: + if row["name"] == "postgres.session.lookup": + duration = (int(row["endTimeUnixNano"]) - int(row["startTimeUnixNano"])) / 1e9 + if duration >= 3: + return { + "trace_id": trace_id, + "request_id": request_id, + "dependency": row["name"], + "duration_seconds": duration, + "status": row.get("status"), + } + return None + + return wait_until(dependency, 35, "slow PostgreSQL span missing") + + +def database_incidents(actor): + with Traffic(actor).start() as traffic: + time.sleep(15) + wait_until(lambda: traffic.snapshot().get(200, 0) >= 35, 15, "no warm traffic") + before = traffic.snapshot().get(503, 0) + with session_lock(3) as started: + canceled = sql( + "SELECT pg_cancel_backend(pid) FROM (SELECT pid FROM pg_stat_activity" + " WHERE wait_event_type='Lock' AND query LIKE '%sessions%' LIMIT 1) AS blocked;" + ) + check(canceled == "t", "short incident did not cancel a DB read") + brief = [] + for _ in range(17): + brief.append({"seconds": round(time.monotonic() - started, 2), "states": states()}) + time.sleep(1) + short_errors = traffic.snapshot().get(503, 0) - before + check(short_errors > 0, "short fault produced no observed errors") + check( + not any(sample["states"][name] == "firing" for sample in brief for name in API_ALERTS), + "short burst fired an API alert", + ) + since = time.time() - 2 + with session_lock(85) as started: + detection = monitor(API_ALERTS, True, 75, started) + request_id = traffic.error + released = time.monotonic() + recovery = monitor(API_ALERTS, False, 95, released) + check( + traffic.snapshot().get(200, 0) > 30 and traffic.snapshot().get(503, 0) > short_errors, + "sustained incident did not affect HTTP", + ) + sample = find_failed_dependency(request_id, since) + return { + "traffic_clients": 6, + "short": {"503_count": short_errors, "samples": brief, "alert_firings": 0}, + "sustained": { + "firing": detection, + "resolved": recovery, + "bounded_lock_seconds": 85, + "traffic_statuses": traffic.snapshot(), + "cause": sample, + }, + } + + +def queue_incident(client, actor, chat): + compose("stop", "worker") + started = time.monotonic() + attachments = [] + try: + for index in range(16): + attachments.append(upload(client, actor, chat, "lag-" + str(index))["json"]) + provisional = monitor(["AttachmentQueueLag"], True, 45, started) + peak = { + "age_seconds": value("max(lab_queue_oldest_seconds)"), + "backlog": value("max(lab_queue_depth)"), + "reported_capacity": value("sum(lab_worker_capacity)"), + } + check(peak["backlog"] >= 16, "observability reported no backlog") + finally: + compose("start", "worker") + released = time.monotonic() + for attachment in attachments: + wait_ready(client, actor, attachment) + drain = round(time.monotonic() - released, 2) + ready_firing = monitor(READY_ALERTS, True, 45, released) + resolved = monitor(["AttachmentQueueLag"], False, 30, released) + ready_resolved = monitor(READY_ALERTS, False, 90, released) + return { + "accepted": len(attachments), + "queue_firing": provisional, + "peak": peak, + "drained_seconds": drain, + "ready_burn_firing": ready_firing, + "queue_resolved": resolved, + "ready_burn_resolved": ready_resolved, + "all_ready": True, + } + + +def collector_snapshot(): + metric = "otelcol_exporter_send_failed_log_records_total" + return { + "send_failed_logs": value("sum(" + metric + '{exporter="otlphttp/loki"})'), + "queue_size": value('max(otelcol_exporter_queue_size{exporter="otlphttp/loki"})'), + "queue_capacity": value('max(otelcol_exporter_queue_capacity{exporter="otlphttp/loki"})'), + "rss_bytes": value("otelcol_process_memory_rss_bytes"), + } + + +def backend_incident(client, actor, chat): + before = collector_snapshot() + acknowledged = [] + samples = [] + compose("stop", "loki") + started = time.monotonic() + try: + for index in range(30): + acknowledged.append( + client.message(actor, chat, "backend proof " + str(index))["json"]["id"] + ) + if index % 3 == 0: + samples.append(collector_snapshot()) + time.sleep(0.7) + samples.append(collector_snapshot()) + finally: + compose("start", "loki") + page = client.call( + "GET", f"/api/v1/chats/{chat['id']}/messages?limit=100", actor=actor, schema="MessagePage" + )["json"] + check( + set(acknowledged) <= {item["id"] for item in page["items"]}, + "message loss during telemetry outage", + ) + after = collector_snapshot() + failed = ( + max([after["send_failed_logs"], *[s["send_failed_logs"] for s in samples]]) + - before["send_failed_logs"] + ) + check(failed > 0, "Collector exporter drops were not observed") + wait_until(loki_ready, 75, "Loki failed to recover") + since = time.time() - 2 + response = client.message(actor, chat, "telemetry restored") + restored_trace = wait_until( + lambda: trace_for(response["headers"]["X-Request-Id"], since), + 45, + "new business log not exported after Loki recovery", + ) + return { + "confirmed_and_read": len(acknowledged), + "seconds": round(time.monotonic() - started, 2), + "collector_before": before, + "collector_samples": samples, + "collector_after": after, + "failed_export_log_records_delta": failed, + "restored_trace_id": restored_trace, + } + + +def loki_ready(): + try: + logs('{service_name="messenger-api"}', limit=1) + return True + except (HTTPError, URLError, TimeoutError): + return False + + +def main(): + ready_api() + client = Client(timeout=12) + actor, _, _, chat = client.bootstrap() + mode = os.getenv("INCIDENT", "all") + if mode in ("all", "db"): + save("database-incident.json", database_incidents(actor)) + print("PASS short DB burst and sustained slowdown: real alerts and DB trace", flush=True) + if mode in ("all", "queue"): + save("queue-incident.json", queue_incident(client, actor, chat)) + print("PASS stopped worker: backlog, firing/resolved and slow READY burn", flush=True) + if mode in ("all", "backend"): + save("backend-incident.json", backend_incident(client, actor, chat)) + print("PASS stopped Loki: bounded telemetry failure and saved business writes", flush=True) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/observe.py b/student-tests/observe.py new file mode 100644 index 0000000..1c7f60d --- /dev/null +++ b/student-tests/observe.py @@ -0,0 +1,185 @@ +import time +import uuid +from pathlib import Path +from urllib.error import HTTPError + +from client import Client, check, run +from pipeline_support import compose, fault, job, ready_api, wait_ready +from telemetry_support import fetch, logs, prom, save, spans, wait_until + + +def upload(client, actor, chat, name): + return client.call( + "POST", + f"/api/v1/chats/{chat['id']}/attachments?filename={name}.png", + actor=actor, + raw=Path("tests/fixtures/sample.png").read_bytes(), + headers={"Content-Type": "image/png"}, + expected=202, + schema="Attachment", + ) + + +def trace_for(request_id, since): + rows = logs('{service_name="messenger-api"} | request_id="' + request_id + '"', since) + for row in rows: + trace_id = row["stream"].get("trace_id") + for entry in row["values"]: + metadata = entry[2] if len(entry) > 2 else {} + trace_id = trace_id or metadata.get("trace_id") + if trace_id: + return trace_id + return None + + +def complete_trace(trace_id): + try: + rows = spans(trace_id) + except HTTPError as error: + if error.code == 404: + return None + raise + required = { + "POST /api/v1/chats/{chat_id}/attachments", + "attachments publish", + "attachments consume", + "s3.staging.read", + "postgres.publish_result", + } + return ( + rows + if required <= {row["name"] for row in rows} + and sum(row["name"] == "attachments consume" for row in rows) >= 2 + else None + ) + + +def verify_trace(rows): + indexed = {s["spanId"]: s for s in rows} + consumers = [s for s in rows if s["name"] == "attachments consume"] + assert len(consumers) >= 2, "retry absent from trace" + for consumer in consumers: + producer = indexed[consumer["parentSpanId"]] + assert producer["name"] == "attachments publish", "consumer parent is not producer" + assert ( + indexed[producer["parentSpanId"]]["kind"] == "SPAN_KIND_SERVER" + or str(indexed[producer["parentSpanId"]]["kind"]) == "2" + ) + return [ + { + key: row.get(key) + for key in ("name", "service", "spanId", "parentSpanId", "kind", "status") + } + for row in rows + ] + + +def verify_metrics(): + names = [ + "lab_http_requests_total", + "lab_http_duration_seconds_bucket", + "lab_jobs_total", + "lab_job_duration_seconds_bucket", + "lab_ready_duration_seconds_bucket", + "lab_queue_depth", + "lab_queue_oldest_seconds", + "lab_db_pool_connections", + "lab_worker_busy", + "lab_worker_capacity", + "lab_process_cpu_seconds_total", + "lab_process_rss_bytes", + ] + return wait_until( + lambda: collect_metrics(names), + 50, + "required metric series missing", + ) + + +def collect_metrics(names): + result = prom('{__name__=~"' + "|".join(names) + '"}') + present = {row["metric"]["__name__"] for row in result} + if present != set(names): + return None + forbidden = { + "user_id", + "chat_id", + "message_id", + "attachment_id", + "request_id", + "filename", + "url", + } + for row in result: + assert not forbidden & set(row["metric"]), "forbidden metric attributes" + return { + name: { + "series": sum(row["metric"]["__name__"] == name for row in result), + "label_keys": sorted( + { + key + for row in result + if row["metric"]["__name__"] == name + for key in row["metric"] + } + ), + } + for name in names + } + + +def main(): + ready_api() + client = Client(timeout=12) + actor, _, _, chat = client.bootstrap() + marker = "proof" + uuid.uuid4().hex + client.message(actor, chat, marker) + since = time.time() - 2 + compose("stop", "worker") + try: + response = upload(client, actor, chat, marker) + attachment = response["json"] + fault(attachment, "before_effects", "transient") + finally: + compose("start", "worker") + wait_ready(client, actor, attachment) + check(job(attachment)["attempt"] == 2, "proof job did not retry") + request_id = response["headers"]["X-Request-Id"] + trace_id = wait_until( + lambda: trace_for(request_id, since), 45, "API request ID missing from Loki" + ) + rows = wait_until(lambda: complete_trace(trace_id), 60, "correlated trace missing from Tempo") + worker_logs = wait_until( + lambda: logs('{service_name="messenger-worker"} | trace_id="' + trace_id + '"', since), + 30, + "worker logs missing for trace", + ) + events = sorted({entry[1] for row in worker_logs for entry in row["values"]}) + check("worker.retry" in events and "worker.ready" in events, "retry/ready logs missing") + check( + not logs('{service_name=~"messenger-.+"} |= "' + marker + '"', since - 10), + "sensitive marker in logs", + ) + check(marker not in str(rows), "sensitive marker in trace") + check( + fetch("/api/dashboards/uid/messenger-lab6")["dashboard"]["title"] == "Messenger Lab 6", + "dashboard not provisioned", + ) + save( + "signal-link.json", + { + "trace_id": trace_id, + "request_id": request_id, + "spans": verify_trace(rows), + "worker_events": events, + "marker_absent": True, + }, + ) + save("metric-inventory.json", verify_metrics()) + print( + "PASS real upload -> publish -> consumer retry -> S3/DB; Loki/Tempo/Prometheus via Grafana" + ) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/pipeline_ack_guard.py b/student-tests/pipeline_ack_guard.py new file mode 100644 index 0000000..7eba8fd --- /dev/null +++ b/student-tests/pipeline_ack_guard.py @@ -0,0 +1,15 @@ +from client import run +from pipeline_faults import Experiment + + +def main(): + experiment = Experiment() + experiment.fenced_without_dispatcher() + print( + "PASS expired worker without dispatcher: no premature ACK; pending/index retained; recovery publishes exactly one result on attempt 2", + flush=True, + ) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/pipeline_boundaries.py b/student-tests/pipeline_boundaries.py new file mode 100644 index 0000000..098a4bd --- /dev/null +++ b/student-tests/pipeline_boundaries.py @@ -0,0 +1,133 @@ +from concurrent.futures import ThreadPoolExecutor +from client import Client, check, run +from pipeline_support import compose, sql, ready_api, wait_ready, wait_for, operator, COMPOSE +import subprocess +import uuid + + +def eligibility(c, a, chat, attachment): + sql( + "create function proof_message_guard() returns trigger language plpgsql as $$ begin if NEW.chat_id='" + + chat["id"] + + "'::uuid then perform pg_sleep(4); end if; return NEW; end; $$; create trigger proof_message_guard before insert on messages for each row execute function proof_message_guard();" + ) + try: + with ThreadPoolExecutor(max_workers=1) as pool: + request = pool.submit(c.message, a, chat, "guard", None, [attachment["id"]]) + wait_for( + lambda: sql("select count(*) from pg_stat_activity where wait_event='PgSleep';") + != "0", + 10, + ) + code = """import psycopg +from pipeline.repository import Repository +from pipeline.config import Settings +try: + with Repository(Settings()).connection() as db: + db.execute("SET lock_timeout='250ms'") + db.execute("UPDATE attachments SET status='FAILED',error_code='injected_failure' WHERE id=%s",('ATTACHMENT',)) +except psycopg.errors.LockNotAvailable: + print('blocked_by_message_transaction',flush=True) +else: + raise AssertionError('status changed between validation and commit') +""".replace( + "ATTACHMENT", attachment["id"] + ) + output = compose("exec", "-T", "dispatcher", "python", "-c", code) + check(output == "blocked_by_message_transaction", "status guard missing") + check( + request.result()["json"]["attachment_ids"] == [attachment["id"]], + "message not created", + ) + finally: + sql("drop trigger proof_message_guard on messages; drop function proof_message_guard();") + sql( + "begin;update attachments set status='FAILED',error_code='injected_failure' where id='" + + attachment["id"] + + "';update processing_jobs set status='FAILED',error_code='injected_failure' where attachment_id='" + + attachment["id"] + + "';commit;" + ) + c.call( + "POST", + "/api/v1/chats/" + chat["id"] + "/messages", + 409, + actor=a, + body={"text": "", "attachment_ids": [attachment["id"]]}, + headers={"Idempotency-Key": uuid.uuid4().hex}, + ) + operator("replay", attachment) + print( + "PASS message eligibility: status UPDATE blocked until Message COMMIT; subsequent FAILED attachment rejected with 409", + flush=True, + ) + + +def download_guard(c, actor, attachment, body): + code = """import time +from pipeline.repository import Repository +from pipeline.config import Settings +with Repository(Settings()).connection() as db: + db.execute('SELECT pg_advisory_xact_lock(741204)') + print('cleanup_locked',flush=True) + time.sleep(4) +""" + holder = subprocess.Popen( + COMPOSE + ["exec", "-T", "dispatcher", "python", "-c", code], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + text=True, + ) + try: + check(holder.stdout.readline().strip() == "cleanup_locked", "cleanup fence not acquired") + with ThreadPoolExecutor(max_workers=1) as pool: + request = pool.submit( + c.call, + "GET", + "/api/v1/attachments/" + attachment["id"] + "/content", + 200, + None, + actor, + ) + wait_for( + lambda: sql( + "select count(*) from pg_stat_activity where wait_event='advisory' and query ilike '%pg_advisory_xact_lock_shared(741204)%';" + ) + != "0", + 3, + "download did not wait on cleanup fence", + ) + check(not request.done(), "download bypassed cleanup fence") + _, errors = holder.communicate(timeout=10) + check(holder.returncode == 0, "cleanup holder failed") + check(request.result(timeout=10)["bytes"] == body, "download changed bytes") + check( + sql("select pg_try_advisory_xact_lock(741204);") == "t", + "download leaked transaction fence", + ) + finally: + if holder.poll() is None: + holder.kill() + holder.wait() + print( + "PASS download/cleanup barrier: content waits for exclusive cleanup, returns identical bytes, releases shared fence", + flush=True, + ) + + +def main(): + ready_api() + c = Client(base_url="https://127.0.0.1:8443", timeout=30) + a, b, e, chat = c.bootstrap() + compose("stop", "worker") + try: + attachment, body = c.attachment(a, chat) + eligibility(c, a, chat, attachment) + finally: + compose("start", "worker") + wait_ready(c, a, attachment) + download_guard(c, b, attachment, body) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/pipeline_core.py b/student-tests/pipeline_core.py new file mode 100644 index 0000000..70514af --- /dev/null +++ b/student-tests/pipeline_core.py @@ -0,0 +1,142 @@ +from client import Client, check, run +from pipeline_support import ready_api, wait_ready, metadata, compose, broker, sql +from concurrent.futures import ThreadPoolExecutor +from pathlib import Path +from PIL import Image +import hashlib +import io +import os +import time +import uuid + + +def main(): + ready_api() + c = Client(base_url="https://127.0.0.1:8443", timeout=30) + a, b, e, chat = c.bootstrap() + png = Path("tests/fixtures/sample.png").read_bytes() + path = "/api/v1/chats/" + chat["id"] + "/attachments?filename=proof.png" + + def upload(data=png, mime="image/png", expected=202): + return c.call( + "POST", + path, + expected, + actor=a, + raw=data, + headers={"Content-Type": mime}, + schema="Attachment" if expected == 202 else None, + ) + + compose("stop", "worker") + attachment = upload()["json"] + check(attachment["status"] == "queued", "upload response not queued snapshot") + c.call("GET", "/api/v1/attachments/" + attachment["id"] + "/content", 409, actor=b) + c.message(a, chat, "", attachments=[attachment["id"]]) + compose("start", "worker") + result = wait_ready(c, b, attachment) + verify(c, b, attachment, png, result) + print( + "PASS queued snapshot, link before ready, 409 before worker; original + 3 variants", + flush=True, + ) + negative(c, a, e, chat, attachment, upload, png) + fixtures(c, a, b, upload) + concurrent(c, a, chat, attachment) + print("PASS core pipeline contract", flush=True) + + +def verify(c, actor, attachment, original, result): + base = "/api/v1/attachments/" + attachment["id"] + "/content" + check(c.call("GET", base, actor=actor)["bytes"] == original, "original changed") + check( + {v["name"] for v in result["variants"]} == {"thumbnail", "crop", "optimized"}, + "variant set differs", + ) + for variant in result["variants"]: + response = c.call("GET", base + "?variant=" + variant["name"], actor=actor) + check( + hashlib.sha256(response["bytes"]).hexdigest() == variant["sha256"], "variant checksum" + ) + check(len(response["bytes"]) == variant["size_bytes"], "variant size") + check(response["headers"].get_content_type() == variant["content_type"], "variant MIME") + with Image.open(io.BytesIO(response["bytes"])) as image: + check(image.size == (variant["width"], variant["height"]), "variant dimensions") + check(not image.getexif(), "EXIF retained") + + +def negative(c, a, e, chat, attachment, upload, png): + upload(png[:33], expected=415) + upload(png, "image/jpeg", 415) + upload(b"x" * 10485761, expected=413) + c.call( + "POST", + "/api/v1/chats/" + chat["id"] + "/attachments?filename=..%2Fx.png", + 400, + actor=a, + raw=png, + headers={"Content-Type": "image/png"}, + ) + for suffix in ("", "/content"): + c.call("GET", "/api/v1/attachments/" + attachment["id"] + suffix, 404, actor=e) + other = c.call( + "POST", + "/api/v1/chats", + 201, + actor=a, + body={"title": "other", "member_ids": [a["id"]]}, + schema="Chat", + )["json"] + c.call( + "POST", + "/api/v1/chats/" + other["id"] + "/messages", + 404, + actor=a, + body={"text": "x", "attachment_ids": [attachment["id"]]}, + headers={"Idempotency-Key": uuid.uuid4().hex}, + ) + print("PASS bytes/corruption/MIME/filename/ACL/cross-chat negatives", flush=True) + + +def fixtures(c, a, b, upload): + output = io.BytesIO() + Image.new("RGBA", (8, 4), (255, 0, 0, 0)).save(output, format="PNG") + attachment = upload(output.getvalue())["json"] + result = wait_ready(c, b, attachment) + data = c.call( + "GET", "/api/v1/attachments/" + attachment["id"] + "/content?variant=thumbnail", actor=b + )["bytes"] + with Image.open(io.BytesIO(data)) as image: + check( + image.size == (8, 4) and min(image.getpixel((0, 0))) >= 250, "alpha/upscale incorrect" + ) + output = io.BytesIO() + image = Image.new("RGB", (80, 40), (20, 80, 160)) + exif = image.getexif() + exif[274] = 6 + image.save(output, format="JPEG", exif=exif) + attachment = upload(output.getvalue(), "image/jpeg")["json"] + result = wait_ready(c, b, attachment) + thumb = next(v for v in result["variants"] if v["name"] == "thumbnail") + check((thumb["width"], thumb["height"]) == (40, 80), "EXIF orientation ignored") + verify(c, b, attachment, output.getvalue(), result) + print("PASS alpha white, no small-image enlargement, EXIF rotation, crop and WebP", flush=True) + + +def concurrent(c, a, chat, attachment): + key = uuid.uuid4().hex + + def send(_): + return c.message(a, chat, "concurrent", key=key, attachments=[attachment["id"]]) + + with ThreadPoolExecutor(max_workers=12) as pool: + replies = list(pool.map(send, range(24))) + check(len({r["json"]["id"] for r in replies}) == 1, "duplicate message effects") + check( + len({r["headers"]["X-Instance-Id"] for r in replies}) == 2, "two API replicas not observed" + ) + print("PASS 24 concurrent requests across 2 API replicas; single message effect", flush=True) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/pipeline_faults.py b/student-tests/pipeline_faults.py new file mode 100644 index 0000000..c14f91c --- /dev/null +++ b/student-tests/pipeline_faults.py @@ -0,0 +1,373 @@ +from client import Client, check, run +from pipeline_support import ( + compose, + sql, + broker, + wait_for, + ready_api, + metadata, + wait_ready, + job, + payload, + inject_duplicate, + fault, + fault_hit, + operator, + manifest, + events, +) +from concurrent.futures import ThreadPoolExecutor +from pathlib import Path +from PIL import Image +import io +import json +import os +import subprocess +import threading +import time + + +class Experiment: + def __init__(self): + ready_api() + self.client = Client(base_url="https://127.0.0.1:8443", timeout=30) + self.actor, self.member, self.outsider, self.chat = self.client.bootstrap() + self.body = Path("tests/fixtures/sample.png").read_bytes() + self.rows = [] + self.accepted = [] + + def upload(self, body=None, expected=202): + response = self.client.call( + "POST", + "/api/v1/chats/" + self.chat["id"] + "/attachments?filename=fault.png", + expected, + actor=self.actor, + raw=self.body if body is None else body, + headers={"Content-Type": "image/png"}, + schema="Attachment" if expected == 202 or isinstance(expected, list) else None, + ) + if response["status"] == 202: + self.accepted.append(response["json"]["id"]) + return response["json"] + return response + + def run_case(self, name, action): + started = time.monotonic() + action() + row = {"scenario": name, "result": "PASS", "seconds": round(time.monotonic() - started, 3)} + self.rows.append(row) + print(json.dumps(row), flush=True) + Path("evidence/pipeline-faults.json").write_text(json.dumps(self.rows, indent=2)) + + def settled(self, attachment): + wait_ready(self.client, self.actor, attachment, 120) + check(events(attachment, "ready") == 1, "multiple published effects") + check( + int( + sql( + "select count(*) from attachment_variants where attachment_id='" + + attachment["id"] + + "';" + ) + ) + == 3, + "duplicate variants", + ) + data = self.client.call( + "GET", "/api/v1/attachments/" + attachment["id"] + "/content", actor=self.member + )["bytes"] + check(data == self.body, "original changed") + + def prepare(self, point, action, count=1): + compose("stop", "worker") + attachment = self.upload() + fault(attachment, point, action, count) + compose("start", "worker") + return attachment + + def durability(self): + compose("stop", "worker", "dispatcher") + accepted = [self.upload() for _ in range(2)] + for attachment in accepted: + self.client.message(self.actor, self.chat, "", attachments=[attachment["id"]]) + check(job(attachment)["status"] == "QUEUED", "worker ran while stopped") + check( + sql( + "select published_at IS NULL from processing_outbox where job_id='" + + job(attachment)["job_id"] + + "';" + ) + == "t", + "unexpected publish", + ) + compose("restart", "api") + ready_api() + fault(accepted[0], "before_publish", "crash") + compose("start", "dispatcher") + wait_for(lambda: fault_hit(accepted[0], "before_publish")) + wait_for( + lambda: all( + job(a)["job_id"] in broker("XRANGE", "attachment-jobs", "-", "+") for a in accepted + ) + ) + before = broker("XLEN", "attachment-jobs") + time.sleep(12) + check( + broker("XLEN", "attachment-jobs") == before, + "watchdog multiplied queued broker messages", + ) + compose("restart", "broker") + wait_for(lambda: broker("PING") == "PONG") + history = broker("XRANGE", "attachment-jobs", "-", "+") + check(all(job(a)["job_id"] in history for a in accepted), "broker restart lost messages") + compose("start", "worker") + for attachment in accepted: + self.settled(attachment) + print( + "durability: 202 -> outbox COMMIT without publisher; API restart; publish; broker restart while worker stopped; same jobs ready", + flush=True, + ) + + def publisher_confirm_window(self): + compose("stop", "worker", "dispatcher") + attachment = self.upload() + fault(attachment, "after_publish", "crash") + compose("start", "dispatcher") + wait_for(lambda: fault_hit(attachment, "after_publish")) + compose("start", "worker") + self.settled(attachment) + wait_for(lambda: broker("XLEN", "attachment-jobs") == "0", 60) + check(self.object_count(attachment) == 4, "publisher crash duplicated effect") + + def duplicates(self): + attachment = self.upload() + self.settled(attachment) + value = payload(attachment) + before = manifest(attachment) + attempt = job(attachment)["attempt"] + with ThreadPoolExecutor(max_workers=8) as pool: + list(pool.map(lambda _: inject_duplicate(value), range(24))) + wait_for(lambda: broker("XLEN", "attachment-jobs") == "0") + check( + manifest(attachment) == before and job(attachment)["attempt"] == attempt, + "ready duplicate executed", + ) + check(self.object_count(attachment) == 4, "duplicate S3 object set") + + def object_count(self, attachment): + code = ( + "from pipeline.storage import Storage;from pipeline.config import Settings;s=Storage(Settings());print(len(s.client.list_objects_v2(Bucket=s.settings.bucket,Prefix='results/" + + attachment["id"] + + "/').get('Contents',[])))" + ) + return int(compose("exec", "-T", "dispatcher", "python", "-c", code)) + + def crash(self, point): + attachment = self.prepare(point, "crash") + wait_for(lambda: fault_hit(attachment, point), 60) + self.settled(attachment) + wait_for(lambda: broker("XLEN", "attachment-jobs") == "0", 60) + check(self.object_count(attachment) == 4, "crash redelivery multiplied S3 objects") + expected = 2 if point in ("before_effects", "after_effects") else 1 + check(job(attachment)["attempt"] == expected, "unexpected managed attempt count") + + def lease_fencing(self): + attachment = self.prepare("after_effects", "pause") + wait_for(lambda: fault_hit(attachment, "after_effects"), 60) + self.settled(attachment) + wait_for(lambda: events(attachment, "fenced_stale_result") >= 1, 30) + check(job(attachment)["attempt"] == 2, "lease did not recover work") + check(self.object_count(attachment) == 4, "lease recovery multiplied objects") + + def timeout_recovery(self): + attachment = self.prepare("before_effects", "timeout") + wait_for(lambda: fault_hit(attachment, "before_effects"), 60) + self.settled(attachment) + wait_for(lambda: events(attachment, "worker_timeout") >= 1, 40) + check(self.object_count(attachment) == 4, "timeout recovery multiplied effects") + + def fenced_without_dispatcher(self): + attachment = self.prepare("after_effects", "pause") + wait_for(lambda: fault_hit(attachment, "after_effects"), 60) + compose("stop", "dispatcher") + try: + time.sleep(13) + check(job(attachment)["status"] == "PROCESSING", "test did not hold recovery window") + check(events(attachment, "ready") == 0, "expired worker published result") + check( + int(broker("XLEN", "attachment-jobs")) >= 1, + "unfinished current delivery acknowledged", + ) + check( + int(broker("HLEN", "job-publications")) >= 1, "unfinished publication index removed" + ) + finally: + compose("start", "dispatcher") + self.settled(attachment) + wait_for(lambda: broker("XLEN", "attachment-jobs") == "0", 60) + check( + job(attachment)["attempt"] == 2, "lease recovery did not schedule next managed attempt" + ) + check(self.object_count(attachment) == 4, "recovery multiplied S3 effects") + Path("evidence/fenced-pending.json").write_text( + json.dumps( + { + "attachment_id": attachment["id"], + "unfinished_delivery_retained": True, + "recovered_attempt": 2, + "one_manifest": True, + "s3_objects": 4, + }, + indent=2, + ) + ) + + def version_fencing(self): + attachment = self.prepare("after_effects", "pause") + wait_for(lambda: fault_hit(attachment, "after_effects"), 60) + old = payload(attachment) + operator("upgrade", attachment, 2) + wait_ready(self.client, self.actor, attachment, 90) + check(job(attachment)["pipeline_version"] == 2, "new version missing") + before = manifest(attachment) + wait_for(lambda: events(attachment, "fenced_stale_result") >= 1, 30) + new = payload(attachment) + for value in [new, old, new, old, old]: + inject_duplicate(value) + wait_for(lambda: broker("XLEN", "attachment-jobs") == "0", 60) + check(manifest(attachment) == before, "old result overwrote new version") + check("/v2/" in before and "/v1/" not in before, "wrong manifest version") + check(events(attachment, "ready") == 1, "old in-flight version published") + + def failure_replay(self, action): + attachment = self.prepare("before_effects", action, 3 if action == "transient" else 1) + wait_for(lambda: metadata(self.client, self.actor, attachment)["status"] == "failed", 90) + result = metadata(self.client, self.actor, attachment) + check( + result["error_code"] + == ("retry_exhausted" if action == "transient" else "invalid_image"), + "unsafe failure code", + ) + original = job(attachment) + check( + original["attempt"] == (3 if action == "transient" else 1), "retry budget not enforced" + ) + self.client.call( + "GET", "/api/v1/attachments/" + attachment["id"] + "/content", 409, actor=self.actor + ) + response = operator("replay", attachment) + check(response["replayed"], "replay rejected") + self.settled(attachment) + check(job(attachment)["job_id"] == original["job_id"], "replay replaced logical job") + check(job(attachment)["attempt"] == original["attempt"] + 1, "attempt counter reset") + before = manifest(attachment) + check(not operator("replay", attachment)["replayed"], "successful job replayed") + check(manifest(attachment) == before, "noop replay changed effect") + + def backpressure(self): + compose("stop", "worker", "dispatcher") + output = io.BytesIO() + Image.frombytes("RGB", (800, 600), os.urandom(800 * 600 * 3)).save(output, format="PNG") + body = output.getvalue() + samples = [] + sample_errors = [] + done = threading.Event() + + def sample(): + while not done.is_set(): + try: + value = compose( + "stats", "--no-stream", "--format", "{{.Name}} {{.MemUsage}} {{.CPUPerc}}" + ) + check(bool(value), "empty stats sample") + samples.append(value) + except Exception as error: + sample_errors.append(type(error).__name__) + return + + sampler = threading.Thread(target=sample) + sampler.start() + try: + with ThreadPoolExecutor(max_workers=10) as pool: + responses = list( + pool.map(lambda _: self.upload(body, expected=[202, 503]), range(10)) + ) + accepted = [r for r in responses if "id" in r] + check(len(accepted) == 6, "admission capacity not atomic across replicas") + started = time.monotonic() + compose("start", "dispatcher", "worker") + latencies = [] + for attachment in accepted: + wait_ready(self.client, self.actor, attachment, 90) + latencies.append(time.monotonic() - started) + finally: + done.set() + sampler.join() + check(not sample_errors and samples, "memory sampling failed") + check(any("worker" in value for value in samples), "worker RSS not sampled") + summary = { + "accepted": len(accepted), + "rejected": 10 - len(accepted), + "concurrency": 10, + "image_bytes": len(body), + "seconds_to_observed_ready": latencies, + "stats_samples": samples, + "method": "closed loop; sequential polls overestimate early completions", + } + Path("evidence/backpressure.json").write_text(json.dumps(summary, indent=2)) + print( + "backpressure: 6 accepted, 4 rejected with 503, accepted jobs drained after recovery", + flush=True, + ) + + +def main(): + experiment = Experiment() + experiment.run_case("commit_publish_api_broker_restart", experiment.durability) + experiment.run_case("publish_confirm_db_mark_crash", experiment.publisher_confirm_window) + experiment.run_case("24_concurrent_duplicate_deliveries", experiment.duplicates) + for point in ["before_effects", "after_effects", "after_commit", "before_ack"]: + experiment.run_case("crash_" + point, lambda point=point: experiment.crash(point)) + experiment.run_case("expired_lease_fences_old_worker", experiment.lease_fencing) + experiment.run_case("hard_process_timeout_recovery", experiment.timeout_recovery) + experiment.run_case("new_version_then_stale_reordered_jobs", experiment.version_fencing) + experiment.run_case( + "permanent_failure_explicit_replay", lambda: experiment.failure_replay("permanent") + ) + experiment.run_case( + "bounded_retry_explicit_replay", lambda: experiment.failure_replay("transient") + ) + experiment.run_case("two_replica_atomic_backpressure_recovery", experiment.backpressure) + wait_for( + lambda: sql( + "select count(*) from attachments where status='READY' and staging_key IS NOT NULL;" + ) + == "0", + 90, + "ready staging not cleaned", + ) + ids = ",".join("'" + value + "'" for value in experiment.accepted) + missing = sql( + "select count(*) from attachments a left join processing_jobs j on j.attachment_id=a.id and j.pipeline_version=a.pipeline_version left join processing_outbox o using(job_id) where a.id in (" + + ids + + ") and (j.job_id is null or o.job_id is null or a.status not in ('READY','FAILED') or j.status<>a.status);" + ) + check(missing == "0", "confirmed task lost or not terminal") + Path("evidence/accepted-jobs.json").write_text( + json.dumps( + { + "accepted_ids": experiment.accepted, + "count": len(experiment.accepted), + "missing_or_nonterminal": int(missing), + }, + indent=2, + ) + ) + print( + "PASS staging cleaned after safe result publication; no confirmed job lost; all pipeline fault invariants", + flush=True, + ) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/pipeline_filename.py b/student-tests/pipeline_filename.py new file mode 100644 index 0000000..13f7e93 --- /dev/null +++ b/student-tests/pipeline_filename.py @@ -0,0 +1,39 @@ +from client import Client, check, run +from pathlib import Path +from urllib.parse import quote + + +def main(): + c = Client(base_url="https://127.0.0.1:8443", timeout=30) + a, b, e, chat = c.bootstrap() + body = Path("tests/fixtures/sample.png").read_bytes() + path = "/api/v1/chats/" + chat["id"] + "/attachments?filename=" + for name in ["a" * 255, "\U0001f600" * 255]: + attachment = c.call( + "POST", + path + quote(name), + 202, + actor=a, + raw=body, + headers={"Content-Type": "image/png"}, + schema="Attachment", + )["json"] + check(attachment["filename"] == name, "filename changed") + c.wait_ready(a, attachment) + result = c.call("GET", "/api/v1/attachments/" + attachment["id"] + "/content", actor=b) + check(result["bytes"] == body, "Unicode filename download failed") + c.call( + "POST", + path + quote("\U0001f600" * 256), + 400, + actor=a, + raw=body, + headers={"Content-Type": "image/png"}, + ) + print( + "PASS filename code-point limits: 255 ASCII and 255 emoji -> 202 and download 200; 256 emoji -> 400; long Content-Disposition accepted by LB" + ) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/pipeline_history_capacity.py b/student-tests/pipeline_history_capacity.py new file mode 100644 index 0000000..13ae14c --- /dev/null +++ b/student-tests/pipeline_history_capacity.py @@ -0,0 +1,53 @@ +from concurrent.futures import ThreadPoolExecutor +import threading +import uuid + +from client import Client, check, run +from pipeline_support import compose, ready_api, sql + + +def main(): + ready_api() + client = Client(base_url="https://127.0.0.1:8443", timeout=30) + actor, _, _, chat = client.bootstrap() + limit = int(compose("exec", "-T", "api", "printenv", "MAX_MESSAGES_PER_CHAT")) + check(1 <= limit <= 10000, "unexpected test history capacity") + sql( + "insert into messages(id,chat_id,sender_id,text,created_at) " + "select gen_random_uuid(),'" + chat["id"] + "','" + actor["id"] + "','seed',now() " + "from generate_series(1," + str(limit - 1) + ");" + ) + barrier = threading.Barrier(10) + + def send(_): + barrier.wait() + return client.call( + "POST", + "/api/v1/chats/" + chat["id"] + "/messages", + [201, 413], + actor=actor, + body={"text": "last slot", "attachment_ids": []}, + headers={"Idempotency-Key": uuid.uuid4().hex}, + ) + + with ThreadPoolExecutor(max_workers=10) as pool: + responses = list(pool.map(send, range(10))) + instances = {item["headers"].get("X-Instance-Id") for item in responses} + check( + len(instances) == 2 and None not in instances, + "last-slot race did not reach both API replicas", + ) + confirmed = [item for item in responses if item["status"] == 201] + rejected = [item for item in responses if item["status"] == 413] + check(len(confirmed) == 1 and len(rejected) == 9, "history capacity raced across API replicas") + check( + int(sql("select count(*) from messages where chat_id='" + chat["id"] + "';")) == limit, + "history capacity exceeded in DB", + ) + print( + "PASS history last-slot race: 10 simultaneous unique POSTs, exactly 1 committed and 9 rejected with 413; DB count equals configured limit" + ) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/pipeline_retention.py b/student-tests/pipeline_retention.py new file mode 100644 index 0000000..4d9bf1c --- /dev/null +++ b/student-tests/pipeline_retention.py @@ -0,0 +1,135 @@ +from client import Client, check, run +from pipeline_support import compose, sql, broker, ready_api, wait_ready, wait_for, metadata, job +import hashlib +import json +import uuid + + +def execute(code, data=None): + return compose("run", "--rm", "--no-deps", "-T", "pipeline-diagnostics", "-c", code, data=data) + + +def main(): + ready_api() + c = Client(base_url="https://127.0.0.1:8443", timeout=30) + a, b, e, chat = c.bootstrap() + protected, original = c.attachment(a, chat) + wait_ready(c, a, protected) + key = sql("select object_key from attachments where id='" + protected["id"] + "';") + status = compose( + "exec", + "-T", + "minio", + "curl", + "-s", + "--cacert", + "/pki/ca.crt", + "-o", + "/dev/null", + "-w", + "%{http_code}", + "https://localhost:9000/messenger-attachments/" + key, + ) + check(status == "403", "bucket permits anonymous access") + print("PASS anonymous direct S3 GET of existing original returns 403", flush=True) + compose("stop", "worker") + attachment, _ = c.attachment(a, chat) + code = r"""import hashlib,struct,zlib +from pipeline.storage import Storage +from pipeline.config import Settings +from pipeline.repository import Repository +s=Settings();storage=Storage(s);repo=Repository(s) +def chunk(kind,data):return struct.pack('>I',len(data))+kind+data+struct.pack('>I',zlib.crc32(kind+data)&0xffffffff) +compressor=zlib.compressobj();parts=[];row=b'\0'+b'\0'*(7000*3) +for _ in range(7000):parts.append(compressor.compress(row)) +parts.append(compressor.flush()) +data=b'\x89PNG\r\n\x1a\n'+chunk(b'IHDR',struct.pack('>IIBBBBB',7000,7000,8,2,0,0,0))+chunk(b'IDAT',b''.join(parts))+chunk(b'IEND',b'') +with repo.connection() as db: + item=db.execute('select staging_key from attachments where id=%s',('ATTACHMENT',)).fetchone() + storage.client.put_object(Bucket=s.bucket,Key=item['staging_key'],Body=data,ContentType='image/png') + db.execute('update attachments set size_bytes=%s,checksum=%s where id=%s',(len(data),hashlib.sha256(data).hexdigest(),'ATTACHMENT')) +print('injected 49-million-pixel complete PNG into trusted staging with matching metadata') +""".replace( + "ATTACHMENT", attachment["id"] + ) + print(execute(code), flush=True) + compose("start", "worker") + wait_for(lambda: metadata(c, a, attachment)["status"] == "failed", 60) + check( + metadata(c, a, attachment)["error_code"] == "invalid_image", + "worker pixel guard did not reject", + ) + check(job(attachment)["attempt"] == 1, "permanent pixel error retried") + check( + sql( + "select count(*) from attachment_variants where attachment_id='" + + attachment["id"] + + "';" + ) + == "0", + "invalid image published variants", + ) + print( + "PASS worker independently rejects >40 million pixels before full decode; FAILED on first attempt", + flush=True, + ) + sql( + "update attachments set updated_at=now()-interval '2 days' where id='" + + attachment["id"] + + "';" + ) + fresh = "staging/fresh-proof-" + uuid.uuid4().hex + code = r"""from pipeline.storage import Storage +from pipeline.repository import Repository +from pipeline.cleanup import Cleanup +from pipeline.config import Settings +s=Settings();storage=Storage(s);repo=Repository(s) +storage.client.put_object(Bucket=s.bucket,Key='FRESH',Body=b'fresh-proof') +Cleanup(repo,storage).run() +storage.client.head_object(Bucket=s.bucket,Key='FRESH') +print('fresh orphan retained by grace') +storage.client.delete_object(Bucket=s.bucket,Key='FRESH') +""".replace( + "FRESH", fresh + ) + print(execute(code), flush=True) + check( + metadata(c, a, attachment)["error_code"] == "staging_expired", + "expired failed staging retained", + ) + check( + sql("select staging_key IS NULL from attachments where id='" + attachment["id"] + "';") + == "t", + "staging reference retained", + ) + from pipeline_support import COMPOSE + + command = COMPOSE + [ + "run", + "--rm", + "--no-deps", + "-T", + "pipeline-admin", + "replay", + attachment["id"], + ] + import subprocess + + response = subprocess.run(command, capture_output=True, text=True, timeout=30) + check( + response.returncode != 0 and "staging_expired" in response.stderr, "expired replay accepted" + ) + check(metadata(c, a, attachment)["status"] == "failed", "unsafe replay changed status") + check( + c.call("GET", "/api/v1/attachments/" + protected["id"] + "/content", actor=b)["bytes"] + == original, + "cleanup deleted referenced original", + ) + print( + "PASS expired failed staging cleaned; unsafe replay refused; referenced ready bytes retained", + flush=True, + ) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/pipeline_support.py b/student-tests/pipeline_support.py new file mode 100644 index 0000000..77e7753 --- /dev/null +++ b/student-tests/pipeline_support.py @@ -0,0 +1,168 @@ +import json +import subprocess +import time +from pathlib import Path +from client import Client, check + +COMPOSE = ["docker", "compose"] + + +def compose(*args, data=None): + result = subprocess.run( + COMPOSE + list(args), input=data, text=True, capture_output=True, timeout=120 + ) + check(result.returncode == 0, "Compose operator action failed: " + args[0]) + return result.stdout.strip() + + +def sql(statement): + return compose( + "exec", + "-T", + "db", + "psql", + "-v", + "ON_ERROR_STOP=1", + "-U", + "operator", + "-d", + "messenger", + "-At", + data=statement, + ) + + +def broker(*args): + code = "import json,redis,sys;d=json.load(open('/audit-secrets/operator/credentials.json'));r=redis.Redis(host='broker',username='operator',password=d['broker_operator_password'],ssl=True,ssl_ca_certs='/audit-secrets/public/ca.crt',ssl_certfile='/audit-secrets/operator/service.crt',ssl_keyfile='/audit-secrets/operator/service.key',ssl_check_hostname=True,decode_responses=True);v=r.execute_command(*json.load(sys.stdin));print('PONG' if v is True else json.dumps(v) if isinstance(v,list) else v)" + return compose("run", "--rm", "--no-deps", "-T", "audit", "-c", code, data=json.dumps(args)) + + +def wait_for(predicate, timeout=90, message="condition timed out"): + deadline = time.monotonic() + timeout + while time.monotonic() < deadline: + if predicate(): + return + time.sleep(0.25) + raise AssertionError(message) + + +def ready_api(): + observed = set() + + def probe(): + try: + states = compose("ps", "--format", "{{.Health}}", "api").splitlines() + if len(states) != 2 or any(state != "healthy" for state in states): + return False + response = Client(base_url="https://127.0.0.1:8443").call( + "GET", "/health/ready", schema="Health" + ) + observed.add(response["headers"].get("X-Instance-Id")) + return len(observed - {None}) == 2 + except Exception: + return False + + wait_for(probe, 120, "API not ready") + + +def metadata(client, actor, attachment): + return client.call( + "GET", "/api/v1/attachments/" + attachment["id"], actor=actor, schema="Attachment" + )["json"] + + +def wait_ready(client, actor, attachment, timeout=90): + def probe(): + value = metadata(client, actor, attachment) + check(value["status"] != "failed", "attachment failed") + return value["status"] == "ready" + + wait_for(probe, timeout, "attachment not ready") + return metadata(client, actor, attachment) + + +def job(attachment): + text = sql( + "select row_to_json(j) from processing_jobs j where attachment_id='" + + attachment["id"] + + "' order by pipeline_version desc limit 1;" + ) + return json.loads(text) + + +def payload(attachment, version=None): + row = job(attachment) + text = sql("select payload from processing_outbox where job_id='" + row["job_id"] + "';") + value = json.loads(text) + if version is not None: + value["pipeline_version"] = version + return value + + +def inject_duplicate(value): + return broker("XADD", "attachment-jobs", "*", "job", json.dumps(value)) + + +def fault(attachment, point, action, count=1): + version = job(attachment)["pipeline_version"] + sql( + "INSERT INTO pipeline_faults(attachment_id,pipeline_version,point,action,remaining) VALUES ('" + + attachment["id"] + + "'," + + str(version) + + ",'" + + point + + "','" + + action + + "'," + + str(count) + + ");" + ) + + +def fault_hit(attachment, point): + return ( + sql( + "select coalesce(sum(hits),0) from pipeline_faults where attachment_id='" + + attachment["id"] + + "' and point='" + + point + + "';" + ) + != "0" + ) + + +def operator(action, attachment, version=2): + text = compose( + "run", + "--rm", + "--no-deps", + "-T", + "pipeline-admin", + action, + attachment["id"], + "--version", + str(version), + ) + return json.loads(text) + + +def manifest(attachment): + return sql( + "select name,object_key,sha256 from attachment_variants where attachment_id='" + + attachment["id"] + + "' order by pipeline_version,name;" + ) + + +def events(attachment, event): + return int( + sql( + "select count(*) from pipeline_events e join processing_jobs j using(job_id) where j.attachment_id='" + + attachment["id"] + + "' and e.event='" + + event + + "';" + ) + ) diff --git a/student-tests/pipeline_upload_crash.py b/student-tests/pipeline_upload_crash.py new file mode 100644 index 0000000..209e40a --- /dev/null +++ b/student-tests/pipeline_upload_crash.py @@ -0,0 +1,86 @@ +from concurrent.futures import ThreadPoolExecutor +import json +import uuid +from pathlib import Path + +from client import Client, check, run +from pipeline_support import compose, ready_api, sql, wait_for, wait_ready + + +def staging_keys(): + code = """import json +from pipeline.config import Settings +from pipeline.storage import Storage +s=Storage(Settings()) +print(json.dumps([o['Key'] for p in s.client.get_paginator('list_objects_v2').paginate(Bucket=s.settings.bucket,Prefix='staging/') for o in p.get('Contents',[])])) +""" + return set(json.loads(compose("exec", "-T", "dispatcher", "python", "-c", code))) + + +def main(): + ready_api() + client = Client(base_url="https://127.0.0.1:8443", timeout=45) + actor, _, _, chat = client.bootstrap() + filename = "crash-" + uuid.uuid4().hex + ".png" + before = staging_keys() + sql( + "create function proof_upload_crash() returns trigger language plpgsql as $$ begin " + "if NEW.filename='" + + filename + + "' then perform pg_sleep(45); end if; return NEW; end; $$; " + "create trigger proof_upload_crash before insert on attachments " + "for each row execute function proof_upload_crash();" + ) + try: + with ThreadPoolExecutor(max_workers=1) as pool: + request = pool.submit( + client.call, + "POST", + "/api/v1/chats/" + chat["id"] + "/attachments?filename=" + filename, + 202, + actor=actor, + raw=Path("tests/fixtures/sample.png").read_bytes(), + headers={"Content-Type": "image/png"}, + schema="Attachment", + ) + wait_for( + lambda: sql("select count(*) from pg_stat_activity where wait_event='PgSleep';") + != "0", + 15, + "upload did not reach S3-before-COMMIT window", + ) + orphan = staging_keys() - before + check(len(orphan) == 1, "no staged source before attachment COMMIT") + compose("kill", "-s", "SIGKILL", "api") + try: + request.result(timeout=20) + except Exception: + pass + else: + raise AssertionError("killed upload returned a confirmed attachment") + check( + sql("select count(*) from attachments where filename='" + filename + "';") == "0", + "uncommitted attachment survived process death", + ) + for key in orphan: + check( + sql("select count(*) from attachments where staging_key='" + key + "';") == "0", + "orphan unexpectedly referenced", + ) + finally: + sql("drop trigger proof_upload_crash on attachments; drop function proof_upload_crash();") + compose("start", "api") + ready_api() + attachment, body = client.attachment(actor, chat) + wait_ready(client, actor, attachment) + downloaded = client.call( + "GET", "/api/v1/attachments/" + attachment["id"] + "/content", 200, actor=actor + ) + check(downloaded["bytes"] == body, "upload after API recovery corrupted") + print( + "PASS SIGKILL after S3 PUT before DB COMMIT: no confirmed response, DB rolled back, staged orphan unreferenced; same session uploads after recovery" + ) + + +if __name__ == "__main__": + run(main) diff --git a/student-tests/revocation_probe.py b/student-tests/revocation_probe.py new file mode 100644 index 0000000..4e8b733 --- /dev/null +++ b/student-tests/revocation_probe.py @@ -0,0 +1,75 @@ +import json +import ssl +import urllib.error +import urllib.request + +import boto3 +import psycopg +from botocore.exceptions import ClientError + +from tls_matrix import BASE, broker, context, deny_http, http + + +def main(): + before = json.loads((BASE / "operator/worker-before.json").read_text()) + assert deny_http("otel-collector", 4318, "/v1/traces", "revoked-worker", "POST", b"{}") in ( + 400, + "tls_rejected", + ) + try: + assert not broker("revoked-worker") + except (ssl.SSLError, ConnectionResetError): + pass + req = urllib.request.Request( + "https://openbao:8200/v1/auth/cert/login", + json.dumps({"name": "worker"}).encode(), + {"Content-Type": "application/json"}, + ) + try: + urllib.request.urlopen(req, context=context("revoked-worker"), timeout=3) + except urllib.error.HTTPError as error: + assert error.code == 400 or error.code == 403 + else: + raise AssertionError("Revoked worker authenticated to OpenBao") + try: + psycopg.connect( + host="db", + dbname="messenger", + user=before["postgres_user"], + password=before["postgres_password"], + sslmode="verify-full", + sslrootcert=str(BASE / "public/ca.crt"), + connect_timeout=3, + ) + except psycopg.OperationalError as error: + assert "password authentication failed" in str(error) + else: + raise AssertionError("Old database secret accepted") + s3 = boto3.client( + "s3", + endpoint_url="https://minio:9000", + aws_access_key_id=before["s3_access_key_id"], + aws_secret_access_key=before["s3_secret_access_key"], + verify=str(BASE / "public/ca.crt"), + ) + try: + s3.list_objects_v2(Bucket="messenger-attachments", MaxKeys=1) + except ClientError as error: + assert error.response["ResponseMetadata"]["HTTPStatusCode"] == 403 + else: + raise AssertionError("Disabled S3 credentials accepted") + result = { + "status": "PASS", + "fresh_connections": True, + "old_certificate_collector_denied": True, + "old_certificate_broker_with_current_password_denied": True, + "old_certificate_bao_auth_denied": True, + "old_postgres_password_denied": True, + "disabled_s3_key_denied": True, + "tls_resumption": "gateway tickets and cache disabled", + } + print(json.dumps(result)) + + +if __name__ == "__main__": + main() diff --git a/student-tests/security_auth.py b/student-tests/security_auth.py new file mode 100644 index 0000000..618e132 --- /dev/null +++ b/student-tests/security_auth.py @@ -0,0 +1,135 @@ +import base64 +import concurrent.futures +import json +import math +import statistics +import sys +import time +from collections import Counter +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "tests")) +from argon2 import PasswordHasher +from client import Client, check +from provision import compose +from bootstrap import ROOT, write +from security_lifecycle import wait, ready + + +def sql(statement): + return compose( + "exec", + "-T", + "db", + "psql", + "-U", + "operator", + "-d", + "messenger", + "-At", + "-v", + "ON_ERROR_STOP=1", + stdin=statement, + ).strip() + + +def main(): + client = Client(base_url="https://127.0.0.1:8443", ca_file="secrets/public/ca.crt") + wait(lambda: ready(client), 120) + actor = client.user("passwordproof") + basic = base64.b64encode( + (actor["registration"]["username"] + ":" + actor["registration"]["password"]).encode() + ).decode() + old = PasswordHasher( + time_cost=2, memory_cost=16384, parallelism=1, hash_len=32, salt_len=16 + ).hash(actor["registration"]["password"]) + sql("UPDATE users SET password_hash='" + old + "' WHERE id='" + actor["id"] + "';") + latency = [] + replicas = set() + for _ in range(12): + start = time.monotonic() + response = client.call( + "POST", + "/api/v1/auth/sessions", + 201, + headers={"Authorization": "Basic " + basic}, + schema="Session", + ) + latency.append(1000 * (time.monotonic() - start)) + replicas.add(response["headers"]["X-Instance-Id"]) + parameters = sql( + "SELECT split_part(password_hash,'$',4) FROM users WHERE id='" + actor["id"] + "';" + ) + check(parameters == "m=19456,t=2,p=1", "Successful login did not upgrade hash") + sql( + "UPDATE sessions SET expires_at=created_at+interval '1 microsecond' WHERE user_id='" + + actor["id"] + + "';" + ) + client.call("GET", "/api/v1/users/me", 401, actor=actor) + remaining = 60 - time.time() % 60 + if remaining < 10: + time.sleep(remaining + 0.1) + sql("DELETE FROM login_budget;") + bad = base64.b64encode( + (actor["registration"]["username"] + ":invalid-password").encode() + ).decode() + + def request(_): + local = Client(base_url="https://127.0.0.1:8443", ca_file="secrets/public/ca.crt") + r = local.call( + "POST", "/api/v1/auth/sessions", (401, 429), headers={"Authorization": "Basic " + bad} + ) + if r["status"] == 429: + check(int(r["headers"]["Retry-After"]) >= 1, "Retry-After missing") + return r["status"], r["headers"]["X-Instance-Id"] + + start = time.monotonic() + with concurrent.futures.ThreadPoolExecutor(max_workers=8) as pool: + values = list(pool.map(request, range(72))) + check({r for _, r in values} == replicas and len(replicas) == 2, "Both replicas not exercised") + counts = Counter(code for code, _ in values) + check(counts[429] >= 12 and counts[401] > 0, "Shared budget did not bound attempts") + check(sql("SELECT max(attempts) FROM login_budget;") == "61", "Shared counter did not saturate") + result = dict( + status="PASS", + argon2id=dict( + memory_kib=19456, + iterations=2, + parallelism=1, + salt_bytes=16, + hash_bytes=32, + rehash_on_success=True, + ), + login_measurement=dict( + samples=12, + end_to_end_ms=dict( + p50=round(statistics.median(latency), 3), + p95=round(sorted(latency)[math.ceil(0.95 * len(latency)) - 1], 3), + ), + api_cpu_limit=1, + api_memory_mib=512, + ), + dos_budget=dict( + global_per_minute=60, + per_replica_hash_slots=2, + replicas=2, + max_simultaneous_kdf_memory_mib=76, + attempts=72, + concurrency=8, + duration_seconds=round(time.monotonic() - start, 3), + statuses=dict(counts), + shared_saturating_counter=61, + retry_after=True, + ), + expiry_rejected=True, + limitations="fixed global minute window; at a window boundary up to 120 admissions; global protection may deny legitimate users during abuse; latency includes HTTP/TLS/DB", + ) + write(ROOT / "evidence/security-auth.json", json.dumps(result, indent=2) + "\n") + sql("DELETE FROM login_budget;") + print(json.dumps(result, indent=2)) + + +if __name__ == "__main__": + main() diff --git a/student-tests/security_baseline.py b/student-tests/security_baseline.py new file mode 100644 index 0000000..301de11 --- /dev/null +++ b/student-tests/security_baseline.py @@ -0,0 +1,159 @@ +import json +import subprocess +import sys +import uuid +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) +from bootstrap import PRIVATE, ROOT, write +from provision import compose + + +def database_baseline(): + script = """BEGIN; +CREATE ROLE baseline_worker SUPERUSER NOLOGIN; +SET LOCAL ROLE baseline_worker; +SELECT count(*) FROM users; +SELECT count(*) FROM sessions; +DELETE FROM messages WHERE false; +CREATE TABLE baseline_rollback_probe(id int); +ROLLBACK; +""" + compose( + "exec", + "-T", + "db", + "psql", + "-v", + "ON_ERROR_STOP=1", + "-U", + "operator", + "-d", + "messenger", + stdin=script, + ) + return dict( + isolation="transaction rolled back; NOLOGIN role", + read_password_table=True, + read_session_table=True, + delete_messages_permission=True, + ddl=True, + ) + + +def broker_baseline(): + name = "lab7-isolated-broker-" + uuid.uuid4().hex[:8] + image = ( + "redis:7.4-alpine@sha256:8da19c7399dca900c6822a1cf30f9d2285585e2c4b457ff4095b0f4500054d3f" + ) + try: + subprocess.run( + [ + "docker", + "run", + "-d", + "--name", + name, + "--network", + "none", + "--memory", + "64m", + "--cpus", + "0.2", + image, + "redis-server", + "--bind", + "127.0.0.1", + "--save", + "", + "--appendonly", + "no", + ], + capture_output=True, + check=True, + ) + for command in [ + ("SET", "foreign-secret", "synthetic"), + ("GET", "foreign-secret"), + ("FLUSHALL",), + ]: + result = ( + subprocess.check_output(["docker", "exec", name, "redis-cli", *command]) + .decode() + .strip() + ) + assert result in ("OK", "synthetic") + finally: + subprocess.run(["docker", "rm", "-f", name], capture_output=True, check=True) + return dict( + isolation="separate disposable network-none container, no volumes", + foreign_keys=True, + flush_all=True, + ) + + +def s3_baseline(): + data = json.loads((PRIVATE / "operator/credentials.json").read_text()) + name = "baseline-" + uuid.uuid4().hex[:8] + bucket = "lab7-" + name + password = __import__("secrets").token_hex(24) + policy = dict( + Version="2012-10-17", + Statement=[ + dict( + Effect="Allow", + Action=["s3:*"], + Resource=["arn:aws:s3:::" + bucket, "arn:aws:s3:::" + bucket + "/*"], + ) + ], + ) + write(ROOT / "infra/security/policies/baseline-s3.json", json.dumps(policy)) + prefix = f"set -eu\nmc alias set local https://minio:9000 {data['minio_root_user']} {data['minio_root_password']} >/dev/null\n" + setup = ( + prefix + + f"mc mb local/{bucket} >/dev/null\nmc admin user add local {name} {password} >/dev/null\nmc admin policy create local {name} /policies/baseline-s3.json >/dev/null\nmc admin policy attach local {name} --user {name} >/dev/null\n" + ) + write( + PRIVATE / "operator/baseline.json", + json.dumps(dict(access=name, secret=password, bucket=bucket)), + ) + try: + compose("run", "--rm", "--no-deps", "-T", "s3-admin", stdin=setup) + code = "import boto3,json;d=json.load(open('/audit-secrets/operator/baseline.json'));s=boto3.client('s3',endpoint_url='https://minio:9000',aws_access_key_id=d['access'],aws_secret_access_key=d['secret'],verify='/audit-secrets/public/ca.crt');s.put_object(Bucket=d['bucket'],Key='admin/synthetic',Body=b'synthetic');assert s.get_object(Bucket=d['bucket'],Key='admin/synthetic')['Body'].read()==b'synthetic';s.delete_object(Bucket=d['bucket'],Key='admin/synthetic');print('PASS broad prefix operations in disposable bucket')" + compose("run", "--rm", "--no-deps", "-T", "audit", "-c", code) + finally: + cleanup = ( + prefix + + f"mc admin user rm local {name} >/dev/null\nmc admin policy rm local {name} >/dev/null\nmc rb --force local/{bucket} >/dev/null\n" + ) + compose("run", "--rm", "--no-deps", "-T", "s3-admin", stdin=cleanup) + (ROOT / "infra/security/policies/baseline-s3.json").unlink() + (PRIVATE / "operator/baseline.json").unlink() + return dict( + isolation="disposable private bucket and temporary principal", + arbitrary_prefix_put_get_delete=True, + ) + + +def main(): + baseline = dict(database=database_baseline(), broker=broker_baseline(), s3=s3_baseline()) + script = (ROOT / "student-tests/worker_rights.py").read_bytes() + result = subprocess.run( + ["docker", "compose", "exec", "-T", "--index", "1", "worker", "python", "-"], + input=script, + capture_output=True, + check=True, + ) + restricted = json.loads(result.stdout) + output = dict( + status="PASS", + baseline=baseline, + least_privilege=restricted, + interpretation="Reproduces broad lab6 permissions in isolated resources; production lab7 privileges are never broadened. Worker can still corrupt pipeline metadata/results, exhaust its processing budget and read image originals; revocation is needed in addition to least privilege.", + ) + write(ROOT / "evidence/worker-compromise.json", json.dumps(output, indent=2) + "\n") + print(json.dumps(output, indent=2)) + + +if __name__ == "__main__": + main() diff --git a/student-tests/security_inventory.py b/student-tests/security_inventory.py new file mode 100644 index 0000000..49be22f --- /dev/null +++ b/student-tests/security_inventory.py @@ -0,0 +1,114 @@ +import base64 +import hashlib +import json +import os +import platform +import subprocess +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) +from bootstrap import PRIVATE, ROOT, write +from capture import private_values +from provision import compose + + +def main(): + ids = compose("ps", "-q").splitlines() + containers = json.loads(subprocess.check_output(["docker", "inspect", *ids])) + rows = [] + for item in containers: + role = item["Config"]["Labels"]["com.docker.compose.service"] + host = item["HostConfig"] + assert not host["Privileged"] and host["NetworkMode"] != "host" + assert not any("docker.sock" in mount["Destination"] for mount in item["Mounts"]) + assert host["Memory"] > 0 and (host["NanoCpus"] > 0 or host["CpuQuota"] > 0) + ports = host.get("PortBindings") or {} + for bindings in ports.values(): + for binding in bindings or []: + assert binding["HostIp"] == "127.0.0.1" + if role in ("api", "worker", "dispatcher") or role.endswith("-agent"): + uid = ( + subprocess.check_output(["docker", "exec", item["Id"], "id", "-u"]).decode().strip() + ) + assert uid != "0" and host["ReadonlyRootfs"] + assert "ALL" in host["CapDrop"] and "no-new-privileges:true" in host["SecurityOpt"] + assert not ports + assert not any( + "operator" in mount.get("Source", "").replace("\\", "/").split("/") + for mount in item["Mounts"] + ) + for value in private_values(): + assert value not in str(item["Config"]["Env"]) + rows.append( + dict( + role=role, + container=item["Name"].lstrip("/"), + image=item["Image"], + user=item["Config"]["User"], + read_only=host["ReadonlyRootfs"], + cap_drop=host["CapDrop"], + security_opt=host["SecurityOpt"], + memory_bytes=host["Memory"], + nano_cpus=host["NanoCpus"], + published=ports, + mount_destinations=[m["Destination"] for m in item["Mounts"]], + ) + ) + assert sum(r["role"] == "api" for r in rows) == 2 + assert sum(r["role"] == "worker" for r in rows) == 2 + logs = compose( + "logs", + "--no-color", + "--since", + "30m", + "api", + "worker", + "dispatcher", + "api-agent", + "worker-agent", + "dispatcher-agent", + ) + assert not any(v in logs for v in private_values()) + assert "-----BEGIN PRIVATE KEY-----" not in logs + paths = ["README.md", "COURSE.md", "CONTRIBUTING.md", "MAINTAINERS.md", "Makefile", "lab.json"] + paths += ( + subprocess.check_output( + ["git", "ls-tree", "-r", "--name-only", "20afc2c", "tests", "contracts"], cwd=ROOT + ) + .decode() + .splitlines() + ) + protected = [] + for name in paths: + if name == "contracts/trust-matrix.md": + continue + before = subprocess.check_output(["git", "show", "20afc2c:" + name], cwd=ROOT) + actual = (ROOT / name).read_bytes() + assert before.replace(b"\r\n", b"\n") == actual.replace(b"\r\n", b"\n"), name + protected.append(dict(path=name, sha256=hashlib.sha256(actual).hexdigest())) + engine = json.loads( + subprocess.check_output(["docker", "info", "--format", "{{json .}}"], cwd=ROOT) + ) + inventory = dict( + status="PASS", + host=dict( + platform=platform.platform(), + logical_cpus=os.cpu_count(), + docker_cpus=engine["NCPU"], + docker_memory_bytes=engine["MemTotal"], + docker_version=engine["ServerVersion"], + ), + containers=rows, + no_private_values_in_environment_or_recent_logs=True, + unchanged_contract_and_public_tests=protected, + trust_matrix="required student-filled exception", + ) + write(ROOT / "evidence/security-inventory.json", json.dumps(inventory, indent=2) + "\n") + print( + "PASS actual container hardening, two API and two workers, no published replica ports, scoped mounts, secret-free environments/logs, original contracts and public tests" + ) + + +if __name__ == "__main__": + main() diff --git a/student-tests/security_lifecycle.py b/student-tests/security_lifecycle.py new file mode 100644 index 0000000..4ca7138 --- /dev/null +++ b/student-tests/security_lifecycle.py @@ -0,0 +1,236 @@ +import hashlib +import json +import secrets +import shutil +import sys +import time +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "scripts")) +sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "tests")) + +import bootstrap +from bootstrap import PRIVATE, ROOT, write +from provision import bao, compose, initialize_bao, initialize_db, initialize_s3, prepare +from client import Client, check +from cryptography import x509 + + +def sql(statement): + return compose( + "exec", + "-T", + "db", + "psql", + "-U", + "operator", + "-d", + "messenger", + "-v", + "ON_ERROR_STOP=1", + "-At", + stdin=statement, + ).strip() + + +def wait(predicate, timeout=90): + started = time.monotonic() + while time.monotonic() - started < timeout: + if predicate(): + return round(time.monotonic() - started, 3) + time.sleep(1) + raise AssertionError("Recovery deadline exceeded") + + +def ready(client): + try: + return client.call("GET", "/health/ready")["status"] == 200 + except Exception: + return False + + +def identity_images(): + result = {} + for role in ("api", "worker", "dispatcher"): + ids = compose("ps", "-a", "-q", role).splitlines() + result[role] = sorted( + { + json.loads(__import__("subprocess").check_output(["docker", "inspect", value]))[0][ + "Image" + ] + for value in ids + } + ) + return result + + +def minio_disable(identity): + operator = json.loads((PRIVATE / "operator/credentials.json").read_text()) + script = f"set -eu\nmc alias set local https://minio:9000 {operator['minio_root_user']} {operator['minio_root_password']} >/dev/null\nmc admin user disable local {identity} >/dev/null\n" + compose("run", "--rm", "--no-deps", "-T", "s3-admin", stdin=script) + + +def revoke_and_rotate(): + path = PRIVATE / "operator/credentials.json" + data = json.loads(path.read_text()) + old = data["roles"]["worker"].copy() + write(PRIVATE / "operator/worker-before.json", json.dumps(old)) + shutil.copytree(PRIVATE / "worker", PRIVATE / "revoked-worker", dirs_exist_ok=True) + old_cert = x509.load_pem_x509_certificate((PRIVATE / "worker/service.crt").read_bytes()) + root = json.loads((PRIVATE / "operator/bao-init.json").read_text())["root_token"] + bao("auth/cert/certs/worker", token=root, method="DELETE") + minio_disable(old["s3_access_key_id"]) + values = data["roles"]["worker"] + values.update( + postgres_password=secrets.token_hex(24), + s3_access_key_id="worker-" + secrets.token_hex(4), + s3_secret_access_key=secrets.token_hex(24), + broker_user="worker-" + secrets.token_hex(4), + broker_password=secrets.token_hex(24), + ) + write(path, json.dumps(data)) + initialize_db() + sql( + "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE usename='worker' AND pid<>pg_backend_pid();" + ) + key, ca = bootstrap.authority() + old_crl = x509.load_pem_x509_crl((PRIVATE / "public/ca.crl").read_bytes()) + serials = {entry.serial_number for entry in old_crl} | {old_cert.serial_number} + bootstrap.crl(key, ca, serials) + bootstrap.leaf("worker", key, ca) + prepare() + initialize_s3() + bao("auth/cert/crls/lab7", {"crl": (PRIVATE / "public/ca.crl").read_text()}, root) + initialize_bao() + compose("exec", "-T", "gateway", "nginx", "-s", "reload") + compose("restart", "broker") + output = compose("run", "--rm", "--no-deps", "-T", "audit", "/checks/revocation_probe.py") + result = json.loads(output) + check(result["status"] == "PASS", "Old credentials still work") + return result + + +def expiry_probe(): + key, ca = bootstrap.authority() + original = bootstrap.PRIVATE + try: + bootstrap.PRIVATE = PRIVATE / "operator/expiry" + bootstrap.leaf("worker", key, ca, minutes=0) + finally: + bootstrap.PRIVATE = original + shutil.copytree( + PRIVATE / "operator/expiry/worker", PRIVATE / "expired-worker", dirs_exist_ok=True + ) + time.sleep(1) + command = "import sys;sys.path.insert(0,'/checks');from tls_matrix import deny_http;assert deny_http('otel-collector',4318,'/v1/traces','expired-worker','POST',b'{}') in (400,'tls_rejected');print('PASS expired allowed-role certificate rejected')" + return compose("run", "--rm", "--no-deps", "-T", "audit", "-c", command).strip() + + +def sealed_bao(client, actor): + init = json.loads((PRIVATE / "operator/bao-init.json").read_text()) + started = time.monotonic() + bao("sys/seal", {}, init["root_token"]) + try: + elapsed = wait(lambda: not ready(client), 50) + client.call("GET", "/health/live") + response = client.call("GET", "/api/v1/users/me", 503, actor=actor) + check( + response["json"]["error"]["code"] == "unavailable", + "Expiry must be bounded and explicit", + ) + finally: + bao("sys/unseal", {"key": init["keys"][0]}) + recovery = wait(lambda: ready(client), 30) + client.call("GET", "/api/v1/users/me", actor=actor) + return dict( + readiness_fail_closed_seconds=elapsed, + recovery_seconds=recovery, + liveness=200, + existing_session_survives=True, + total_seconds=round(time.monotonic() - started, 3), + ) + + +def main(): + client = Client(base_url="https://127.0.0.1:8443", ca_file=str(PRIVATE / "public/ca.crt")) + wait(lambda: ready(client), 120) + actor, _, _, chat = client.bootstrap() + before = identity_images() + compose("stop", "worker") + png = (ROOT / "tests/fixtures/sample.png").read_bytes() + attachments = [] + for _ in range(10): + value = client.call( + "POST", + "/api/v1/chats/" + chat["id"] + "/attachments?filename=security.png", + 202, + actor=actor, + raw=png, + headers={"Content-Type": "image/png"}, + schema="Attachment", + )["json"] + check(value["status"] == "queued", "Expected durable queued snapshot") + attachments.append(value) + print("Accepted ten durable jobs before revocation", flush=True) + started = time.monotonic() + revoked = revoke_and_rotate() + expected = json.loads((PRIVATE / "operator/credentials.json").read_text())["roles"]["worker"][ + "s3_access_key_id" + ] + + def refreshed(): + code = ( + "import json;assert json.load(open('/runtime/secrets.json'))['s3_access_key_id']=='" + + expected + + "'" + ) + try: + compose("exec", "-T", "worker-agent", "python", "-c", code) + return True + except RuntimeError: + return False + + wait(refreshed, 30) + compose("start", "worker") + for attachment in attachments: + final = client.wait_ready(actor, attachment) + check(len(final["variants"]) == 3, "Variant set not complete") + content = client.call( + "GET", "/api/v1/attachments/" + attachment["id"] + "/content", actor=actor + )["bytes"] + check( + hashlib.sha256(content).digest() == hashlib.sha256(png).digest(), + "Confirmed original corrupted", + ) + recovery = round(time.monotonic() - started, 3) + check(before == identity_images(), "Rotation rebuilt workload images") + ids = ",".join("'" + item["id"] + "'" for item in attachments) + rows = sql( + "SELECT count(*),count(DISTINCT attachment_id) FROM attachment_variants WHERE attachment_id IN (" + + ids + + ");" + ) + check(rows == "30|10", "Duplicate or missing published effects") + expiry = expiry_probe() + sealed = sealed_bao(client, actor) + result = dict( + status="PASS", + track=1, + confirmed_jobs=10, + ready_after_revoke=10, + originals_sha256_verified=10, + manifest_rows=30, + distinct_attachments=10, + revocation=revoked, + recovery_seconds=recovery, + images_unchanged=True, + expiry=expiry, + sealed_bao=sealed, + limitations="single host; in-flight requests finish within their existing operation budgets; static KV credentials require explicit downstream revocation", + ) + write(ROOT / "evidence/security-lifecycle.json", json.dumps(result, indent=2) + "\n") + print(json.dumps(result, indent=2)) + + +if __name__ == "__main__": + main() diff --git a/student-tests/telemetry_support.py b/student-tests/telemetry_support.py new file mode 100644 index 0000000..d662e5d --- /dev/null +++ b/student-tests/telemetry_support.py @@ -0,0 +1,90 @@ +import json +import os +import time +from pathlib import Path +from urllib.parse import urlencode +from urllib.request import Request, urlopen +import ssl +import base64 + +from client import check + + +GRAFANA = os.getenv("GRAFANA_URL", "https://127.0.0.1:13007") +EVIDENCE = Path("evidence") + + +def fetch(path, **params): + suffix = "?" + urlencode(params) if params else "" + password = Path("secrets/operator/grafana_password").read_text().strip() + auth = base64.b64encode(("admin:" + password).encode()).decode() + request = Request(GRAFANA + path + suffix, headers={"Authorization": "Basic " + auth}) + context = ssl.create_default_context(cafile="secrets/public/ca.crt") + with urlopen(request, timeout=8, context=context) as response: + return json.load(response) + + +def datasource(name, path, **params): + return fetch(f"/api/datasources/proxy/uid/{name}{path}", **params) + + +def prom(expression): + response = datasource("prometheus", "/api/v1/query", query=expression) + check(response["status"] == "success", "PromQL query failed") + return response["data"]["result"] + + +def value(expression, default=0.0): + values = prom(expression) + return float(values[0]["value"][1]) if values else default + + +def states(): + return { + row["name"]: row["state"] + for row in datasource("prometheus", "/api/v1/rules")["data"]["groups"][0]["rules"] + } + + +def logs(query, since=None, limit=100): + result = datasource( + "loki", + "/loki/api/v1/query_range", + query=query, + start=int((since or time.time() - 180) * 1e9), + limit=limit, + ) + return result["data"]["result"] + + +def spans(trace_id): + trace = datasource("tempo", "/api/traces/" + trace_id) + return [ + dict( + span, + service=next( + a["value"]["stringValue"] + for a in batch["resource"]["attributes"] + if a["key"] == "service.name" + ), + ) + for batch in trace.get("batches", trace.get("resourceSpans", [])) + for scope in batch["scopeSpans"] + for span in scope["spans"] + ] + + +def save(name, data): + (EVIDENCE / name).write_text( + json.dumps(data, indent=2, ensure_ascii=False) + "\n", encoding="utf-8" + ) + + +def wait_until(probe, timeout, description): + deadline = time.monotonic() + timeout + while time.monotonic() < deadline: + result = probe() + if result: + return result + time.sleep(1) + raise AssertionError(description) diff --git a/student-tests/tls_matrix.py b/student-tests/tls_matrix.py new file mode 100644 index 0000000..4914f66 --- /dev/null +++ b/student-tests/tls_matrix.py @@ -0,0 +1,168 @@ +from http.client import HTTPResponse, RemoteDisconnected +import json +import socket +import ssl +import time +from pathlib import Path + +BASE = Path("/audit-secrets") + + +def context(role=None, trust=True): + ctx = ( + ssl.create_default_context(cafile=str(BASE / "public/ca.crt")) + if trust + else ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) + ) + if role: + ctx.load_cert_chain(str(BASE / role / "service.crt"), str(BASE / role / "service.key")) + return ctx + + +def http( + host, port, path, role=None, method="GET", body=b"", trust=True, hostname=None, headers=None +): + with socket.create_connection((host, port), timeout=4) as raw: + with context(role, trust).wrap_socket(raw, server_hostname=hostname or host) as connection: + request = ( + f"{method} {path} HTTP/1.1\r\nHost: {hostname or host}\r\nConnection: close\r\nContent-Type: application/json\r\nContent-Length: {len(body)}\r\n\r\n".encode() + + body + ) + if headers: + extra = "".join(k + ": " + v + "\r\n" for k, v in headers.items()).encode() + request = request.replace(b"\r\n\r\n", b"\r\n" + extra + b"\r\n", 1) + connection.sendall(request) + response = HTTPResponse(connection) + response.begin() + data = response.read() + return response.status, data + + +def deny_http(*args, **kwargs): + try: + status, _ = http(*args, **kwargs) + except (ssl.SSLError, ConnectionResetError, RemoteDisconnected): + return "tls_rejected" + assert status in (400, 401, 403), f"Expected identity rejection, received {status}" + return status + + +def broker(role, host="broker", port=6379, identity="worker"): + values = json.loads((BASE / "operator/credentials.json").read_text())["roles"][identity] + with socket.create_connection((host, port), timeout=4) as raw: + with context(role).wrap_socket(raw, server_hostname=host) as connection: + username = values["broker_user"] if host == "broker" else "api" + password = values["broker_password"] if host == "broker" else values["cache_password"] + command = f"AUTH {username} {password}\r\nPING\r\n".encode() + connection.sendall(command) + result = connection.recv(1024) + if b"+OK" in result and b"+PONG" not in result: + result += connection.recv(1024) + return b"+PONG" in result + + +def main(): + result = {} + addresses = sorted( + {row[4][0] for row in socket.getaddrinfo("api", 8443, type=socket.SOCK_STREAM)} + ) + assert len(addresses) == 2, "Expected two separate API addresses" + for index, address in enumerate(addresses): + assert http(address, 8443, "/health/ready", "lb", hostname="api")[0] == 200 + result["api_" + str(index + 1)] = { + "valid_lb": 200, + "no_certificate": deny_http(address, 8443, "/health/ready", hostname="api"), + "wrong_identity_same_ca": deny_http( + address, 8443, "/health/ready", "intruder", hostname="api" + ), + "foreign_ca": deny_http(address, 8443, "/health/ready", "foreign", hostname="api"), + } + for role in ("api", "worker", "dispatcher"): + assert http("otel-collector", 4318, "/v1/traces", role, "POST", b"{}")[0] == 200 + result["collector"] = { + "allowed_roles": ["api", "worker", "dispatcher"], + "no_certificate": deny_http( + "otel-collector", 4318, "/v1/traces", method="POST", body=b"{}" + ), + "wrong_identity_same_ca": deny_http( + "otel-collector", 4318, "/v1/traces", "intruder", "POST", b"{}" + ), + "foreign_ca": deny_http("otel-collector", 4318, "/v1/traces", "foreign", "POST", b"{}"), + } + assert broker("worker") + for role in (None, "intruder", "foreign"): + try: + assert not broker(role), "Unauthorized broker certificate accepted" + except (ssl.SSLError, ConnectionResetError): + pass + result["broker"] = { + "valid_worker": True, + "no_certificate_denied": True, + "foreign_ca_denied": True, + "wrong_identity_with_correct_password_denied": True, + } + for host, port, path, role in [ + ("prometheus", 9090, "/api/v1/status/buildinfo", "grafana"), + ("loki", 3100, "/ready", "grafana"), + ("tempo", 3200, "/ready", "grafana"), + ("otel-collector", 8889, "/metrics", "prometheus"), + ]: + deadline = time.monotonic() + 35 + status = http(host, port, path, role)[0] + while status == 503 and time.monotonic() < deadline: + time.sleep(1) + status = http(host, port, path, role)[0] + assert status == 200, (host, port, status) + result[host + ":" + str(port)] = { + "allowed": role, + "wrong_worker": deny_http(host, port, path, "worker"), + "no_certificate": deny_http(host, port, path), + } + assert broker("api", "redis", 6380, "api") + for denied_role in (None, "worker", "foreign"): + try: + assert not broker(denied_role, "redis", 6380, "api") + except (ssl.SSLError, ConnectionResetError): + pass + result["redis_cache"] = dict( + valid_api=True, + no_certificate_denied=True, + wrong_worker_with_correct_cache_password_denied=True, + foreign_ca_denied=True, + ) + import base64 + + password = (BASE / "operator/grafana_password").read_text().strip() + auth = base64.b64encode(("admin:" + password).encode()).decode() + assert http("grafana", 3000, "/api/datasources")[0] == 401 + assert ( + http("grafana", 3000, "/api/datasources", headers={"Authorization": "Basic " + auth})[0] + == 200 + ) + result["grafana_admin"] = dict(anonymous_denied=401, authenticated_tls=200) + assert http("openbao", 8200, "/v1/sys/seal-status")[0] == 200 + assert http("minio", 9000, "/minio/health/ready")[0] == 200 + for host, port, path in [ + ("lb", 8443, "/health/ready"), + ("minio", 9000, "/minio/health/ready"), + ("openbao", 8200, "/v1/sys/seal-status"), + ]: + for kwargs in ({"trust": False}, {"hostname": "untrusted.invalid"}): + try: + http(host, port, path, **kwargs) + except ssl.SSLCertVerificationError: + continue + raise AssertionError("Server trust verification did not fail") + result["server_trust"] = "untrusted CA and hostname rejected on ingress/S3/OpenBao" + for port in (16379, 16380, 14318, 19090, 13100, 13200, 18888, 18889, 13000): + try: + socket.create_connection(("gateway", port), timeout=2).close() + except ConnectionRefusedError: + continue + raise AssertionError("Local plaintext backend externally reachable") + result["plaintext_bypass"] = "nine loopback backend ports inaccessible from application network" + print(json.dumps({"status": "PASS", "matrix": result}, indent=2)) + + +if __name__ == "__main__": + main() diff --git a/student-tests/worker_rights.py b/student-tests/worker_rights.py new file mode 100644 index 0000000..b9da948 --- /dev/null +++ b/student-tests/worker_rights.py @@ -0,0 +1,178 @@ +import json +import uuid +import socket +import ssl + +import boto3 +import psycopg +import redis +from botocore.exceptions import ClientError + +from pipeline.config import credentials + + +def denied_sql(db, statement): + try: + with db.transaction(): + db.execute(statement) + except psycopg.errors.InsufficientPrivilege: + return True + raise AssertionError("Database operation unexpectedly allowed") + + +def verify_broker_transport(): + with socket.create_connection(("broker", 6379), timeout=3) as connection: + connection.sendall(b"PING\r\n") + try: + response = connection.recv(64) + except ConnectionResetError: + response = b"" + assert response == b"" or response.startswith(b"\x15"), "Plaintext broker command accepted" + for trust, hostname in ((False, "broker"), (True, "untrusted.invalid")): + context = ( + ssl.create_default_context(cafile="/pki/ca.crt") + if trust + else ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) + ) + context.load_cert_chain("/identity/service.crt", "/identity/service.key") + try: + with socket.create_connection(("broker", 6379), timeout=3) as connection: + context.wrap_socket(connection, server_hostname=hostname).close() + except ssl.SSLCertVerificationError: + continue + raise AssertionError("Broker certificate verification bypassed") + + +def main(): + values = credentials() + verify_broker_transport() + connection = dict( + host="db", + dbname="messenger", + user=values["postgres_user"], + password=values["postgres_password"], + sslmode="verify-full", + sslrootcert="/pki/ca.crt", + connect_timeout=3, + ) + for override, expected in [ + ({"sslmode": "disable"}, "no encryption"), + ( + {"host": "untrusted.invalid", "hostaddr": socket.gethostbyname("db")}, + "does not match host name", + ), + ({"sslrootcert": "/etc/ssl/certs/ca-certificates.crt"}, "certificate verify failed"), + ]: + try: + psycopg.connect(**(connection | override)) + except psycopg.OperationalError as error: + assert expected in str(error), type(error).__name__ + else: + raise AssertionError("PostgreSQL TLS boundary bypassed") + with psycopg.connect( + host="db", + dbname="messenger", + user=values["postgres_user"], + password=values["postgres_password"], + sslmode="verify-full", + sslrootcert="/pki/ca.crt", + connect_timeout=3, + ) as db: + assert db.execute("SELECT ssl FROM pg_stat_ssl WHERE pid=pg_backend_pid()").fetchone()[0] + db.execute("SELECT job_id FROM processing_jobs LIMIT 1") + assert denied_sql(db, "SELECT password_hash FROM users LIMIT 1") + assert denied_sql(db, "SELECT token_hash FROM sessions LIMIT 1") + assert denied_sql(db, "DELETE FROM messages WHERE false") + assert denied_sql(db, "CREATE TABLE worker_escape_probe(id int)") + assert denied_sql(db, "ALTER ROLE worker SUPERUSER") + assert denied_sql(db, "SELECT chat_id,owner_id FROM attachments LIMIT 1") + assert denied_sql(db, "UPDATE attachments SET chat_id=chat_id WHERE false") + queue = redis.Redis( + host="broker", + username=values["broker_user"], + password=values["broker_password"], + ssl=True, + ssl_ca_certs="/pki/ca.crt", + ssl_certfile="/identity/service.crt", + ssl_keyfile="/identity/service.key", + ssl_check_hostname=True, + socket_timeout=3, + ) + assert queue.ping() + assert queue.hget("job-publications", "security-probe-nonexistent") is None + for operation in [ + lambda: queue.flushall(), + lambda: queue.get("foreign-secret"), + lambda: queue.xadd("attachment-jobs", {"security-probe": "denied"}), + ]: + try: + operation() + except redis.exceptions.NoPermissionError: + continue + raise AssertionError("Broker operation unexpectedly allowed") + s3 = boto3.client( + "s3", + endpoint_url="https://minio:9000", + aws_access_key_id=values["s3_access_key_id"], + aws_secret_access_key=values["s3_secret_access_key"], + verify="/pki/ca.crt", + ) + key = "results/security-probe-" + uuid.uuid4().hex + s3.put_object(Bucket="messenger-attachments", Key=key, Body=b"synthetic") + assert s3.get_object(Bucket="messenger-attachments", Key=key)["Body"].read() == b"synthetic" + for operation in [ + lambda: s3.put_object( + Bucket="messenger-attachments", Key="admin/forbidden", Body=b"synthetic" + ), + lambda: s3.delete_object(Bucket="messenger-attachments", Key=key), + lambda: s3.create_bucket(Bucket="worker-escape-probe-forbidden"), + lambda: s3.list_objects_v2(Bucket="messenger-attachments", Prefix="admin/"), + ]: + try: + operation() + except ClientError as error: + assert error.response["ResponseMetadata"]["HTTPStatusCode"] == 403 + continue + raise AssertionError("S3 operation unexpectedly allowed") + print( + json.dumps( + dict( + status="PASS", + identity=values["postgres_user"], + database=dict( + tls=True, + plaintext_denied=True, + wrong_hostname_denied=True, + foreign_ca_denied=True, + read_jobs=True, + users_denied=True, + sessions_denied=True, + message_delete_denied=True, + ddl_denied=True, + superuser_denied=True, + ownership_columns_denied=True, + ), + broker=dict( + mtls=True, + plaintext_denied=True, + wrong_hostname_denied=True, + foreign_ca_denied=True, + read_index=True, + flush_denied=True, + foreign_key_denied=True, + producer_denied=True, + ), + s3=dict( + results_put_get=True, + admin_prefix_denied=True, + result_delete_denied=True, + bucket_admin_denied=True, + prefix_enumeration_denied=True, + ), + ) + ) + ) + + +if __name__ == "__main__": + main() diff --git a/worker/Dockerfile b/worker/Dockerfile new file mode 100644 index 0000000..ed2ad01 --- /dev/null +++ b/worker/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.12.16-slim-bookworm@sha256:44cf1793efa7c7a476bb0f2cff81443f4a072c90c1cb127e2924933daa3e8c64 +WORKDIR /app +COPY worker/requirements-resolved.txt ./requirements.txt +RUN pip install --no-cache-dir -r requirements.txt && useradd --system --uid 10001 worker +COPY worker/pipeline ./pipeline +USER worker +ENV PYTHONUNBUFFERED=1 +CMD ["python", "-m", "pipeline.main"] diff --git a/worker/pipeline/__init__.py b/worker/pipeline/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/worker/pipeline/broker.py b/worker/pipeline/broker.py new file mode 100644 index 0000000..bb3b3ab --- /dev/null +++ b/worker/pipeline/broker.py @@ -0,0 +1,42 @@ +import json + +PUBLISH = """ +local previous = redis.call('HGET', KEYS[2], ARGV[1]) +if previous then + local attempt, id = string.match(previous, '^(%d+)|(%d+%-%d+)$') + if attempt == ARGV[2] and #redis.call('XRANGE', KEYS[1], id, id, 'COUNT', 1) > 0 then + return {id, 0} + end +end +local id = redis.call('XADD', KEYS[1], '*', 'job', ARGV[3]) +redis.call('HSET', KEYS[2], ARGV[1], ARGV[2] .. '|' .. id) +return {id, 1} +""" + +ACK = """ +redis.call('XACK', KEYS[1], ARGV[1], ARGV[2]) +redis.call('XDEL', KEYS[1], ARGV[2]) +local previous = redis.call('HGET', KEYS[2], ARGV[3]) +if previous then + local attempt, id = string.match(previous, '^(%d+)|(%d+%-%d+)$') + if id == ARGV[2] then redis.call('HDEL', KEYS[2], ARGV[3]) end +end +return 1 +""" + + +def publish(broker, settings, payload): + result = broker.eval( + PUBLISH, + 2, + settings.stream, + "job-publications", + payload["job_id"], + payload["attempt"], + json.dumps(payload), + ) + return bool(result[1]) + + +def acknowledge(broker, settings, message_id, job_id=""): + broker.eval(ACK, 2, settings.stream, "job-publications", settings.group, message_id, job_id) diff --git a/worker/pipeline/cleanup.py b/worker/pipeline/cleanup.py new file mode 100644 index 0000000..701f6ca --- /dev/null +++ b/worker/pipeline/cleanup.py @@ -0,0 +1,64 @@ +from datetime import datetime, timezone, timedelta + + +class Cleanup: + def __init__(self, repository, storage): + self.repository = repository + self.storage = storage + + def run(self): + with self.repository.connection() as db: + row = db.execute("SELECT pg_try_advisory_xact_lock(741204) AS acquired").fetchone() + if not row["acquired"]: + return + self._clear_failed(db) + self._clear_ready(db) + self._scan(db) + + def _clear_ready(self, db): + rows = db.execute( + """SELECT id,staging_key FROM attachments WHERE status='READY' + AND staging_key IS NOT NULL LIMIT 100 FOR UPDATE SKIP LOCKED""" + ).fetchall() + for row in rows: + self.storage.client.delete_object( + Bucket=self.storage.settings.bucket, Key=row["staging_key"] + ) + db.execute("UPDATE attachments SET staging_key=NULL WHERE id=%s", (row["id"],)) + + def _clear_failed(self, db): + rows = db.execute( + """SELECT id,staging_key,pipeline_version FROM attachments WHERE status='FAILED' + AND staging_key IS NOT NULL AND updated_at < now() - %s * interval '1 second' + LIMIT 100 FOR UPDATE SKIP LOCKED""", + (self.storage.settings.retention,), + ).fetchall() + for row in rows: + self.storage.client.delete_object( + Bucket=self.storage.settings.bucket, Key=row["staging_key"] + ) + db.execute( + "UPDATE attachments SET staging_key=NULL,error_code='staging_expired' WHERE id=%s", + (row["id"],), + ) + db.execute( + "UPDATE processing_jobs SET error_code='staging_expired' WHERE attachment_id=%s AND pipeline_version=%s", + (row["id"], row["pipeline_version"]), + ) + + def _scan(self, db): + cutoff = datetime.now(timezone.utc) - timedelta(seconds=self.storage.settings.retention) + pages = self.storage.client.get_paginator("list_objects_v2") + for page in pages.paginate(Bucket=self.storage.settings.bucket): + for item in page.get("Contents", []): + if item["LastModified"] < cutoff and not self._referenced(db, item["Key"]): + self.storage.client.delete_object( + Bucket=self.storage.settings.bucket, Key=item["Key"] + ) + + def _referenced(self, db, key): + return db.execute( + """SELECT 1 FROM attachments WHERE object_key=%s OR staging_key=%s + UNION ALL SELECT 1 FROM attachment_variants WHERE object_key=%s LIMIT 1""", + (key, key, key), + ).fetchone() diff --git a/worker/pipeline/config.py b/worker/pipeline/config.py new file mode 100644 index 0000000..9750088 --- /dev/null +++ b/worker/pipeline/config.py @@ -0,0 +1,31 @@ +import os +import json +import time +from dataclasses import dataclass +from pathlib import Path + + +def credentials(): + operator_file = os.getenv("OPERATOR_CREDENTIALS_FILE") + if operator_file: + return json.loads(Path(operator_file).read_text()) + if time.time() > float(Path("/runtime/lease").read_text()): + raise RuntimeError("service_identity_expired") + return json.loads(Path("/runtime/secrets.json").read_text()) + + +@dataclass(frozen=True) +class Settings: + db_host: str = os.getenv("DB_HOST", "db") + broker_host: str = os.getenv("BROKER_HOST", "broker") + bucket: str = os.getenv("S3_BUCKET", "messenger-attachments") + endpoint: str = os.getenv("S3_ENDPOINT", "https://minio:9000") + max_attempts: int = int(os.getenv("JOB_MAX_ATTEMPTS", "5")) + timeout: int = int(os.getenv("JOB_TIMEOUT_SECONDS", "60")) + retention: int = int(os.getenv("STAGING_RETENTION_SECONDS", "86400")) + lease: int = int(os.getenv("JOB_LEASE_SECONDS", "75")) + faults: bool = os.getenv("FAULT_INJECTION_ENABLED", "false").lower() == "true" + max_bytes: int = 10485760 + max_pixels: int = 40000000 + stream: str = "attachment-jobs" + group: str = "image-workers" diff --git a/worker/pipeline/faults.py b/worker/pipeline/faults.py new file mode 100644 index 0000000..096b5d1 --- /dev/null +++ b/worker/pipeline/faults.py @@ -0,0 +1,16 @@ +import os +import time + + +def inject(repository, job, point): + action = repository.fault(job, point) + if action == "crash": + os._exit(71) + if action == "pause": + time.sleep(12) + if action == "timeout": + time.sleep(repository.settings.timeout + 5) + if action == "transient": + raise TimeoutError("injected_transient") + if action == "permanent": + raise ValueError("injected_permanent") diff --git a/worker/pipeline/images.py b/worker/pipeline/images.py new file mode 100644 index 0000000..f6c8a89 --- /dev/null +++ b/worker/pipeline/images.py @@ -0,0 +1,63 @@ +import io +import warnings +from PIL import Image, ImageOps + + +class ImagePipeline: + def __init__(self, settings, version=1): + self.settings = settings + self.jpeg_quality = 85 if version == 1 else 90 + self.webp_quality = 80 if version == 1 else 85 + Image.MAX_IMAGE_PIXELS = settings.max_pixels + warnings.simplefilter("error", Image.DecompressionBombWarning) + + def render(self, data): + with Image.open(io.BytesIO(data)) as source: + self.validate(source) + source.load() + ImageOps.exif_transpose(source, in_place=True) + image = self.flatten(source) + try: + yield self.scaled(image, "thumbnail", 256, "JPEG", self.jpeg_quality) + yield self.crop(image) + yield self.scaled(image, "optimized", 1280, "WEBP", self.webp_quality) + finally: + image.close() + + def validate(self, image): + if image.format not in ("PNG", "JPEG"): + raise ValueError("invalid_image") + if image.width * image.height > self.settings.max_pixels: + raise ValueError("image_too_large") + + def flatten(self, image): + if "A" in image.getbands() or "transparency" in image.info: + with image.convert("RGBA") as alpha: + result = Image.new("RGB", alpha.size, "white") + result.paste(alpha, mask=alpha.getchannel("A")) + return result + return image.convert("RGB") + + def scaled(self, image, name, limit, format_name, quality): + divisor = max(limit, image.width, image.height) + size = (max(1, image.width * limit // divisor), max(1, image.height * limit // divisor)) + with image.resize(size, Image.Resampling.LANCZOS) as resized: + return self.encode(resized, name, format_name, quality) + + def crop(self, image): + with ImageOps.fit( + image, (128, 128), method=Image.Resampling.LANCZOS, centering=(0.5, 0.5) + ) as cropped: + return self.encode(cropped, "crop", "JPEG", self.jpeg_quality) + + def encode(self, image, name, format_name, quality): + output = io.BytesIO() + image.info.clear() + image.save(output, format=format_name, quality=quality) + return { + "name": name, + "data": output.getvalue(), + "width": image.width, + "height": image.height, + "content_type": "image/jpeg" if format_name == "JPEG" else "image/webp", + } diff --git a/worker/pipeline/main.py b/worker/pipeline/main.py new file mode 100644 index 0000000..9edfaee --- /dev/null +++ b/worker/pipeline/main.py @@ -0,0 +1,173 @@ +import json +import os +import subprocess +import sys +import time +import uuid +from datetime import datetime +import redis +from .config import Settings, credentials +from .repository import Repository +from .cleanup import Cleanup +from .storage import Storage +from .outbox import OutboxDispatcher +from .faults import inject +from .broker import acknowledge +from opentelemetry.trace import SpanKind, Status, StatusCode +from .telemetry import PROPAGATOR, PipelineMetrics, child_environment, event, setup, span + + +def validate_message(payload): + required = { + "schema_version", + "job_id", + "type", + "attachment_id", + "pipeline_version", + "attempt", + "created_at", + } + allowed = required | {"traceparent", "tracestate"} + if not isinstance(payload, dict) or not required.issubset(payload) or set(payload) - allowed: + raise ValueError("invalid_job_fields") + if ( + type(payload["schema_version"]) is not int + or payload["schema_version"] != 1 + or payload["type"] != "attachment.process.v1" + ): + raise ValueError("invalid_job_type") + if any(not isinstance(payload[key], str) for key in ("job_id", "attachment_id", "created_at")): + raise ValueError("invalid_job_strings") + uuid.UUID(payload["job_id"]) + uuid.UUID(payload["attachment_id"]) + for key in ("pipeline_version", "attempt"): + if type(payload[key]) is not int or payload[key] < 1: + raise ValueError("invalid_job_counter") + if datetime.fromisoformat(payload["created_at"].replace("Z", "+00:00")).tzinfo is None: + raise ValueError("invalid_job_time") + + +def process_delivery(settings, payload): + result = subprocess.run( + [sys.executable, "-m", "pipeline.process", json.dumps(payload)], + timeout=settings.timeout, + env=child_environment(), + stdout=subprocess.PIPE, + text=True, + ) + outcomes = [json.loads(line) for line in result.stdout.splitlines()] + outcome = outcomes[0] if outcomes else {"outcome": "crash"} + return result.returncode, outcome + + +def handle(broker, settings, repository, item, metrics): + message_id, fields = item + try: + payload = json.loads(fields["job"]) + validate_message(payload) + except (ValueError, KeyError, TypeError): + acknowledge(broker, settings, message_id) + event("worker.rejected_job", error=True) + return + with span( + "attachments consume", + SpanKind.CONSUMER, + PROPAGATOR.extract(payload), + { + "messaging.destination.name": "attachments", + "job.attempt": payload["attempt"], + "pipeline.version": payload["pipeline_version"], + }, + ) as active: + started = time.monotonic() + metrics.busy = 1 + try: + code, result = process_delivery(settings, payload) + except subprocess.TimeoutExpired: + with repository.connection() as db: + repository.event(db, payload, "worker_timeout") + code, result = 124, {"outcome": "timeout"} + finally: + metrics.busy = 0 + metrics.complete(started, result) + outcome = result["outcome"] + failed = outcome in ("retry", "failed", "timeout", "crash") + active.set_attribute("job.outcome", outcome) + if failed: + active.set_status(Status(StatusCode.ERROR)) + event("worker.delivery", error=failed, outcome=outcome, attempt=payload["attempt"]) + if code == 0: + inject(repository, payload, "before_ack") + acknowledge(broker, settings, message_id, payload["job_id"]) + elif code == 75: + time.sleep(0.25) + + +def messages(broker, settings, consumer): + pending = broker.xreadgroup(settings.group, consumer, {settings.stream: "0"}, count=1) + if pending and pending[0][1]: + return pending[0][1] + claimed = broker.xautoclaim( + settings.stream, settings.group, consumer, settings.lease * 1000, "0-0", count=1 + ) + if claimed[1]: + return claimed[1] + rows = broker.xreadgroup(settings.group, consumer, {settings.stream: ">"}, count=1, block=1000) + return rows[0][1] if rows else [] + + +def consume(broker, settings, repository, consumer, metrics): + try: + broker.xgroup_create(settings.stream, settings.group, id="0", mkstream=True) + except redis.ResponseError as error: + if "BUSYGROUP" not in str(error): + raise + for item in messages(broker, settings, consumer): + handle(broker, settings, repository, item, metrics) + + +def main(): + role = os.getenv("ROLE", "worker") + setup(role, metrics=True) + metrics = PipelineMetrics(role) + settings = Settings() + repository = Repository(settings) + values = credentials() + broker = redis.Redis( + host=settings.broker_host, + decode_responses=True, + socket_connect_timeout=3, + socket_timeout=3, + ssl=True, + ssl_ca_certs="/pki/ca.crt", + ssl_certfile="/identity/service.crt", + ssl_keyfile="/identity/service.key", + ssl_check_hostname=True, + username=values["broker_user"], + password=values["broker_password"], + ) + cleanup = Cleanup(repository, Storage(settings)) + consumer = str(uuid.uuid4()) + dispatcher = OutboxDispatcher(repository, broker) + cleaned = 0 + while True: + try: + credentials() + if role == "dispatcher": + dispatcher.run() + metrics.observe_queue(repository) + if time.monotonic() - cleaned > 60: + cleanup.run() + cleaned = time.monotonic() + time.sleep(0.5) + else: + consume(broker, settings, repository, consumer, metrics) + except Exception as error: + print( + json.dumps({"event": "loop_error", "error_type": type(error).__name__}), flush=True + ) + time.sleep(1) + + +if __name__ == "__main__": + main() diff --git a/worker/pipeline/operator.py b/worker/pipeline/operator.py new file mode 100644 index 0000000..b97f1d4 --- /dev/null +++ b/worker/pipeline/operator.py @@ -0,0 +1,104 @@ +import argparse +import json +import uuid +from .config import Settings +from .repository import Repository + + +def enqueue(db, attachment, version, settings): + job_id = uuid.uuid4() + row = db.execute( + """INSERT INTO processing_jobs(job_id,attachment_id,pipeline_version,attempt_limit) + VALUES (%s,%s,%s,%s) RETURNING created_at""", + (job_id, attachment, version, settings.max_attempts), + ).fetchone() + payload = { + "schema_version": 1, + "job_id": str(job_id), + "type": "attachment.process.v1", + "attachment_id": str(attachment), + "pipeline_version": version, + "attempt": 1, + "created_at": row["created_at"].isoformat().replace("+00:00", "Z"), + } + db.execute( + "INSERT INTO processing_outbox(job_id,payload) VALUES (%s,%s::jsonb)", + (job_id, json.dumps(payload)), + ) + return {"job_id": job_id, "attempt": 0} + + +def upgrade(repository, attachment, version): + with repository.connection() as db: + db.execute("SELECT pg_advisory_xact_lock_shared(741204)") + current = db.execute( + "SELECT * FROM attachments WHERE id=%s FOR UPDATE", (attachment,) + ).fetchone() + if not current or version <= current["pipeline_version"]: + raise ValueError("version_must_increase") + db.execute( + "UPDATE processing_jobs SET status='SUPERSEDED',lease_until=NULL WHERE attachment_id=%s AND status IN ('QUEUED','PROCESSING','FAILED')", + (attachment,), + ) + db.execute( + "UPDATE attachments SET pipeline_version=%s,status='QUEUED',error_code=NULL,updated_at=now() WHERE id=%s", + (version, attachment), + ) + job = enqueue(db, attachment, version, repository.settings) + repository.event(db, job, "operator_upgrade") + return {"event": "upgraded", "version": version} + + +def replay(repository, attachment): + with repository.connection() as db: + db.execute("SELECT pg_advisory_xact_lock_shared(741204)") + current = db.execute( + "SELECT * FROM attachments WHERE id=%s FOR UPDATE", (attachment,) + ).fetchone() + if not current: + raise ValueError("attachment_not_found") + job = db.execute( + "SELECT * FROM processing_jobs WHERE attachment_id=%s AND pipeline_version=%s FOR UPDATE", + (attachment, current["pipeline_version"]), + ).fetchone() + if job["status"] == "READY": + repository.event(db, job, "operator_replay_noop") + return {"event": "already_ready", "replayed": False} + if job["error_code"] == "staging_expired": + raise ValueError("staging_expired") + if job["status"] != "FAILED": + raise ValueError("only_failed_can_be_replayed") + reset(db, job, repository.settings.max_attempts) + repository.event(db, job, "operator_replay") + return {"event": "replayed", "replayed": True} + + +def reset(db, job, budget): + db.execute( + """UPDATE processing_jobs SET status='QUEUED',error_code=NULL,lease_token=NULL, + lease_until=NULL,completed_at=NULL,attempt_limit=attempt+%s,next_at=now(),next_publish_at=now() WHERE job_id=%s""", + (budget, job["job_id"]), + ) + db.execute( + "UPDATE attachments SET status='QUEUED',error_code=NULL,updated_at=now() WHERE id=%s", + (job["attachment_id"],), + ) + + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("action", choices=["upgrade", "replay"]) + parser.add_argument("attachment", type=uuid.UUID) + parser.add_argument("--version", type=int, default=2) + args = parser.parse_args() + repository = Repository(Settings()) + result = ( + upgrade(repository, args.attachment, args.version) + if args.action == "upgrade" + else replay(repository, args.attachment) + ) + print(json.dumps(result), flush=True) + + +if __name__ == "__main__": + main() diff --git a/worker/pipeline/outbox.py b/worker/pipeline/outbox.py new file mode 100644 index 0000000..cddafe9 --- /dev/null +++ b/worker/pipeline/outbox.py @@ -0,0 +1,61 @@ +from .faults import inject +from .broker import publish +from opentelemetry.trace import SpanKind +from .telemetry import PROPAGATOR, current_carrier, event, span + + +class OutboxDispatcher: + def __init__(self, repository, broker): + self.repository = repository + self.broker = broker + + def run(self): + self.recover_expired() + with self.repository.connection() as db: + rows = db.execute( + """SELECT j.*,o.payload,o.published_at AS previous_publish FROM processing_jobs j + JOIN attachments a ON a.id=j.attachment_id AND a.pipeline_version=j.pipeline_version + JOIN processing_outbox o ON o.job_id=j.job_id + WHERE j.status='QUEUED' AND j.next_at<=now() AND j.next_publish_at<=now() + ORDER BY j.created_at LIMIT 20 FOR UPDATE OF o SKIP LOCKED""" + ).fetchall() + for job in rows: + self.publish(db, job) + + def publish(self, db, job): + inject(self.repository, job, "before_publish") + payload = dict(job["payload"], attempt=job["attempt"] + 1) + with span( + "attachments publish", + SpanKind.PRODUCER, + PROPAGATOR.extract(payload), + {"messaging.destination.name": "attachments", "job.attempt": payload["attempt"]}, + ): + current_carrier(payload) + created = publish(self.broker, self.repository.settings, payload) + event("outbox.published", attempt=payload["attempt"], publication_created=created) + inject(self.repository, job, "after_publish") + db.execute( + "UPDATE processing_jobs SET next_publish_at=now()+interval '10 seconds' WHERE job_id=%s", + (job["job_id"],), + ) + db.execute( + "UPDATE processing_outbox SET published_at=now(),publish_count=publish_count+1 WHERE job_id=%s", + (job["job_id"],), + ) + if created or job["previous_publish"] is None: + self.repository.event(db, dict(job, attempt=payload["attempt"]), "published") + + def recover_expired(self): + with self.repository.connection() as db: + rows = db.execute( + """SELECT j.* FROM processing_jobs j + JOIN attachments a ON a.id=j.attachment_id AND a.pipeline_version=j.pipeline_version + WHERE j.status='PROCESSING' AND j.lease_until= job["attempt_limit"] + code = "retry_exhausted" if terminal else "lease_expired" + self.repository.set_failure(db, job, "FAILED" if terminal else "QUEUED", code, 1) + self.repository.event(db, job, "lease_expired") diff --git a/worker/pipeline/process.py b/worker/pipeline/process.py new file mode 100644 index 0000000..49f5648 --- /dev/null +++ b/worker/pipeline/process.py @@ -0,0 +1,91 @@ +import hashlib +import json +import resource +import sys +from PIL import UnidentifiedImageError, Image +from .config import Settings +from .repository import Repository +from .storage import Storage +from .images import ImagePipeline +from .faults import inject +from .telemetry import child_context, event, setup, span + + +def write_effects(storage, job, data, settings): + prefix = f"results/{job['attachment_id']}/v{job['pipeline_version']}" + original = prefix + "/original-" + job["checksum"] + storage.write_result(original, data, job["content_type"]) + variants = [] + for variant in ImagePipeline(settings, job["pipeline_version"]).render(data): + body = variant.pop("data") + key = prefix + "/" + variant["name"] + "-" + hashlib.sha256(body).hexdigest() + item = storage.write_result(key, body, variant["content_type"]) + variants.append( + dict(item, name=variant["name"], width=variant["width"], height=variant["height"]) + ) + return original, variants + + +def process(repository, settings, job): + storage = Storage(settings) + with repository.connection() as fence: + fence.execute("SELECT pg_advisory_xact_lock_shared(741204)") + inject(repository, job, "before_effects") + with span("s3.staging.read"): + data = storage.read_original(job) + with span("image.render_and_write"): + original, variants = write_effects(storage, job, data, settings) + inject(repository, job, "after_effects") + with span("postgres.publish_result"): + ready_seconds = repository.publish_result(job, original, variants) + if ready_seconds is not False: + report("ready", ready_seconds=ready_seconds) + else: + report("deferred") + inject(repository, job, "after_commit") + if ready_seconds is not False: + storage.remove_staging(job, repository) + + +def report(outcome, **fields): + print(json.dumps({"outcome": outcome, **fields}), flush=True) + event("worker." + outcome, error=outcome in ("retry", "failed")) + + +def execute(message, settings): + repository = Repository(settings) + with span("postgres.claim"): + job = repository.claim(message) + if not job: + done = repository.delivery_done(message) + report("duplicate" if done else "deferred") + return 0 if done else 75 + try: + process(repository, settings, job) + except ( + ValueError, + UnidentifiedImageError, + Image.DecompressionBombError, + Image.DecompressionBombWarning, + MemoryError, + ): + report(repository.fail(job, permanent=True, code="invalid_image") or "deferred") + except Exception: + report(repository.fail(job) or "deferred") + return 0 if repository.delivery_done(message) else 75 + + +def main(): + resource.setrlimit(resource.RLIMIT_AS, (768 * 1024 * 1024, 768 * 1024 * 1024)) + providers = setup("worker") + message = json.loads(sys.argv[1]) + try: + with span("attachment.process", parent=child_context()): + return execute(message, Settings()) + finally: + for provider in providers: + provider.force_flush(1200) + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/worker/pipeline/repository.py b/worker/pipeline/repository.py new file mode 100644 index 0000000..0040ba4 --- /dev/null +++ b/worker/pipeline/repository.py @@ -0,0 +1,174 @@ +import json +import random +import uuid +import psycopg +from psycopg.rows import dict_row +from .config import credentials + + +class Repository: + def __init__(self, settings): + self.settings = settings + + def connection(self): + values = credentials() + return psycopg.connect( + host=self.settings.db_host, + dbname=values["postgres_db"], + user=values["postgres_user"], + password=values["postgres_password"], + sslmode="verify-full", + sslrootcert="/pki/ca.crt", + connect_timeout=3, + options="-c statement_timeout=10000", + row_factory=dict_row, + ) + + def event(self, db, job, name): + db.execute( + "INSERT INTO pipeline_events(job_id,event,attempt) VALUES (%s,%s,%s)", + (job["job_id"], name, job.get("attempt", 0)), + ) + + def claim(self, message): + with self.connection() as db: + job = self._lock_job(db, message) + if ( + not job + or job["status"] != "QUEUED" + or not job["due"] + or message["attempt"] != job["attempt"] + 1 + ): + return None + token = uuid.uuid4() + db.execute( + """UPDATE processing_jobs SET status='PROCESSING', attempt=attempt+1, + lease_token=%s, lease_until=now() + %s * interval '1 second' WHERE job_id=%s""", + (token, self.settings.lease, job["job_id"]), + ) + db.execute( + "UPDATE attachments SET status='PROCESSING',updated_at=now() WHERE id=%s", + (job["attachment_id"],), + ) + job.update(lease_token=token, attempt=job["attempt"] + 1) + self.event(db, job, "claimed") + return job + + def _lock_job(self, db, message): + return db.execute( + """SELECT j.*, a.object_key, a.staging_key, a.content_type, + a.checksum, a.size_bytes, j.next_at <= now() AS due, j.lease_until > now() AS live + FROM attachments a JOIN processing_jobs j ON a.id=j.attachment_id + WHERE j.job_id=%s AND j.attachment_id=%s AND j.pipeline_version=%s + AND a.pipeline_version=j.pipeline_version + FOR UPDATE OF a,j SKIP LOCKED""", + (message["job_id"], message["attachment_id"], message["pipeline_version"]), + ).fetchone() + + def delivery_done(self, message): + with self.connection() as db: + row = db.execute( + """SELECT j.status,j.attempt,a.pipeline_version FROM processing_jobs j + JOIN attachments a ON a.id=j.attachment_id WHERE j.job_id=%s AND j.attachment_id=%s""", + (message["job_id"], message["attachment_id"]), + ).fetchone() + if not row or row["pipeline_version"] != message["pipeline_version"]: + return True + if row["status"] not in ("QUEUED", "PROCESSING"): + return True + expected = row["attempt"] + (1 if row["status"] == "QUEUED" else 0) + return message["attempt"] != expected + + def publish_result(self, job, original_key, variants): + with self.connection() as db: + current = self._lock_job(db, job) + if not self._owns(current, job): + self.event(db, job, "fenced_stale_result") + return False + self._save_variants(db, job, variants) + db.execute( + """UPDATE attachments SET object_key=%s,status='READY',error_code=NULL, + updated_at=now() WHERE id=%s AND pipeline_version=%s""", + (original_key, job["attachment_id"], job["pipeline_version"]), + ) + result = db.execute( + """UPDATE processing_jobs SET status='READY',completed_at=now(), + lease_until=NULL,error_code=NULL WHERE job_id=%s + RETURNING EXTRACT(EPOCH FROM completed_at-created_at) AS ready_seconds""", + (job["job_id"],), + ) + self.event(db, job, "ready") + return float(result.fetchone()["ready_seconds"]) + + def _owns(self, current, job): + return ( + current + and current["status"] == "PROCESSING" + and current["lease_token"] == job["lease_token"] + and current["live"] + ) + + def _save_variants(self, db, job, variants): + for item in variants: + db.execute( + """INSERT INTO attachment_variants + (attachment_id,pipeline_version,name,object_key,content_type,size_bytes,width,height,sha256) + VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s) ON CONFLICT DO NOTHING""", + ( + job["attachment_id"], + job["pipeline_version"], + item["name"], + item["object_key"], + item["content_type"], + item["size_bytes"], + item["width"], + item["height"], + item["sha256"], + ), + ) + + def fail(self, job, permanent=False, code="processing_failed"): + with self.connection() as db: + current = self._lock_job(db, job) + if not self._owns(current, job): + return + terminal = permanent or job["attempt"] >= job["attempt_limit"] + status = "FAILED" if terminal else "QUEUED" + delay = min(30, 2 ** job["attempt"]) + random.uniform(0, 1) + code = code if permanent else ("retry_exhausted" if terminal else code) + self.set_failure(db, job, status, code, delay) + self.event(db, job, "failed" if terminal else "retry_scheduled") + return "failed" if terminal else "retry" + + def set_failure(self, db, job, status, code, delay): + db.execute( + """UPDATE processing_jobs SET status=%s,error_code=%s,lease_until=NULL, + next_at=now() + %s * interval '1 second',next_publish_at=now(), + completed_at=CASE WHEN %s='FAILED' THEN now() ELSE NULL END WHERE job_id=%s""", + (status, code, delay, status, job["job_id"]), + ) + db.execute( + "UPDATE attachments SET status=%s,error_code=%s,updated_at=now() WHERE id=%s", + (status, code if status == "FAILED" else None, job["attachment_id"]), + ) + + def clear_staging(self, job): + with self.connection() as db: + result = db.execute( + """UPDATE attachments SET staging_key=NULL WHERE id=%s AND pipeline_version=%s + AND status='READY' AND staging_key=%s""", + (job["attachment_id"], job["pipeline_version"], job["staging_key"]), + ) + return result.rowcount == 1 + + def fault(self, job, point): + if not self.settings.faults: + return None + with self.connection() as db: + row = db.execute( + """UPDATE pipeline_faults SET remaining=remaining-1,hits=hits+1 + WHERE attachment_id=%s AND pipeline_version=%s AND point=%s AND remaining>0 + RETURNING action""", + (job["attachment_id"], job["pipeline_version"], point), + ).fetchone() + return row["action"] if row else None diff --git a/worker/pipeline/secret_agent.py b/worker/pipeline/secret_agent.py new file mode 100644 index 0000000..da1ea58 --- /dev/null +++ b/worker/pipeline/secret_agent.py @@ -0,0 +1,62 @@ +import json +import os +import ssl +import time +import urllib.request +from pathlib import Path + + +def request(path, body=None, token=None): + context = ssl.create_default_context(cafile="/pki/ca.crt") + context.load_cert_chain("/identity/service.crt", "/identity/service.key") + headers = {"Content-Type": "application/json"} + if token: + headers["X-Vault-Token"] = token + data = None if body is None else json.dumps(body).encode() + req = urllib.request.Request("https://openbao:8200/v1/" + path, data, headers) + with urllib.request.urlopen(req, context=context, timeout=3) as response: + raw = response.read() + return json.loads(raw) if raw else {} + + +def replace(path, data): + temporary = path.with_suffix(".next") + temporary.write_text(data) + temporary.replace(path) + + +def refresh(role): + auth = request("auth/cert/login", {"name": role})["auth"] + try: + data = request("secret/data/" + role, token=auth["client_token"])["data"]["data"] + finally: + request("auth/token/revoke-self", {}, auth["client_token"]) + folder = Path("/runtime") + replace(folder / "secrets.json", json.dumps(data)) + mapping = { + "spring.datasource.username": "postgres_user", + "spring.datasource.password": "postgres_password", + "s3.access-key": "s3_access_key_id", + "s3.secret-key": "s3_secret_access_key", + "app.redis.password": "cache_password", + } + for name, key in mapping.items(): + replace(folder / name, data[key]) + replace(folder / "lease", str(time.time() + min(auth["lease_duration"], 40))) + + +def main(): + role = os.environ["SERVICE_IDENTITY"] + while True: + try: + refresh(role) + except Exception as error: + print( + json.dumps({"event": "secret_refresh_failed", "error_type": type(error).__name__}), + flush=True, + ) + time.sleep(10) + + +if __name__ == "__main__": + main() diff --git a/worker/pipeline/storage.py b/worker/pipeline/storage.py new file mode 100644 index 0000000..27c72c4 --- /dev/null +++ b/worker/pipeline/storage.py @@ -0,0 +1,63 @@ +import hashlib +import boto3 +from botocore.config import Config +from botocore.exceptions import ClientError +from .config import credentials + + +class Storage: + def __init__(self, settings): + self.settings = settings + values = credentials() + self.client = boto3.client( + "s3", + endpoint_url=settings.endpoint, + region_name="us-east-1", + aws_access_key_id=values["s3_access_key_id"], + aws_secret_access_key=values["s3_secret_access_key"], + config=Config( + connect_timeout=3, + read_timeout=10, + retries={"max_attempts": 1}, + s3={"addressing_style": "path"}, + ), + ) + + def read_original(self, job): + key = job["staging_key"] or job["object_key"] + try: + data = self._read(key) + except ClientError as error: + if error.response["Error"]["Code"] != "NoSuchKey" or key == job["object_key"]: + raise + data = self._read(job["object_key"]) + if ( + len(data) > self.settings.max_bytes + or len(data) != job["size_bytes"] + or hashlib.sha256(data).hexdigest() != job["checksum"] + ): + raise ValueError("invalid_staging") + return data + + def _read(self, key): + response = self.client.get_object(Bucket=self.settings.bucket, Key=key) + with response["Body"] as stream: + return stream.read(self.settings.max_bytes + 1) + + def write_result(self, key, data, content_type): + self.client.put_object( + Bucket=self.settings.bucket, Key=key, Body=data, ContentType=content_type + ) + return { + "object_key": key, + "content_type": content_type, + "size_bytes": len(data), + "sha256": hashlib.sha256(data).hexdigest(), + } + + def remove_staging(self, job, repository): + if not job["staging_key"]: + return + if not repository.clear_staging(job): + return + self.client.delete_object(Bucket=self.settings.bucket, Key=job["staging_key"]) diff --git a/worker/pipeline/telemetry.py b/worker/pipeline/telemetry.py new file mode 100644 index 0000000..5f0e857 --- /dev/null +++ b/worker/pipeline/telemetry.py @@ -0,0 +1,187 @@ +import logging +import os +import socket +import time +from contextlib import contextmanager +from pathlib import Path + +from opentelemetry import trace +from opentelemetry._logs import set_logger_provider +from opentelemetry.exporter.otlp.proto.http._log_exporter import OTLPLogExporter +from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter +from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter +from opentelemetry.metrics import Observation, get_meter +from opentelemetry.sdk._logs import LoggerProvider, LoggingHandler +from opentelemetry.sdk._logs.export import BatchLogRecordProcessor +from opentelemetry.sdk.metrics import MeterProvider +from opentelemetry.sdk.metrics.export import PeriodicExportingMetricReader +from opentelemetry.sdk.metrics.view import ExplicitBucketHistogramAggregation, View +from opentelemetry.sdk.resources import Resource +from opentelemetry.sdk.trace import TracerProvider +from opentelemetry.sdk.trace.export import BatchSpanProcessor +from opentelemetry.trace import SpanKind, Status, StatusCode +from opentelemetry.trace.propagation.tracecontext import TraceContextTextMapPropagator + + +PROPAGATOR = TraceContextTextMapPropagator() +LOGGER = logging.getLogger("pipeline.telemetry") +BUCKETS = [0.05, 0.1, 0.25, 0.5, 1, 2, 3, 5, 10, 20, 30, 60, 120, 300] + + +def setup(role, metrics=False): + endpoint = os.getenv("OTEL_EXPORTER_OTLP_ENDPOINT") + if not endpoint: + return () + resource = Resource.create( + { + "service.name": "messenger-" + role, + "service.version": "7.0.0", + "service.instance.id": socket.gethostname(), + "deployment.environment.name": "lab", + } + ) + tracer = TracerProvider(resource=resource) + tracer.add_span_processor( + BatchSpanProcessor( + OTLPSpanExporter(timeout=1), max_queue_size=128, max_export_batch_size=32 + ) + ) + trace.set_tracer_provider(tracer) + logger = LoggerProvider(resource=resource) + logger.add_log_record_processor( + BatchLogRecordProcessor( + OTLPLogExporter(timeout=1), max_queue_size=128, max_export_batch_size=32 + ) + ) + set_logger_provider(logger) + LOGGER.addHandler(LoggingHandler(logger_provider=logger)) + LOGGER.setLevel(logging.INFO) + LOGGER.propagate = False + if not metrics: + return tracer, logger + reader = PeriodicExportingMetricReader( + OTLPMetricExporter(timeout=1), export_interval_millis=5000, export_timeout_millis=1500 + ) + meter = MeterProvider( + resource=resource, + metric_readers=[reader], + views=[ + View( + instrument_name="lab_*_duration", + aggregation=ExplicitBucketHistogramAggregation(BUCKETS), + ) + ], + ) + from opentelemetry.metrics import set_meter_provider + + set_meter_provider(meter) + return tracer, logger, meter + + +def event(name, error=False, **fields): + LOGGER.log(logging.ERROR if error else logging.INFO, name, extra={"event": name, **fields}) + + +@contextmanager +def span(name, kind=SpanKind.INTERNAL, parent=None, attributes=None): + with trace.get_tracer("messenger.pipeline").start_as_current_span( + name, + context=parent, + kind=kind, + attributes=attributes, + record_exception=False, + set_status_on_exception=False, + ) as active: + try: + yield active + except Exception as error: + active.set_status(Status(StatusCode.ERROR)) + active.set_attribute("error.type", type(error).__name__) + raise + + +def child_environment(): + carrier = {} + PROPAGATOR.inject(carrier) + return { + **os.environ, + "PIPELINE_TRACEPARENT": carrier.get("traceparent", ""), + "PIPELINE_TRACESTATE": carrier.get("tracestate", ""), + } + + +def child_context(): + return PROPAGATOR.extract( + { + "traceparent": os.getenv("PIPELINE_TRACEPARENT", ""), + "tracestate": os.getenv("PIPELINE_TRACESTATE", ""), + } + ) + + +def current_carrier(payload): + payload.pop("tracestate", None) + PROPAGATOR.inject(payload) + + +class PipelineMetrics: + def __init__(self, role): + meter = get_meter("messenger.pipeline") + self.jobs = meter.create_counter("lab_jobs") + self.duration = meter.create_histogram("lab_job_duration", unit="s") + self.ready = meter.create_histogram("lab_ready_duration", unit="s") + self.terminal = meter.create_counter("lab_ready_sli") + self.busy = 0 + self.depth = 0 + self.age = 0.0 + for outcome in ("ready", "duplicate", "retry", "failed", "timeout", "crash", "deferred"): + self.jobs.add(0, {"job_type": "attachment", "outcome": outcome}) + for outcome in ("good", "bad"): + self.terminal.add(0, {"outcome": outcome}) + if role == "worker": + meter.create_observable_gauge("lab_worker_busy", [self.observe_busy]) + meter.create_observable_gauge("lab_worker_capacity", [lambda _: [Observation(1)]]) + else: + meter.create_observable_gauge("lab_queue_depth", [self.observe_depth]) + meter.create_observable_gauge("lab_queue_oldest", [self.observe_age], unit="s") + meter.create_observable_counter("lab_process_cpu", [observe_cpu], unit="s") + meter.create_observable_gauge("lab_process_rss", [observe_rss], unit="By") + + def observe_busy(self, _): + return [Observation(self.busy)] + + def observe_depth(self, _): + return [Observation(self.depth, {"queue": "attachments"})] + + def observe_age(self, _): + return [Observation(self.age, {"queue": "attachments"})] + + def observe_queue(self, repository): + with repository.connection() as db: + row = db.execute( + """SELECT count(*) AS depth, COALESCE(EXTRACT(EPOCH FROM + clock_timestamp() - min(created_at)),0) AS age + FROM processing_jobs WHERE status IN ('QUEUED','PROCESSING')""" + ).fetchone() + self.depth, self.age = row["depth"], max(0.0, float(row["age"])) + + def complete(self, started, result): + outcome = result["outcome"] + attributes = {"job_type": "attachment", "outcome": outcome} + self.jobs.add(1, attributes) + self.duration.record(time.monotonic() - started, attributes) + if outcome == "ready": + seconds = result["ready_seconds"] + self.ready.record(seconds, {"job_type": "attachment"}) + self.terminal.add(1, {"outcome": "good" if seconds <= 5 else "bad"}) + elif outcome == "failed": + self.terminal.add(1, {"outcome": "bad"}) + + +def observe_cpu(_): + return [Observation(time.process_time())] + + +def observe_rss(_): + rss_pages = int(Path("/proc/self/statm").read_text().split()[1]) + return [Observation(rss_pages * os.sysconf("SC_PAGE_SIZE"))] diff --git a/worker/requirements-resolved.txt b/worker/requirements-resolved.txt new file mode 100644 index 0000000..ce94852 --- /dev/null +++ b/worker/requirements-resolved.txt @@ -0,0 +1,27 @@ +boto3==1.40.59 +botocore==1.40.76 +certifi==2026.11.20 +charset-normalizer==3.5.3 +googleapis-common-protos==1.76.0 +idna==3.20 +jmespath==1.1.0 +opentelemetry-api==1.45.2 +opentelemetry-exporter-http-transport==0.66b2 +opentelemetry-exporter-otlp-common==0.66b2 +opentelemetry-exporter-otlp-proto-common==1.45.2 +opentelemetry-exporter-otlp-proto-http==1.45.2 +opentelemetry-proto==1.45.2 +opentelemetry-sdk==1.45.2 +opentelemetry-semantic-conventions==0.66b2 +pillow==13.0.0 +pip==26.3 +protobuf==7.36.2 +psycopg==3.2.10 +psycopg-binary==3.2.10 +python-dateutil==2.9.0.post0 +redis==6.4.0 +requests==2.34.2 +s3transfer==0.14.0 +six==1.17.0 +typing_extensions==4.16.0 +urllib3==2.8.0 diff --git a/worker/requirements.txt b/worker/requirements.txt new file mode 100644 index 0000000..553a762 --- /dev/null +++ b/worker/requirements.txt @@ -0,0 +1,6 @@ +Pillow==13.0.0 +redis==6.4.0 +psycopg[binary]==3.2.10 +boto3==1.40.59 +opentelemetry-sdk==1.45.2 +opentelemetry-exporter-otlp-proto-http==1.45.2