Files
mtusi2026lab7/evidence/tls-matrix.txt
T

111 lines
7.9 KiB
Plaintext

# tls-matrix: lab7: every trust-matrix link from inside — allowed identity passes, no cert / foreign CA / wrong identity / expired fail
# date: 2026-11-07 19:07:39, commit: 20afc2c + uncommitted changes
# command: python.exe student-tests/test_tls_matrix.py
# exit code: 0, 19.8 s
LB -> API (mTLS, allowlist CN=lb)
PASS valid LB identity (CN=lb) -> http_200
PASS no client certificate -> connection_closed_after_handshake
PASS foreign CA, CN=lb -> connection_closed_after_handshake
PASS our CA, expired, CN=lb -> connection_closed_after_handshake
PASS our CA, CN=intruder -> connection_closed_after_handshake
PASS our CA, CN=worker (other service) -> connection_closed_after_handshake
PASS our CA, CN=api (server's own identity) -> connection_closed_after_handshake
PASS server identity: client trusts only foreign CA -> client_rejected_server_cert
PASS previous (rotated, revoked) LB leaf -> connection_closed_after_handshake
PASS plaintext client -> no_plaintext_service
API/worker -> RabbitMQ (mTLS + EXTERNAL, CN = broker user)
PASS worker identity consumes its queue -> allowed
PASS dispatcher identity publishes to exchange -> allowed
PASS CN=api (no broker user, API uses outbox) -> login_refused
PASS our CA, CN=intruder -> login_refused
PASS our CA, CN=lb -> login_refused
PASS foreign CA, CN=worker -> server_rejected_client_cert
PASS no client certificate -> server_rejected_client_cert
PASS worker publishes (not allowed) -> access_refused_403
PASS dispatcher consumes main queue (not allowed) -> access_refused_403
PASS worker declares a queue (no configure) -> access_refused_403
PASS plaintext client -> no_plaintext_service
API/worker -> OTel Collector (mTLS via otel-gate, allowlist app CNs)
PASS CN=api sends OTLP logs -> http_200
PASS CN=worker sends OTLP logs -> http_200
PASS CN=dispatcher sends OTLP logs -> http_200
PASS CN=janitor sends OTLP logs -> http_200
PASS our CA, CN=lb (not an app) sends OTLP -> http_403
PASS our CA, CN=grafana (not an app) sends OTLP -> http_403
PASS our CA, CN=intruder (not an app) sends OTLP -> http_403
PASS our CA, CN=operator (not an app) sends OTLP -> http_403
PASS foreign CA, CN=worker -> server_rejected_client_cert
PASS no client certificate -> server_rejected_client_cert
PASS Collector self-metrics, CN=operator -> http_200
PASS Collector self-metrics, CN=api (not allowed) -> http_403
PASS plaintext client -> no_plaintext_service
API/worker -> PostgreSQL (TLS verify-full, SCRAM, roles)
PASS TLS verify-full with our CA (wrong password on purpose) -> tls_ok_auth_failed
PASS plaintext (sslmode=disable) -> rejected_no_tls
PASS trust foreign CA only -> client_rejected_server_cert
PASS connect by IP: name does not match certificate -> client_rejected_server_cert
API -> Redis (TLS + client cert of our CA + ACL user)
PASS our CA client cert, no AUTH -> noauth
PASS our CA, AUTH api with a wrong password -> wrongpass
PASS no client certificate -> server_rejected_client_cert
PASS foreign CA client certificate -> server_rejected_client_cert
PASS trust foreign CA only -> client_rejected_server_cert
PASS plaintext client -> no_plaintext_service
API/worker -> S3 (HTTPS + per-service keys by prefix)
PASS HTTPS anonymous list (no signature) -> http_403
PASS trust foreign CA only -> client_rejected_server_cert
PASS plaintext client -> no_plaintext_service
PASS S3 gRPC :18333, CN=intruder (our CA) -> server_rejected_client_cert
PASS S3 gRPC :18333, CN=api (our CA) -> server_rejected_client_cert
PASS S3 gRPC :18333, no client certificate -> server_rejected_client_cert
Services -> OpenBao (TLS + cert auth by CN + policy)
PASS CN=worker logs in as role worker -> http_200
PASS CN=worker logs in as role api -> http_400
PASS our CA, CN=intruder as role api -> http_400
PASS foreign CA, CN=worker as role worker -> http_400
PASS no client certificate as role api -> http_400
PASS trust foreign CA only -> client_rejected_server_cert
PASS plaintext client -> no_plaintext_service
Collector/Grafana/operator -> Prometheus (mTLS + allowed SANs)
PASS CN=operator -> http_200
PASS CN=grafana -> http_200
PASS CN=otel-collector -> http_200
PASS our CA, CN=api (SAN not allowed) -> server_rejected_client_cert
PASS our CA, CN=intruder (SAN not allowed) -> server_rejected_client_cert
PASS no client certificate -> server_rejected_client_cert
PASS plaintext client -> no_plaintext_service
Collector/Grafana/operator -> Loki (mTLS, CA)
PASS CN=operator -> http_200
PASS no client certificate -> server_rejected_client_cert
PASS foreign CA client certificate -> server_rejected_client_cert
PASS plaintext client -> no_plaintext_service
Collector/Grafana/operator -> Tempo (mTLS, CA)
PASS CN=operator -> http_200
PASS no client certificate -> server_rejected_client_cert
PASS foreign CA client certificate -> server_rejected_client_cert
PASS plaintext client -> no_plaintext_service
Collector -> Tempo OTLP gRPC :4317 (mTLS)
PASS no client certificate -> server_rejected_client_cert
PASS foreign CA client certificate -> server_rejected_client_cert
PASS CN=otel-collector -> accepted
Operator -> Grafana (HTTPS)
PASS HTTPS with our CA -> http_200
PASS trust foreign CA only -> client_rejected_server_cert
PASS plaintext client -> no_plaintext_service
78 checks, 0 failed; saved to C:\Users\Gigabyte\Desktop\lab7\mtusi2026lab7\evidence\tls-matrix.json
PASS: every link of the trust matrix accepts the allowed identity and rejects the rest