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

135 checks, 0 failed
