[ { "section": "A", "link": "LB -> api-1:8080", "case": "no client cert", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-1:8080", "case": "foreign CA (claims lb identity)", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-1:8080", "case": "same CA, identity intruder", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-1:8080", "case": "same CA, identity worker", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-1:8080", "case": "same CA, identity api", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-1:8080", "case": "lb.client.messenger", "expect": "accept", "observed": "accepted: HTTP/1.1 200 OK", "pass": true }, { "section": "A", "link": "LB -> api-1:8080", "case": "plaintext client", "expect": "reject", "observed": "server answered b''", "pass": true }, { "section": "A", "link": "LB -> api-2:8080", "case": "no client cert", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-2:8080", "case": "foreign CA (claims lb identity)", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-2:8080", "case": "same CA, identity intruder", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-2:8080", "case": "same CA, identity worker", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-2:8080", "case": "same CA, identity api", "expect": "reject", "observed": "rejected: closed without response", "pass": true }, { "section": "A", "link": "LB -> api-2:8080", "case": "lb.client.messenger", "expect": "accept", "observed": "accepted: HTTP/1.1 200 OK", "pass": true }, { "section": "A", "link": "LB -> api-2:8080", "case": "plaintext client", "expect": "reject", "observed": "server answered b''", "pass": true }, { "section": "I", "link": "client -> nginx:8443", "case": "trusted CA, hostname nginx", "expect": "accept", "observed": "accepted: HTTP/1.1 200 OK", "pass": true }, { "section": "I", "link": "client -> nginx:8443", "case": "untrusted CA in client trust store", "expect": "reject", "observed": "rejected: server cert verify failed: unable to get local issuer certificate", "pass": true }, { "section": "I", "link": "client -> nginx:8443", "case": "wrong hostname (evil.example)", "expect": "reject", "observed": "rejected: server cert verify failed: Hostname mismatch, certificate is not valid for 'evil.example'.", "pass": true }, { "section": "I", "link": "client -> nginx:8443", "case": "plaintext client", "expect": "reject", "observed": "server answered b'HTTP/1.1 400 Bad Request'", "pass": true }, { "section": "B", "link": "svc -> postgres:5432", "case": "plaintext (sslmode=disable)", "expect": "reject", "observed": "OperationalError: connection failed: connection to server at \"172.22.0.9\", port 5432 failed: FATAL: pg_hba.conf rejects connection for host \"172.22.0.17\", user", "pass": true }, { "section": "B", "link": "svc -> postgres:5432", "case": "foreign CA as root (verify-full)", "expect": "reject", "observed": "OperationalError: connection failed: connection to server at \"172.22.0.9\", port 5432 failed: SSL error: certificate verify failed", "pass": true }, { "section": "B", "link": "svc -> postgres:5432", "case": "hostname mismatch (IP, verify-full)", "expect": "reject", "observed": "connection failed: connection to server at \"172.22.0.9\", port 5432 failed: server certificate for \"postgres\" (and 1 other name) does not match host name \"172.22", "pass": true }, { "section": "B", "link": "svc -> postgres:5432", "case": "TLS verify-full + app_api password", "expect": "accept", "observed": "connected", "pass": true }, { "section": "B", "link": "svc -> postgres:5432", "case": "wrong password", "expect": "reject", "observed": "connection failed: connection to server at \"172.22.0.9\", port 5432 failed: FATAL: password authentication failed for user \"app_api\"", "pass": true }, { "section": "B", "link": "app_worker privileges", "case": "SELECT count(*) FROM users", "expect": "deny", "observed": "InsufficientPrivilege", "pass": true }, { "section": "B", "link": "app_worker privileges", "case": "SELECT count(*) FROM messages", "expect": "deny", "observed": "InsufficientPrivilege", "pass": true }, { "section": "B", "link": "app_worker privileges", "case": "SELECT count(*) FROM sessions", "expect": "deny", "observed": "InsufficientPrivilege", "pass": true }, { "section": "B", "link": "app_worker privileges", "case": "DELETE FROM attachments WHERE false", "expect": "deny", "observed": "InsufficientPrivilege", "pass": true }, { "section": "B", "link": "app_worker privileges", "case": "SELECT count(*) FROM attachment_jobs", "expect": "allow", "observed": "executed", "pass": true }, { "section": "B", "link": "app_api privileges", "case": "SELECT count(*) FROM users", "expect": "allow", "observed": "executed", "pass": true }, { "section": "B", "link": "app_api privileges", "case": "CREATE TABLE audit_probe (x int)", "expect": "deny", "observed": "InsufficientPrivilege", "pass": true }, { "section": "B", "link": "app_api privileges", "case": "ALTER ROLE app_worker PASSWORD 'x'", "expect": "deny", "observed": "InsufficientPrivilege", "pass": true }, { "section": "B", "link": "app_api privileges", "case": "SELECT count(*) FROM schema_migrations", "expect": "deny", "observed": "InsufficientPrivilege", "pass": true }, { "section": "C", "link": "svc -> minio:9000", "case": "foreign CA as trust anchor", "expect": "reject", "observed": "SSLError", "pass": true }, { "section": "C", "link": "svc -> minio:9000", "case": "plaintext http://", "expect": "reject", "observed": "ConnectionClosedError", "pass": true }, { "section": "C", "link": "worker S3 rights", "case": "PUT attachments/*", "expect": "allow", "observed": "ok", "pass": true }, { "section": "C", "link": "worker S3 rights", "case": "GET attachments/*", "expect": "deny", "observed": "AccessDenied", "pass": true }, { "section": "C", "link": "worker S3 rights", "case": "DELETE attachments/*", "expect": "deny", "observed": "AccessDenied", "pass": true }, { "section": "C", "link": "worker S3 rights", "case": "PUT staging/*", "expect": "deny", "observed": "AccessDenied", "pass": true }, { "section": "C", "link": "worker S3 rights", "case": "LIST bucket", "expect": "deny", "observed": "AccessDenied", "pass": true }, { "section": "C", "link": "worker S3 rights", "case": "PUT outside prefixes", "expect": "deny", "observed": "AccessDenied", "pass": true }, { "section": "C", "link": "api S3 rights", "case": "PUT staging/*", "expect": "allow", "observed": "ok", "pass": true }, { "section": "C", "link": "api S3 rights", "case": "PUT attachments/* (only worker publishes)", "expect": "deny", "observed": "AccessDenied", "pass": true }, { "section": "C", "link": "api S3 rights", "case": "GET attachments/*", "expect": "allow", "observed": "ok", "pass": true }, { "section": "C", "link": "api S3 rights", "case": "LIST bucket (reconciler)", "expect": "allow", "observed": "ok", "pass": true }, { "section": "C", "link": "api S3 rights", "case": "create bucket", "expect": "deny", "observed": "AccessDenied", "pass": true }, { "section": "C", "link": "api S3 rights", "case": "cleanup audit objects", "expect": "allow", "observed": "ok", "pass": true }, { "section": "D", "link": "svc -> rabbitmq:5672", "case": "plaintext client", "expect": "reject", "observed": "connection failed: ConnectionRefusedError", "pass": true }, { "section": "D", "link": "svc -> rabbitmq:5671", "case": "no client cert", "expect": "reject", "observed": "AMQPConnectionError Server communication error: SSLError(1, '[SSL: TLSV13_ALERT_", "pass": true }, { "section": "D", "link": "svc -> rabbitmq:5671", "case": "foreign CA (claims worker name)", "expect": "reject", "observed": "AMQPConnectionError Server communication error: SSLError(1, '[SSL: TLSV1_ALERT_U", "pass": true }, { "section": "D", "link": "svc -> rabbitmq:5671", "case": "same CA, unknown identity intruder", "expect": "reject", "observed": "ProbableAuthenticationError ACCESS_REFUSED - Login was refused using authentication mech", "pass": true }, { "section": "D", "link": "svc -> rabbitmq:5671", "case": "same CA, identity lb", "expect": "reject", "observed": "ProbableAuthenticationError ACCESS_REFUSED - Login was refused using authentication mech", "pass": true }, { "section": "D", "link": "api AMQP rights", "case": "publish to exchange attachments", "expect": "allow", "observed": "ok", "pass": true }, { "section": "D", "link": "api AMQP rights", "case": "consume attachments.process", "expect": "deny", "observed": "ChannelAccessRefused ACCESS_REFUSED - read access to queue 'attachments.process' in vhost '", "pass": true }, { "section": "D", "link": "api AMQP rights", "case": "declare a queue (configure)", "expect": "deny", "observed": "ChannelAccessRefused ACCESS_REFUSED - configure access to queue 'audit-probe' in vhost 'mes", "pass": true }, { "section": "D", "link": "api AMQP rights", "case": "publish via default exchange", "expect": "deny", "observed": "ChannelAccessRefused ACCESS_REFUSED - write access to exchange 'amq.default' in vhost 'mess", "pass": true }, { "section": "D", "link": "worker AMQP rights", "case": "consume attachments.process", "expect": "allow", "observed": "ok", "pass": true }, { "section": "D", "link": "worker AMQP rights", "case": "publish to exchange attachments", "expect": "deny", "observed": "ChannelAccessRefused ACCESS_REFUSED - write access to exchange 'attachments' in vhost 'mess", "pass": true }, { "section": "D", "link": "worker AMQP rights", "case": "declare a queue (configure)", "expect": "deny", "observed": "ChannelAccessRefused ACCESS_REFUSED - configure access to queue 'audit-probe' in vhost 'mes", "pass": true }, { "section": "E", "link": "svc -> otel-collector:4318", "case": "no client cert", "expect": "reject", "observed": "rejected: after handshake: TLSV13_ALERT_CERTIFICATE_REQUIRED", "pass": true }, { "section": "E", "link": "svc -> otel-collector:4318", "case": "foreign CA", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "E", "link": "svc -> otel-collector:4318", "case": "root CA identity lb (not ingest CA)", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "E", "link": "svc -> otel-collector:4318", "case": "root CA identity api (not ingest CA)", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "E", "link": "svc -> otel-collector:4318", "case": "telemetry CA (not ingest CA)", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "E", "link": "svc -> otel-collector:4318", "case": "ingest CA api.otel", "expect": "accept", "observed": "accepted: HTTP/1.1 200 OK", "pass": true }, { "section": "E", "link": "svc -> otel-collector:4318", "case": "ingest CA worker.otel", "expect": "accept", "observed": "accepted: HTTP/1.1 200 OK", "pass": true }, { "section": "F", "link": "-> prometheus:9090", "case": "no client cert", "expect": "reject", "observed": "rejected: after handshake: TLSV13_ALERT_CERTIFICATE_REQUIRED", "pass": true }, { "section": "F", "link": "-> prometheus:9090", "case": "foreign CA", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> prometheus:9090", "case": "root CA identity api", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> prometheus:9090", "case": "ingest CA (apps cannot bypass collector)", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> prometheus:9090", "case": "telemetry CA collector.out", "expect": "accept", "observed": "accepted: HTTP/1.1 200 OK", "pass": true }, { "section": "F", "link": "-> prometheus:9090", "case": "telemetry CA grafana.out", "expect": "accept", "observed": "accepted: HTTP/1.1 200 OK", "pass": true }, { "section": "F", "link": "-> prometheus:9090", "case": "telemetry CA operator", "expect": "accept", "observed": "accepted: HTTP/1.1 200 OK", "pass": true }, { "section": "F", "link": "-> loki:3100", "case": "no client cert", "expect": "reject", "observed": "rejected: after handshake: TLSV13_ALERT_CERTIFICATE_REQUIRED", "pass": true }, { "section": "F", "link": "-> loki:3100", "case": "foreign CA", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> loki:3100", "case": "root CA identity api", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> loki:3100", "case": "ingest CA (apps cannot bypass collector)", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> loki:3100", "case": "telemetry CA collector.out", "expect": "accept", "observed": "accepted: HTTP/1.1 503 Service Unavailable", "pass": true }, { "section": "F", "link": "-> loki:3100", "case": "telemetry CA grafana.out", "expect": "accept", "observed": "accepted: HTTP/1.1 503 Service Unavailable", "pass": true }, { "section": "F", "link": "-> loki:3100", "case": "telemetry CA operator", "expect": "accept", "observed": "accepted: HTTP/1.1 503 Service Unavailable", "pass": true }, { "section": "F", "link": "-> tempo:3200", "case": "no client cert", "expect": "reject", "observed": "rejected: after handshake: TLSV13_ALERT_CERTIFICATE_REQUIRED", "pass": true }, { "section": "F", "link": "-> tempo:3200", "case": "foreign CA", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> tempo:3200", "case": "root CA identity api", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> tempo:3200", "case": "ingest CA (apps cannot bypass collector)", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "-> tempo:3200", "case": "telemetry CA collector.out", "expect": "accept", "observed": "accepted: HTTP/1.1 503 Service Unavailable", "pass": true }, { "section": "F", "link": "-> tempo:3200", "case": "telemetry CA grafana.out", "expect": "accept", "observed": "accepted: HTTP/1.1 503 Service Unavailable", "pass": true }, { "section": "F", "link": "-> tempo:3200", "case": "telemetry CA operator", "expect": "accept", "observed": "accepted: HTTP/1.1 503 Service Unavailable", "pass": true }, { "section": "F", "link": "collector -> tempo:4317 (gRPC)", "case": "no client cert", "expect": "reject", "observed": "rejected: after handshake: TLSV13_ALERT_CERTIFICATE_REQUIRED", "pass": true }, { "section": "F", "link": "collector -> tempo:4317 (gRPC)", "case": "ingest CA", "expect": "reject", "observed": "rejected: after handshake: TLSV1_ALERT_UNKNOWN_CA", "pass": true }, { "section": "F", "link": "collector -> tempo:4317 (gRPC)", "case": "telemetry CA collector.out", "expect": "accept", "observed": "accepted: \u0000\u0000\u0006\u0004\u0000\u0000\u0000\u0000\u0000\u0000\u0005\u0000\u0000@\u0000", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "plaintext client", "expect": "reject", "observed": "connection failed: ConnectionResetError", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "foreign CA as trust anchor", "expect": "deny", "observed": "ConnectionError Error 1 connecting to valkey:6379. [SSL: CERTIFICATE_VERIFY_", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "no authentication (default user off)", "expect": "deny", "observed": "AuthenticationError Authentication required.", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "user api, wrong password", "expect": "deny", "observed": "AuthenticationError invalid username-password pair or user is disabled.", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "api: SET/GET session:*", "expect": "allow", "observed": "ok", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "api: INCR ratelimit:*", "expect": "allow", "observed": "ok", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "api: GET outside allowed keys", "expect": "deny", "observed": "NoPermissionError No permissions to access a key", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "api: FLUSHALL", "expect": "deny", "observed": "NoPermissionError User api has no permissions to run the 'flushall' command", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "api: CONFIG GET", "expect": "deny", "observed": "NoPermissionError User api has no permissions to run the 'config|get' command", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "api: KEYS *", "expect": "deny", "observed": "NoPermissionError User api has no permissions to run the 'keys' command", "pass": true }, { "section": "G", "link": "api -> valkey:6379", "case": "health: GET session:*", "expect": "deny", "observed": "NoPermissionError User health has no permissions to run the 'get' command", "pass": true }, { "section": "H", "link": "svc -> openbao:8200", "case": "cert login: no client cert", "expect": "reject", "observed": "HTTP 400 token=False", "pass": true }, { "section": "H", "link": "svc -> openbao:8200", "case": "cert login: same CA, identity intruder", "expect": "reject", "observed": "HTTP 400 token=False", "pass": true }, { "section": "H", "link": "svc -> openbao:8200", "case": "cert login: worker cert, role api", "expect": "reject", "observed": "HTTP 400 token=False", "pass": true }, { "section": "H", "link": "svc -> openbao:8200", "case": "cert login: api cert, role worker", "expect": "reject", "observed": "HTTP 400 token=False", "pass": true }, { "section": "H", "link": "svc -> openbao:8200", "case": "cert login: lb cert, role api", "expect": "reject", "observed": "HTTP 400 token=False", "pass": true }, { "section": "H", "link": "svc -> openbao:8200", "case": "cert login: foreign CA (claims worker name)", "expect": "reject", "observed": "HTTP 400 token=False", "pass": true }, { "section": "H", "link": "svc -> openbao:8200", "case": "cert login: worker cert, role worker", "expect": "accept", "observed": "HTTP 200 token=True", "pass": true }, { "section": "H", "link": "worker token", "case": "policies / ttl", "expect": "scoped", "observed": "policies=['default', 'messenger-worker'] ttl=900s", "pass": true }, { "section": "H", "link": "worker token", "case": "read own messenger/worker", "expect": "allow", "observed": "HTTP 200", "pass": true }, { "section": "H", "link": "worker token", "case": "read messenger/api", "expect": "deny", "observed": "HTTP 403", "pass": true }, { "section": "H", "link": "worker token", "case": "write own secret", "expect": "deny", "observed": "HTTP 403", "pass": true }, { "section": "H", "link": "worker token", "case": "write own policy", "expect": "deny", "observed": "HTTP 403", "pass": true }, { "section": "H", "link": "worker token", "case": "list auth methods (admin)", "expect": "deny", "observed": "HTTP 403", "pass": true }, { "section": "H", "link": "svc -> openbao:8200", "case": "cert login: api cert, role api", "expect": "accept", "observed": "HTTP 200 token=True", "pass": true }, { "section": "H", "link": "api token", "case": "policies / ttl", "expect": "scoped", "observed": "policies=['default', 'messenger-api'] ttl=900s", "pass": true }, { "section": "H", "link": "api token", "case": "read own messenger/api", "expect": "allow", "observed": "HTTP 200", "pass": true }, { "section": "H", "link": "api token", "case": "read messenger/worker", "expect": "deny", "observed": "HTTP 403", "pass": true }, { "section": "H", "link": "api token", "case": "write own secret", "expect": "deny", "observed": "HTTP 403", "pass": true }, { "section": "H", "link": "api token", "case": "write own policy", "expect": "deny", "observed": "HTTP 403", "pass": true }, { "section": "H", "link": "api token", "case": "list auth methods (admin)", "expect": "deny", "observed": "HTTP 403", "pass": true }, { "section": "J", "link": "operator -> grafana:3000", "case": "HTTPS without login", "expect": "reject", "observed": "accepted: HTTP/1.1 401 Unauthorized", "pass": true }, { "section": "J", "link": "operator -> grafana:3000", "case": "plaintext client", "expect": "reject", "observed": "server answered b'HTTP/1.0 400 Bad Request'", "pass": true }, { "section": "K", "link": "rabbitmq:25672", "case": "Erlang distribution", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "rabbitmq:4369", "case": "epmd", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "rabbitmq:15672", "case": "management UI", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "loki:9096", "case": "Loki internal gRPC", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "tempo:9095", "case": "Tempo internal gRPC", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "otel-collector:8888", "case": "collector self-metrics", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "otel-collector:13133", "case": "collector health", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "otel-collector:4317", "case": "collector OTLP/gRPC (disabled)", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "api-1:8081", "case": "API loopback health", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "api-2:8081", "case": "API loopback health", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "openbao:8201", "case": "OpenBao cluster port", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "minio:9001", "case": "MinIO console", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true }, { "section": "K", "link": "postgres:5433", "case": "no second PostgreSQL listener", "expect": "closed", "observed": "ConnectionRefusedError", "pass": true } ]