﻿# Вся trust matrix: TLS/mTLS (нет cert / чужой CA / чужая identity / верная), имена, plaintext, ACL
# python scripts/ops.py tls-audit
# 2026-11-17T23:57:27.8839570+03:00
{
  "ok": true,
  "total": 101,
  "failed": 0,
  "checks": [
    {
      "link": "client -> lb (public TLS)",
      "check": "trusted CA + hostname lb/localhost SAN",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "client -> lb (public TLS)",
      "check": "empty trust store",
      "expected": "verify_error",
      "ok": true,
      "observed": "('verify_error', 'unable to get local issuer certificate')"
    },
    {
      "link": "client -> lb (public TLS)",
      "check": "wrong hostname",
      "expected": "verify_error",
      "ok": true,
      "observed": "('verify_error', \"Hostname mismatch, certificate is not valid for 'evil.example'.\")"
    },
    {
      "link": "client -> lb (public TLS)",
      "check": "plaintext HTTP on :8443",
      "expected": "no successful plaintext response",
      "ok": true,
      "observed": "('closed', \"b''\")"
    },
    {
      "link": "client -> lb (public TLS)",
      "check": "HAProxy stats not exposed on network",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', 'connection refused')"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "identity lb (allowed)",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "no client certificate",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "rogue CA with CN=lb",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "same CA, identity intruder",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "same CA, identity worker",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "same CA, identity api (replica as client)",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "plaintext HTTP on :8443",
      "expected": "no successful plaintext response",
      "ok": true,
      "observed": "('closed', \"b''\")"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "health listener 8081 not reachable from network (loopback only)",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "lb -> api (mTLS, allowlist lb + CRL)",
      "check": "LB-side check: server name must be api",
      "expected": "verify_error",
      "ok": true,
      "observed": "('verify_error', \"Hostname mismatch, certificate is not valid for 'evil.example'.\")"
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "messenger_api verify-full",
      "expected": "TLS session",
      "ok": true,
      "observed": "(True, 'TLSv1.3')"
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "plaintext (sslmode=disable)",
      "expected": "rejected",
      "ok": true,
      "observed": "connection failed: connection to server at \"172.19.0.3\", port 5432 failed: FATAL:  pg_hba.conf rejects connection for host \"172.19.0.7\", user \"messenger_api\", database \"messenger\", no encryption"
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "rogue CA as trust root",
      "expected": "rejected",
      "ok": true,
      "observed": "connection failed: connection to server at \"172.19.0.3\", port 5432 failed: SSL error: certificate verify failed"
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "wrong hostname (IP instead of name)",
      "expected": "rejected",
      "ok": true,
      "observed": "connection failed: connection to server at \"172.19.0.3\", port 5432 failed: server certificate for \"postgres\" (and 1 other name) does not match host name \"172.19.0.3\""
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "messenger_worker: SELECT count(*) FROM attachments",
      "expected": "allowed",
      "ok": true,
      "observed": "executed"
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "messenger_worker: SELECT password_hash FROM users LIMIT 1",
      "expected": "permission denied",
      "ok": true,
      "observed": "permission denied for table users"
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "messenger_worker: SELECT token_hash FROM sessions LIMIT 1",
      "expected": "permission denied",
      "ok": true,
      "observed": "permission denied for table sessions"
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "messenger_api: CREATE TABLE audit_ddl (i int)",
      "expected": "permission denied",
      "ok": true,
      "observed": "permission denied for schema public"
    },
    {
      "link": "api/worker -> postgres (TLS verify-full, roles)",
      "check": "messenger_api: TRUNCATE users",
      "expected": "permission denied",
      "ok": true,
      "observed": "permission denied for table users"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "messenger_api SET sess:*",
      "expected": "ok",
      "ok": true,
      "observed": "('ok', True)"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "messenger_api SET other:key 1",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', 'No permissions to access a key')"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "messenger_api FLUSHALL",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User messenger_api has no permissions to run the 'flushall' command\")"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "messenger_api CONFIG GET *",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User messenger_api has no permissions to run the 'config|get' command\")"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "messenger_api KEYS *",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User messenger_api has no permissions to run the 'keys' command\")"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "cert without AUTH (default user off)",
      "expected": "NOAUTH",
      "ok": true,
      "observed": "('noauth', 'Authentication required.')"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "no client certificate",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', \"Error while reading from redis:6379 : (1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_\")"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "rogue CA client certificate",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', \"Error while reading from redis:6379 : (1, '[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2570)')\")"
    },
    {
      "link": "api -> redis cache (mTLS + ACL)",
      "check": "plaintext",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', \"Error while reading from redis:6379 : (104, 'Connection reset by peer')\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "no client certificate (with valid producer password)",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', \"Error while reading from broker:6380 : (1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "rogue CA with CN=api (with valid producer password)",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', \"Error while reading from broker:6380 : (1, '[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2570)')\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "same CA, identity intruder (with valid producer password)",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', 'Connection closed by server.')"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "same CA, identity lb (with valid producer password)",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', 'Connection closed by server.')"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "same CA, identity prometheus (with valid producer password)",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', 'Connection closed by server.')"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "identity api without AUTH",
      "expected": "NOAUTH",
      "ok": true,
      "observed": "('noauth', 'Authentication required.')"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "api_producer PING",
      "expected": "ok",
      "ok": true,
      "observed": "('ok', True)"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "api_producer XREADGROUP",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User api_producer has no permissions to run the 'xreadgroup' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "api_producer XACK",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User api_producer has no permissions to run the 'xack' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "api_producer XDEL",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User api_producer has no permissions to run the 'xdel' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "api_producer DEL",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User api_producer has no permissions to run the 'del' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "api_producer FLUSHALL",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User api_producer has no permissions to run the 'flushall' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "api_producer XADD other key",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', 'No permissions to access a key')"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "worker_consumer XLEN",
      "expected": "ok",
      "ok": true,
      "observed": "('ok', 1)"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "worker_consumer SET",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User worker_consumer has no permissions to run the 'set' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "worker_consumer FLUSHALL",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User worker_consumer has no permissions to run the 'flushall' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "worker_consumer CONFIG",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User worker_consumer has no permissions to run the 'config|get' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "worker_consumer DEL",
      "expected": "NOPERM",
      "ok": true,
      "observed": "('noperm', \"User worker_consumer has no permissions to run the 'del' command\")"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "Redis port 6379 not reachable from network (loopback only)",
      "expected": "connection refused",
      "ok": true,
      "observed": "('conn_error', 'Error 111 connecting to broker:6379. Connection refused.')"
    },
    {
      "link": "api/worker -> broker-gate (mTLS allowlist api|worker) -> broker ACL",
      "check": "plaintext to gate",
      "expected": "connection rejected",
      "ok": true,
      "observed": "('conn_error', 'Connection closed by server.')"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "TLS verify-full GET /healthz",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "wrong hostname",
      "expected": "verify_error",
      "ok": true,
      "observed": "('verify_error', \"Hostname mismatch, certificate is not valid for 'evil.example'.\")"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "plaintext on :8333",
      "expected": "no successful plaintext response",
      "ok": true,
      "observed": "('http', 400)"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "S3 API behind gate :8334 not reachable from network",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "S3 gateway gRPC (unauthenticated) :18334 not reachable from network",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "S3 gRPC default port :18333 not reachable from network",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "master :9333 not reachable from network",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "filer :8888 not reachable from network",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "filer gRPC :18888 not reachable from network",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "api PUT staging/",
      "expected": "allowed",
      "ok": true,
      "observed": "allowed"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "api DELETE staging/",
      "expected": "allowed",
      "ok": true,
      "observed": "allowed"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "api PUT final/ (worker prefix)",
      "expected": "AccessDenied",
      "ok": true,
      "observed": "AccessDenied"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "api LIST bucket",
      "expected": "AccessDenied",
      "ok": true,
      "observed": "AccessDenied"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "api CREATE bucket",
      "expected": "AccessDenied",
      "ok": true,
      "observed": "AccessDenied"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "worker LIST bucket",
      "expected": "allowed",
      "ok": true,
      "observed": "allowed"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "worker PUT outside its prefixes",
      "expected": "AccessDenied",
      "ok": true,
      "observed": "AccessDenied"
    },
    {
      "link": "api/worker -> s3 (TLS, scoped identities)",
      "check": "worker DELETE bucket",
      "expected": "AccessDenied",
      "ok": true,
      "observed": "AccessDenied"
    },
    {
      "link": "api/worker -> otel-gate (mTLS allowlist api|worker) -> collector",
      "check": "identity api POST /v1/logs",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "api/worker -> otel-gate (mTLS allowlist api|worker) -> collector",
      "check": "identity worker POST /v1/logs",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "api/worker -> otel-gate (mTLS allowlist api|worker) -> collector",
      "check": "no client certificate POST /v1/logs",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')"
    },
    {
      "link": "api/worker -> otel-gate (mTLS allowlist api|worker) -> collector",
      "check": "rogue CA with CN=api POST /v1/logs",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV1_ALERT_UNKNOWN_CA')"
    },
    {
      "link": "api/worker -> otel-gate (mTLS allowlist api|worker) -> collector",
      "check": "same CA, identity intruder POST /v1/logs",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "api/worker -> otel-gate (mTLS allowlist api|worker) -> collector",
      "check": "same CA, identity prometheus POST /v1/logs",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "api/worker -> otel-gate (mTLS allowlist api|worker) -> collector",
      "check": "same CA, identity lb POST /v1/logs",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "api/worker -> otel-gate (mTLS allowlist api|worker) -> collector",
      "check": "plaintext on :4318",
      "expected": "no successful plaintext response",
      "ok": true,
      "observed": "('closed', \"b''\")"
    },
    {
      "link": "prometheus -> otel-gate metrics (allowlist prometheus)",
      "check": "identity prometheus /metrics :8889",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "prometheus -> otel-gate metrics (allowlist prometheus)",
      "check": "identity prometheus /metrics :8888 (self)",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "prometheus -> otel-gate metrics (allowlist prometheus)",
      "check": "identity api /metrics :8889",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('closed', 'connection closed without HTTP response')"
    },
    {
      "link": "prometheus -> otel-gate metrics (allowlist prometheus)",
      "check": "collector loopback port 14318 not reachable",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "prometheus -> otel-gate metrics (allowlist prometheus)",
      "check": "collector loopback port 18889 not reachable",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "prometheus -> otel-gate metrics (allowlist prometheus)",
      "check": "collector loopback port 18888 not reachable",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "prometheus -> otel-gate metrics (allowlist prometheus)",
      "check": "collector loopback port 13133 not reachable",
      "expected": "refused",
      "ok": true,
      "observed": "('refused', '[Errno 111] Connection refused')"
    },
    {
      "link": "collector/grafana -> loki (mTLS)",
      "check": "client cert grafana (TLS ok, service ready)",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "collector/grafana -> loki (mTLS)",
      "check": "no client certificate",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')"
    },
    {
      "link": "collector/grafana -> loki (mTLS)",
      "check": "rogue CA client certificate",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV1_ALERT_UNKNOWN_CA')"
    },
    {
      "link": "collector/grafana -> loki (mTLS)",
      "check": "plaintext",
      "expected": "no successful plaintext response",
      "ok": true,
      "observed": "('http', 400)"
    },
    {
      "link": "grafana -> tempo (mTLS)",
      "check": "client cert grafana (TLS ok, service ready)",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "grafana -> tempo (mTLS)",
      "check": "no client certificate",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')"
    },
    {
      "link": "grafana -> tempo (mTLS)",
      "check": "rogue CA client certificate",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV1_ALERT_UNKNOWN_CA')"
    },
    {
      "link": "grafana -> tempo (mTLS)",
      "check": "plaintext",
      "expected": "no successful plaintext response",
      "ok": true,
      "observed": "('http', 400)"
    },
    {
      "link": "grafana -> prometheus (mTLS)",
      "check": "client cert grafana (TLS ok, service ready)",
      "expected": "HTTP 200",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "grafana -> prometheus (mTLS)",
      "check": "no client certificate",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')"
    },
    {
      "link": "grafana -> prometheus (mTLS)",
      "check": "rogue CA client certificate",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV1_ALERT_UNKNOWN_CA')"
    },
    {
      "link": "grafana -> prometheus (mTLS)",
      "check": "plaintext",
      "expected": "no successful plaintext response",
      "ok": true,
      "observed": "('http', 400)"
    },
    {
      "link": "collector -> tempo OTLP gRPC (mTLS)",
      "check": "no client certificate",
      "expected": "rejected (TLS/handshake/close)",
      "ok": true,
      "observed": "('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')"
    },
    {
      "link": "agents -> openbao (TLS + AppRole)",
      "check": "TLS verify-full /v1/sys/health",
      "expected": "HTTP 200 (unsealed)",
      "ok": true,
      "observed": "('http', 200)"
    },
    {
      "link": "agents -> openbao (TLS + AppRole)",
      "check": "wrong hostname",
      "expected": "verify_error",
      "ok": true,
      "observed": "('verify_error', \"Hostname mismatch, certificate is not valid for 'evil.example'.\")"
    },
    {
      "link": "agents -> openbao (TLS + AppRole)",
      "check": "plaintext on :8200",
      "expected": "no successful plaintext response",
      "ok": true,
      "observed": "('http', 400)"
    },
    {
      "link": "agents -> openbao (TLS + AppRole)",
      "check": "read KV without token",
      "expected": "HTTP 403",
      "ok": true,
      "observed": "('http', 403)"
    }
  ]
}
2026-11-17T20:57:35.308Z saved evidence/tls_audit.json
