ЛР7: TLS/mTLS по матрице доверия, OpenBao, Argon2id, ротация и отрицательные тесты

This commit is contained in:
LOSYASH
2026-12-02 23:53:37 +01:00
parent 20afc2c790
commit 8c991be7cf
105 changed files with 13881 additions and 106 deletions
+46
View File
@@ -0,0 +1,46 @@
# Loki 3.3.2, single binary: логи по OTLP (/otlp), хранение на volume /loki.
# lab7: HTTP (приём OTLP и запросы Grafana) — только mTLS сертификатом нашего CA.
# Внутренний gRPC single binary слушает только 127.0.0.1 (loopback контейнера).
# Allowlist identity у Loki нет — доступ дополнительно ограничен сетью tstore
# (в ней только otel-collector и grafana).
auth_enabled: false
server:
http_listen_port: 3100
grpc_listen_address: 127.0.0.1
grpc_listen_port: 9096
log_level: warn
http_tls_config:
cert_file: /tls/tls.crt
key_file: /tls/tls.key
client_auth_type: RequireAndVerifyClientCert
client_ca_file: /tls/ca.crt
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 # trace_id, span_id, event и др. атрибуты лога
retention_period: 72h
volume_enabled: true
compactor:
working_directory: /loki/compactor
retention_enabled: true
delete_request_store: filesystem
analytics:
reporting_enabled: false