лабораторная работа 7

This commit is contained in:
2026-11-18 01:02:09 +03:00
parent 20afc2c790
commit b035b50dbd
298 changed files with 28830 additions and 109 deletions
+38
View File
@@ -0,0 +1,38 @@
# evidence/sandbox — проверка конфигураций вне Docker (2026-11-16)
В среде подготовки решения Docker Hub был недоступен (registry отвечал 403), поэтому полный стенд
в Docker там не поднимался. Чтобы не сдавать непроверенные конфиги, **те же файлы** из `infra/`,
`infra/openbao/`, `infra/postgres/`, `infra/redis/`, `infra/haproxy/` и код приложения были запущены
на тех же версиях продуктов нативно на одном Linux-хосте:
| Компонент | Версия в песочнице | Источник |
| --- | --- | --- |
| OpenBao (server + 2 agent) | 2.1.0 | GitHub release |
| HAProxy (LB, broker-gate, otel-gate) | 2.8.0 (в compose 2.8.30) | сборка из исходников с OpenSSL |
| Redis (кэш, broker) | 7.4.1, BUILD_TLS=yes | сборка из исходников |
| PostgreSQL | 16 | пакет ОС |
| SeaweedFS | 4.50 | GitHub release |
| OTel Collector contrib / Prometheus / Loki / Tempo | 0.115.1 / 2.55.1 / 3.3.2 / 2.6.1 | GitHub release |
| API ×2 + worker | этот репозиторий, Python 3.13, requirements.txt | — |
Отличия от Docker: пути `/run/secrets/*` — symlink-и, все сервисы на одном хосте (имена резолвятся в
127.0.0.1 через /etc/hosts), порты, конфликтующие на общем хосте, переназначены (LB 9443, кэш Redis
16379, self-метрики Collector 18898/28888), HAProxy с двумя статическими `server` вместо `server-template`
(нет Docker DNS). Grafana не запускалась.
Файлы:
* `public-tests.txt` — `tests/smoke.py`, `tests/security.py`, `scripts/check_contract.py` по HTTPS через LB.
* `security_http.txt` — 24/24 проверки ACL, 429, 413, TLS снаружи.
* `student-tests.txt` — 91 тест lab2–6 (58 выполнено, 33 требуют in-network окружения) + 12 white-box тестов хранилища.
* `tls_audit.json` / `tls_audit.txt` — 95 проверок матрицы (прогон до добавления 6 проверок служебных портов S3 — всего теперь 101); **7 FAIL — артефакты общего хоста**: в
песочнице loopback-порты сервисов (`127.0.0.1:8081` health API, `127.0.0.1:6379` Redis broker,
`127.0.0.1:14318/18889/18888/13133` Collector, `127.0.0.1:8404` статистика HAProxy) доступны тесту,
потому что тест работает на том же хосте. В Docker это loopback **внутри контейнера**, и из контейнера
`audit` они недоступны — именно это и проверяют эти 7 пунктов на стенде.
* `bao_policy.json` — 12/12 allow/deny политик OpenBao.
* `leak_check.json` — нет канареек и секретов ролей в Loki/Tempo/Prometheus (с положительным контролем свежих данных).
* `lifecycle.txt` — ротация пароля БД, ротация и отзыв сертификата LB, SecretID, sealed OpenBao, rehash, бюджет login DoS.
* `pip-audit-before.txt` / `pip-audit-after.txt` — 72 уязвимости → 0 после обновления зависимостей.
На Docker-стенде всё это (и hardening, persistence, failover) повторяет `run.ps1` и пишет в `evidence/run/`.
+65
View File
@@ -0,0 +1,65 @@
{
"ok": true,
"checks": [
{
"check": "api reads own kv/messenger/api",
"ok": true,
"detail": ""
},
{
"check": "api cannot read kv/messenger/worker",
"ok": true,
"detail": ""
},
{
"check": "api cannot write own kv path",
"ok": true,
"detail": ""
},
{
"check": "api cannot write policies",
"ok": true,
"detail": ""
},
{
"check": "api cannot mint SecretIDs",
"ok": true,
"detail": ""
},
{
"check": "api token is short-lived (ttl<=15m) and not root",
"ok": true,
"detail": "ttl=899s policies=['default', 'messenger-api']"
},
{
"check": "worker reads own kv/messenger/worker",
"ok": true,
"detail": ""
},
{
"check": "worker cannot read kv/messenger/api",
"ok": true,
"detail": ""
},
{
"check": "worker cannot write own kv path",
"ok": true,
"detail": ""
},
{
"check": "worker cannot write policies",
"ok": true,
"detail": ""
},
{
"check": "worker cannot mint SecretIDs",
"ok": true,
"detail": ""
},
{
"check": "worker token is short-lived (ttl<=15m) and not root",
"ok": true,
"detail": "ttl=899s policies=['default', 'messenger-worker']"
}
]
}
+31
View File
@@ -0,0 +1,31 @@
{
"ok": true,
"controls": {
"loki has messenger-api logs": true,
"tempo has POST /api/v1/auth/sessions spans": true,
"prometheus has http metrics labels": true
},
"canary_user_created": true,
"searched": {
"loki_lines": 54,
"tempo_traces": 51,
"prometheus_labels": 26
},
"needles": [
"argon2 hash",
"basic header",
"bearer header",
"broker_api_password",
"broker_worker_password",
"cache_api_password",
"db_api_password",
"db_worker_password",
"private key",
"s3_secret_access_key",
"s3_worker_secret_access_key",
"session token",
"user password",
"wrong password"
],
"findings": []
}
+58
View File
@@ -0,0 +1,58 @@
# Жизненный цикл секретов/сертификатов — проверка в локальной песочнице (2026-11-16)
#
# ВАЖНО: это НЕ Docker-стенд. Docker Hub из среды подготовки был недоступен, поэтому конфиги
# стенда проверялись на тех же версиях продуктов, запущенных нативно (OpenBao 2.1.0,
# HAProxy 2.8 из исходников, Redis 7.4.1 из исходников, PostgreSQL 16, SeaweedFS 4.50,
# otelcol-contrib 0.115.1, Prometheus 2.55.1, Loki 3.3.2, Tempo 2.6.1) с ровно теми же
# файлами конфигурации из infra/ (подставлены только пути /run/secrets и порты, занятые на
# общем хосте). Повторить на Docker: python scripts/ops.py <команда> (см. RUN.md).
## 1. Ротация рабочего секрета: пароль роли messenger_api (без рестарта API и пересборки)
ALTER ROLE messenger_api PASSWORD <new> -> bao kv patch kv/messenger/api db_password=<new>
agent re-rendered /run/bao/database_url after 11s (static_secret_render_interval был 15 с; в репозитории 5 с)
old password, NEW connection: password authentication failed for user "messenger_api"
new password, NEW connection: new password works
pg_terminate_backend(все сессии messenger_api) -> 2 сессии разорваны -> пул открыл новые
python3 tests/smoke.py ... -> PASS: lab7 public API scenario
=> ops.py rotate-db-password делает то же самое на Docker-стенде и пишет окно в evidence/ops.log
## 2. Ротация leaf-сертификата LB->API и отзыв старой identity (CRL), без рестарта API
pki.py rotate lb-client -> issue lb-client serial 7d592e39c7af2af70c237972b0532b84bf75c05
new lb: 200 old lb (not yet revoked): 200
pki.py revoke lb-client -> crl 1 revoked serial(s)
(через <= 5 с API перечитал CRL)
new lb: 200 old lb (revoked): 000 (соединение разорвано)
API log: mTLS CRL loaded: 1 revoked serial(s)
API log: mTLS client rejected: identity=lb reason=certificate_revoked
=> ops.py rotate-lb-cert: rotate -> restart lb (без build) -> revoke -> проба старым/новым из контейнера audit
## 3. Ротация SecretID и отзыв identity AppRole (bao.py)
issued new SecretID for worker (ttl 168h, bound to CIDR); previous SecretID destroyed
old SecretID login: denied
new SecretID login: accepted
revoked identity worker: 1 SecretID, 3 token(s); agent can no longer authenticate
after revoke-role, current SecretID login: denied
recovered with new SecretID: accepted
## 4. OpenBao sealed / недоступен
bao operator seal -> Success! Vault is sealed.
файлы /run/bao/* агентов остались (-r-------- database_url ...), API продолжает работу
agent log: Vault is sealed (retry attempt 10 after "1m0s") (backoff, процесс агента жив)
bao.py unseal -> unsealed=True; агент сам восстановился и перерисовал секрет через ~60 с:
agent: (runner) rendered "(dynamic)" => ".../database_url"
## 5. KV -> агент -> файл (доставка изменения)
kv patch -> файл перерисован (ROTATION PROPAGATED)
## 6. Argon2id rehash при успешном входе
register 201
before: m=8192,t=1,p=1 (hash подменён на «старые» параметры админским UPDATE)
login 201
after: m=19456,t=2,p=1 (пересчитан под текущие параметры; лог auth.rehash)
## 7. Бюджет login DoS (песочница без CPU-лимита; на стенде повторить ops.py login-budget)
Argon2id m=19456,t=2,p=1: hash p50 24.2 ms, verify p50 24.0 ms, RAM 19 MiB на хеш;
оценка при CPU-квоте 0.5 и 4 слотах KDF: ~20.8 входов/с на реплику.
Поток 30 с, 8 потоков, случайные username с одного IP:
login attempts 150.6/s: 401 = 136 (дошли до Argon2id), 429 = 4397 (срезаны rate limit ДО KDF)
GET /users/me p50 9.0 ms -> 39.4 ms во время потока, p95 13.5 -> 112.4 ms, ошибок 0 из 201
+2
View File
@@ -0,0 +1,2 @@
# pip-audit ПОСЛЕ обновления (requirements.txt lab7), 2026-11-16T11:26:50Z
No known vulnerabilities found
+104
View File
@@ -0,0 +1,104 @@
# pip-audit ДО обновления (requirements lab6 + cryptography 44.0.0), 2026-11-16T11:26:42Z
Found 100 known vulnerabilities in 4 packages
Name Version ID Fix Versions
----------------- ------- ------------------- ------------
pillow 11.1.0 PYSEC-2026-2249 12.1.1
pillow 11.1.0 PYSEC-2026-2250 12.2.0
pillow 11.1.0 PYSEC-2026-165 12.2.0
pillow 11.1.0 PYSEC-2026-2874 12.2.0
pillow 11.1.0 PYSEC-2026-2252 12.2.0
pillow 11.1.0 PYSEC-2026-165 12.2.0
pillow 11.1.0 PYSEC-2026-2250 12.2.0
pillow 11.1.0 PYSEC-2026-2253 12.3.0
pillow 11.1.0 PYSEC-2026-2255 12.3.0
pillow 11.1.0 PYSEC-2026-2257 12.3.0
pillow 11.1.0 PYSEC-2026-2256 12.3.0
pillow 11.1.0 PYSEC-2026-2254 12.3.0
pillow 11.1.0 PYSEC-2026-2252 12.2.0
pillow 11.1.0 PYSEC-2026-2249 12.1.1
pillow 11.1.0 PYSEC-2026-2874 12.2.0
pillow 11.1.0 PYSEC-2026-3453 12.3.0
pillow 11.1.0 PYSEC-2026-3451 12.3.0
pillow 11.1.0 PYSEC-2026-3493 12.3.0
pillow 11.1.0 PYSEC-2026-2254 12.3.0
pillow 11.1.0 PYSEC-2026-2253 12.3.0
pillow 11.1.0 PYSEC-2026-2256 12.3.0
pillow 11.1.0 PYSEC-2026-2255 12.3.0
pillow 11.1.0 PYSEC-2026-3454 12.3.0
pillow 11.1.0 PYSEC-2026-3451 12.3.0
pillow 11.1.0 PYSEC-2026-3494 12.3.0
pillow 11.1.0 PYSEC-2026-3495 12.3.0
pillow 11.1.0 PYSEC-2026-3496 12.3.0
pillow 11.1.0 PYSEC-2026-3453 12.3.0
pillow 11.1.0 PYSEC-2026-3454 12.3.0
pillow 11.1.0 PYSEC-2026-3495 12.3.0
pillow 11.1.0 PYSEC-2026-3496 12.3.0
pillow 11.1.0 PYSEC-2026-3494 12.3.0
pillow 11.1.0 PYSEC-2026-3493 12.3.0
pillow 11.1.0 PYSEC-2026-4327 13.0.0
pillow 11.1.0 PYSEC-2026-4326 13.0.0
pillow 11.1.0 PYSEC-2026-4339 13.0.0
pillow 11.1.0 PYSEC-2026-4340 13.0.0
pillow 11.1.0 PYSEC-2026-4343 13.0.0
pillow 11.1.0 PYSEC-2026-4334 13.0.0
pillow 11.1.0 PYSEC-2026-4337 13.0.0
pillow 11.1.0 PYSEC-2026-4341 13.0.0
pillow 11.1.0 PYSEC-2026-4330 13.0.0
pillow 11.1.0 PYSEC-2026-4338 13.0.0
pillow 11.1.0 PYSEC-2026-4335 13.0.0
pillow 11.1.0 PYSEC-2026-4331 13.0.0
pillow 11.1.0 PYSEC-2026-4332 13.0.0
pillow 11.1.0 PYSEC-2026-4329 13.0.0
pillow 11.1.0 PYSEC-2026-4342 13.0.0
pillow 11.1.0 PYSEC-2026-4363 13.0.0
pillow 11.1.0 CVE-2026-112895 13.0.0
pillow 11.1.0 CVE-2026-112400 13.0.0
pillow 11.1.0 CVE-2026-112897 13.0.0
pillow 11.1.0 CVE-2026-112395 13.0.0
pillow 11.1.0 CVE-2026-112404 13.0.0
pillow 11.1.0 CVE-2026-112899 13.0.0
pillow 11.1.0 CVE-2026-112900 13.0.0
pillow 11.1.0 CVE-2026-112893 13.0.0
pillow 11.1.0 CVE-2026-112891 13.0.0
pillow 11.1.0 CVE-2026-112390 13.0.0
pillow 11.1.0 CVE-2026-112401 13.0.0
pillow 11.1.0 CVE-2026-112391 13.0.0
pillow 11.1.0 CVE-2026-112894 13.0.0
pillow 11.1.0 CVE-2026-112406 13.0.0
pillow 11.1.0 CVE-2026-112399 13.0.0
pillow 11.1.0 CVE-2026-112892 13.0.0
pillow 11.1.0 CVE-2026-112393 13.0.0
pillow 11.1.0 CVE-2026-96638 13.0.0
pillow 11.1.0 CVE-2026-96640 13.0.0
pillow 11.1.0 CVE-2026-96778 13.0.0
pillow 11.1.0 GHSA-78g4-xqwv-q3g8 13.0.0
pillow 11.1.0 CVE-2026-128067 13.0.0
pillow 11.1.0 CVE-2026-128066 13.0.0
opentelemetry-api 1.29.0 CVE-2026-114603 1.45.1
opentelemetry-api 1.29.0 CVE-2026-126360 1.45.2
cryptography 44.0.0 PYSEC-2026-1284 44.0.1
cryptography 44.0.0 PYSEC-2026-2141 46.0.5
cryptography 44.0.0 PYSEC-2026-35 46.0.6
cryptography 44.0.0 PYSEC-2026-35 46.0.6
cryptography 44.0.0 PYSEC-2026-1284 44.0.1
cryptography 44.0.0 PYSEC-2026-2141 46.0.5
cryptography 44.0.0 PYSEC-2026-3552 50.0.0
cryptography 44.0.0 PYSEC-2026-3553 49.0.0
cryptography 44.0.0 PYSEC-2026-3552 50.0.0
cryptography 44.0.0 PYSEC-2026-3553 49.0.0
cryptography 44.0.0 PYSEC-2026-3554 49.0.0
cryptography 44.0.0 GHSA-537c-gmf6-5ccf 48.0.1
starlette 0.41.3 PYSEC-2026-1941 0.47.2
starlette 0.41.3 PYSEC-2026-1942 0.49.1
starlette 0.41.3 PYSEC-2026-161 1.0.1
starlette 0.41.3 PYSEC-2026-161 1.0.1
starlette 0.41.3 PYSEC-2026-2281 1.1.0
starlette 0.41.3 PYSEC-2026-2280 1.1.0
starlette 0.41.3 PYSEC-2026-249 1.3.1
starlette 0.41.3 PYSEC-2026-248 1.3.0
starlette 0.41.3 PYSEC-2026-249 1.3.1
starlette 0.41.3 PYSEC-2026-248 1.3.0
starlette 0.41.3 PYSEC-2026-1942 0.49.1
starlette 0.41.3 PYSEC-2026-1941 0.47.2
starlette 0.41.3 PYSEC-2026-2281 1.1.0
starlette 0.41.3 PYSEC-2026-2280 1.1.0
+6
View File
@@ -0,0 +1,6 @@
# python3 tests/smoke.py --base-url https://localhost:9443 --ca-file <CA> (2026-11-16T11:39:03Z)
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
# python3 tests/security.py ...
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
# python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
+26
View File
@@ -0,0 +1,26 @@
# security_http.py via LB, 2 API replicas (2026-11-16T11:39:04Z)
PASS setup: chat + attachment 202
PASS outsider GET /api/v1/chats/{chat} -> 404 (no existence leak) 404
PASS outsider GET /api/v1/chats/{chat}/messages -> 404 (no existence leak) 404
PASS outsider POST /api/v1/chats/{chat}/messages -> 404 (no existence leak) 404
PASS outsider GET /api/v1/attachments/{att} -> 404 (no existence leak) 404
PASS outsider GET /api/v1/attachments/{att}/content -> 404 (no existence leak) 404
PASS outsider attaches foreign attachment to own chat -> 404 404
PASS X-User-Id cannot override Bearer identity eve_26766f0a44
PASS X-User-Id alone -> 401 + WWW-Authenticate Bearer Bearer realm="messenger"
PASS Basic on business endpoint -> 401 401
PASS unknown/forged token -> 401 401
PASS logout 204 -> token rejected 401 -> repeat logout 401 (204, 401, 401)
PASS wrong password -> 401, body has no username/password/hash {"error":{"code":"unauthorized","message":"Authentication required","request_id"
PASS malformed JSON -> 400 without stack trace/SQL {"error":{"code":"invalid_request","message":"Invalid request","request_id":"7F0
PASS login brute force -> 429 rate_limited + Retry-After [401, 401, 401, 401, 401, 401, 401, 401, 401, 429, 429, 429] Retry-After=55
PASS rate limit is shared: responses from >= 2 replicas ['api-1213c2d7', 'api-21b5d532']
PASS correct password while locked out -> 429 (no oracle) 429
PASS JSON body 70 KB -> 413 payload_too_large from LB (before any replica) instance=None
PASS chunked JSON 70 KB -> 413 payload_too_large (API) instance=api-1213c2d7
PASS upload 10 MiB + 1 byte -> 413 413
PASS wrong server name -> certificate verification error Hostname mismatch, certificate is not valid for 'evil.example'.
PASS empty trust store -> verification error unable to get local issuer certificate
PASS plaintext HTTP on HTTPS port is not served RemoteDisconnected
PASS grafana over HTTPS requires authentication (skipped: not reachable) ConnectionRefusedError
PASS: 24/24 checks
+12
View File
@@ -0,0 +1,12 @@
# student tests lab2-6 over HTTPS (2026-11-16T11:39:05Z)
............ssssssssss.............................s.
24 parallel POSTs, one key -> 1 message; replicas: ['api-1213c2d7', 'api-21b5d532']
................ssssssssssssssssssssss
----------------------------------------------------------------------
Ran 91 tests in 15.196s
OK (skipped=33)
# white-box storage tests (admin DB identity)
Ran 12 tests in 4.088s
OK
+672
View File
@@ -0,0 +1,672 @@
{
"ok": false,
"total": 95,
"failed": 7,
"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": false,
"observed": "('tls_error', 'WRONG_VERSION_NUMBER')"
},
{
"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": "('reset', 'BrokenPipeError')"
},
{
"link": "lb -> api (mTLS, allowlist lb + CRL)",
"check": "same CA, identity intruder",
"expected": "rejected (TLS/handshake/close)",
"ok": true,
"observed": "('reset', 'BrokenPipeError')"
},
{
"link": "lb -> api (mTLS, allowlist lb + CRL)",
"check": "same CA, identity worker",
"expected": "rejected (TLS/handshake/close)",
"ok": true,
"observed": "('reset', 'BrokenPipeError')"
},
{
"link": "lb -> api (mTLS, allowlist lb + CRL)",
"check": "same CA, identity api (replica as client)",
"expected": "rejected (TLS/handshake/close)",
"ok": true,
"observed": "('reset', 'BrokenPipeError')"
},
{
"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": false,
"observed": "('http', 404)"
},
{
"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 \"127.0.0.1\", port 5432 failed: FATAL: pg_hba.conf rejects connection for host \"127.0.0.1\", 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 \"127.0.0.1\", 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 \"127.0.0.1\", port 5432 failed: server certificate for \"postgres\" (and 1 other name) does not match host name \"127.0.0.1\""
},
{
"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:16379 : (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:16379 : (1, '[SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:2663)')\")"
},
{
"link": "api -> redis cache (mTLS + ACL)",
"check": "plaintext",
"expected": "connection rejected",
"ok": true,
"observed": "('conn_error', \"Error while reading from redis:16379 : (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:2663)')\")"
},
{
"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', 149)"
},
{
"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": false,
"observed": "('ok', True)"
},
{
"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": "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": false,
"observed": "('http', 404)"
},
{
"link": "prometheus -> otel-gate metrics (allowlist prometheus)",
"check": "collector loopback port 18889 not reachable",
"expected": "refused",
"ok": false,
"observed": "('http', 404)"
},
{
"link": "prometheus -> otel-gate metrics (allowlist prometheus)",
"check": "collector loopback port 18888 not reachable",
"expected": "refused",
"ok": false,
"observed": "('closed', \"b'\\\\x00\\\\x00\\\\x18\\\\x04\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x00\\\\x05\\\\x00\\\\x00@\\\\x00\\\\x00\\\\x03\\\\x00\\\\x00\\\\x03'\")"
},
{
"link": "prometheus -> otel-gate metrics (allowlist prometheus)",
"check": "collector loopback port 13133 not reachable",
"expected": "refused",
"ok": false,
"observed": "('http', 200)"
},
{
"link": "collector/grafana -> loki (mTLS)",
"check": "client cert grafana",
"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",
"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",
"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)"
}
]
}
+95
View File
@@ -0,0 +1,95 @@
PASS client -> lb (public TLS) trusted CA + hostname lb/localhost SAN ('http', 200)
PASS client -> lb (public TLS) empty trust store ('verify_error', 'unable to get local issuer certificate')
PASS client -> lb (public TLS) wrong hostname ('verify_error', "Hostname mismatch, certificate is not vali
PASS client -> lb (public TLS) plaintext HTTP on :8443 ('closed', "b''")
FAIL client -> lb (public TLS) HAProxy stats not exposed on network ('tls_error', 'WRONG_VERSION_NUMBER')
PASS lb -> api (mTLS, allowlist lb + CRL) identity lb (allowed) ('http', 200)
PASS lb -> api (mTLS, allowlist lb + CRL) no client certificate ('closed', 'connection closed without HTTP response')
PASS lb -> api (mTLS, allowlist lb + CRL) rogue CA with CN=lb ('reset', 'BrokenPipeError')
PASS lb -> api (mTLS, allowlist lb + CRL) same CA, identity intruder ('reset', 'BrokenPipeError')
PASS lb -> api (mTLS, allowlist lb + CRL) same CA, identity worker ('reset', 'BrokenPipeError')
PASS lb -> api (mTLS, allowlist lb + CRL) same CA, identity api (replica as client) ('reset', 'BrokenPipeError')
PASS lb -> api (mTLS, allowlist lb + CRL) plaintext HTTP on :8443 ('closed', "b''")
FAIL lb -> api (mTLS, allowlist lb + CRL) health listener 8081 not reachable from network (loo ('http', 404)
PASS lb -> api (mTLS, allowlist lb + CRL) LB-side check: server name must be api ('verify_error', "Hostname mismatch, certificate is not vali
PASS api/worker -> postgres (TLS verify-full, roles) messenger_api verify-full (True, 'TLSv1.3')
PASS api/worker -> postgres (TLS verify-full, roles) plaintext (sslmode=disable) connection failed: connection to server at "127.0.0.1", port
PASS api/worker -> postgres (TLS verify-full, roles) rogue CA as trust root connection failed: connection to server at "127.0.0.1", port
PASS api/worker -> postgres (TLS verify-full, roles) wrong hostname (IP instead of name) connection failed: connection to server at "127.0.0.1", port
PASS api/worker -> postgres (TLS verify-full, roles) messenger_worker: SELECT count(*) FROM attachments executed
PASS api/worker -> postgres (TLS verify-full, roles) messenger_worker: SELECT password_hash FROM users LI permission denied for table users
PASS api/worker -> postgres (TLS verify-full, roles) messenger_worker: SELECT token_hash FROM sessions LI permission denied for table sessions
PASS api/worker -> postgres (TLS verify-full, roles) messenger_api: CREATE TABLE audit_ddl (i int) permission denied for schema public
PASS api/worker -> postgres (TLS verify-full, roles) messenger_api: TRUNCATE users permission denied for table users
PASS api -> redis cache (mTLS + ACL) messenger_api SET sess:* ('ok', True)
PASS api -> redis cache (mTLS + ACL) messenger_api SET other:key 1 ('noperm', 'No permissions to access a key')
PASS api -> redis cache (mTLS + ACL) messenger_api FLUSHALL ('noperm', "User messenger_api has no permissions to run the
PASS api -> redis cache (mTLS + ACL) messenger_api CONFIG GET * ('noperm', "User messenger_api has no permissions to run the
PASS api -> redis cache (mTLS + ACL) messenger_api KEYS * ('noperm', "User messenger_api has no permissions to run the
PASS api -> redis cache (mTLS + ACL) cert without AUTH (default user off) ('noauth', 'Authentication required.')
PASS api -> redis cache (mTLS + ACL) no client certificate ('conn_error', "Error while reading from redis:16379 : (1, '
PASS api -> redis cache (mTLS + ACL) rogue CA client certificate ('conn_error', "Error while reading from redis:16379 : (1, '
PASS api -> redis cache (mTLS + ACL) plaintext ('conn_error', "Error while reading from redis:16379 : (104,
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke no client certificate (with valid producer password) ('conn_error', "Error while reading from broker:6380 : (1, '
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke rogue CA with CN=api (with valid producer password) ('conn_error', "Error while reading from broker:6380 : (1, '
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke same CA, identity intruder (with valid producer pass ('conn_error', 'Connection closed by server.')
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke same CA, identity lb (with valid producer password) ('conn_error', 'Connection closed by server.')
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke same CA, identity prometheus (with valid producer pa ('conn_error', 'Connection closed by server.')
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke identity api without AUTH ('noauth', 'Authentication required.')
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke api_producer PING ('ok', True)
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke api_producer XREADGROUP ('noperm', "User api_producer has no permissions to run the
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke api_producer XACK ('noperm', "User api_producer has no permissions to run the
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke api_producer XDEL ('noperm', "User api_producer has no permissions to run the
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke api_producer DEL ('noperm', "User api_producer has no permissions to run the
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke api_producer FLUSHALL ('noperm', "User api_producer has no permissions to run the
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke api_producer XADD other key ('noperm', 'No permissions to access a key')
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke worker_consumer XLEN ('ok', 149)
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke worker_consumer SET ('noperm', "User worker_consumer has no permissions to run t
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke worker_consumer FLUSHALL ('noperm', "User worker_consumer has no permissions to run t
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke worker_consumer CONFIG ('noperm', "User worker_consumer has no permissions to run t
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke worker_consumer DEL ('noperm', "User worker_consumer has no permissions to run t
FAIL api/worker -> broker-gate (mTLS allowlist api|worker) -> broke Redis port 6379 not reachable from network (loopback ('ok', True)
PASS api/worker -> broker-gate (mTLS allowlist api|worker) -> broke plaintext to gate ('conn_error', 'Connection closed by server.')
PASS api/worker -> s3 (TLS, scoped identities) TLS verify-full GET /healthz ('http', 200)
PASS api/worker -> s3 (TLS, scoped identities) wrong hostname ('verify_error', "Hostname mismatch, certificate is not vali
PASS api/worker -> s3 (TLS, scoped identities) plaintext on :8333 ('http', 400)
PASS api/worker -> s3 (TLS, scoped identities) api PUT staging/ allowed
PASS api/worker -> s3 (TLS, scoped identities) api DELETE staging/ allowed
PASS api/worker -> s3 (TLS, scoped identities) api PUT final/ (worker prefix) AccessDenied
PASS api/worker -> s3 (TLS, scoped identities) api LIST bucket AccessDenied
PASS api/worker -> s3 (TLS, scoped identities) api CREATE bucket AccessDenied
PASS api/worker -> s3 (TLS, scoped identities) worker LIST bucket allowed
PASS api/worker -> s3 (TLS, scoped identities) worker PUT outside its prefixes AccessDenied
PASS api/worker -> s3 (TLS, scoped identities) worker DELETE bucket AccessDenied
PASS api/worker -> otel-gate (mTLS allowlist api|worker) -> collect identity api POST /v1/logs ('http', 200)
PASS api/worker -> otel-gate (mTLS allowlist api|worker) -> collect identity worker POST /v1/logs ('http', 200)
PASS api/worker -> otel-gate (mTLS allowlist api|worker) -> collect no client certificate POST /v1/logs ('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')
PASS api/worker -> otel-gate (mTLS allowlist api|worker) -> collect rogue CA with CN=api POST /v1/logs ('tls_error', 'TLSV1_ALERT_UNKNOWN_CA')
PASS api/worker -> otel-gate (mTLS allowlist api|worker) -> collect same CA, identity intruder POST /v1/logs ('closed', 'connection closed without HTTP response')
PASS api/worker -> otel-gate (mTLS allowlist api|worker) -> collect same CA, identity prometheus POST /v1/logs ('closed', 'connection closed without HTTP response')
PASS api/worker -> otel-gate (mTLS allowlist api|worker) -> collect same CA, identity lb POST /v1/logs ('closed', 'connection closed without HTTP response')
PASS api/worker -> otel-gate (mTLS allowlist api|worker) -> collect plaintext on :4318 ('closed', "b''")
PASS prometheus -> otel-gate metrics (allowlist prometheus) identity prometheus /metrics :8889 ('http', 200)
PASS prometheus -> otel-gate metrics (allowlist prometheus) identity prometheus /metrics :8888 (self) ('http', 200)
PASS prometheus -> otel-gate metrics (allowlist prometheus) identity api /metrics :8889 ('closed', 'connection closed without HTTP response')
FAIL prometheus -> otel-gate metrics (allowlist prometheus) collector loopback port 14318 not reachable ('http', 404)
FAIL prometheus -> otel-gate metrics (allowlist prometheus) collector loopback port 18889 not reachable ('http', 404)
FAIL prometheus -> otel-gate metrics (allowlist prometheus) collector loopback port 18888 not reachable ('closed', "b'\\x00\\x00\\x18\\x04\\x00\\x00\\x00\\x00\\x00\
FAIL prometheus -> otel-gate metrics (allowlist prometheus) collector loopback port 13133 not reachable ('http', 200)
PASS collector/grafana -> loki (mTLS) client cert grafana ('http', 200)
PASS collector/grafana -> loki (mTLS) no client certificate ('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')
PASS collector/grafana -> loki (mTLS) rogue CA client certificate ('tls_error', 'TLSV1_ALERT_UNKNOWN_CA')
PASS collector/grafana -> loki (mTLS) plaintext ('http', 400)
PASS grafana -> tempo (mTLS) client cert grafana ('http', 200)
PASS grafana -> tempo (mTLS) no client certificate ('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')
PASS grafana -> tempo (mTLS) rogue CA client certificate ('tls_error', 'TLSV1_ALERT_UNKNOWN_CA')
PASS grafana -> tempo (mTLS) plaintext ('http', 400)
PASS grafana -> prometheus (mTLS) client cert grafana ('http', 200)
PASS grafana -> prometheus (mTLS) no client certificate ('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')
PASS grafana -> prometheus (mTLS) rogue CA client certificate ('tls_error', 'TLSV1_ALERT_UNKNOWN_CA')
PASS grafana -> prometheus (mTLS) plaintext ('http', 400)
PASS collector -> tempo OTLP gRPC (mTLS) no client certificate ('tls_error', 'TLSV13_ALERT_CERTIFICATE_REQUIRED')
PASS agents -> openbao (TLS + AppRole) TLS verify-full /v1/sys/health ('http', 200)
PASS agents -> openbao (TLS + AppRole) wrong hostname ('verify_error', "Hostname mismatch, certificate is not vali
PASS agents -> openbao (TLS + AppRole) plaintext on :8200 ('http', 400)
PASS agents -> openbao (TLS + AppRole) read KV without token ('http', 403)