feat: реализовать ЛР7 — TLS, mTLS, OpenBao и hardening
Skeleton contracts / contracts (pull_request) Blocked by required conditions

This commit is contained in:
ferraronp
2026-11-26 19:50:38 +03:00
parent 20afc2c790
commit ca7515601a
98 changed files with 6252 additions and 107 deletions
+19
View File
@@ -0,0 +1,19 @@
groups:
- name: messenger-lab
rules:
- alert: LabAPIHighErrorRate
expr: (sum(rate(lab_http_requests_total{route=~"/api/.*",status_class="5xx"}[30s])) or vector(0)) / clamp_min(sum(rate(lab_http_requests_total{route=~"/api/.*"}[30s])), 0.001) > 0.05
for: 9s
labels:
severity: warning
annotations:
summary: Business HTTP 5xx rate exceeds 5% over 30 seconds
runbook: REPORT.md#инциденты-и-runbook
- alert: LabQueueLag
expr: max(lab_queue_oldest_age_seconds) > 15 and max(lab_queue_depth) > 0
for: 12s
labels:
severity: warning
annotations:
summary: Oldest queued job exceeds 15 seconds (sustained 12 seconds)
runbook: REPORT.md#инциденты-и-runbook
+18
View File
@@ -0,0 +1,18 @@
global:
scrape_interval: 3s
evaluation_interval: 3s
rule_files:
- /etc/prometheus/alerts.yml
scrape_configs:
- job_name: lab-otlp
scheme: https
tls_config:
ca_file: /run/pki/ca.crt
static_configs:
- targets: ['metrics-gw:8889']
- job_name: collector-self
scheme: https
tls_config:
ca_file: /run/pki/ca.crt
static_configs:
- targets: ['metrics-gw:8888']