Lab7: HTTPS, mTLS, OpenBao, трек 2 PKI на оценку 5

This commit is contained in:
Wladislava1
2026-11-16 23:55:31 +03:00
commit 3676de91bf
122 changed files with 14006 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
# Конфигурация наблюдаемости — реализовать
Добавьте `collector.yaml` с OTLP receivers, processors и exporters выбранной версии Collector. Укажите явные bind endpoints, внутренние сети, memory limits/batch и поведение при backpressure по уровню. Сопоставьте все три pipeline с реально развёрнутыми backend.
Добавьте конфигурации storage, Grafana provisioning/datasources, provisioning/dashboards и импортируемые dashboard JSON. На 4 — alert rules и runbooks. Пустой dashboard или debug exporter, который только печатает данные в stdout, не заменяют хранилища/доказательства из `contracts/observability.md`.
Не публикуйте OTLP/metrics/административные ports в общую сеть без необходимости. В lab7 реализуйте TLS/mTLS по trust matrix; экспорт Authorization и message bodies запрещён.
+81
View File
@@ -0,0 +1,81 @@
receivers:
otlp:
protocols:
# Внешний mTLS терминирует nginx-otel; здесь только закрытый hop.
http:
endpoint: 0.0.0.0:14318
grpc:
endpoint: 0.0.0.0:14317
processors:
memory_limiter:
check_interval: 1s
limit_mib: 256
spike_limit_mib: 64
batch:
send_batch_size: 256
send_batch_max_size: 512
timeout: 2s
resource:
attributes:
- key: deployment.environment.name
value: lab
action: upsert
exporters:
otlphttp/tempo:
endpoint: http://tempo:4318
tls:
insecure: true
sending_queue:
enabled: true
num_consumers: 2
queue_size: 256
retry_on_failure:
enabled: true
initial_interval: 1s
max_interval: 10s
max_elapsed_time: 30s
# Pull-модель: Collector держит только последние значения в памяти, без бесконечной очереди.
prometheus:
endpoint: 0.0.0.0:8889
resource_to_telemetry_conversion:
enabled: true
enable_open_metrics: true
otlphttp/loki:
endpoint: http://loki:3100/otlp
tls:
insecure: true
sending_queue:
enabled: true
num_consumers: 2
queue_size: 256
retry_on_failure:
enabled: true
initial_interval: 1s
max_interval: 10s
max_elapsed_time: 30s
extensions:
health_check:
endpoint: 0.0.0.0:13133
service:
extensions: [health_check]
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, batch, resource]
exporters: [otlphttp/tempo]
metrics:
receivers: [otlp]
processors: [memory_limiter, batch, resource]
exporters: [prometheus]
logs:
receivers: [otlp]
processors: [memory_limiter, batch, resource]
exporters: [otlphttp/loki]
telemetry:
metrics:
level: basic
address: 0.0.0.0:8888