lab7: тесты безопасности и перевод своих тестов на HTTPS, документы (trust-matrix, THREAT_MODEL, OPERATOR, DEFENSE, WINDOWS, PR), сборщик доказательств, чистка legacy bench

This commit is contained in:
Alexey Bodanyuk
2026-11-27 17:43:14 +03:00
parent 05df1695fe
commit 84dbdb4735
44 changed files with 1644 additions and 2686 deletions
+1 -3
View File
@@ -17,9 +17,7 @@
# otelcol_exporter_enqueue_failed_*). memory_limiter refuses new data above its limit.
# Its own metrics: PUSHED over OTLP/HTTPS to Prometheus (lab 7; the lab 6 pull endpoint :8888 had no
# TLS). health_check listens on the container's loopback only.
#
# Traces pipeline variants (lab 6 track 1): this file keeps EVERY span; the overlay
# traces-tail.yaml (passed as a second --config, compose OTEL_COLLECTOR_TRACES) adds tail sampling.
# Every span is kept (the lab 6 track 1 tail-sampling overlay is not part of lab 7).
extensions:
health_check:
-6
View File
@@ -1,6 +0,0 @@
# Overlay for collector.yaml: keep every received span (no tail sampling). Selected by
# OTEL_COLLECTOR_TRACES=traces-all (compose). Lists are replaced, maps are merged by the Collector.
service:
pipelines:
traces:
processors: [memory_limiter, batch]
-39
View File
@@ -1,39 +0,0 @@
# Overlay for collector.yaml: TAIL sampling of traces (track 1 "balanced" configuration,
# docs/TRACK1.md). The decision is taken per trace after decision_wait, when its spans are in:
# keep ALL traces with an error span (status ERROR: HTTP 5xx, failed/retried job, S3/DB error),
# keep ALL slow traces (root to last span >= 250 ms),
# keep 10 % of the rest (probabilistic, by trace id: the same trace -> the same decision).
# Head sampling in the SDK (OTEL_TRACES_SAMPLER_ARG) decides at the first span and cannot know
# whether the request will fail or be slow; tail sampling can, at the price of buffering spans
# in the Collector (num_traces x spans) for decision_wait.
#
# A job is processed seconds after its upload: those spans may arrive after the upload trace was
# decided. decision_cache remembers the decision per trace id, so late spans of a kept trace are
# kept, and late spans of a dropped one are dropped (unless they are errors/slow by themselves:
# then they form a partial trace - a documented limit of the approach).
processors:
tail_sampling:
decision_wait: 5s
num_traces: 20000
expected_new_traces_per_sec: 200
decision_cache:
sampled_cache_size: 100000
non_sampled_cache_size: 100000
policies:
- name: errors
type: status_code
status_code:
status_codes: [ERROR]
- name: slow
type: latency
latency:
threshold_ms: 250
- name: baseline
type: probabilistic
probabilistic:
sampling_percentage: 10
service:
pipelines:
traces:
processors: [memory_limiter, tail_sampling, batch]