forked from mtusi2026/mtusi2026lab7
746 lines
24 KiB
JSON
746 lines
24 KiB
JSON
{
|
|
"summary": {
|
|
"summary": true,
|
|
"checks": 78,
|
|
"failed": 0,
|
|
"seconds": 17.3
|
|
},
|
|
"checks": [
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "valid LB identity (CN=lb)",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "connection_closed_after_handshake",
|
|
"pass": true,
|
|
"detail": "RemoteDisconnected: Remote end closed connection without response"
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "foreign CA, CN=lb",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "connection_closed_after_handshake",
|
|
"pass": true,
|
|
"detail": "RemoteDisconnected: Remote end closed connection without response"
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "our CA, expired, CN=lb",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "connection_closed_after_handshake",
|
|
"pass": true,
|
|
"detail": "RemoteDisconnected: Remote end closed connection without response"
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "our CA, CN=intruder",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "connection_closed_after_handshake",
|
|
"pass": true,
|
|
"detail": "BrokenPipeError: [Errno 32] Broken pipe"
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "our CA, CN=worker (other service)",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "connection_closed_after_handshake",
|
|
"pass": true,
|
|
"detail": "RemoteDisconnected: Remote end closed connection without response"
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "our CA, CN=api (server's own identity)",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "connection_closed_after_handshake",
|
|
"pass": true,
|
|
"detail": "BrokenPipeError: [Errno 32] Broken pipe"
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "server identity: client trusts only foreign CA",
|
|
"expect": "client_rejected_server_cert",
|
|
"observed": "client_rejected_server_cert",
|
|
"pass": true,
|
|
"detail": "SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1016)"
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "previous (rotated, revoked) LB leaf",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "connection_closed_after_handshake",
|
|
"pass": true,
|
|
"detail": "RemoteDisconnected: Remote end closed connection without response"
|
|
},
|
|
{
|
|
"link": "LB -> API (mTLS, allowlist CN=lb)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "b''"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "worker identity consumes its queue",
|
|
"expect": "allowed",
|
|
"observed": "allowed",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "dispatcher identity publishes to exchange",
|
|
"expect": "allowed",
|
|
"observed": "allowed",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "CN=api (no broker user, API uses outbox)",
|
|
"expect": "login_refused",
|
|
"observed": "login_refused",
|
|
"pass": true,
|
|
"detail": "ConnectionClosedByBroker: (403) 'ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.'"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "our CA, CN=intruder",
|
|
"expect": "login_refused",
|
|
"observed": "login_refused",
|
|
"pass": true,
|
|
"detail": "ConnectionClosedByBroker: (403) 'ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.'"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "our CA, CN=lb",
|
|
"expect": "login_refused",
|
|
"observed": "login_refused",
|
|
"pass": true,
|
|
"detail": "ConnectionClosedByBroker: (403) 'ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.'"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "foreign CA, CN=worker",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake",
|
|
"error"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "IncompatibleProtocolError: StreamLostError: (\"Stream connection lost: SSLError(1, '[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2590)')\",)"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake",
|
|
"error"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "IncompatibleProtocolError: StreamLostError: (\"Stream connection lost: SSLError(1, '[SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2590)')\",)"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "worker publishes (not allowed)",
|
|
"expect": "access_refused_403",
|
|
"observed": "access_refused_403",
|
|
"pass": true,
|
|
"detail": "(403, \"ACCESS_REFUSED - write access to exchange 'attachments' in vhost 'messenger' refused for user 'worker'\")"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "dispatcher consumes main queue (not allowed)",
|
|
"expect": "access_refused_403",
|
|
"observed": "access_refused_403",
|
|
"pass": true,
|
|
"detail": "(403, \"ACCESS_REFUSED - read access to queue 'attachments.process.v1' in vhost 'messenger' refused for user 'dispatcher'\")"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "worker declares a queue (no configure)",
|
|
"expect": "access_refused_403",
|
|
"observed": "access_refused_403",
|
|
"pass": true,
|
|
"detail": "(403, \"ACCESS_REFUSED - configure access to queue 'probe-evil-queue' in vhost 'messenger' refused for user 'worker'\")"
|
|
},
|
|
{
|
|
"link": "API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "tls alert"
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "CN=api sends OTLP logs",
|
|
"expect": [
|
|
"http_200",
|
|
"http_400"
|
|
],
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "CN=worker sends OTLP logs",
|
|
"expect": [
|
|
"http_200",
|
|
"http_400"
|
|
],
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "CN=dispatcher sends OTLP logs",
|
|
"expect": [
|
|
"http_200",
|
|
"http_400"
|
|
],
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "CN=janitor sends OTLP logs",
|
|
"expect": [
|
|
"http_200",
|
|
"http_400"
|
|
],
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "our CA, CN=lb (not an app) sends OTLP",
|
|
"expect": "http_403",
|
|
"observed": "http_403",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "our CA, CN=grafana (not an app) sends OTLP",
|
|
"expect": "http_403",
|
|
"observed": "http_403",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "our CA, CN=intruder (not an app) sends OTLP",
|
|
"expect": "http_403",
|
|
"observed": "http_403",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "our CA, CN=operator (not an app) sends OTLP",
|
|
"expect": "http_403",
|
|
"observed": "http_403",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "foreign CA, CN=worker",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "Collector self-metrics, CN=operator",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "Collector self-metrics, CN=api (not allowed)",
|
|
"expect": "http_403",
|
|
"observed": "http_403",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "b''"
|
|
},
|
|
{
|
|
"link": "API/worker -> PostgreSQL (TLS verify-full, SCRAM, roles)",
|
|
"case": "TLS verify-full with our CA (wrong password on purpose)",
|
|
"expect": "tls_ok_auth_failed",
|
|
"observed": "tls_ok_auth_failed",
|
|
"pass": true,
|
|
"detail": "connection failed: connection to server at \"172.26.0.4\", port 5432 failed: FATAL: password authentication failed for user \"messenger_api\""
|
|
},
|
|
{
|
|
"link": "API/worker -> PostgreSQL (TLS verify-full, SCRAM, roles)",
|
|
"case": "plaintext (sslmode=disable)",
|
|
"expect": "rejected_no_tls",
|
|
"observed": "rejected_no_tls",
|
|
"pass": true,
|
|
"detail": "connection failed: connection to server at \"172.26.0.4\", port 5432 failed: FATAL: pg_hba.conf rejects connection for host \"172.26.0.11\", user \"messenger_api\", database \"messenger\", no encryption"
|
|
},
|
|
{
|
|
"link": "API/worker -> PostgreSQL (TLS verify-full, SCRAM, roles)",
|
|
"case": "trust foreign CA only",
|
|
"expect": "client_rejected_server_cert",
|
|
"observed": "client_rejected_server_cert",
|
|
"pass": true,
|
|
"detail": "connection failed: connection to server at \"172.26.0.4\", port 5432 failed: SSL error: certificate verify failed"
|
|
},
|
|
{
|
|
"link": "API/worker -> PostgreSQL (TLS verify-full, SCRAM, roles)",
|
|
"case": "connect by IP: name does not match certificate",
|
|
"expect": "client_rejected_server_cert",
|
|
"observed": "client_rejected_server_cert",
|
|
"pass": true,
|
|
"detail": "connection failed: connection to server at \"172.26.0.4\", port 5432 failed: server certificate for \"postgres\" (and 1 other name) does not match host name \"172.26.0.4\""
|
|
},
|
|
{
|
|
"link": "API -> Redis (TLS + client cert of our CA + ACL user)",
|
|
"case": "our CA client cert, no AUTH",
|
|
"expect": "noauth",
|
|
"observed": "noauth",
|
|
"pass": true,
|
|
"detail": "-NOAUTH Authentication required.\r\n"
|
|
},
|
|
{
|
|
"link": "API -> Redis (TLS + client cert of our CA + ACL user)",
|
|
"case": "our CA, AUTH api with a wrong password",
|
|
"expect": "wrongpass",
|
|
"observed": "wrongpass",
|
|
"pass": true,
|
|
"detail": "-WRONGPASS invalid username-password pair or user is disabled.\r\n"
|
|
},
|
|
{
|
|
"link": "API -> Redis (TLS + client cert of our CA + ACL user)",
|
|
"case": "no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "API -> Redis (TLS + client cert of our CA + ACL user)",
|
|
"case": "foreign CA client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "API -> Redis (TLS + client cert of our CA + ACL user)",
|
|
"case": "trust foreign CA only",
|
|
"expect": "client_rejected_server_cert",
|
|
"observed": "client_rejected_server_cert",
|
|
"pass": true,
|
|
"detail": "SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:1016)"
|
|
},
|
|
{
|
|
"link": "API -> Redis (TLS + client cert of our CA + ACL user)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "ConnectionResetError: [Errno 104] Connection reset by peer"
|
|
},
|
|
{
|
|
"link": "API/worker -> S3 (HTTPS + per-service keys by prefix)",
|
|
"case": "HTTPS anonymous list (no signature)",
|
|
"expect": "http_403",
|
|
"observed": "http_403",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "API/worker -> S3 (HTTPS + per-service keys by prefix)",
|
|
"case": "trust foreign CA only",
|
|
"expect": "client_rejected_server_cert",
|
|
"observed": "client_rejected_server_cert",
|
|
"pass": true,
|
|
"detail": "SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)"
|
|
},
|
|
{
|
|
"link": "API/worker -> S3 (HTTPS + per-service keys by prefix)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "b'HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to a'"
|
|
},
|
|
{
|
|
"link": "API/worker -> S3 (HTTPS + per-service keys by prefix)",
|
|
"case": "S3 gRPC :18333, CN=intruder (our CA)",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "API/worker -> S3 (HTTPS + per-service keys by prefix)",
|
|
"case": "S3 gRPC :18333, CN=api (our CA)",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "API/worker -> S3 (HTTPS + per-service keys by prefix)",
|
|
"case": "S3 gRPC :18333, no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Services -> OpenBao (TLS + cert auth by CN + policy)",
|
|
"case": "CN=worker logs in as role worker",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Services -> OpenBao (TLS + cert auth by CN + policy)",
|
|
"case": "CN=worker logs in as role api",
|
|
"expect": "http_400",
|
|
"observed": "http_400",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Services -> OpenBao (TLS + cert auth by CN + policy)",
|
|
"case": "our CA, CN=intruder as role api",
|
|
"expect": "http_400",
|
|
"observed": "http_400",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Services -> OpenBao (TLS + cert auth by CN + policy)",
|
|
"case": "foreign CA, CN=worker as role worker",
|
|
"expect": [
|
|
"http_400",
|
|
"server_rejected_client_cert"
|
|
],
|
|
"observed": "http_400",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Services -> OpenBao (TLS + cert auth by CN + policy)",
|
|
"case": "no client certificate as role api",
|
|
"expect": "http_400",
|
|
"observed": "http_400",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Services -> OpenBao (TLS + cert auth by CN + policy)",
|
|
"case": "trust foreign CA only",
|
|
"expect": "client_rejected_server_cert",
|
|
"observed": "client_rejected_server_cert",
|
|
"pass": true,
|
|
"detail": "SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)"
|
|
},
|
|
{
|
|
"link": "Services -> OpenBao (TLS + cert auth by CN + policy)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "b'HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to a'"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Prometheus (mTLS + allowed SANs)",
|
|
"case": "CN=operator",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Prometheus (mTLS + allowed SANs)",
|
|
"case": "CN=grafana",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Prometheus (mTLS + allowed SANs)",
|
|
"case": "CN=otel-collector",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Prometheus (mTLS + allowed SANs)",
|
|
"case": "our CA, CN=api (SAN not allowed)",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Prometheus (mTLS + allowed SANs)",
|
|
"case": "our CA, CN=intruder (SAN not allowed)",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: SSLV3_ALERT_BAD_CERTIFICATE] ssl/tls alert bad certificate (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Prometheus (mTLS + allowed SANs)",
|
|
"case": "no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Prometheus (mTLS + allowed SANs)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "b'HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to a'"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Loki (mTLS, CA)",
|
|
"case": "CN=operator",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Loki (mTLS, CA)",
|
|
"case": "no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Loki (mTLS, CA)",
|
|
"case": "foreign CA client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Loki (mTLS, CA)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "b'HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to a'"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Tempo (mTLS, CA)",
|
|
"case": "CN=operator",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Tempo (mTLS, CA)",
|
|
"case": "no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Tempo (mTLS, CA)",
|
|
"case": "foreign CA client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector/Grafana/operator -> Tempo (mTLS, CA)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "b'HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to a'"
|
|
},
|
|
{
|
|
"link": "Collector -> Tempo OTLP gRPC :4317 (mTLS)",
|
|
"case": "no client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector -> Tempo OTLP gRPC :4317 (mTLS)",
|
|
"case": "foreign CA client certificate",
|
|
"expect": [
|
|
"server_rejected_client_cert",
|
|
"connection_closed_after_handshake"
|
|
],
|
|
"observed": "server_rejected_client_cert",
|
|
"pass": true,
|
|
"detail": "SSLError: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2590)"
|
|
},
|
|
{
|
|
"link": "Collector -> Tempo OTLP gRPC :4317 (mTLS)",
|
|
"case": "CN=otel-collector",
|
|
"expect": "accepted",
|
|
"observed": "accepted",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Operator -> Grafana (HTTPS)",
|
|
"case": "HTTPS with our CA",
|
|
"expect": "http_200",
|
|
"observed": "http_200",
|
|
"pass": true,
|
|
"detail": ""
|
|
},
|
|
{
|
|
"link": "Operator -> Grafana (HTTPS)",
|
|
"case": "trust foreign CA only",
|
|
"expect": "client_rejected_server_cert",
|
|
"observed": "client_rejected_server_cert",
|
|
"pass": true,
|
|
"detail": "SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1016)"
|
|
},
|
|
{
|
|
"link": "Operator -> Grafana (HTTPS)",
|
|
"case": "plaintext client",
|
|
"expect": [
|
|
"no_plaintext_service"
|
|
],
|
|
"observed": "no_plaintext_service",
|
|
"pass": true,
|
|
"detail": "b'HTTP/1.0 400 Bad Request\\r\\n\\r\\nClient sent an HTTP request to a'"
|
|
}
|
|
]
|
|
} |