lab7: TLS ко всем зависимостям и телеметрии; раздельные роли PostgreSQL (GRANT по коду), ACL Valkey, AMQPS, HTTPS S3, mTLS Collector/Prometheus/Loki/Tempo/Grafana

This commit is contained in:
Alexey Bodanyuk
2026-11-27 16:29:09 +03:00
parent f36da97951
commit 93f4ed1013
28 changed files with 621 additions and 201 deletions
+13
View File
@@ -6,7 +6,15 @@ stream_over_http_enabled: true
server:
http_listen_port: 3200
grpc_listen_address: 127.0.0.1
log_level: warn
# Lab 7: HTTPS + mandatory client certificate of the internal CA (otel-collector pushes,
# grafana queries, prometheus scrapes). gRPC is internal to the single binary: loopback only.
http_tls_config:
cert_file: /run/secrets/tempo.crt
key_file: /run/secrets/tempo.key
client_auth_type: RequireAndVerifyClientCert
client_ca_file: /run/secrets/internal-ca.crt
distributor:
receivers:
@@ -14,6 +22,11 @@ distributor:
protocols:
http:
endpoint: 0.0.0.0:4318
tls: # only the Collector (client certificate of the internal CA)
cert_file: /run/secrets/tempo.crt
key_file: /run/secrets/tempo.key
client_ca_file: /run/secrets/internal-ca.crt
min_version: "1.2"
ingester:
max_block_duration: 5m # small blocks: a restart loses at most the WAL replay time