forked from mtusi2026/mtusi2026lab7
ЛР7: исправить TLS-конфиг Tempo и Loki по фактическим ключам
- Tempo: сервер использует http_tls_config/grpc_tls_config (dskit), а OTLP-приёмник — собственный tls в протоколе grpc/http; прежний server.tls молча игнорировался, и Collector→Tempo шёл бы plaintext - Loki: добавлен grpc_tls_config; убран невалидный min_version из TLS-блоков (в dskit это server.tls_min_version) Co-Authored-By: O3 Agent Claude <noreply@ozon.ru>
This commit is contained in:
+3
-1
@@ -7,7 +7,9 @@ server:
|
|||||||
http_tls_config:
|
http_tls_config:
|
||||||
cert_file: /run/secrets/loki_crt
|
cert_file: /run/secrets/loki_crt
|
||||||
key_file: /run/secrets/loki_key
|
key_file: /run/secrets/loki_key
|
||||||
min_version: TLS12
|
grpc_tls_config:
|
||||||
|
cert_file: /run/secrets/loki_crt
|
||||||
|
key_file: /run/secrets/loki_key
|
||||||
|
|
||||||
common:
|
common:
|
||||||
path_prefix: /loki
|
path_prefix: /loki
|
||||||
|
|||||||
+12
-1
@@ -2,7 +2,11 @@ server:
|
|||||||
http_listen_port: 3200
|
http_listen_port: 3200
|
||||||
grpc_listen_port: 9095
|
grpc_listen_port: 9095
|
||||||
log_level: warn
|
log_level: warn
|
||||||
tls:
|
# dskit-сервер Tempo: TLS для HTTP API (Grafana) и gRPC API.
|
||||||
|
http_tls_config:
|
||||||
|
cert_file: /run/secrets/tempo_crt
|
||||||
|
key_file: /run/secrets/tempo_key
|
||||||
|
grpc_tls_config:
|
||||||
cert_file: /run/secrets/tempo_crt
|
cert_file: /run/secrets/tempo_crt
|
||||||
key_file: /run/secrets/tempo_key
|
key_file: /run/secrets/tempo_key
|
||||||
|
|
||||||
@@ -12,8 +16,15 @@ distributor:
|
|||||||
protocols:
|
protocols:
|
||||||
grpc:
|
grpc:
|
||||||
endpoint: 0.0.0.0:4317
|
endpoint: 0.0.0.0:4317
|
||||||
|
# OTLP-приёмник с собственным TLS; Collector проверяет сервер по CA.
|
||||||
|
tls:
|
||||||
|
cert_file: /run/secrets/tempo_crt
|
||||||
|
key_file: /run/secrets/tempo_key
|
||||||
http:
|
http:
|
||||||
endpoint: 0.0.0.0:4318
|
endpoint: 0.0.0.0:4318
|
||||||
|
tls:
|
||||||
|
cert_file: /run/secrets/tempo_crt
|
||||||
|
key_file: /run/secrets/tempo_key
|
||||||
|
|
||||||
ingester:
|
ingester:
|
||||||
max_block_duration: 5m
|
max_block_duration: 5m
|
||||||
|
|||||||
Reference in New Issue
Block a user