Разделение mTLS идентификаторов

This commit is contained in:
EgorAnti
2026-11-27 10:20:41 +03:00
parent ac39f303d5
commit 16760f4072
15 changed files with 425 additions and 19 deletions
+8 -5
View File
@@ -57,15 +57,15 @@ probe_ok redis redis:6379 redis \
-cert /run/pki/api-client/tls.crt -key /run/pki/api-client/tls.key
probe_rejected redis redis:6379 redis
probe_ok rabbitmq rabbitmq:5671 rabbitmq \
probe_ok rabbitmq-api rabbit-api-gateway:5671 rabbit-api-gateway \
-cert /run/pki/api-client/tls.crt -key /run/pki/api-client/tls.key
probe_rejected rabbitmq rabbitmq:5671 rabbitmq
probe_ok rabbitmq-worker rabbit-worker-gateway:5671 rabbit-worker-gateway \
-cert /run/pki/worker-client/tls.crt -key /run/pki/worker-client/tls.key
probe_ok otel-ingest-api otel-collector:4318 otel-collector \
probe_ok otel-ingest-api otel-gateway:4318 otel-gateway \
-cert /run/pki/api-client/tls.crt -key /run/pki/api-client/tls.key
probe_ok otel-ingest-worker otel-collector:4318 otel-collector \
probe_ok otel-ingest-worker otel-gateway:4318 otel-gateway \
-cert /run/pki/worker-client/tls.crt -key /run/pki/worker-client/tls.key
probe_rejected otel-ingest otel-collector:4318 otel-collector
probe_ok otel-metrics otel-collector:8889 otel-collector \
-cert /run/pki/prometheus-client/tls.crt -key /run/pki/prometheus-client/tls.key
@@ -127,4 +127,7 @@ if($permissions -match 'messenger-(api|worker)\s+\.\*\s+\.\*\s+\.\*'){
throw 'RabbitMQ ACL failure: an application identity has unrestricted permissions'
}
& (Join-Path $PSScriptRoot 'test-service-mtls-identities.ps1') -EnvFile $EnvFile
if(-not $?){ throw 'Service mTLS identity verification failed' }
Write-Host 'PASS: PostgreSQL, Redis and RabbitMQ runtime identities are separate and forbidden operations are denied.'