feat(otel): lab7 secure telemetry ingestion with mTLS

This commit is contained in:
Голиков Maximillian Антон
2026-11-26 09:55:41 +03:00
parent c06484764f
commit 35f10c1ef9
4 changed files with 74 additions and 7 deletions
+1 -3
View File
@@ -1,10 +1,8 @@
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
endpoint: 127.0.0.1:14318
processors:
memory_limiter:
+20
View File
@@ -0,0 +1,20 @@
worker_processes 1;
events { worker_connections 512; }
http {
access_log off;
ssl_protocols TLSv1.2 TLSv1.3;
client_max_body_size 16m;
server {
listen 4318 ssl;
ssl_certificate /tls/server.crt;
ssl_certificate_key /tls/server.key;
ssl_client_certificate /tls/ca.crt;
ssl_verify_client on;
if ($ssl_client_s_dn !~ "^CN=lab7-telemetry-(api|worker|reconciler)$") { return 403; }
location ~ ^/v1/(traces|metrics|logs)$ {
limit_except POST { deny all; }
proxy_pass http://127.0.0.1:14318;
}
location / { return 403; }
}
}