lab7: live stand integration fixes and verified evidence
This commit is contained in:
@@ -0,0 +1,247 @@
|
||||
{
|
||||
"captured_at": "2026-11-26T15:56:33Z",
|
||||
"checks": [
|
||||
{
|
||||
"actual": "$argon2id$v=19$m=32768,t=2,p=1",
|
||||
"category": "password_storage",
|
||||
"description": "Stored password uses Argon2id PHC with m>=19456 KiB, t>=2, p>=1",
|
||||
"evidence": {
|
||||
"m": 32768,
|
||||
"p": 1,
|
||||
"password_hash_prefix": "$argon2id$v=19$m=32768,t=2,p=1",
|
||||
"t": 2
|
||||
},
|
||||
"expected": "argon2id v=19, m>=19456, t>=2, p>=1",
|
||||
"id": "APP-1-ARGON2-PHC",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "live_login_median_ms=53.5",
|
||||
"category": "password_storage",
|
||||
"description": "Empirical Argon2id wall-clock benchmark captured on live stand",
|
||||
"evidence": {
|
||||
"in_container_benchmark": {
|
||||
"configs": [
|
||||
{
|
||||
"iterations": 2,
|
||||
"label": "floor_19MiB_t2_p1",
|
||||
"max_ms": 26.16,
|
||||
"median_ms": 24.23,
|
||||
"memory_kib": 19456,
|
||||
"parallelism": 1,
|
||||
"samples_ms": [
|
||||
23.35,
|
||||
23.68,
|
||||
24.23,
|
||||
26.16
|
||||
]
|
||||
},
|
||||
{
|
||||
"iterations": 2,
|
||||
"label": "default_32MiB_t2_p1",
|
||||
"max_ms": 44.32,
|
||||
"median_ms": 43.04,
|
||||
"memory_kib": 32768,
|
||||
"parallelism": 1,
|
||||
"samples_ms": [
|
||||
42.55,
|
||||
42.56,
|
||||
43.04,
|
||||
44.32
|
||||
]
|
||||
},
|
||||
{
|
||||
"iterations": 3,
|
||||
"label": "heavy_64MiB_t3_p1",
|
||||
"max_ms": 132.56,
|
||||
"median_ms": 124.82,
|
||||
"memory_kib": 65536,
|
||||
"parallelism": 1,
|
||||
"samples_ms": [
|
||||
123.68,
|
||||
124.35,
|
||||
124.82,
|
||||
132.56
|
||||
]
|
||||
}
|
||||
],
|
||||
"rss_mib": 104.6
|
||||
},
|
||||
"live_https_login_ms": [
|
||||
53.5,
|
||||
51.5,
|
||||
55.6
|
||||
]
|
||||
},
|
||||
"expected": "benchmark completed",
|
||||
"id": "APP-2-ARGON2-BENCHMARK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "password_rehashed=True, after_prefix=$argon2id$v=19$m=32768,t=2,p=1",
|
||||
"category": "password_storage",
|
||||
"description": "Login with weak Argon2id (m=4096,t=1) transparently upgrades DB hash to active params",
|
||||
"expected": "upgraded to m>=32768, t>=2",
|
||||
"id": "APP-3-REHASH-WEAK-ARGON2",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "password_rehashed=True, after_prefix=$argon2id$v=19$m=32768,t=2,p=1",
|
||||
"category": "password_storage",
|
||||
"description": "Login with legacy $scrypt$ hash transparently upgrades DB hash to Argon2id",
|
||||
"expected": "upgraded from $scrypt$ to $argon2id$",
|
||||
"id": "APP-4-REHASH-LEGACY-SCRYPT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "[{\"method\": \"GET\", \"path\": \"/api/v1/chats/dc2ef497-c1f9-4b75-9761-cc96091af29d\", \"status\": 404}, {\"method\": \"GET\", \"path\": \"/api/v1/chats/dc2ef497-c1f9-4b75-9761-cc96091af29d/messages\", \"status\": 404}, {\"method\": \"POST\", \"path\": \"/api/v1/chats/dc2ef497-c1f9-4b75-9761-cc96091af29d/messages\", \"status\": 404}, {\"method\": \"GET\", \"path\": \"/api/v1/attachments/74239f9b-637d-4c40-99fa-1ab60cdcfb12\", \"status\": 404}, {\"method\": \"GET\", \"path\": \"/api/v1/attachments/74239f9b-637d-4c40-99fa-1ab60cdcfb12/content\", \"status\": 404}, {\"method\": \"GET\", \"path\": \"/api/v1/attachments/74239f9b-637d-4c40-99fa-1ab60cdcfb12/content\", \"status\": 404}, {\"method\": \"POST\", \"path\": \"/api/v1/chats/b76d74fe-3696-4551-988c-3f875468471f/messages\", \"status\": 404}, {\"method\": \"POST\", \"path\": \"/api/v1/chats/d81f2a3c-3496-4d99-8669-76ea7028aa9e/messages\", \"status\": 404}]",
|
||||
"category": "acl",
|
||||
"description": "Outsider chat/messages/attachment metadata & content and cross-chat attach return 403/404",
|
||||
"expected": "all 8 probes 403/404",
|
||||
"id": "APP-5-ACL-NEGATIVE",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "no_auth=401, forged_me=40f25363-a650-440f-8a6d-1bc0d6cfc72f",
|
||||
"category": "acl",
|
||||
"description": "Forged X-User-Id rejected without Bearer (401) and ignored with Bearer",
|
||||
"expected": "no_auth=401, forged_me=40f25363-a650-440f-8a6d-1bc0d6cfc72f",
|
||||
"id": "APP-6-FORGED-X-USER-ID",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "key_exists=True, all_sha256=True, raw_token_in_redis=False, count=18",
|
||||
"category": "session_security",
|
||||
"description": "Redis stores ONLY session:sha256:* keys with zero raw Bearer tokens in keys or values",
|
||||
"expected": "key_exists=True, all_sha256=True, raw_token_in_redis=False",
|
||||
"id": "APP-7-HASHED-REDIS-SESSIONS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "logout=204, after_logout=401, expired=401",
|
||||
"category": "session_security",
|
||||
"description": "Logout immediately revokes session (204->401) and expired session returns 401",
|
||||
"expected": "logout=204, after_logout=401, expired=401",
|
||||
"id": "APP-8-LOGOUT-AND-EXPIRY",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=413 code=payload_too_large",
|
||||
"category": "request_limits",
|
||||
"description": "Oversized JSON body (>64 KiB) rejected with 413 payload_too_large",
|
||||
"expected": "HTTP 413 payload_too_large",
|
||||
"id": "APP-9-JSON-BODY-LIMIT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "bytes=413 (10489856B), pixels=413 (7000x7000, 6034B)",
|
||||
"category": "request_limits",
|
||||
"description": "Oversized binary (>10 MiB) and pixel bomb (>40M px) rejected with 413",
|
||||
"expected": "bytes=413, pixels=413",
|
||||
"id": "APP-10-UPLOAD-SIZE-AND-PIXELS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "instances=['rep-281d8876bc1e', 'rep-e06c496c3b80'], first_429=10, retry_after=60, code=rate_limited, opaque=True",
|
||||
"category": "rate_limit",
|
||||
"description": "Shared Redis login rate limit triggers 429+Retry-After across >=2 opaque API replicas",
|
||||
"expected": "instances>=2, first_429<=11, Retry-After>=1, code=rate_limited, opaque X-Instance-Id",
|
||||
"id": "APP-11-SHARED-RATE-LIMIT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "login_codes={401: 36}, auth_p95_ms=516.0, oom=False, restarts_unchanged=True",
|
||||
"category": "dos_protection",
|
||||
"description": "Parallel login burst stays bounded under Argon2id semaphore with 0 OOMKill and unaffected /users/me",
|
||||
"evidence": {
|
||||
"auth_latencies_ms": [
|
||||
380.4,
|
||||
406.6,
|
||||
469.0,
|
||||
471.8,
|
||||
474.4,
|
||||
490.5,
|
||||
496.0,
|
||||
500.9,
|
||||
516.0,
|
||||
643.9
|
||||
],
|
||||
"login_codes": {
|
||||
"401": 36
|
||||
},
|
||||
"shed_retry_ok": true
|
||||
},
|
||||
"expected": "0 OOMKill, 0 restarts, all auth=200, valid 401/429+Retry-After",
|
||||
"id": "APP-12-LOGIN-DOS-BUDGET",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "leaks=0, loki_checked=True (213 logs), tempo_checked=True (3 traces)",
|
||||
"category": "redaction",
|
||||
"description": "Zero secret/token/password/Argon2/body leaks in HTTP errors, Loki logs, and Tempo traces",
|
||||
"evidence": {
|
||||
"leaks": []
|
||||
},
|
||||
"expected": "0 leaks, loki_checked=True",
|
||||
"id": "APP-13-TELEMETRY-AND-ERROR-REDACTION",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"failed_count": 0,
|
||||
"failed_ids": [],
|
||||
"passed": true,
|
||||
"passed_count": 13,
|
||||
"started_at": "2026-11-26T15:56:21Z",
|
||||
"suite": "lab7-app-security",
|
||||
"summary": {
|
||||
"argon2_benchmark": {
|
||||
"configs": [
|
||||
{
|
||||
"iterations": 2,
|
||||
"label": "floor_19MiB_t2_p1",
|
||||
"max_ms": 26.16,
|
||||
"median_ms": 24.23,
|
||||
"memory_kib": 19456,
|
||||
"parallelism": 1,
|
||||
"samples_ms": [
|
||||
23.35,
|
||||
23.68,
|
||||
24.23,
|
||||
26.16
|
||||
]
|
||||
},
|
||||
{
|
||||
"iterations": 2,
|
||||
"label": "default_32MiB_t2_p1",
|
||||
"max_ms": 44.32,
|
||||
"median_ms": 43.04,
|
||||
"memory_kib": 32768,
|
||||
"parallelism": 1,
|
||||
"samples_ms": [
|
||||
42.55,
|
||||
42.56,
|
||||
43.04,
|
||||
44.32
|
||||
]
|
||||
},
|
||||
{
|
||||
"iterations": 3,
|
||||
"label": "heavy_64MiB_t3_p1",
|
||||
"max_ms": 132.56,
|
||||
"median_ms": 124.82,
|
||||
"memory_kib": 65536,
|
||||
"parallelism": 1,
|
||||
"samples_ms": [
|
||||
123.68,
|
||||
124.35,
|
||||
124.82,
|
||||
132.56
|
||||
]
|
||||
}
|
||||
],
|
||||
"rss_mib": 104.6
|
||||
},
|
||||
"base_url": "https://localhost:8443"
|
||||
},
|
||||
"total": 13
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
suite=lab7-app-security passed=True checks=13/13 captured_at=2026-11-26T15:56:33Z
|
||||
|
||||
[PASS] APP-1-ARGON2-PHC (password_storage): Stored password uses Argon2id PHC with m>=19456 KiB, t>=2, p>=1 -> $argon2id$v=19$m=32768,t=2,p=1
|
||||
[PASS] APP-2-ARGON2-BENCHMARK (password_storage): Empirical Argon2id wall-clock benchmark captured on live stand -> live_login_median_ms=53.5
|
||||
[PASS] APP-3-REHASH-WEAK-ARGON2 (password_storage): Login with weak Argon2id (m=4096,t=1) transparently upgrades DB hash to active params -> password_rehashed=True, after_prefix=$argon2id$v=19$m=32768,t=2,p=1
|
||||
[PASS] APP-4-REHASH-LEGACY-SCRYPT (password_storage): Login with legacy $scrypt$ hash transparently upgrades DB hash to Argon2id -> password_rehashed=True, after_prefix=$argon2id$v=19$m=32768,t=2,p=1
|
||||
[PASS] APP-5-ACL-NEGATIVE (acl): Outsider chat/messages/attachment metadata & content and cross-chat attach return 403/404 -> [{"method": "GET", "path": "/api/v1/chats/dc2ef497-c1f9-4b75-9761-cc96091af29d", "status": 404}, {"method": "GET", "path": "/api/v1/chats/dc2ef497-c1f9-4b75-9761-cc96091af29d/messages", "status": 404}, {"method": "POST", "path": "/api/v1/chats/dc2ef497-c1f9-4b75-9761-cc96091af29d/messages", "status": 404}, {"method": "GET", "path": "/api/v1/attachments/74239f9b-637d-4c40-99fa-1ab60cdcfb12", "status": 404}, {"method": "GET", "path": "/api/v1/attachments/74239f9b-637d-4c40-99fa-1ab60cdcfb12/content", "status": 404}, {"method": "GET", "path": "/api/v1/attachments/74239f9b-637d-4c40-99fa-1ab60cdcfb12/content", "status": 404}, {"method": "POST", "path": "/api/v1/chats/b76d74fe-3696-4551-988c-3f875468471f/messages", "status": 404}, {"method": "POST", "path": "/api/v1/chats/d81f2a3c-3496-4d99-8669-76ea7028aa9e/messages", "status": 404}]
|
||||
[PASS] APP-6-FORGED-X-USER-ID (acl): Forged X-User-Id rejected without Bearer (401) and ignored with Bearer -> no_auth=401, forged_me=40f25363-a650-440f-8a6d-1bc0d6cfc72f
|
||||
[PASS] APP-7-HASHED-REDIS-SESSIONS (session_security): Redis stores ONLY session:sha256:* keys with zero raw Bearer tokens in keys or values -> key_exists=True, all_sha256=True, raw_token_in_redis=False, count=18
|
||||
[PASS] APP-8-LOGOUT-AND-EXPIRY (session_security): Logout immediately revokes session (204->401) and expired session returns 401 -> logout=204, after_logout=401, expired=401
|
||||
[PASS] APP-9-JSON-BODY-LIMIT (request_limits): Oversized JSON body (>64 KiB) rejected with 413 payload_too_large -> status=413 code=payload_too_large
|
||||
[PASS] APP-10-UPLOAD-SIZE-AND-PIXELS (request_limits): Oversized binary (>10 MiB) and pixel bomb (>40M px) rejected with 413 -> bytes=413 (10489856B), pixels=413 (7000x7000, 6034B)
|
||||
[PASS] APP-11-SHARED-RATE-LIMIT (rate_limit): Shared Redis login rate limit triggers 429+Retry-After across >=2 opaque API replicas -> instances=['rep-281d8876bc1e', 'rep-e06c496c3b80'], first_429=10, retry_after=60, code=rate_limited, opaque=True
|
||||
[PASS] APP-12-LOGIN-DOS-BUDGET (dos_protection): Parallel login burst stays bounded under Argon2id semaphore with 0 OOMKill and unaffected /users/me -> login_codes={401: 36}, auth_p95_ms=516.0, oom=False, restarts_unchanged=True
|
||||
[PASS] APP-13-TELEMETRY-AND-ERROR-REDACTION (redaction): Zero secret/token/password/Argon2/body leaks in HTTP errors, Loki logs, and Tempo traces -> leaks=0, loki_checked=True (213 logs), tempo_checked=True (3 traces)
|
||||
|
||||
summary={"argon2_benchmark": {"configs": [{"iterations": 2, "label": "floor_19MiB_t2_p1", "max_ms": 26.16, "median_ms": 24.23, "memory_kib": 19456, "parallelism": 1, "samples_ms": [23.35, 23.68, 24.23, 26.16]}, {"iterations": 2, "label": "default_32MiB_t2_p1", "max_ms": 44.32, "median_ms": 43.04, "memory_kib": 32768, "parallelism": 1, "samples_ms": [42.55, 42.56, 43.04, 44.32]}, {"iterations": 3, "label": "heavy_64MiB_t3_p1", "max_ms": 132.56, "median_ms": 124.82, "memory_kib": 65536, "parallelism": 1, "samples_ms": [123.68, 124.35, 124.82, 132.56]}], "rss_mib": 104.6}, "base_url": "https://localhost:8443"}
|
||||
@@ -0,0 +1,55 @@
|
||||
=== 12. FAILOVER TEST (BOTH API REPLICAS) ===
|
||||
--- INITIAL API REPLICAS ---
|
||||
/mtusi-lab7-api-1 id=911bb30545ef alias=rep-29f28a7ebff3 status=running
|
||||
/mtusi-lab7-api-2 id=a1e58efcc3b4 alias=rep-051a26325582 status=running
|
||||
|
||||
--- FAILOVER ROUND 1 ---
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=https://localhost:8443 CA_FILE="secrets/pki/haproxy/ca.crt"
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "https://localhost:8443" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 131, "failed_attempts": 0, "first_recovery_seconds": 3.893}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
--- STOPPED REPLICA STATE ---
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab7-api-1 mtusi-messenger:lab7 "docker-entrypoint.s…" api 5 minutes ago Up 36 seconds (healthy) 8443/tcp
|
||||
mtusi-lab7-api-2 mtusi-messenger:lab7 "docker-entrypoint.s…" api 5 minutes ago Exited (0) 11 seconds ago
|
||||
stopped_replica=mtusi-lab7-api-2
|
||||
$ ./scripts/start-replica.sh
|
||||
Container mtusi-lab7-api-1 Running
|
||||
Container mtusi-lab7-api-2 Starting
|
||||
Container mtusi-lab7-api-2 Started
|
||||
Container mtusi-lab7-api-2 Waiting
|
||||
Container mtusi-lab7-api-1 Waiting
|
||||
Container mtusi-lab7-api-2 Healthy
|
||||
Container mtusi-lab7-api-1 Healthy
|
||||
stand is ready (https://localhost:8443)
|
||||
--- AFTER RECOVERY ---
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab7-api-1 mtusi-messenger:lab7 "docker-entrypoint.s…" api 5 minutes ago Up 42 seconds (healthy) 8443/tcp
|
||||
mtusi-lab7-api-2 mtusi-messenger:lab7 "docker-entrypoint.s…" api 5 minutes ago Up 6 seconds (healthy) 8443/tcp
|
||||
|
||||
--- FAILOVER ROUND 2 ---
|
||||
$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=https://localhost:8443 CA_FILE="secrets/pki/haproxy/ca.crt"
|
||||
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "https://localhost:8443" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
|
||||
{"observed_instances_before": 2, "successful_writes": 129, "failed_attempts": 0, "first_recovery_seconds": 3.576}
|
||||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
--- STOPPED REPLICA STATE ---
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab7-api-1 mtusi-messenger:lab7 "docker-entrypoint.s…" api 5 minutes ago Exited (0) 12 seconds ago
|
||||
mtusi-lab7-api-2 mtusi-messenger:lab7 "docker-entrypoint.s…" api 5 minutes ago Up 23 seconds (healthy) 8443/tcp
|
||||
stopped_replica=mtusi-lab7-api-1
|
||||
$ ./scripts/start-replica.sh
|
||||
Container mtusi-lab7-api-2 Running
|
||||
Container mtusi-lab7-api-1 Starting
|
||||
Container mtusi-lab7-api-1 Started
|
||||
Container mtusi-lab7-api-2 Waiting
|
||||
Container mtusi-lab7-api-1 Waiting
|
||||
Container mtusi-lab7-api-2 Healthy
|
||||
Container mtusi-lab7-api-1 Healthy
|
||||
stand is ready (https://localhost:8443)
|
||||
--- AFTER RECOVERY ---
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab7-api-1 mtusi-messenger:lab7 "docker-entrypoint.s…" api 5 minutes ago Up 5 seconds (healthy) 8443/tcp
|
||||
mtusi-lab7-api-2 mtusi-messenger:lab7 "docker-entrypoint.s…" api 5 minutes ago Up 30 seconds (healthy) 8443/tcp
|
||||
BOTH distinct API replicas stopped and recovered cleanly: mtusi-lab7-api-2 mtusi-lab7-api-1
|
||||
@@ -0,0 +1,9 @@
|
||||
=== FINAL POST-ALL-FAULTS VERIFICATION ===
|
||||
Date (UTC): 2026-11-26T16:16:30Z
|
||||
$ make test BASE_URL=https://localhost:8443 CA_FILE="secrets/pki/haproxy/ca.crt"
|
||||
python3 tests/smoke.py --base-url "https://localhost:8443" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||
|
||||
$ make test-security BASE_URL=https://localhost:8443 CA_FILE="secrets/pki/haproxy/ca.crt"
|
||||
python3 tests/security.py --base-url "https://localhost:8443" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
|
||||
@@ -0,0 +1,849 @@
|
||||
{
|
||||
"captured_at": "2026-11-26T16:02:03Z",
|
||||
"checks": [
|
||||
{
|
||||
"actual": "count=15",
|
||||
"category": "container_hardening",
|
||||
"description": "Project mtusi-lab7 has running containers to audit",
|
||||
"expected": ">=10 running containers",
|
||||
"id": "HARD-0-RUNNING-CONTAINERS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "/home/tomato/.local/state/mtusi-lab7-operator",
|
||||
"category": "secret_hygiene",
|
||||
"description": "Operator state directory (LAB7_OPERATOR_DIR) is strictly outside Git repository",
|
||||
"expected": "outside repo",
|
||||
"id": "HARD-1-OPDIR-OUTSIDE-REPO",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "all non-root",
|
||||
"category": "container_hardening",
|
||||
"description": "All running containers execute as non-root users",
|
||||
"expected": "all non-root",
|
||||
"id": "HARD-2-NON-ROOT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "0 privileged",
|
||||
"category": "container_hardening",
|
||||
"description": "Zero containers use privileged=true",
|
||||
"expected": "0 privileged",
|
||||
"id": "HARD-3-NO-PRIVILEGED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "0 host network",
|
||||
"category": "container_hardening",
|
||||
"description": "Zero containers use network_mode=host",
|
||||
"expected": "0 host network",
|
||||
"id": "HARD-4-NO-HOST-NET",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "0 mounts",
|
||||
"category": "container_hardening",
|
||||
"description": "Zero containers mount /var/run/docker.sock",
|
||||
"expected": "0 docker.sock mounts",
|
||||
"id": "HARD-5-NO-DOCKER-SOCK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "0 mounts",
|
||||
"category": "secret_hygiene",
|
||||
"description": "Zero containers mount LAB7_OPERATOR_DIR (CA key / unseal shares)",
|
||||
"expected": "0 operator dir mounts",
|
||||
"id": "HARD-6-NO-OPDIR-MOUNT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "all read_only=true",
|
||||
"category": "container_hardening",
|
||||
"description": "All running containers use read_only root filesystem",
|
||||
"expected": "all ReadonlyRootfs=true",
|
||||
"id": "HARD-7-READONLY-ROOTFS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "all CapDrop=ALL",
|
||||
"category": "container_hardening",
|
||||
"description": "All running containers drop ALL capabilities with zero CapAdd",
|
||||
"expected": "all CapDrop=[ALL], CapAdd=[]",
|
||||
"id": "HARD-8-CAP-DROP-ALL",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "all set",
|
||||
"category": "container_hardening",
|
||||
"description": "All running containers set security_opt no-new-privileges:true",
|
||||
"expected": "all no-new-privileges",
|
||||
"id": "HARD-9-NO-NEW-PRIVILEGES",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "all bounded",
|
||||
"category": "container_hardening",
|
||||
"description": "All running containers define explicit CPU and memory limits",
|
||||
"expected": "all cpus>0 & memory>0",
|
||||
"id": "HARD-10-RESOURCE-LIMITS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "compliant",
|
||||
"category": "network_surface",
|
||||
"description": "Only HTTPS :8443 and loopback 127.0.0.1 admin ports are published",
|
||||
"expected": "0 port policy violations",
|
||||
"id": "HARD-11-PUBLISHED-PORTS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "0 violations",
|
||||
"category": "secret_hygiene",
|
||||
"description": "Zero secret credentials or tokens appear in Config.Env of any container",
|
||||
"expected": "0 env secret violations",
|
||||
"id": "HARD-12-ZERO-ENV-SECRETS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "0 OOMKilled",
|
||||
"category": "container_hardening",
|
||||
"description": "Zero containers have OOMKilled=true",
|
||||
"expected": "0 OOMKilled",
|
||||
"id": "HARD-13-ZERO-OOM",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"cpus\": 1.5, \"memory_mib\": 1280.0, \"job_timeout_seconds\": \"60\", \"worker_concurrency\": \"2\", \"max_upload_bytes\": \"10485760\", \"max_image_pixels\": \"40000000\"}",
|
||||
"category": "worker_hardening",
|
||||
"description": "Upload worker has explicit CPU, memory, and execution bounds",
|
||||
"expected": "worker cpus & memory bounded",
|
||||
"id": "HARD-14-WORKER-BOUNDS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"api\": 2, \"broker\": 1, \"grafana\": 1, \"haproxy\": 1, \"loki\": 1, \"openbao\": 1, \"otel-collector\": 1, \"otel-gateway\": 1, \"postgres\": 1, \"prometheus\": 1, \"redis\": 1, \"s3\": 1, \"tempo\": 1, \"worker\": 1}",
|
||||
"category": "container_hardening",
|
||||
"description": "At least 2 API replicas running; stateful stores single-node (Row 12 N/A)",
|
||||
"expected": "api>=2, worker>=1",
|
||||
"id": "HARD-15-TOPOLOGY-COUNTS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "secrets_rc=0, env_rc=0",
|
||||
"category": "secret_hygiene",
|
||||
"description": "secrets/ and .env are ignored by Git",
|
||||
"expected": "git check-ignore exits 0 for secrets/ and .env",
|
||||
"id": "HARD-16-GITIGNORE",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "has_platform_express=False, zod=^4.6.6",
|
||||
"category": "dependency_scan",
|
||||
"description": "Unused @nestjs/platform-express removed and zod pinned >=4.6.6",
|
||||
"expected": "no platform-express, zod present",
|
||||
"id": "SCAN-NPM-0-DEPS-REMEDIATED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"info\": 0, \"low\": 0, \"moderate\": 15, \"high\": 0, \"critical\": 0, \"total\": 15}",
|
||||
"category": "dependency_scan",
|
||||
"description": "npm audit --omit=dev succeeds with 0 High/Critical production vulnerabilities",
|
||||
"evidence": {
|
||||
"report": "evidence/lab7/scans/npm-audit.json"
|
||||
},
|
||||
"expected": "high=0, critical=0",
|
||||
"id": "SCAN-NPM-1-PROD-AUDIT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "secrets=0 vulns={'CRITICAL': 0, 'HIGH': 0, 'MEDIUM': 6, 'LOW': 5, 'UNKNOWN': 0} misconfig={'CRITICAL': 0, 'HIGH': 0, 'MEDIUM': 0, 'LOW': 0}",
|
||||
"category": "image_scan",
|
||||
"description": "Trivy repo filesystem scan completed with 0 leaked secrets",
|
||||
"evidence": {
|
||||
"report": "evidence/lab7/scans/trivy-fs.json",
|
||||
"top_cves": []
|
||||
},
|
||||
"expected": "0 secrets in repo",
|
||||
"id": "SCAN-TRIVY-FS-SECRETS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "image=sha256:f51ee28c0937 secrets=0 vulns={'CRITICAL': 7, 'HIGH': 67, 'MEDIUM': 169, 'LOW': 105, 'UNKNOWN': 23}",
|
||||
"category": "image_scan",
|
||||
"description": "Trivy built app image scan completed with 0 embedded secrets",
|
||||
"evidence": {
|
||||
"report": "evidence/lab7/scans/trivy-image.json",
|
||||
"top_cves": [
|
||||
{
|
||||
"fixed": "2.6.2",
|
||||
"id": "CVE-2026-109518",
|
||||
"installed": "2.6.1",
|
||||
"pkg": "apt",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53613",
|
||||
"installed": "1:2.38.1-5+deb12u3",
|
||||
"pkg": "bsdutils",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53615",
|
||||
"installed": "1:2.38.1-5+deb12u3",
|
||||
"pkg": "bsdutils",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-78410",
|
||||
"installed": "1:2.38.1-5+deb12u3",
|
||||
"pkg": "bsdutils",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-41992",
|
||||
"installed": "1.12-1",
|
||||
"pkg": "gzip",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-54369",
|
||||
"installed": "2.3.1-3",
|
||||
"pkg": "libacl1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": "2.6.2",
|
||||
"id": "CVE-2026-109518",
|
||||
"installed": "2.6.1",
|
||||
"pkg": "libapt-pkg6.0",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53613",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libblkid1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53615",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libblkid1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-78410",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libblkid1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"expected": "0 secrets in image",
|
||||
"id": "SCAN-TRIVY-IMAGE-SECRETS",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"failed_count": 0,
|
||||
"failed_ids": [],
|
||||
"passed": true,
|
||||
"passed_count": 21,
|
||||
"started_at": "2026-11-26T16:01:54Z",
|
||||
"suite": "lab7-hardening-audit",
|
||||
"summary": {
|
||||
"containers": [
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 1.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "911bb30545ef",
|
||||
"memory_mib": 1024.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "api",
|
||||
"user": "1000:1000"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 1.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "a1e58efcc3b4",
|
||||
"memory_mib": 1024.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "api",
|
||||
"user": "1000:1000"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "6457c3572408",
|
||||
"memory_mib": 512.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "broker",
|
||||
"user": "100:101"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "686c0f9143dc",
|
||||
"memory_mib": 384.0,
|
||||
"network_mode": "mtusi-lab7_obs_net",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [
|
||||
"127.0.0.1:3000->3000/tcp"
|
||||
],
|
||||
"readonly_rootfs": true,
|
||||
"service": "grafana",
|
||||
"user": "472:0"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.25,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "0a7af304aa99",
|
||||
"memory_mib": 128.0,
|
||||
"network_mode": "mtusi-lab7_lb_api",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [
|
||||
"127.0.0.1:8404->8404/tcp",
|
||||
"0.0.0.0:8443->8443/tcp",
|
||||
":::8443->8443/tcp"
|
||||
],
|
||||
"readonly_rootfs": true,
|
||||
"service": "haproxy",
|
||||
"user": "99:99"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "19b6b28feaf4",
|
||||
"memory_mib": 512.0,
|
||||
"network_mode": "mtusi-lab7_obs_net",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "loki",
|
||||
"user": "10001:10001"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "1b9dcbdb8d5f",
|
||||
"memory_mib": 256.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [
|
||||
"127.0.0.1:8200->8200/tcp"
|
||||
],
|
||||
"readonly_rootfs": true,
|
||||
"service": "openbao",
|
||||
"user": "100:1000"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "e562b550ce72",
|
||||
"memory_mib": 256.0,
|
||||
"network_mode": "container:e103ae344fd110327e736eb901dd4c20a99e11fcf5b3bde790b51cae8dce4545",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "otel-collector",
|
||||
"user": "10001:10001"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.25,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "e103ae344fd1",
|
||||
"memory_mib": 64.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "otel-gateway",
|
||||
"user": "99:99"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 1.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "9db794c6723d",
|
||||
"memory_mib": 512.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "postgres",
|
||||
"user": "70:70"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "0003acf632d1",
|
||||
"memory_mib": 768.0,
|
||||
"network_mode": "mtusi-lab7_obs_net",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [
|
||||
"127.0.0.1:9090->9090/tcp"
|
||||
],
|
||||
"readonly_rootfs": true,
|
||||
"service": "prometheus",
|
||||
"user": "65534:65534"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.25,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "76e72c59aeb7",
|
||||
"memory_mib": 128.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "redis",
|
||||
"user": "999:1000"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 1.0,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "cc289566ca79",
|
||||
"memory_mib": 512.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [
|
||||
"127.0.0.1:9000->9000/tcp"
|
||||
],
|
||||
"readonly_rootfs": true,
|
||||
"service": "s3",
|
||||
"user": "1000:1000"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 0.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "e2e5c02ecc83",
|
||||
"memory_mib": 512.0,
|
||||
"network_mode": "mtusi-lab7_obs_net",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "tempo",
|
||||
"user": "10001:10001"
|
||||
},
|
||||
{
|
||||
"cap_add": [],
|
||||
"cap_drop": [
|
||||
"ALL"
|
||||
],
|
||||
"cpus": 1.5,
|
||||
"docker_sock_mounted": false,
|
||||
"env_violations": [],
|
||||
"id": "089f0152eaa0",
|
||||
"memory_mib": 1280.0,
|
||||
"network_mode": "mtusi-lab7_app_data",
|
||||
"no_new_privileges": true,
|
||||
"non_root": true,
|
||||
"oom_killed": false,
|
||||
"operator_dir_mounted": false,
|
||||
"port_violations": [],
|
||||
"privileged": false,
|
||||
"published_ports": [],
|
||||
"readonly_rootfs": true,
|
||||
"service": "worker",
|
||||
"user": "1000:1000"
|
||||
}
|
||||
],
|
||||
"npm_audit_prod": {
|
||||
"critical": 0,
|
||||
"high": 0,
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 15,
|
||||
"total": 15
|
||||
},
|
||||
"service_counts": {
|
||||
"api": 2,
|
||||
"broker": 1,
|
||||
"grafana": 1,
|
||||
"haproxy": 1,
|
||||
"loki": 1,
|
||||
"openbao": 1,
|
||||
"otel-collector": 1,
|
||||
"otel-gateway": 1,
|
||||
"postgres": 1,
|
||||
"prometheus": 1,
|
||||
"redis": 1,
|
||||
"s3": 1,
|
||||
"tempo": 1,
|
||||
"worker": 1
|
||||
},
|
||||
"trivy": {
|
||||
"fs": {
|
||||
"misconfigurations": {
|
||||
"CRITICAL": 0,
|
||||
"HIGH": 0,
|
||||
"LOW": 0,
|
||||
"MEDIUM": 0
|
||||
},
|
||||
"secret_count": 0,
|
||||
"secrets": [],
|
||||
"top_high_critical_cves": [],
|
||||
"vulnerabilities": {
|
||||
"CRITICAL": 0,
|
||||
"HIGH": 0,
|
||||
"LOW": 5,
|
||||
"MEDIUM": 6,
|
||||
"UNKNOWN": 0
|
||||
}
|
||||
},
|
||||
"image": {
|
||||
"misconfigurations": {
|
||||
"CRITICAL": 0,
|
||||
"HIGH": 0,
|
||||
"LOW": 0,
|
||||
"MEDIUM": 0
|
||||
},
|
||||
"secret_count": 0,
|
||||
"secrets": [],
|
||||
"top_high_critical_cves": [
|
||||
{
|
||||
"fixed": "2.6.2",
|
||||
"id": "CVE-2026-109518",
|
||||
"installed": "2.6.1",
|
||||
"pkg": "apt",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53613",
|
||||
"installed": "1:2.38.1-5+deb12u3",
|
||||
"pkg": "bsdutils",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53615",
|
||||
"installed": "1:2.38.1-5+deb12u3",
|
||||
"pkg": "bsdutils",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-78410",
|
||||
"installed": "1:2.38.1-5+deb12u3",
|
||||
"pkg": "bsdutils",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-41992",
|
||||
"installed": "1.12-1",
|
||||
"pkg": "gzip",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-54369",
|
||||
"installed": "2.3.1-3",
|
||||
"pkg": "libacl1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": "2.6.2",
|
||||
"id": "CVE-2026-109518",
|
||||
"installed": "2.6.1",
|
||||
"pkg": "libapt-pkg6.0",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53613",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libblkid1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53615",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libblkid1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-78410",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libblkid1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": "1:2.66-4+deb12u3",
|
||||
"id": "CVE-2026-4878",
|
||||
"installed": "1:2.66-4+deb12u2+b2",
|
||||
"pkg": "libcap2",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": "3.7.9-2+deb12u7",
|
||||
"id": "CVE-2026-33845",
|
||||
"installed": "3.7.9-2+deb12u6",
|
||||
"pkg": "libgnutls30",
|
||||
"severity": "CRITICAL",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": "3.7.9-2+deb12u7",
|
||||
"id": "CVE-2026-42010",
|
||||
"installed": "3.7.9-2+deb12u6",
|
||||
"pkg": "libgnutls30",
|
||||
"severity": "CRITICAL",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": "3.7.9-2+deb12u7",
|
||||
"id": "CVE-2026-33846",
|
||||
"installed": "3.7.9-2+deb12u6",
|
||||
"pkg": "libgnutls30",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": "3.7.9-2+deb12u7",
|
||||
"id": "CVE-2026-3833",
|
||||
"installed": "3.7.9-2+deb12u6",
|
||||
"pkg": "libgnutls30",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": "3.7.9-2+deb12u7",
|
||||
"id": "CVE-2026-42009",
|
||||
"installed": "3.7.9-2+deb12u6",
|
||||
"pkg": "libgnutls30",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53613",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libmount1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-53615",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libmount1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2026-78410",
|
||||
"installed": "2.38.1-5+deb12u3",
|
||||
"pkg": "libmount1",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
},
|
||||
{
|
||||
"fixed": null,
|
||||
"id": "CVE-2025-6020",
|
||||
"installed": "1.5.2-6+deb12u2",
|
||||
"pkg": "libpam-modules",
|
||||
"severity": "HIGH",
|
||||
"target": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 (debian 12.13)"
|
||||
}
|
||||
],
|
||||
"vulnerabilities": {
|
||||
"CRITICAL": 7,
|
||||
"HIGH": 67,
|
||||
"LOW": 105,
|
||||
"MEDIUM": 169,
|
||||
"UNKNOWN": 23
|
||||
}
|
||||
}
|
||||
},
|
||||
"worker_limits": {
|
||||
"cpus": 1.5,
|
||||
"job_timeout_seconds": "60",
|
||||
"max_image_pixels": "40000000",
|
||||
"max_upload_bytes": "10485760",
|
||||
"memory_mib": 1280.0,
|
||||
"worker_concurrency": "2"
|
||||
}
|
||||
},
|
||||
"total": 21
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"lab": 7,
|
||||
"workload": "closed-loop POST messages; no automatic retries",
|
||||
"requested_duration_seconds": 15.0,
|
||||
"elapsed_seconds": 15.041,
|
||||
"concurrency": 4,
|
||||
"successful_requests": 1387,
|
||||
"failed_requests": 0,
|
||||
"error_ratio": 0.0,
|
||||
"successful_rps": 92.214,
|
||||
"successful_latency_ms": {
|
||||
"p50": 13.851,
|
||||
"p95": 89.209,
|
||||
"p99": 93.456
|
||||
},
|
||||
"note": "Latency percentiles cover successes only. Timeouts/errors are counted separately; closed-loop has coordinated omission and client overhead."
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
$ make check
|
||||
python3 scripts/check_contract.py
|
||||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||||
@@ -0,0 +1,3 @@
|
||||
$ make test-security BASE_URL=https://localhost:8443 CA_FILE="secrets/pki/haproxy/ca.crt"
|
||||
python3 tests/security.py --base-url "https://localhost:8443" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.
|
||||
@@ -0,0 +1,3 @@
|
||||
$ make test BASE_URL=https://localhost:8443 CA_FILE="secrets/pki/haproxy/ca.crt"
|
||||
python3 tests/smoke.py --base-url "https://localhost:8443" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.
|
||||
@@ -0,0 +1,15 @@
|
||||
=== 13a. make lab6-ready ===
|
||||
python3 scripts/lab6/verify.py ready --base-url "https://localhost:8443" --prometheus-url "https://localhost:9090" --grafana-url "https://localhost:3000" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
PASS: ready
|
||||
|
||||
=== 13b. make lab6-correlate ===
|
||||
python3 scripts/lab6/verify.py correlation --base-url "https://localhost:8443" --prometheus-url "https://localhost:9090" --grafana-url "https://localhost:3000" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
PASS: correlation (http, upload, retry, failed)
|
||||
|
||||
=== 13c. make lab6-signals ===
|
||||
python3 scripts/lab6/verify.py signals --base-url "https://localhost:8443" --prometheus-url "https://localhost:9090" --grafana-url "https://localhost:3000" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
PASS: signals (23 logical signals)
|
||||
|
||||
=== 13d. make lab6-redaction ===
|
||||
python3 scripts/lab6/verify.py redaction --base-url "https://localhost:8443" --prometheus-url "https://localhost:9090" --grafana-url "https://localhost:3000" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
PASS: redaction (677 items scanned, 0 leaks)
|
||||
@@ -0,0 +1,112 @@
|
||||
{
|
||||
"captured_at": "2026-11-26T15:57:06Z",
|
||||
"checks": [
|
||||
{
|
||||
"actual": "status=200 health={'initialized': True, 'sealed': False, 'standby': False, 'performance_standby': False, 'replication_performance_mode': 'disabled', 'replication_dr_mode': 'disabled', 'server_time_utc': 1795708615, 'version': '2.4.4', 'cluster_name': 'vault-cluster-d1ad89c9', 'cluster_id': '2c9926d7-9617-595e-7270-2dc84e65f6eb'}",
|
||||
"category": "openbao_posture",
|
||||
"description": "OpenBao is initialized, unsealed, and reachable over verified HTTPS",
|
||||
"expected": "HTTP 200 initialized=True sealed=False",
|
||||
"id": "BAO-1-NONDEV-HEALTH",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "non_dev=True, raft_vol=True, hcl_raft=True",
|
||||
"category": "openbao_posture",
|
||||
"description": "OpenBao runs non-dev mode with persistent Raft volume (openbao-data:/openbao/file)",
|
||||
"expected": "non-dev + Raft volume mounted",
|
||||
"id": "BAO-2-RAFT-NONDEV",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "no persisted root token file (revoked at bootstrap); repo_leaks=[]",
|
||||
"category": "openbao_posture",
|
||||
"description": "Initial root token revoked and zero root/unseal files in repo or workload containers",
|
||||
"expected": "no repo root/unseal files & root revoked",
|
||||
"id": "BAO-3-NO-ROOT-PERSISTED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "operator=200, rogue=400",
|
||||
"category": "openbao_auth",
|
||||
"description": "Operator mTLS cert authenticates; trusted-CA rogue-client rejected by auth/cert",
|
||||
"expected": "operator=200, rogue=400/403",
|
||||
"id": "BAO-4-OPERATOR-AND-ROGUE-AUTH",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "login=200 policies=['api-policy'] ttl=300s own=200 wrk=403 mig=403 adm=403 pol=403 cert=403 cross=400",
|
||||
"category": "openbao_policy",
|
||||
"description": "messenger-api reads ONLY secret/data/messenger/api and is denied worker/migrator/admin/sys/auth",
|
||||
"expected": "own=200, all foreign/sys/auth=403, cross_role_login=400, no default policy",
|
||||
"id": "BAO-5-API-POLICY-MATRIX",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "login=200 policies=['worker-policy'] ttl=300s own=200 api=403 mig=403 adm=403 pol=403 seal=403 cross=400 no_redis_metrics=True",
|
||||
"category": "openbao_policy",
|
||||
"description": "messenger-worker reads ONLY secret/data/messenger/worker (no Redis/metrics) and is denied api/migrator/admin/sys",
|
||||
"expected": "own=200, no redis/metrics keys, all foreign/sys=403, no default policy",
|
||||
"id": "BAO-6-WORKER-POLICY-MATRIX",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "same_image=True secret_version_before=1 secret_version_after=2 old_password_rejected=True api_serving=True",
|
||||
"category": "secret_rotation",
|
||||
"description": "Live API DB password rotation increments KV version, rejects old password (28P01), keeps API serving without image rebuild",
|
||||
"expected": "same Image SHA, KV version++, old PG password 28P01, API serves 201",
|
||||
"id": "BAO-7-SECRET-ROTATION-NO-REBUILD",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "serial_before=1003 serial_after=1016 disk_serial=1016 same_image=True ext_ok=True",
|
||||
"category": "cert_rotation",
|
||||
"description": "Live API leaf cert rotation changes presented TLS serial without image rebuild or downtime",
|
||||
"expected": "serial changed & matches disk cert, same Image SHA, external HTTPS 200",
|
||||
"id": "BAO-8-LEAF-CERT-ROTATION-NO-REBUILD",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "pre=200 post_status=None post_err=ECONNRESET",
|
||||
"category": "cert_revocation",
|
||||
"description": "Revoked client cert rejected on BRAND-NEW TCP+TLS connection (no TLS session resumption)",
|
||||
"expected": "pre_revoke=200, post_revoke=TLS revoked or 403",
|
||||
"id": "BAO-9-CERT-REVOCATION-NEW-CONN",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "ttl=300s pre=200 revoke=204 post=403 reauth=200 after=200",
|
||||
"category": "token_lifecycle",
|
||||
"description": "Revoked OpenBao token fails immediately (403) and service re-authenticates via auth/cert",
|
||||
"expected": "pre=200, revoke=204, post_revoke=403, reauth=200",
|
||||
"id": "BAO-10-TOKEN-REVOKE-AND-REAUTH",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "sealed=True, api_ok=True, cold_fail_closed=True",
|
||||
"category": "sealed_recovery",
|
||||
"description": "When OpenBao is sealed, running API stays bounded (0 restarts) and cold login fails closed (503)",
|
||||
"expected": "sealed=503, api_ok=True, cold_login=503",
|
||||
"id": "BAO-11-SEALED-BOUNDED-BEHAVIOR",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "booted_sealed=True, unsealed=True, ver_before=2, ver_after=2, api_ready=True",
|
||||
"category": "sealed_recovery",
|
||||
"description": "Restarted OpenBao boots sealed, manual scripts/openbao-unseal.sh restores Raft state & API health",
|
||||
"expected": "booted_sealed=True, unsealed=True, raft_kv_intact=True, api=200",
|
||||
"id": "BAO-12-RESTART-SEALED-AND-MANUAL-UNSEAL",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"failed_count": 0,
|
||||
"failed_ids": [],
|
||||
"passed": true,
|
||||
"passed_count": 12,
|
||||
"started_at": "2026-11-26T15:56:55Z",
|
||||
"suite": "lab7-openbao-lifecycle",
|
||||
"summary": {
|
||||
"base_url": "https://localhost:8443",
|
||||
"openbao_url": "https://localhost:8200"
|
||||
},
|
||||
"total": 12
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
suite=lab7-openbao-lifecycle passed=True checks=12/12 captured_at=2026-11-26T15:57:06Z
|
||||
|
||||
[PASS] BAO-1-NONDEV-HEALTH (openbao_posture): OpenBao is initialized, unsealed, and reachable over verified HTTPS -> status=200 health={'initialized': True, 'sealed': False, 'standby': False, 'performance_standby': False, 'replication_performance_mode': 'disabled', 'replication_dr_mode': 'disabled', 'server_time_utc': 1795708615, 'version': '2.4.4', 'cluster_name': 'vault-cluster-d1ad89c9', 'cluster_id': '2c9926d7-9617-595e-7270-2dc84e65f6eb'}
|
||||
[PASS] BAO-2-RAFT-NONDEV (openbao_posture): OpenBao runs non-dev mode with persistent Raft volume (openbao-data:/openbao/file) -> non_dev=True, raft_vol=True, hcl_raft=True
|
||||
[PASS] BAO-3-NO-ROOT-PERSISTED (openbao_posture): Initial root token revoked and zero root/unseal files in repo or workload containers -> no persisted root token file (revoked at bootstrap); repo_leaks=[]
|
||||
[PASS] BAO-4-OPERATOR-AND-ROGUE-AUTH (openbao_auth): Operator mTLS cert authenticates; trusted-CA rogue-client rejected by auth/cert -> operator=200, rogue=400
|
||||
[PASS] BAO-5-API-POLICY-MATRIX (openbao_policy): messenger-api reads ONLY secret/data/messenger/api and is denied worker/migrator/admin/sys/auth -> login=200 policies=['api-policy'] ttl=300s own=200 wrk=403 mig=403 adm=403 pol=403 cert=403 cross=400
|
||||
[PASS] BAO-6-WORKER-POLICY-MATRIX (openbao_policy): messenger-worker reads ONLY secret/data/messenger/worker (no Redis/metrics) and is denied api/migrator/admin/sys -> login=200 policies=['worker-policy'] ttl=300s own=200 api=403 mig=403 adm=403 pol=403 seal=403 cross=400 no_redis_metrics=True
|
||||
[PASS] BAO-7-SECRET-ROTATION-NO-REBUILD (secret_rotation): Live API DB password rotation increments KV version, rejects old password (28P01), keeps API serving without image rebuild -> same_image=True secret_version_before=1 secret_version_after=2 old_password_rejected=True api_serving=True
|
||||
[PASS] BAO-8-LEAF-CERT-ROTATION-NO-REBUILD (cert_rotation): Live API leaf cert rotation changes presented TLS serial without image rebuild or downtime -> serial_before=1003 serial_after=1016 disk_serial=1016 same_image=True ext_ok=True
|
||||
[PASS] BAO-9-CERT-REVOCATION-NEW-CONN (cert_revocation): Revoked client cert rejected on BRAND-NEW TCP+TLS connection (no TLS session resumption) -> pre=200 post_status=None post_err=ECONNRESET
|
||||
[PASS] BAO-10-TOKEN-REVOKE-AND-REAUTH (token_lifecycle): Revoked OpenBao token fails immediately (403) and service re-authenticates via auth/cert -> ttl=300s pre=200 revoke=204 post=403 reauth=200 after=200
|
||||
[PASS] BAO-11-SEALED-BOUNDED-BEHAVIOR (sealed_recovery): When OpenBao is sealed, running API stays bounded (0 restarts) and cold login fails closed (503) -> sealed=True, api_ok=True, cold_fail_closed=True
|
||||
[PASS] BAO-12-RESTART-SEALED-AND-MANUAL-UNSEAL (sealed_recovery): Restarted OpenBao boots sealed, manual scripts/openbao-unseal.sh restores Raft state & API health -> booted_sealed=True, unsealed=True, ver_before=2, ver_after=2, api_ready=True
|
||||
|
||||
summary={"base_url": "https://localhost:8443", "openbao_url": "https://localhost:8200"}
|
||||
@@ -0,0 +1,39 @@
|
||||
=== 11. PERSISTENCE TEST ===
|
||||
--- BEFORE StartedAt ---
|
||||
/mtusi-lab7-api-1 StartedAt=2026-11-26T16:01:27.530861274Z Status=running
|
||||
/mtusi-lab7-api-2 StartedAt=2026-11-26T16:01:27.181627902Z Status=running
|
||||
/mtusi-lab7-broker-1 StartedAt=2026-11-26T15:39:07.682481963Z Status=running
|
||||
/mtusi-lab7-grafana-1 StartedAt=2026-11-26T15:43:11.322858025Z Status=running
|
||||
/mtusi-lab7-haproxy-1 StartedAt=2026-11-26T15:45:05.899826803Z Status=running
|
||||
/mtusi-lab7-loki-1 StartedAt=2026-11-26T15:42:00.744148511Z Status=running
|
||||
/mtusi-lab7-openbao-1 StartedAt=2026-11-26T15:57:04.916484731Z Status=running
|
||||
/mtusi-lab7-otel-collector-1 StartedAt=2026-11-26T15:43:10.289681225Z Status=running
|
||||
/mtusi-lab7-otel-gateway-1 StartedAt=2026-11-26T15:43:10.086301641Z Status=running
|
||||
/mtusi-lab7-postgres-1 StartedAt=2026-11-26T15:38:37.871187714Z Status=running
|
||||
/mtusi-lab7-prometheus-1 StartedAt=2026-11-26T15:42:00.532122372Z Status=running
|
||||
/mtusi-lab7-redis-1 StartedAt=2026-11-26T15:38:38.318374979Z Status=running
|
||||
/mtusi-lab7-s3-1 StartedAt=2026-11-26T15:38:37.981747185Z Status=running
|
||||
/mtusi-lab7-tempo-1 StartedAt=2026-11-26T15:42:00.360925058Z Status=running
|
||||
/mtusi-lab7-worker-1 StartedAt=2026-11-26T16:05:08.623138605Z Status=running
|
||||
|
||||
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=https://localhost:8443 CA_FILE="secrets/pki/haproxy/ca.crt"
|
||||
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "https://localhost:8443" --ca-file "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
|
||||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||||
|
||||
--- AFTER StartedAt ---
|
||||
/mtusi-lab7-api-1 StartedAt=2026-11-26T16:05:45.397211936Z Status=running
|
||||
/mtusi-lab7-api-2 StartedAt=2026-11-26T16:05:45.483311877Z Status=running
|
||||
/mtusi-lab7-broker-1 StartedAt=2026-11-26T16:05:43.446652174Z Status=running
|
||||
/mtusi-lab7-grafana-1 StartedAt=2026-11-26T16:05:42.672431649Z Status=running
|
||||
/mtusi-lab7-haproxy-1 StartedAt=2026-11-26T16:05:42.686109425Z Status=running
|
||||
/mtusi-lab7-loki-1 StartedAt=2026-11-26T16:05:42.635501162Z Status=running
|
||||
/mtusi-lab7-openbao-1 StartedAt=2026-11-26T15:57:04.916484731Z Status=running
|
||||
/mtusi-lab7-otel-collector-1 StartedAt=2026-11-26T16:06:01.572178689Z Status=running
|
||||
/mtusi-lab7-otel-gateway-1 StartedAt=2026-11-26T16:05:44.742944255Z Status=running
|
||||
/mtusi-lab7-postgres-1 StartedAt=2026-11-26T16:05:42.564843688Z Status=running
|
||||
/mtusi-lab7-prometheus-1 StartedAt=2026-11-26T16:05:42.447510441Z Status=running
|
||||
/mtusi-lab7-redis-1 StartedAt=2026-11-26T16:05:42.286691276Z Status=running
|
||||
/mtusi-lab7-s3-1 StartedAt=2026-11-26T16:05:42.451229052Z Status=running
|
||||
/mtusi-lab7-tempo-1 StartedAt=2026-11-26T16:05:42.295026102Z Status=running
|
||||
/mtusi-lab7-worker-1 StartedAt=2026-11-26T16:05:44.928339785Z Status=running
|
||||
@@ -0,0 +1,518 @@
|
||||
{
|
||||
"auditReportVersion": 2,
|
||||
"vulnerabilities": {
|
||||
"@nestjs/platform-fastify": {
|
||||
"name": "@nestjs/platform-fastify",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"fastify"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<=11.2.8 || 12.0.0-alpha.0 - 12.0.3",
|
||||
"nodes": [
|
||||
"node_modules/@nestjs/platform-fastify"
|
||||
],
|
||||
"fixAvailable": true
|
||||
},
|
||||
"@opentelemetry/core": {
|
||||
"name": "@opentelemetry/core",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
{
|
||||
"source": 1153174,
|
||||
"name": "@opentelemetry/core",
|
||||
"dependency": "@opentelemetry/core",
|
||||
"title": "OpenTelemetry Core: Unbounded memory allocation in W3C Baggage propagation",
|
||||
"url": "https://github.com/advisories/GHSA-8988-4f7v-96qf",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-770"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 5.3,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
|
||||
},
|
||||
"range": "<2.8.0"
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
"@opentelemetry/exporter-logs-otlp-proto",
|
||||
"@opentelemetry/exporter-metrics-otlp-http",
|
||||
"@opentelemetry/exporter-metrics-otlp-proto",
|
||||
"@opentelemetry/exporter-trace-otlp-proto",
|
||||
"@opentelemetry/otlp-exporter-base",
|
||||
"@opentelemetry/otlp-transformer",
|
||||
"@opentelemetry/resources",
|
||||
"@opentelemetry/sdk-logs",
|
||||
"@opentelemetry/sdk-metrics",
|
||||
"@opentelemetry/sdk-trace-base",
|
||||
"@opentelemetry/sdk-trace-node"
|
||||
],
|
||||
"range": "<2.8.0",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/core"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/exporter-logs-otlp-proto",
|
||||
"version": "0.301.2",
|
||||
"isSemVerMajor": true
|
||||
}
|
||||
},
|
||||
"@opentelemetry/exporter-logs-otlp-proto": {
|
||||
"name": "@opentelemetry/exporter-logs-otlp-proto",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/otlp-exporter-base",
|
||||
"@opentelemetry/otlp-transformer",
|
||||
"@opentelemetry/resources",
|
||||
"@opentelemetry/sdk-logs",
|
||||
"@opentelemetry/sdk-trace-base"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<=0.218.0",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/exporter-logs-otlp-proto"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/exporter-logs-otlp-proto",
|
||||
"version": "0.301.2",
|
||||
"isSemVerMajor": true
|
||||
}
|
||||
},
|
||||
"@opentelemetry/exporter-metrics-otlp-http": {
|
||||
"name": "@opentelemetry/exporter-metrics-otlp-http",
|
||||
"severity": "moderate",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/otlp-exporter-base",
|
||||
"@opentelemetry/otlp-transformer",
|
||||
"@opentelemetry/resources",
|
||||
"@opentelemetry/sdk-metrics"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<=0.218.0",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/exporter-metrics-otlp-http"
|
||||
],
|
||||
"fixAvailable": true
|
||||
},
|
||||
"@opentelemetry/exporter-metrics-otlp-proto": {
|
||||
"name": "@opentelemetry/exporter-metrics-otlp-proto",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/exporter-metrics-otlp-http",
|
||||
"@opentelemetry/otlp-exporter-base",
|
||||
"@opentelemetry/otlp-transformer",
|
||||
"@opentelemetry/resources",
|
||||
"@opentelemetry/sdk-metrics"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<=0.218.0",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/exporter-metrics-otlp-proto"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/exporter-metrics-otlp-proto",
|
||||
"version": "0.301.2",
|
||||
"isSemVerMajor": true
|
||||
}
|
||||
},
|
||||
"@opentelemetry/exporter-trace-otlp-proto": {
|
||||
"name": "@opentelemetry/exporter-trace-otlp-proto",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/otlp-exporter-base",
|
||||
"@opentelemetry/otlp-transformer",
|
||||
"@opentelemetry/resources",
|
||||
"@opentelemetry/sdk-trace-base"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<=0.218.0",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/exporter-trace-otlp-proto"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/exporter-trace-otlp-proto",
|
||||
"version": "0.301.2",
|
||||
"isSemVerMajor": true
|
||||
}
|
||||
},
|
||||
"@opentelemetry/otlp-exporter-base": {
|
||||
"name": "@opentelemetry/otlp-exporter-base",
|
||||
"severity": "moderate",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/otlp-transformer"
|
||||
],
|
||||
"effects": [
|
||||
"@opentelemetry/exporter-metrics-otlp-http",
|
||||
"@opentelemetry/exporter-metrics-otlp-proto",
|
||||
"@opentelemetry/exporter-trace-otlp-proto"
|
||||
],
|
||||
"range": "<=0.218.0",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/otlp-exporter-base"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/exporter-trace-otlp-proto",
|
||||
"version": "0.301.2",
|
||||
"isSemVerMajor": true
|
||||
}
|
||||
},
|
||||
"@opentelemetry/otlp-transformer": {
|
||||
"name": "@opentelemetry/otlp-transformer",
|
||||
"severity": "moderate",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/resources",
|
||||
"@opentelemetry/sdk-logs",
|
||||
"@opentelemetry/sdk-metrics",
|
||||
"@opentelemetry/sdk-trace-base"
|
||||
],
|
||||
"effects": [
|
||||
"@opentelemetry/exporter-metrics-otlp-http",
|
||||
"@opentelemetry/exporter-metrics-otlp-proto",
|
||||
"@opentelemetry/exporter-trace-otlp-proto",
|
||||
"@opentelemetry/otlp-exporter-base"
|
||||
],
|
||||
"range": "<=0.218.0",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/otlp-transformer"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/exporter-trace-otlp-proto",
|
||||
"version": "0.301.2",
|
||||
"isSemVerMajor": true
|
||||
}
|
||||
},
|
||||
"@opentelemetry/resources": {
|
||||
"name": "@opentelemetry/resources",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"@opentelemetry/core"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "0.8.0 - 2.7.1",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/resources"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/resources",
|
||||
"version": "2.12.1",
|
||||
"isSemVerMajor": false
|
||||
}
|
||||
},
|
||||
"@opentelemetry/sdk-logs": {
|
||||
"name": "@opentelemetry/sdk-logs",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/resources"
|
||||
],
|
||||
"effects": [
|
||||
"@opentelemetry/otlp-transformer"
|
||||
],
|
||||
"range": "<=0.218.0",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/sdk-logs"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/sdk-logs",
|
||||
"version": "3.1.1",
|
||||
"isSemVerMajor": true
|
||||
}
|
||||
},
|
||||
"@opentelemetry/sdk-metrics": {
|
||||
"name": "@opentelemetry/sdk-metrics",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/resources"
|
||||
],
|
||||
"effects": [
|
||||
"@opentelemetry/exporter-metrics-otlp-http",
|
||||
"@opentelemetry/exporter-metrics-otlp-proto",
|
||||
"@opentelemetry/otlp-transformer"
|
||||
],
|
||||
"range": "<=2.7.1",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/sdk-metrics"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/exporter-trace-otlp-proto",
|
||||
"version": "0.301.2",
|
||||
"isSemVerMajor": true
|
||||
}
|
||||
},
|
||||
"@opentelemetry/sdk-trace-base": {
|
||||
"name": "@opentelemetry/sdk-trace-base",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/resources"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<=2.7.1",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/sdk-trace-base"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/sdk-trace-base",
|
||||
"version": "2.12.1",
|
||||
"isSemVerMajor": false
|
||||
}
|
||||
},
|
||||
"@opentelemetry/sdk-trace-node": {
|
||||
"name": "@opentelemetry/sdk-trace-node",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
"@opentelemetry/core",
|
||||
"@opentelemetry/sdk-trace-base"
|
||||
],
|
||||
"effects": [],
|
||||
"range": "<=2.7.1",
|
||||
"nodes": [
|
||||
"node_modules/@opentelemetry/sdk-trace-node"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "@opentelemetry/sdk-trace-node",
|
||||
"version": "2.12.1",
|
||||
"isSemVerMajor": false
|
||||
}
|
||||
},
|
||||
"fast-uri": {
|
||||
"name": "fast-uri",
|
||||
"severity": "moderate",
|
||||
"isDirect": false,
|
||||
"via": [
|
||||
{
|
||||
"source": 1243097,
|
||||
"name": "fast-uri",
|
||||
"dependency": "fast-uri",
|
||||
"title": "fast-uri vulnerable to URI scheme spoofing via percent-encoded scheme decoding",
|
||||
"url": "https://github.com/advisories/GHSA-w74x-v6f9-j3xg",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-172",
|
||||
"CWE-180"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 6.1,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
|
||||
},
|
||||
"range": ">=4.0.0 <4.2.3"
|
||||
},
|
||||
{
|
||||
"source": 1243098,
|
||||
"name": "fast-uri",
|
||||
"dependency": "fast-uri",
|
||||
"title": "fast-uri vulnerable to URI scheme spoofing via percent-encoded scheme decoding",
|
||||
"url": "https://github.com/advisories/GHSA-w74x-v6f9-j3xg",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-172",
|
||||
"CWE-180"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 6.1,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
|
||||
},
|
||||
"range": ">=3.0.0 <3.1.9"
|
||||
},
|
||||
{
|
||||
"source": 1243100,
|
||||
"name": "fast-uri",
|
||||
"dependency": "fast-uri",
|
||||
"title": "fast-uri vulnerable to improper path equivalence in relative reference normalization",
|
||||
"url": "https://github.com/advisories/GHSA-xhq7-xmqj-769h",
|
||||
"severity": "low",
|
||||
"cwe": [
|
||||
"CWE-41"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 3.7,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
|
||||
},
|
||||
"range": ">=4.0.0 <4.2.3"
|
||||
},
|
||||
{
|
||||
"source": 1243101,
|
||||
"name": "fast-uri",
|
||||
"dependency": "fast-uri",
|
||||
"title": "fast-uri vulnerable to improper path equivalence in relative reference normalization",
|
||||
"url": "https://github.com/advisories/GHSA-xhq7-xmqj-769h",
|
||||
"severity": "low",
|
||||
"cwe": [
|
||||
"CWE-41"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 3.7,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
|
||||
},
|
||||
"range": ">=3.0.0 <3.1.9"
|
||||
},
|
||||
{
|
||||
"source": 1243103,
|
||||
"name": "fast-uri",
|
||||
"dependency": "fast-uri",
|
||||
"title": "fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization",
|
||||
"url": "https://github.com/advisories/GHSA-wjr9-j795-jxcr",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-20",
|
||||
"CWE-436"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 4.8,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
|
||||
},
|
||||
"range": ">=4.0.1 <4.2.3"
|
||||
},
|
||||
{
|
||||
"source": 1243104,
|
||||
"name": "fast-uri",
|
||||
"dependency": "fast-uri",
|
||||
"title": "fast-uri vulnerable to host confusion via unchecked WHATWG host canonicalization",
|
||||
"url": "https://github.com/advisories/GHSA-wjr9-j795-jxcr",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-20",
|
||||
"CWE-436"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 4.8,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
|
||||
},
|
||||
"range": ">=3.1.3 <3.1.9"
|
||||
},
|
||||
{
|
||||
"source": 1243106,
|
||||
"name": "fast-uri",
|
||||
"dependency": "fast-uri",
|
||||
"title": "fast-uri vulnerable to scheme injection via an unescaped first-segment colon in suffix references",
|
||||
"url": "https://github.com/advisories/GHSA-333x-w4r6-6crp",
|
||||
"severity": "low",
|
||||
"cwe": [
|
||||
"CWE-41",
|
||||
"CWE-116"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 3.7,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
|
||||
},
|
||||
"range": ">=4.0.0 <4.2.3"
|
||||
},
|
||||
{
|
||||
"source": 1243107,
|
||||
"name": "fast-uri",
|
||||
"dependency": "fast-uri",
|
||||
"title": "fast-uri vulnerable to scheme injection via an unescaped first-segment colon in suffix references",
|
||||
"url": "https://github.com/advisories/GHSA-333x-w4r6-6crp",
|
||||
"severity": "low",
|
||||
"cwe": [
|
||||
"CWE-41",
|
||||
"CWE-116"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 3.7,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
|
||||
},
|
||||
"range": ">=3.0.0 <3.1.9"
|
||||
}
|
||||
],
|
||||
"effects": [],
|
||||
"range": "3.0.0 - 3.1.8 || 4.0.0 - 4.2.2",
|
||||
"nodes": [
|
||||
"node_modules/@fastify/ajv-compiler/node_modules/fast-uri",
|
||||
"node_modules/fast-json-stringify/node_modules/fast-uri",
|
||||
"node_modules/fast-uri"
|
||||
],
|
||||
"fixAvailable": true
|
||||
},
|
||||
"fastify": {
|
||||
"name": "fastify",
|
||||
"severity": "moderate",
|
||||
"isDirect": true,
|
||||
"via": [
|
||||
{
|
||||
"source": 1240639,
|
||||
"name": "fastify",
|
||||
"dependency": "fastify",
|
||||
"title": "fastify vulnerable to Denial of Service via unhandled exception on HTTP/2 trailer responses",
|
||||
"url": "https://github.com/advisories/GHSA-4mh8-r7rc-xpvc",
|
||||
"severity": "moderate",
|
||||
"cwe": [
|
||||
"CWE-248"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 5.9,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
|
||||
},
|
||||
"range": "<5.12.5"
|
||||
},
|
||||
{
|
||||
"source": 1242860,
|
||||
"name": "fastify",
|
||||
"dependency": "fastify",
|
||||
"title": "fastify is vulnerable to header validation bypass via case-sensitive propertyNames",
|
||||
"url": "https://github.com/advisories/GHSA-389g-gv7q-r4x8",
|
||||
"severity": "low",
|
||||
"cwe": [
|
||||
"CWE-178"
|
||||
],
|
||||
"cvss": {
|
||||
"score": 3.7,
|
||||
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
|
||||
},
|
||||
"range": ">=5.12.2 <5.12.6"
|
||||
}
|
||||
],
|
||||
"effects": [
|
||||
"@nestjs/platform-fastify"
|
||||
],
|
||||
"range": "<=5.12.5",
|
||||
"nodes": [
|
||||
"node_modules/fastify"
|
||||
],
|
||||
"fixAvailable": {
|
||||
"name": "fastify",
|
||||
"version": "5.12.8",
|
||||
"isSemVerMajor": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"metadata": {
|
||||
"vulnerabilities": {
|
||||
"info": 0,
|
||||
"low": 0,
|
||||
"moderate": 15,
|
||||
"high": 0,
|
||||
"critical": 0,
|
||||
"total": 15
|
||||
},
|
||||
"dependencies": {
|
||||
"prod": 204,
|
||||
"dev": 302,
|
||||
"optional": 153,
|
||||
"peer": 52,
|
||||
"peerOptional": 0,
|
||||
"total": 584
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,50 @@
|
||||
=== HOST SPECS ===
|
||||
Date (UTC): 2026-11-26T16:01:54Z
|
||||
CPU cores (nproc): 8
|
||||
Kernel: Linux 7.2.13-200.fc44.x86_64 x86_64 GNU/Linux
|
||||
total used free shared buff/cache available
|
||||
Mem: 15Gi 7.8Gi 834Mi 1.7Gi 8.8Gi 7.6Gi
|
||||
Swap: 15Gi 5.9Gi 10Gi
|
||||
Docker version 29.9.2, build a82e528
|
||||
Docker Compose version v5.6.1
|
||||
Python 3.14.8
|
||||
v22.22.2
|
||||
|
||||
=== DOCKER COMPOSE PS ===
|
||||
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
|
||||
mtusi-lab7-api-1 mtusi-messenger:lab7 "docker-entrypoint.s…" api 35 seconds ago Up 26 seconds (healthy) 8443/tcp
|
||||
mtusi-lab7-api-2 mtusi-messenger:lab7 "docker-entrypoint.s…" api 35 seconds ago Up 27 seconds (healthy) 8443/tcp
|
||||
mtusi-lab7-broker-1 rabbitmq:4.1.8-alpine@sha256:153322e3974e6365c50e523e5eadd5a7fae231f0e8c58f67c03bb3e02056e34e "docker-entrypoint.s…" broker 22 minutes ago Up 22 minutes (healthy) 4369/tcp, 5671-5672/tcp, 15691-15692/tcp, 25672/tcp
|
||||
mtusi-lab7-grafana-1 grafana/grafana:12.0.2@sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa "/run.sh" grafana 19 minutes ago Up 18 minutes 127.0.0.1:3000->3000/tcp
|
||||
mtusi-lab7-haproxy-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" haproxy 18 minutes ago Up 16 minutes 127.0.0.1:8404->8404/tcp, 0.0.0.0:8443->8443/tcp, [::]:8443->8443/tcp
|
||||
mtusi-lab7-loki-1 grafana/loki:3.5.1@sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745 "/usr/bin/loki -conf…" loki 19 minutes ago Up 19 minutes 3100/tcp
|
||||
mtusi-lab7-migrate-1 mtusi-messenger:lab7 "docker-entrypoint.s…" migrate 36 seconds ago Exited (0) 27 seconds ago
|
||||
mtusi-lab7-openbao-1 ghcr.io/openbao/openbao:2.4.4@sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd "/usr/bin/dumb-init …" openbao 23 minutes ago Up 4 minutes (healthy) 127.0.0.1:8200->8200/tcp
|
||||
mtusi-lab7-otel-collector-1 otel/opentelemetry-collector-contrib:0.128.0@sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7 "/otelcol-contrib --…" otel-collector 18 minutes ago Up 18 minutes
|
||||
mtusi-lab7-otel-gateway-1 haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 "docker-entrypoint.s…" otel-gateway 18 minutes ago Up 18 minutes
|
||||
mtusi-lab7-postgres-1 postgres:16.4-alpine@sha256:5660c2cbfea50c7a9127d17dc4e48543eedd3d7a41a595a2dfa572471e37e64c "/bin/sh /etc/postgr…" postgres 23 minutes ago Up 23 minutes (healthy) 5432/tcp
|
||||
mtusi-lab7-prometheus-1 prom/prometheus:v3.4.1@sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d "/bin/prometheus --c…" prometheus 19 minutes ago Up 19 minutes 127.0.0.1:9090->9090/tcp
|
||||
mtusi-lab7-redis-1 redis:7.4.2-alpine@sha256:02419de7eddf55aa5bcf49efb74e88fa8d931b4d77c07eff8a6b2144472b6952 "/bin/sh /etc/redis/…" redis 23 minutes ago Up 23 minutes (healthy) 6379/tcp
|
||||
mtusi-lab7-s3-1 minio/minio:RELEASE.2025-09-07T16-13-09Z@sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e "/usr/bin/docker-ent…" s3 23 minutes ago Up 23 minutes (healthy) 127.0.0.1:9000->9000/tcp
|
||||
mtusi-lab7-tempo-1 grafana/tempo:2.8.1@sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e "/tempo -config.file…" tempo 19 minutes ago Up 19 minutes
|
||||
mtusi-lab7-volumes-init-1 node:25.7.0-slim@sha256:e07427bc8f075386eafa62c1ddab758815f1fd11dd8eaacb61919e8b09ab00b3 "node -e 'const fs=r…" volumes-init 23 minutes ago Exited (0) 30 seconds ago
|
||||
mtusi-lab7-worker-1 mtusi-messenger:lab7 "docker-entrypoint.s…" worker 35 seconds ago Up 27 seconds (healthy) 8443/tcp
|
||||
|
||||
=== CONTAINER IMAGE DIGESTS & IDS ===
|
||||
/mtusi-lab7-api-1 | service=api | image=mtusi-messenger:lab7 | image_id=sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 | status=running | health=healthy
|
||||
/mtusi-lab7-api-2 | service=api | image=mtusi-messenger:lab7 | image_id=sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 | status=running | health=healthy
|
||||
/mtusi-lab7-broker-1 | service=broker | image=rabbitmq:4.1.8-alpine@sha256:153322e3974e6365c50e523e5eadd5a7fae231f0e8c58f67c03bb3e02056e34e | image_id=sha256:153322e3974e6365c50e523e5eadd5a7fae231f0e8c58f67c03bb3e02056e34e | status=running | health=healthy
|
||||
/mtusi-lab7-grafana-1 | service=grafana | image=grafana/grafana:12.0.2@sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa | image_id=sha256:b5b59bfc7561634c2d7b136c4543d702ebcc94a3da477f21ff26f89ffd4214fa | status=running | health=n/a
|
||||
/mtusi-lab7-haproxy-1 | service=haproxy | image=haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 | image_id=sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 | status=running | health=n/a
|
||||
/mtusi-lab7-loki-1 | service=loki | image=grafana/loki:3.5.1@sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745 | image_id=sha256:a74594532eec4cc313401beedc4dd2708c43674c032084b1aeb87c14a5be1745 | status=running | health=n/a
|
||||
/mtusi-lab7-migrate-1 | service=migrate | image=mtusi-messenger:lab7 | image_id=sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 | status=exited | health=unhealthy
|
||||
/mtusi-lab7-openbao-1 | service=openbao | image=ghcr.io/openbao/openbao:2.4.4@sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd | image_id=sha256:595c83b42614a4d2b044608e4593c05b019c5db25bc9c185d8fff3ac96c03ddd | status=running | health=healthy
|
||||
/mtusi-lab7-otel-collector-1 | service=otel-collector | image=otel/opentelemetry-collector-contrib:0.128.0@sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7 | image_id=sha256:1ab0baba0ee3695d823c46653d8a6e8894896e668ce8bd7ebe002e948d827bc7 | status=running | health=n/a
|
||||
/mtusi-lab7-otel-gateway-1 | service=otel-gateway | image=haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 | image_id=sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 | status=running | health=n/a
|
||||
/mtusi-lab7-postgres-1 | service=postgres | image=postgres:16.4-alpine@sha256:5660c2cbfea50c7a9127d17dc4e48543eedd3d7a41a595a2dfa572471e37e64c | image_id=sha256:5660c2cbfea50c7a9127d17dc4e48543eedd3d7a41a595a2dfa572471e37e64c | status=running | health=healthy
|
||||
/mtusi-lab7-prometheus-1 | service=prometheus | image=prom/prometheus:v3.4.1@sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d | image_id=sha256:9abc6cf6aea7710d163dbb28d8eeb7dc5baef01e38fa4cd146a406dd9f07f70d | status=running | health=n/a
|
||||
/mtusi-lab7-redis-1 | service=redis | image=redis:7.4.2-alpine@sha256:02419de7eddf55aa5bcf49efb74e88fa8d931b4d77c07eff8a6b2144472b6952 | image_id=sha256:02419de7eddf55aa5bcf49efb74e88fa8d931b4d77c07eff8a6b2144472b6952 | status=running | health=healthy
|
||||
/mtusi-lab7-s3-1 | service=s3 | image=minio/minio:RELEASE.2025-09-07T16-13-09Z@sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e | image_id=sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e | status=running | health=healthy
|
||||
/mtusi-lab7-tempo-1 | service=tempo | image=grafana/tempo:2.8.1@sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e | image_id=sha256:bc9245fe3da4e63dc4c6862d9c2dad9bcd8be13d0ba4f7705fa6acda4c904d0e | status=running | health=n/a
|
||||
/mtusi-lab7-volumes-init-1 | service=volumes-init | image=node:25.7.0-slim@sha256:e07427bc8f075386eafa62c1ddab758815f1fd11dd8eaacb61919e8b09ab00b3 | image_id=sha256:e07427bc8f075386eafa62c1ddab758815f1fd11dd8eaacb61919e8b09ab00b3 | status=exited | health=n/a
|
||||
/mtusi-lab7-worker-1 | service=worker | image=mtusi-messenger:lab7 | image_id=sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3 | status=running | health=healthy
|
||||
@@ -0,0 +1,439 @@
|
||||
{
|
||||
"captured_at": "2026-11-26T15:55:26Z",
|
||||
"checks": [
|
||||
{
|
||||
"actual": "status=200 tls=TLSv1.3",
|
||||
"category": "external_tls",
|
||||
"description": "External HTTPS with valid CA and hostname succeeds",
|
||||
"evidence": {
|
||||
"peer_cert": {
|
||||
"serial": "1002",
|
||||
"sha256": "AEED97CDAA5A83C9CD32AE69EA1887B8BB3B18AA1CB1C79F769B8D1C03094FB0",
|
||||
"version": "TLSv1.3"
|
||||
}
|
||||
},
|
||||
"expected": "HTTP 200 over TLSv1.2+",
|
||||
"id": "EXT-1-HTTPS-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "SSLCertVerificationError (unable to get local issuer certificate)",
|
||||
"category": "external_tls",
|
||||
"description": "External HTTPS rejects empty CA trust store",
|
||||
"expected": "SSLCertVerificationError",
|
||||
"id": "EXT-2-EMPTY-CA",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "SSLCertVerificationError (unable to get local issuer certificate)",
|
||||
"category": "external_tls",
|
||||
"description": "External HTTPS rejects foreign untrusted CA",
|
||||
"expected": "SSLCertVerificationError",
|
||||
"id": "EXT-3-FOREIGN-CA",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "SSLCertVerificationError (IP address mismatch, certificate is not valid for '127.0.0.1'.)",
|
||||
"category": "external_tls",
|
||||
"description": "External HTTPS rejects wrong hostname (127.0.0.1 not in SAN)",
|
||||
"expected": "SSLCertVerificationError",
|
||||
"id": "EXT-4-HOSTNAME-MISMATCH",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=404",
|
||||
"category": "external_tls",
|
||||
"description": "/internal/metrics blocked with 404 on external :8443",
|
||||
"expected": "HTTP 404",
|
||||
"id": "EXT-5-INTERNAL-BLOCKED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "closed",
|
||||
"category": "external_tls",
|
||||
"description": "Plaintext HTTP port 8080 is closed on host",
|
||||
"expected": "TCP connection refused",
|
||||
"id": "EXT-6-PLAINTEXT-8080-CLOSED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "health=200, api=404, internal=404",
|
||||
"category": "health_isolation",
|
||||
"description": "API loopback 127.0.0.1:8081 serves /health/ready only and returns 404 on /api/* & /internal/*",
|
||||
"expected": "health=200, api=404, internal=404",
|
||||
"id": "EXT-7-HEALTH-ISOLATION",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "replicas=2, published=[]",
|
||||
"category": "lb_to_api_mtls",
|
||||
"description": "API replicas publish zero host ports",
|
||||
"expected": ">=2 replicas, 0 published ports",
|
||||
"id": "MTLS-API-0-NO-HOST-PORTS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=None error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED",
|
||||
"category": "lb_to_api_mtls",
|
||||
"description": "LB->API rejects connection without client certificate",
|
||||
"expected": "TLS handshake error",
|
||||
"id": "MTLS-API-1-NO-CERT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=None error=ECONNRESET",
|
||||
"category": "lb_to_api_mtls",
|
||||
"description": "LB->API rejects client certificate signed by foreign CA",
|
||||
"expected": "TLS handshake error",
|
||||
"id": "MTLS-API-2-FOREIGN-CA",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403 error=None",
|
||||
"category": "lb_to_api_mtls",
|
||||
"description": "LB->API rejects trusted-CA rogue-client identity (not CA-only)",
|
||||
"expected": "HTTP 403 (or TLS reject)",
|
||||
"id": "MTLS-API-3-ROGUE-CLIENT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403 error=None",
|
||||
"category": "lb_to_api_mtls",
|
||||
"description": "LB->API rejects trusted-CA messenger-worker identity",
|
||||
"expected": "HTTP 403 (or TLS reject)",
|
||||
"id": "MTLS-API-4-WORKER-DENIED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=200 error=None",
|
||||
"category": "lb_to_api_mtls",
|
||||
"description": "LB->API accepts valid haproxy-lb client identity",
|
||||
"expected": "HTTP 200",
|
||||
"id": "MTLS-API-5-HAPROXY-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "connected=False code=ECONNREFUSED",
|
||||
"category": "broker_mtls",
|
||||
"description": "RabbitMQ plaintext port 5672 is closed",
|
||||
"expected": "ECONNREFUSED",
|
||||
"id": "MTLS-BROKER-0-PLAIN-CLOSED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED",
|
||||
"category": "broker_mtls",
|
||||
"description": "RabbitMQ AMQPS 5671 rejects connection without client cert",
|
||||
"expected": "TLS reject",
|
||||
"id": "MTLS-BROKER-1-NO-CERT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=ERR_SSL_TLSV1_ALERT_UNKNOWN_CA",
|
||||
"category": "broker_mtls",
|
||||
"description": "RabbitMQ AMQPS 5671 rejects foreign-CA client cert",
|
||||
"expected": "TLS reject",
|
||||
"id": "MTLS-BROKER-2-FOREIGN-CA",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=Handshake terminated by server: 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.\"",
|
||||
"category": "broker_mtls",
|
||||
"description": "RabbitMQ AMQPS 5671 rejects trusted-CA rogue-client identity",
|
||||
"expected": "ACCESS_REFUSED",
|
||||
"id": "MTLS-BROKER-3-ROGUE-CLIENT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=Handshake terminated by server: 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.\"",
|
||||
"category": "broker_mtls",
|
||||
"description": "RabbitMQ AMQPS 5671 rejects trusted-CA haproxy-lb identity",
|
||||
"expected": "ACCESS_REFUSED",
|
||||
"id": "MTLS-BROKER-4-LB-DENIED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=channel closed",
|
||||
"category": "broker_mtls",
|
||||
"description": "RabbitMQ denies messenger-worker publish to attachments.jobs",
|
||||
"expected": "ACCESS_REFUSED",
|
||||
"id": "MTLS-BROKER-5-WORKER-PUBLISH-DENIED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=True error=None",
|
||||
"category": "broker_mtls",
|
||||
"description": "RabbitMQ allows messenger-worker read on attachments.process",
|
||||
"expected": "allowed=True",
|
||||
"id": "MTLS-BROKER-6-WORKER-CONSUME-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=True error=None",
|
||||
"category": "broker_mtls",
|
||||
"description": "RabbitMQ allows messenger-api access to attachments.jobs",
|
||||
"expected": "allowed=True",
|
||||
"id": "MTLS-BROKER-7-API-PRODUCER-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "connected=False code=ECONNREFUSED",
|
||||
"category": "otel_mtls",
|
||||
"description": "OTel Collector loopback port 14318 unreachable outside shared netns",
|
||||
"expected": "ECONNREFUSED",
|
||||
"id": "MTLS-OTEL-0-LOOPBACK-CLOSED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=None error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED",
|
||||
"category": "otel_mtls",
|
||||
"description": "OTel Gateway 4318 rejects OTLP push without client cert",
|
||||
"expected": "TLS handshake error",
|
||||
"id": "MTLS-OTEL-1-NO-CERT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=None error=ERR_SSL_TLSV1_ALERT_UNKNOWN_CA",
|
||||
"category": "otel_mtls",
|
||||
"description": "OTel Gateway 4318 rejects foreign-CA client cert",
|
||||
"expected": "TLS handshake error",
|
||||
"id": "MTLS-OTEL-2-FOREIGN-CA",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403 error=None",
|
||||
"category": "otel_mtls",
|
||||
"description": "OTel Gateway 4318 rejects trusted-CA rogue-client (SAN/CN allowlist)",
|
||||
"expected": "HTTP 403 (or TLS reject)",
|
||||
"id": "MTLS-OTEL-3-ROGUE-CLIENT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403 error=None",
|
||||
"category": "otel_mtls",
|
||||
"description": "OTel Gateway 4318 rejects trusted-CA haproxy-lb identity",
|
||||
"expected": "HTTP 403 (or TLS reject)",
|
||||
"id": "MTLS-OTEL-4-LB-DENIED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=200 error=None",
|
||||
"category": "otel_mtls",
|
||||
"description": "OTel Gateway 4318 accepts valid messenger-api identity",
|
||||
"expected": "HTTP 200",
|
||||
"id": "MTLS-OTEL-5-API-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=200 error=None",
|
||||
"category": "otel_mtls",
|
||||
"description": "OTel Gateway 4318 accepts valid messenger-worker identity",
|
||||
"expected": "HTTP 200",
|
||||
"id": "MTLS-OTEL-6-WORKER-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "closed",
|
||||
"category": "postgres_tls",
|
||||
"description": "PostgreSQL port 5432 is not published on host",
|
||||
"expected": "TCP refused",
|
||||
"id": "TLS-PG-0-HOST-CLOSED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "connected=False error=pg_hba.conf rejects connection for host \"192.168.32.11\", user \"messenger_api\", database \"messenger\", no encryption",
|
||||
"category": "postgres_tls",
|
||||
"description": "PostgreSQL rejects plaintext TCP connection (hostnossl reject)",
|
||||
"expected": "connection rejected",
|
||||
"id": "TLS-PG-1-NOSSL-REJECTED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "connected=False error=Hostname/IP does not match certificate's altnames: Host: wrong-pg.local. is not in the cert's altnames: DNS:postgres, DNS:localhost",
|
||||
"category": "postgres_tls",
|
||||
"description": "PostgreSQL verify-full rejects hostname mismatch",
|
||||
"expected": "TLS hostname error",
|
||||
"id": "TLS-PG-2-WRONG-HOST",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "connected=True row={'ssl': True, 'version': 'TLSv1.3'} error=None",
|
||||
"category": "postgres_tls",
|
||||
"description": "PostgreSQL verify-full TLS connection succeeds with pg_stat_ssl.ssl=true",
|
||||
"expected": "connected=True, ssl=True",
|
||||
"id": "TLS-PG-3-VERIFY-FULL-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "closed",
|
||||
"category": "redis_tls",
|
||||
"description": "Redis port 6379 is not published on host",
|
||||
"expected": "TCP refused",
|
||||
"id": "TLS-REDIS-0-HOST-CLOSED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "ok=False error=ECONNRESET",
|
||||
"category": "redis_tls",
|
||||
"description": "Redis plaintext TCP connection is rejected (--port 0)",
|
||||
"expected": "rejected",
|
||||
"id": "TLS-REDIS-1-PLAIN-REJECTED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "ok=False error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED",
|
||||
"category": "redis_tls",
|
||||
"description": "Redis TLS rejects connection without client certificate (mTLS)",
|
||||
"expected": "TLS reject",
|
||||
"id": "TLS-REDIS-2-NOCERT-REJECTED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "ok=True reply=PONG error=None",
|
||||
"category": "redis_tls",
|
||||
"description": "Redis mTLS + messenger_api ACL succeeds on PING",
|
||||
"expected": "PONG",
|
||||
"id": "TLS-REDIS-3-MTLS-ACL-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "ok=False error=NOPERM User messenger_api has no permissions to run the 'config|get' command",
|
||||
"category": "redis_tls",
|
||||
"description": "Redis ACL denies CONFIG GET to messenger_api (NOPERM)",
|
||||
"expected": "NOPERM",
|
||||
"id": "TLS-REDIS-4-ACL-CONFIG-DENIED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=200",
|
||||
"category": "s3_tls",
|
||||
"description": "MinIO S3 serves HTTPS verified with local CA",
|
||||
"expected": "HTTP 200",
|
||||
"id": "TLS-S3-1-HTTPS-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403",
|
||||
"category": "s3_tls",
|
||||
"description": "MinIO S3 rejects anonymous bucket access",
|
||||
"expected": "HTTP 403",
|
||||
"id": "TLS-S3-2-ANON-DENIED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=400",
|
||||
"category": "s3_tls",
|
||||
"description": "MinIO S3 rejects plaintext HTTP",
|
||||
"expected": "HTTP 400 / protocol error",
|
||||
"id": "TLS-S3-3-PLAIN-REJECTED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=200",
|
||||
"category": "openbao_tls",
|
||||
"description": "OpenBao serves HTTPS verified with local CA (initialized & unsealed)",
|
||||
"expected": "HTTP 200",
|
||||
"id": "TLS-BAO-1-HTTPS-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "SSLError",
|
||||
"category": "observability_tls",
|
||||
"description": "Prometheus rejects HTTPS client without mTLS certificate",
|
||||
"expected": "TLS handshake error",
|
||||
"id": "TLS-PROM-1-NOCERT-REJECTED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=401",
|
||||
"category": "observability_tls",
|
||||
"description": "Prometheus requires Basic Auth even with valid mTLS cert",
|
||||
"expected": "HTTP 401",
|
||||
"id": "TLS-PROM-2-NOAUTH-401",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=200 up={'loki': '1', 'tempo': '1', 'rabbitmq': '1', 'haproxy': '1', 'prometheus': '1', 'otel-collector': '1'}",
|
||||
"category": "observability_tls",
|
||||
"description": "Prometheus mTLS + operator auth succeeds and all 6 mTLS scrape targets are up=1",
|
||||
"expected": "HTTP 200 and all 6 jobs up=1",
|
||||
"id": "TLS-PROM-3-MTLS-SCRAPES-UP",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=401",
|
||||
"category": "observability_tls",
|
||||
"description": "Grafana HTTPS rejects unauthenticated datasource API access",
|
||||
"expected": "HTTP 401/403",
|
||||
"id": "TLS-GRAFANA-1-UNAUTH-401",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"loki\": {\"url\": \"https://loki:3100\", \"tlsSkipVerify\": false, \"tlsAuth\": true}, \"prometheus\": {\"url\": \"https://prometheus:9090\", \"tlsSkipVerify\": false, \"tlsAuth\": true}, \"tempo\": {\"url\": \"https://tempo:3200\", \"tlsSkipVerify\": false, \"tlsAuth\": true}}",
|
||||
"category": "observability_tls",
|
||||
"description": "Grafana datasources use HTTPS with tlsSkipVerify=false",
|
||||
"expected": "all datasources https:// & tlsSkipVerify=false",
|
||||
"id": "TLS-GRAFANA-2-DS-TLS-VERIFY",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=None error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED",
|
||||
"category": "observability_tls",
|
||||
"description": "loki:3100 rejects HTTPS without client certificate",
|
||||
"expected": "TLS handshake error",
|
||||
"id": "TLS-LOKI-1-NOCERT-REJECTED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=200 error=None",
|
||||
"category": "observability_tls",
|
||||
"description": "loki:3100 accepts valid mTLS client certificate",
|
||||
"expected": "HTTP 200",
|
||||
"id": "TLS-LOKI-2-MTLS-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=None error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED",
|
||||
"category": "observability_tls",
|
||||
"description": "tempo:3200 rejects HTTPS without client certificate",
|
||||
"expected": "TLS handshake error",
|
||||
"id": "TLS-TEMPO-1-NOCERT-REJECTED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=200 error=None",
|
||||
"category": "observability_tls",
|
||||
"description": "tempo:3200 accepts valid mTLS client certificate",
|
||||
"expected": "HTTP 200",
|
||||
"id": "TLS-TEMPO-2-MTLS-OK",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "rogue=403, prometheus=200",
|
||||
"category": "observability_tls",
|
||||
"description": "OTel Gateway :8888 allows prometheus cert and denies rogue-client",
|
||||
"expected": "rogue=403/TLS-err, prometheus=200",
|
||||
"id": "TLS-OTEL-METRICS-MTLS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=401",
|
||||
"category": "observability_tls",
|
||||
"description": "HAProxy HTTPS :8404/stats rejects unauthenticated request",
|
||||
"expected": "HTTP 401/403",
|
||||
"id": "TLS-HAPROXY-STATS-AUTH",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"failed_count": 0,
|
||||
"failed_ids": [],
|
||||
"passed": true,
|
||||
"passed_count": 52,
|
||||
"started_at": "2026-11-26T15:55:01Z",
|
||||
"suite": "lab7-tls-audit",
|
||||
"summary": {
|
||||
"base_url": "https://localhost:8443",
|
||||
"ca_file": "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"
|
||||
},
|
||||
"total": 52
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
suite=lab7-tls-audit passed=True checks=52/52 captured_at=2026-11-26T15:55:26Z
|
||||
|
||||
[PASS] EXT-1-HTTPS-OK (external_tls): External HTTPS with valid CA and hostname succeeds -> status=200 tls=TLSv1.3
|
||||
[PASS] EXT-2-EMPTY-CA (external_tls): External HTTPS rejects empty CA trust store -> SSLCertVerificationError (unable to get local issuer certificate)
|
||||
[PASS] EXT-3-FOREIGN-CA (external_tls): External HTTPS rejects foreign untrusted CA -> SSLCertVerificationError (unable to get local issuer certificate)
|
||||
[PASS] EXT-4-HOSTNAME-MISMATCH (external_tls): External HTTPS rejects wrong hostname (127.0.0.1 not in SAN) -> SSLCertVerificationError (IP address mismatch, certificate is not valid for '127.0.0.1'.)
|
||||
[PASS] EXT-5-INTERNAL-BLOCKED (external_tls): /internal/metrics blocked with 404 on external :8443 -> status=404
|
||||
[PASS] EXT-6-PLAINTEXT-8080-CLOSED (external_tls): Plaintext HTTP port 8080 is closed on host -> closed
|
||||
[PASS] EXT-7-HEALTH-ISOLATION (health_isolation): API loopback 127.0.0.1:8081 serves /health/ready only and returns 404 on /api/* & /internal/* -> health=200, api=404, internal=404
|
||||
[PASS] MTLS-API-0-NO-HOST-PORTS (lb_to_api_mtls): API replicas publish zero host ports -> replicas=2, published=[]
|
||||
[PASS] MTLS-API-1-NO-CERT (lb_to_api_mtls): LB->API rejects connection without client certificate -> status=None error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED
|
||||
[PASS] MTLS-API-2-FOREIGN-CA (lb_to_api_mtls): LB->API rejects client certificate signed by foreign CA -> status=None error=ECONNRESET
|
||||
[PASS] MTLS-API-3-ROGUE-CLIENT (lb_to_api_mtls): LB->API rejects trusted-CA rogue-client identity (not CA-only) -> status=403 error=None
|
||||
[PASS] MTLS-API-4-WORKER-DENIED (lb_to_api_mtls): LB->API rejects trusted-CA messenger-worker identity -> status=403 error=None
|
||||
[PASS] MTLS-API-5-HAPROXY-OK (lb_to_api_mtls): LB->API accepts valid haproxy-lb client identity -> status=200 error=None
|
||||
[PASS] MTLS-BROKER-0-PLAIN-CLOSED (broker_mtls): RabbitMQ plaintext port 5672 is closed -> connected=False code=ECONNREFUSED
|
||||
[PASS] MTLS-BROKER-1-NO-CERT (broker_mtls): RabbitMQ AMQPS 5671 rejects connection without client cert -> allowed=False error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED
|
||||
[PASS] MTLS-BROKER-2-FOREIGN-CA (broker_mtls): RabbitMQ AMQPS 5671 rejects foreign-CA client cert -> allowed=False error=ERR_SSL_TLSV1_ALERT_UNKNOWN_CA
|
||||
[PASS] MTLS-BROKER-3-ROGUE-CLIENT (broker_mtls): RabbitMQ AMQPS 5671 rejects trusted-CA rogue-client identity -> allowed=False error=Handshake terminated by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile."
|
||||
[PASS] MTLS-BROKER-4-LB-DENIED (broker_mtls): RabbitMQ AMQPS 5671 rejects trusted-CA haproxy-lb identity -> allowed=False error=Handshake terminated by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile."
|
||||
[PASS] MTLS-BROKER-5-WORKER-PUBLISH-DENIED (broker_mtls): RabbitMQ denies messenger-worker publish to attachments.jobs -> allowed=False error=channel closed
|
||||
[PASS] MTLS-BROKER-6-WORKER-CONSUME-OK (broker_mtls): RabbitMQ allows messenger-worker read on attachments.process -> allowed=True error=None
|
||||
[PASS] MTLS-BROKER-7-API-PRODUCER-OK (broker_mtls): RabbitMQ allows messenger-api access to attachments.jobs -> allowed=True error=None
|
||||
[PASS] MTLS-OTEL-0-LOOPBACK-CLOSED (otel_mtls): OTel Collector loopback port 14318 unreachable outside shared netns -> connected=False code=ECONNREFUSED
|
||||
[PASS] MTLS-OTEL-1-NO-CERT (otel_mtls): OTel Gateway 4318 rejects OTLP push without client cert -> status=None error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED
|
||||
[PASS] MTLS-OTEL-2-FOREIGN-CA (otel_mtls): OTel Gateway 4318 rejects foreign-CA client cert -> status=None error=ERR_SSL_TLSV1_ALERT_UNKNOWN_CA
|
||||
[PASS] MTLS-OTEL-3-ROGUE-CLIENT (otel_mtls): OTel Gateway 4318 rejects trusted-CA rogue-client (SAN/CN allowlist) -> status=403 error=None
|
||||
[PASS] MTLS-OTEL-4-LB-DENIED (otel_mtls): OTel Gateway 4318 rejects trusted-CA haproxy-lb identity -> status=403 error=None
|
||||
[PASS] MTLS-OTEL-5-API-OK (otel_mtls): OTel Gateway 4318 accepts valid messenger-api identity -> status=200 error=None
|
||||
[PASS] MTLS-OTEL-6-WORKER-OK (otel_mtls): OTel Gateway 4318 accepts valid messenger-worker identity -> status=200 error=None
|
||||
[PASS] TLS-PG-0-HOST-CLOSED (postgres_tls): PostgreSQL port 5432 is not published on host -> closed
|
||||
[PASS] TLS-PG-1-NOSSL-REJECTED (postgres_tls): PostgreSQL rejects plaintext TCP connection (hostnossl reject) -> connected=False error=pg_hba.conf rejects connection for host "192.168.32.11", user "messenger_api", database "messenger", no encryption
|
||||
[PASS] TLS-PG-2-WRONG-HOST (postgres_tls): PostgreSQL verify-full rejects hostname mismatch -> connected=False error=Hostname/IP does not match certificate's altnames: Host: wrong-pg.local. is not in the cert's altnames: DNS:postgres, DNS:localhost
|
||||
[PASS] TLS-PG-3-VERIFY-FULL-OK (postgres_tls): PostgreSQL verify-full TLS connection succeeds with pg_stat_ssl.ssl=true -> connected=True row={'ssl': True, 'version': 'TLSv1.3'} error=None
|
||||
[PASS] TLS-REDIS-0-HOST-CLOSED (redis_tls): Redis port 6379 is not published on host -> closed
|
||||
[PASS] TLS-REDIS-1-PLAIN-REJECTED (redis_tls): Redis plaintext TCP connection is rejected (--port 0) -> ok=False error=ECONNRESET
|
||||
[PASS] TLS-REDIS-2-NOCERT-REJECTED (redis_tls): Redis TLS rejects connection without client certificate (mTLS) -> ok=False error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED
|
||||
[PASS] TLS-REDIS-3-MTLS-ACL-OK (redis_tls): Redis mTLS + messenger_api ACL succeeds on PING -> ok=True reply=PONG error=None
|
||||
[PASS] TLS-REDIS-4-ACL-CONFIG-DENIED (redis_tls): Redis ACL denies CONFIG GET to messenger_api (NOPERM) -> ok=False error=NOPERM User messenger_api has no permissions to run the 'config|get' command
|
||||
[PASS] TLS-S3-1-HTTPS-OK (s3_tls): MinIO S3 serves HTTPS verified with local CA -> status=200
|
||||
[PASS] TLS-S3-2-ANON-DENIED (s3_tls): MinIO S3 rejects anonymous bucket access -> status=403
|
||||
[PASS] TLS-S3-3-PLAIN-REJECTED (s3_tls): MinIO S3 rejects plaintext HTTP -> status=400
|
||||
[PASS] TLS-BAO-1-HTTPS-OK (openbao_tls): OpenBao serves HTTPS verified with local CA (initialized & unsealed) -> status=200
|
||||
[PASS] TLS-PROM-1-NOCERT-REJECTED (observability_tls): Prometheus rejects HTTPS client without mTLS certificate -> SSLError
|
||||
[PASS] TLS-PROM-2-NOAUTH-401 (observability_tls): Prometheus requires Basic Auth even with valid mTLS cert -> status=401
|
||||
[PASS] TLS-PROM-3-MTLS-SCRAPES-UP (observability_tls): Prometheus mTLS + operator auth succeeds and all 6 mTLS scrape targets are up=1 -> status=200 up={'loki': '1', 'tempo': '1', 'rabbitmq': '1', 'haproxy': '1', 'prometheus': '1', 'otel-collector': '1'}
|
||||
[PASS] TLS-GRAFANA-1-UNAUTH-401 (observability_tls): Grafana HTTPS rejects unauthenticated datasource API access -> status=401
|
||||
[PASS] TLS-GRAFANA-2-DS-TLS-VERIFY (observability_tls): Grafana datasources use HTTPS with tlsSkipVerify=false -> {"loki": {"url": "https://loki:3100", "tlsSkipVerify": false, "tlsAuth": true}, "prometheus": {"url": "https://prometheus:9090", "tlsSkipVerify": false, "tlsAuth": true}, "tempo": {"url": "https://tempo:3200", "tlsSkipVerify": false, "tlsAuth": true}}
|
||||
[PASS] TLS-LOKI-1-NOCERT-REJECTED (observability_tls): loki:3100 rejects HTTPS without client certificate -> status=None error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED
|
||||
[PASS] TLS-LOKI-2-MTLS-OK (observability_tls): loki:3100 accepts valid mTLS client certificate -> status=200 error=None
|
||||
[PASS] TLS-TEMPO-1-NOCERT-REJECTED (observability_tls): tempo:3200 rejects HTTPS without client certificate -> status=None error=ERR_SSL_TLSV13_ALERT_CERTIFICATE_REQUIRED
|
||||
[PASS] TLS-TEMPO-2-MTLS-OK (observability_tls): tempo:3200 accepts valid mTLS client certificate -> status=200 error=None
|
||||
[PASS] TLS-OTEL-METRICS-MTLS (observability_tls): OTel Gateway :8888 allows prometheus cert and denies rogue-client -> rogue=403, prometheus=200
|
||||
[PASS] TLS-HAPROXY-STATS-AUTH (observability_tls): HAProxy HTTPS :8404/stats rejects unauthenticated request -> status=401
|
||||
|
||||
summary={"base_url": "https://localhost:8443", "ca_file": "/home/tomato/Projects/VP/mtusi2026lab7/secrets/pki/haproxy/ca.crt"}
|
||||
@@ -0,0 +1,622 @@
|
||||
{
|
||||
"captured_at": "2026-11-26T16:05:17Z",
|
||||
"checks": [
|
||||
{
|
||||
"actual": "leaked_vars=[]",
|
||||
"category": "baseline",
|
||||
"description": "Worker container env has zero static DB/Redis/S3/metrics/OpenBao secrets",
|
||||
"expected": "0 secret env vars",
|
||||
"id": "T1-00-WORKER-ENV-CLEAN",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "att_pre=9678e967-d8a3-4b1e-afb0-ccd4de92ecef status=ready",
|
||||
"category": "baseline",
|
||||
"description": "Pre-compromise upload completes cleanly to status=ready",
|
||||
"expected": "ready",
|
||||
"id": "T1-01-BASELINE-UPLOAD-READY",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "login=200 own=200 cn=messenger-worker-g2 san=DNS:messenger-worker",
|
||||
"category": "blast_openbao",
|
||||
"description": "Compromised worker reads own secret/data/messenger/worker",
|
||||
"expected": "200 with DB+S3 creds",
|
||||
"id": "T1-BAO-01-ALLOW-OWN",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403",
|
||||
"category": "blast_openbao",
|
||||
"description": "Compromised worker DENIED secret/data/messenger/api",
|
||||
"expected": "403",
|
||||
"id": "T1-BAO-02-DENY-API",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403",
|
||||
"category": "blast_openbao",
|
||||
"description": "Compromised worker DENIED secret/data/messenger/migrator",
|
||||
"expected": "403",
|
||||
"id": "T1-BAO-03-DENY-MIGRATOR",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403",
|
||||
"category": "blast_openbao",
|
||||
"description": "Compromised worker DENIED secret/data/messenger/operator-admin",
|
||||
"expected": "403",
|
||||
"id": "T1-BAO-04-DENY-OPERATOR",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403",
|
||||
"category": "blast_openbao",
|
||||
"description": "Compromised worker DENIED sys/policies/acl write",
|
||||
"expected": "403",
|
||||
"id": "T1-BAO-05-DENY-POLICY-WRITE",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=400",
|
||||
"category": "blast_openbao",
|
||||
"description": "Worker cert DENIED auth/cert/login as messenger-api",
|
||||
"expected": "400/403",
|
||||
"id": "T1-BAO-06-DENY-API-ROLE-LOGIN",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": {
|
||||
"allow_select_attachments": true,
|
||||
"allow_select_jobs": true,
|
||||
"allow_select_variants": true,
|
||||
"allow_update_att_status_noop": true
|
||||
},
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker allowed SELECT/scoped UPDATE on job pipeline tables",
|
||||
"expected": "all 4 pipeline ops allowed",
|
||||
"id": "T1-PG-07-ALLOW-PIPELINE",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED SELECT users (password_hash) (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-08-DENY-USERS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED SELECT messages (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-09-DENY-MESSAGES",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED SELECT chats (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-10-DENY-CHATS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED SELECT chat_members (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-11-DENY-CHAT-MEMBERS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED SELECT message_attachments (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-12-DENY-MSG-ATT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED SELECT idempotency_keys (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-13-DENY-IDEMPOTENCY",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED SELECT schema_migrations (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-14-DENY-MIGRATIONS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED DELETE attachments (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-15-DENY-DELETE-ATT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED DELETE attachment_jobs (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-16-DENY-DELETE-JOBS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED UPDATE attachments.sha256 (column-level integrity) (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-17-DENY-UPDATE-SHA256",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False code=42501",
|
||||
"category": "blast_postgres",
|
||||
"description": "messenger_worker DENIED DDL CREATE TABLE in public (42501)",
|
||||
"expected": "SQLSTATE 42501",
|
||||
"id": "T1-PG-18-DENY-DDL-CREATE",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": {
|
||||
"allow_del_staging": 204,
|
||||
"allow_del_variant": 204,
|
||||
"allow_get_original": 200,
|
||||
"allow_get_staging": 200,
|
||||
"allow_put_variant": 200
|
||||
},
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 allowed staging/* Get/Delete, attachments/*/original Get, and attachments/*/v*/* Put/Delete",
|
||||
"expected": "all 5 allowed (200/204)",
|
||||
"id": "T1-S3-19-ALLOW-OWN-PREFIX",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False status=403 code=AccessDenied",
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 DENIED GetObject backups/canary.txt (403)",
|
||||
"expected": "HTTP 403 AccessDenied",
|
||||
"id": "T1-S3-20-DENY-GET-BACKUPS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False status=403 code=AccessDenied",
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 DENIED PutObject backups/pwned.txt (403)",
|
||||
"expected": "HTTP 403 AccessDenied",
|
||||
"id": "T1-S3-21-DENY-PUT-BACKUPS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False status=403 code=AccessDenied",
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 DENIED PutObject admin/pwned.txt (403)",
|
||||
"expected": "HTTP 403 AccessDenied",
|
||||
"id": "T1-S3-22-DENY-PUT-ADMIN",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False status=403 code=AccessDenied",
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 DENIED PutObject staging/forged/original (403)",
|
||||
"expected": "HTTP 403 AccessDenied",
|
||||
"id": "T1-S3-23-DENY-PUT-STAGING",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False status=403 code=AccessDenied",
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 DENIED DeleteObject attachments/*/original (403)",
|
||||
"expected": "HTTP 403 AccessDenied",
|
||||
"id": "T1-S3-24-DENY-DEL-ORIGINAL",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False status=403 code=AccessDenied",
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 DENIED ListBucket root & backups/ (403)",
|
||||
"expected": "HTTP 403 AccessDenied",
|
||||
"id": "T1-S3-25-DENY-LIST-ROOT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False status=403 code=AccessDenied",
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 DENIED CreateBucket (403)",
|
||||
"expected": "HTTP 403 AccessDenied",
|
||||
"id": "T1-S3-26-DENY-CREATE-BUCKET",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False status=403 code=AccessDenied",
|
||||
"category": "blast_s3",
|
||||
"description": "Worker S3 DENIED MinIO Admin API /minio/admin/v3/info (403)",
|
||||
"expected": "HTTP 403 AccessDenied",
|
||||
"id": "T1-S3-27-DENY-MINIO-ADMIN",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{'allowed': True, 'detail': 'consumed_ok'}",
|
||||
"category": "blast_rabbitmq",
|
||||
"description": "Worker mTLS EXTERNAL allowed consume on attachments.process",
|
||||
"expected": "allowed=True",
|
||||
"id": "T1-RMQ-28-ALLOW-CONSUME",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=channel closed",
|
||||
"category": "blast_rabbitmq",
|
||||
"description": "Worker mTLS EXTERNAL DENIED publish to attachments.jobs",
|
||||
"expected": "ACCESS_REFUSED",
|
||||
"id": "T1-RMQ-29-DENY-PUBLISH-JOBS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=Operation failed: QueueDeclare; 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - configure access to queue 'track1.pwned.queue' in vhost 'messenger' refused for user 'messenger-worker-g2'\"",
|
||||
"category": "blast_rabbitmq",
|
||||
"description": "Worker mTLS EXTERNAL DENIED declare arbitrary queue",
|
||||
"expected": "ACCESS_REFUSED",
|
||||
"id": "T1-RMQ-30-DENY-DECLARE-QUEUE",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=Operation failed: QueueDelete; 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - configure access to queue 'attachments.process' in vhost 'messenger' refused for user 'messenger-worker-g2'\"",
|
||||
"category": "blast_rabbitmq",
|
||||
"description": "Worker mTLS EXTERNAL DENIED delete attachments.process",
|
||||
"expected": "ACCESS_REFUSED",
|
||||
"id": "T1-RMQ-31-DENY-DELETE-QUEUE",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=Operation failed: BasicConsume; 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - read access to queue 'attachments.process.dlq' in vhost 'messenger' refused for user 'messenger-worker-g2'\"",
|
||||
"category": "blast_rabbitmq",
|
||||
"description": "Worker mTLS EXTERNAL DENIED consume attachments.process.dlq",
|
||||
"expected": "ACCESS_REFUSED",
|
||||
"id": "T1-RMQ-32-DENY-CONSUME-DLQ",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=Expected ConnectionOpenOk; got <ConnectionClose channel:0>",
|
||||
"category": "blast_rabbitmq",
|
||||
"description": "Worker mTLS EXTERNAL DENIED connect to vhost /",
|
||||
"expected": "ACCESS_REFUSED",
|
||||
"id": "T1-RMQ-33-DENY-ROOT-VHOST",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "allowed=False error=NOAUTH HELLO must be called with the client already authenticated, otherwise the HELLO <proto> AUTH <user> <pass> option can be used to authenticate the client and select the RESP protocol version at the same time",
|
||||
"category": "blast_lateral",
|
||||
"description": "Compromised worker has zero Redis credentials and is rejected by Redis",
|
||||
"expected": "rejected & no redis creds",
|
||||
"id": "T1-LAT-34-DENY-REDIS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "status=403 error=None",
|
||||
"category": "blast_lateral",
|
||||
"description": "Compromised worker trusted-CA cert is rejected by API mTLS LB allowlist (403)",
|
||||
"expected": "HTTP 403 or TLS reject",
|
||||
"id": "T1-LAT-35-DENY-API-MTLS",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "ids=['03fac44e-dccf-47b5-ac0d-758b98168ea2', '5eae2cc8-2ef4-498d-a0a2-fe18358746f3', '398e91cc-43b3-496c-9e79-d82dda372464']",
|
||||
"category": "containment",
|
||||
"description": "While compromised worker is quarantined, API keeps accepting uploads (202 queued)",
|
||||
"expected": "3 queued 202 uploads",
|
||||
"id": "T1-CONTAIN-36-API-202-WHILE-WORKER-STOPPED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "messenger-worker-g2(1018) -> messenger-worker-g3(1019)",
|
||||
"category": "revocation",
|
||||
"description": "scripts/revoke-worker.sh issued new worker generation cert/serial without image rebuild",
|
||||
"expected": "new CN & new serial",
|
||||
"id": "T1-REVOKE-37-IDENTITY-ROTATED",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"rejected\": true, \"status\": 403}",
|
||||
"category": "revocation_nc6",
|
||||
"description": "Stolen g1 OpenBao token rejected (403)",
|
||||
"expected": "rejected=True on NEW connection",
|
||||
"id": "T1-REVOKED-38-OPENBAO_TOKEN",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"rejected\": true, \"status\": 400}",
|
||||
"category": "revocation_nc6",
|
||||
"description": "Stolen g1 cert rejected at OpenBao auth/cert/login CRL (400)",
|
||||
"expected": "rejected=True on NEW connection",
|
||||
"id": "T1-REVOKED-39-OPENBAO_CERT",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"rejected\": true, \"code\": \"28P01\", \"error\": \"password authentication failed for user \\\"messenger_worker\\\"\"}",
|
||||
"category": "revocation_nc6",
|
||||
"description": "Stolen g1 PostgreSQL password rejected on new TLS conn (28P01)",
|
||||
"expected": "rejected=True on NEW connection",
|
||||
"id": "T1-REVOKED-40-POSTGRES",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"rejected\": true, \"status\": 403, \"code\": \"InvalidAccessKeyId\"}",
|
||||
"category": "revocation_nc6",
|
||||
"description": "Stolen g1 MinIO S3 key rejected on new HTTPS conn (403)",
|
||||
"expected": "rejected=True on NEW connection",
|
||||
"id": "T1-REVOKED-41-MINIO_S3",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"rejected\": true, \"error\": \"Handshake terminated by server: 403 (ACCESS-REFUSED) with message \\\"ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.\\\"\"}",
|
||||
"category": "revocation_nc6",
|
||||
"description": "Stolen g1 cert rejected at RabbitMQ AMQPS EXTERNAL",
|
||||
"expected": "rejected=True on NEW connection",
|
||||
"id": "T1-REVOKED-42-RABBITMQ",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "{\"rejected\": true, \"status\": null, \"error\": \"ERR_SSL_SSL/TLS_ALERT_CERTIFICATE_REVOKED\"}",
|
||||
"category": "revocation_nc6",
|
||||
"description": "Stolen g1 cert rejected at OTel Gateway mTLS CRL/allowlist",
|
||||
"expected": "rejected=True on NEW connection",
|
||||
"id": "T1-REVOKED-43-OTEL_GATEWAY",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "api_same=True, worker_same=True",
|
||||
"category": "recovery",
|
||||
"description": "Recovered worker and API run identical Docker Image SHAs (zero rebuild)",
|
||||
"expected": "api & worker Image SHAs unchanged",
|
||||
"id": "T1-RECOVER-44-ZERO-IMAGE-REBUILD",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": {
|
||||
"during_containment_1": {
|
||||
"no_dups": true,
|
||||
"sha_ok": true,
|
||||
"status": "ready",
|
||||
"thumb_ok": true
|
||||
},
|
||||
"during_containment_2": {
|
||||
"no_dups": true,
|
||||
"sha_ok": true,
|
||||
"status": "ready",
|
||||
"thumb_ok": true
|
||||
},
|
||||
"post_recovery": {
|
||||
"no_dups": true,
|
||||
"sha_ok": true,
|
||||
"status": "ready",
|
||||
"thumb_ok": true
|
||||
},
|
||||
"pre_compromise": {
|
||||
"no_dups": true,
|
||||
"sha_ok": true,
|
||||
"status": "ready",
|
||||
"thumb_ok": true
|
||||
},
|
||||
"pre_revocation": {
|
||||
"no_dups": true,
|
||||
"sha_ok": true,
|
||||
"status": "ready",
|
||||
"thumb_ok": true
|
||||
}
|
||||
},
|
||||
"category": "durability",
|
||||
"description": "All 5 pre/during/post-containment jobs reach ready with exact SHA-256, 256x160 JPEG thumbnail, and 0 duplicate variants",
|
||||
"expected": "5/5 durable, 0 lost, 0 duplicates",
|
||||
"id": "T1-RECOVER-45-ALL-JOBS-DURABLE",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"actual": "canary_intact=True, eve_blocked=True",
|
||||
"category": "durability",
|
||||
"description": "Confidential canary message survived containment intact and remains 404 to outsider",
|
||||
"expected": "canary_intact=True, eve=404",
|
||||
"id": "T1-RECOVER-46-CANARY-INTACT",
|
||||
"passed": true
|
||||
}
|
||||
],
|
||||
"failed_count": 0,
|
||||
"failed_ids": [],
|
||||
"passed": true,
|
||||
"passed_count": 48,
|
||||
"started_at": "2026-11-26T16:04:43Z",
|
||||
"suite": "lab7-track1-worker-compromise",
|
||||
"summary": {
|
||||
"before_vs_after": [
|
||||
{
|
||||
"after_lab7": "Dedicated messenger_worker role over TLS verify-full with strictly 5 pipeline tables + column-level UPDATE; users, chats, chat_members, messages, message_attachments, idempotency_keys, schema_migrations, DELETE attachments/jobs, UPDATE sha256, and DDL all fail with 42501.",
|
||||
"before_lab6": "Shared messenger superuser/table-owner via .env DATABASE_URL over plaintext TCP; compromised worker could read users.password_hash, all messages/chats, or DROP tables.",
|
||||
"delta": "100% elimination of user credential, message, chat, and schema exposure from worker.",
|
||||
"domain": "PostgreSQL"
|
||||
},
|
||||
{
|
||||
"after_lab7": "HTTPS + CA verify; rotatable IAM user in OpenBao; staging/* Get/Delete only (no Put); attachments/*/original Get/Put only (no Delete); attachments/*/v*/* Put/Delete; backups/*, admin/*, bucket root list, CreateBucket, and MinIO Admin API all fail with 403 AccessDenied.",
|
||||
"before_lab6": "Plaintext HTTP; static keys in ./secrets/; broad s3:PutObject across attachments/*.",
|
||||
"delta": "Eliminates staging poisoning, committed original deletion, and cross-prefix/admin pivoting.",
|
||||
"domain": "MinIO S3"
|
||||
},
|
||||
{
|
||||
"after_lab7": "AMQPS 5671 + mTLS SASL EXTERNAL (generation-suffixed CN); configure=^$, write=^$, read=^attachments\\.process$; OutboxRelay removed from worker. Publish to attachments.jobs, declare/delete queue, DLQ consume, and vhost / all fail with 403 ACCESS_REFUSED.",
|
||||
"before_lab6": "Plaintext AMQP 5672; static password file; configure/write/read across topology (worker could forge jobs and tamper with queues).",
|
||||
"delta": "Eliminates job forgery, topology tampering, DLQ reading, and vhost pivoting.",
|
||||
"domain": "RabbitMQ"
|
||||
},
|
||||
{
|
||||
"after_lab7": "TLS + mTLS + user default off + ACLs; RedisModule removed from WorkerModule (zero Redis credentials in worker); API stores only session:sha256:<hex>.",
|
||||
"before_lab6": "Plaintext TCP, unauthenticated REDIS_URL in worker .env; raw Bearer tokens stored in session:<token>.",
|
||||
"delta": "100% elimination of user session hijacking and rate-limit tampering from worker.",
|
||||
"domain": "Redis"
|
||||
},
|
||||
{
|
||||
"after_lab7": "Non-dev Raft OpenBao over TLS; mTLS auth/cert + worker-policy (token_no_default_policy=true) + CRL; zero API/migrator/operator/root secrets reachable; sub-second accessor + CRL revocation.",
|
||||
"before_lab6": "No KMS; all secrets in .env / ./secrets/ including POSTGRES_PASSWORD and METRICS_TOKEN.",
|
||||
"delta": "Eliminates static secret sprawl and enables live zero-rebuild revocation/rotation.",
|
||||
"domain": "Secrets / OpenBao"
|
||||
},
|
||||
{
|
||||
"after_lab7": "Mandatory mTLS + LB SAN allowlist (haproxy-lb) + CRL on api:8443; valid CA-signed worker cert rejected with 403.",
|
||||
"before_lab6": "Plaintext http://api:8080 reachable directly from worker container.",
|
||||
"delta": "Eliminates direct LB bypass and API impersonation from worker.",
|
||||
"domain": "API Internal Surface"
|
||||
}
|
||||
],
|
||||
"durability": {
|
||||
"during_containment_1": {
|
||||
"attachment_id": "5eae2cc8-2ef4-498d-a0a2-fe18358746f3",
|
||||
"db_distinct_variants": 3,
|
||||
"db_variant_rows": 3,
|
||||
"original_sha256_match": true,
|
||||
"passed": true,
|
||||
"status": "ready",
|
||||
"thumbnail_256x160_ok": true,
|
||||
"thumbnail_dims": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"variant_names": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
],
|
||||
"zero_duplicates": true
|
||||
},
|
||||
"during_containment_2": {
|
||||
"attachment_id": "398e91cc-43b3-496c-9e79-d82dda372464",
|
||||
"db_distinct_variants": 3,
|
||||
"db_variant_rows": 3,
|
||||
"original_sha256_match": true,
|
||||
"passed": true,
|
||||
"status": "ready",
|
||||
"thumbnail_256x160_ok": true,
|
||||
"thumbnail_dims": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"variant_names": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
],
|
||||
"zero_duplicates": true
|
||||
},
|
||||
"post_recovery": {
|
||||
"attachment_id": "eb231d77-d5ed-4160-b5a4-7c92010289ff",
|
||||
"db_distinct_variants": 3,
|
||||
"db_variant_rows": 3,
|
||||
"original_sha256_match": true,
|
||||
"passed": true,
|
||||
"status": "ready",
|
||||
"thumbnail_256x160_ok": true,
|
||||
"thumbnail_dims": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"variant_names": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
],
|
||||
"zero_duplicates": true
|
||||
},
|
||||
"pre_compromise": {
|
||||
"attachment_id": "9678e967-d8a3-4b1e-afb0-ccd4de92ecef",
|
||||
"db_distinct_variants": 3,
|
||||
"db_variant_rows": 3,
|
||||
"original_sha256_match": true,
|
||||
"passed": true,
|
||||
"status": "ready",
|
||||
"thumbnail_256x160_ok": true,
|
||||
"thumbnail_dims": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"variant_names": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
],
|
||||
"zero_duplicates": true
|
||||
},
|
||||
"pre_revocation": {
|
||||
"attachment_id": "03fac44e-dccf-47b5-ac0d-758b98168ea2",
|
||||
"db_distinct_variants": 3,
|
||||
"db_variant_rows": 3,
|
||||
"original_sha256_match": true,
|
||||
"passed": true,
|
||||
"status": "ready",
|
||||
"thumbnail_256x160_ok": true,
|
||||
"thumbnail_dims": [
|
||||
256,
|
||||
160
|
||||
],
|
||||
"variant_names": [
|
||||
"crop",
|
||||
"optimized",
|
||||
"thumbnail"
|
||||
],
|
||||
"zero_duplicates": true
|
||||
}
|
||||
},
|
||||
"hypothesis": "Under Lab 7 least-privilege boundaries (OpenBao auth/cert + worker-policy, PostgreSQL messenger_worker table/column grants, tightened MinIO prefix policy, RabbitMQ EXTERNAL consumer-only ACL, zero Redis access in worker, and API mTLS LB-SAN allowlist), full compromise of the worker container yields zero access to user credentials, sessions, private messages, chats, or API/admin secrets, and cannot forge jobs, delete committed originals, or alter attachment integrity metadata; revoking the compromised worker identity and rotating all related credentials without rebuilding images immediately blocks all stolen access on new connections while preserving 100% of queued and in-flight jobs with zero duplicates.",
|
||||
"images": {
|
||||
"api_after": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3",
|
||||
"api_before": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3",
|
||||
"worker_after": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3",
|
||||
"worker_before": "sha256:f51ee28c09375339519992c8611b43724061309b95c8561c6747c10276d87ea3"
|
||||
},
|
||||
"residual_risks": [
|
||||
"In-scope functional abuse before detection: until revoked, a compromised worker legitimately needs read access to staging/* and write access to attachments/*/v*/* and attachments/*/original for claimed jobs, so it could delay or corrupt rendered variants of active jobs (mitigated by immutable attachments.sha256, job timeouts, and queue lag alerts).",
|
||||
"Single-host lab boundary: host OS root or Docker daemon compromise is outside container isolation; production deployments isolate nodes, run multi-node OpenBao Raft HA with KMS auto-unseal, and issue short-lived workload certs via SPIRE/OpenBao PKI.",
|
||||
"Active connection drain window: credential revocation immediately blocks all new connections (TLS session resumption disabled); active sockets are terminated explicitly during scripts/revoke-worker.sh via pg_terminate_backend, rabbitmqctl delete_user, MinIO user deletion, and OpenBao accessor revocation."
|
||||
],
|
||||
"revocation_new_connections": {
|
||||
"minio_s3": {
|
||||
"code": "InvalidAccessKeyId",
|
||||
"rejected": true,
|
||||
"status": 403
|
||||
},
|
||||
"openbao_cert": {
|
||||
"rejected": true,
|
||||
"status": 400
|
||||
},
|
||||
"openbao_token": {
|
||||
"rejected": true,
|
||||
"status": 403
|
||||
},
|
||||
"otel_gateway": {
|
||||
"error": "ERR_SSL_SSL/TLS_ALERT_CERTIFICATE_REVOKED",
|
||||
"rejected": true,
|
||||
"status": null
|
||||
},
|
||||
"postgres": {
|
||||
"code": "28P01",
|
||||
"error": "password authentication failed for user \"messenger_worker\"",
|
||||
"rejected": true
|
||||
},
|
||||
"rabbitmq": {
|
||||
"error": "Handshake terminated by server: 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.\"",
|
||||
"rejected": true
|
||||
}
|
||||
},
|
||||
"worker_identity": {
|
||||
"recovered_cn": "messenger-worker-g3",
|
||||
"recovered_serial": "1019",
|
||||
"stolen_cn": "messenger-worker-g2",
|
||||
"stolen_serial": "1018"
|
||||
}
|
||||
},
|
||||
"total": 48
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
# Lab 7 — Grade 5, Track 1 («Компрометация worker») — Сводка эксперимента
|
||||
|
||||
- **Дата прогона (UTC):** `2026-11-26T16:05:17Z`
|
||||
- **Общий результат:** `PASS` (48/48 проверок)
|
||||
- **Zero Image Rebuild:** `api` `sha256:f51ee28c0937` == `sha256:f51ee28c0937`, `worker` `sha256:f51ee28c0937` == `sha256:f51ee28c0937`
|
||||
- **Ротация идентичности worker:** `messenger-worker-g2` (serial `1018`) → `messenger-worker-g3` (serial `1019`)
|
||||
|
||||
## 1. Гипотеза
|
||||
|
||||
Under Lab 7 least-privilege boundaries (OpenBao auth/cert + worker-policy, PostgreSQL messenger_worker table/column grants, tightened MinIO prefix policy, RabbitMQ EXTERNAL consumer-only ACL, zero Redis access in worker, and API mTLS LB-SAN allowlist), full compromise of the worker container yields zero access to user credentials, sessions, private messages, chats, or API/admin secrets, and cannot forge jobs, delete committed originals, or alter attachment integrity metadata; revoking the compromised worker identity and rotating all related credentials without rebuilding images immediately blocks all stolen access on new connections while preserving 100% of queued and in-flight jobs with zero duplicates.
|
||||
|
||||
## 2. Сравнение последствий: До (Lab 6) vs После (Lab 7 Least Privilege)
|
||||
|
||||
| Контур | До (Lab 6 baseline) | После (Lab 7 hardened) | Снижение blast radius |
|
||||
| --- | --- | --- | --- |
|
||||
| **PostgreSQL** | Shared messenger superuser/table-owner via .env DATABASE_URL over plaintext TCP; compromised worker could read users.password_hash, all messages/chats, or DROP tables. | Dedicated messenger_worker role over TLS verify-full with strictly 5 pipeline tables + column-level UPDATE; users, chats, chat_members, messages, message_attachments, idempotency_keys, schema_migrations, DELETE attachments/jobs, UPDATE sha256, and DDL all fail with 42501. | 100% elimination of user credential, message, chat, and schema exposure from worker. |
|
||||
| **MinIO S3** | Plaintext HTTP; static keys in ./secrets/; broad s3:PutObject across attachments/*. | HTTPS + CA verify; rotatable IAM user in OpenBao; staging/* Get/Delete only (no Put); attachments/*/original Get/Put only (no Delete); attachments/*/v*/* Put/Delete; backups/*, admin/*, bucket root list, CreateBucket, and MinIO Admin API all fail with 403 AccessDenied. | Eliminates staging poisoning, committed original deletion, and cross-prefix/admin pivoting. |
|
||||
| **RabbitMQ** | Plaintext AMQP 5672; static password file; configure/write/read across topology (worker could forge jobs and tamper with queues). | AMQPS 5671 + mTLS SASL EXTERNAL (generation-suffixed CN); configure=^$, write=^$, read=^attachments\.process$; OutboxRelay removed from worker. Publish to attachments.jobs, declare/delete queue, DLQ consume, and vhost / all fail with 403 ACCESS_REFUSED. | Eliminates job forgery, topology tampering, DLQ reading, and vhost pivoting. |
|
||||
| **Redis** | Plaintext TCP, unauthenticated REDIS_URL in worker .env; raw Bearer tokens stored in session:<token>. | TLS + mTLS + user default off + ACLs; RedisModule removed from WorkerModule (zero Redis credentials in worker); API stores only session:sha256:<hex>. | 100% elimination of user session hijacking and rate-limit tampering from worker. |
|
||||
| **Secrets / OpenBao** | No KMS; all secrets in .env / ./secrets/ including POSTGRES_PASSWORD and METRICS_TOKEN. | Non-dev Raft OpenBao over TLS; mTLS auth/cert + worker-policy (token_no_default_policy=true) + CRL; zero API/migrator/operator/root secrets reachable; sub-second accessor + CRL revocation. | Eliminates static secret sprawl and enables live zero-rebuild revocation/rotation. |
|
||||
| **API Internal Surface** | Plaintext http://api:8080 reachable directly from worker container. | Mandatory mTLS + LB SAN allowlist (haproxy-lb) + CRL on api:8443; valid CA-signed worker cert rejected with 403. | Eliminates direct LB bypass and API impersonation from worker. |
|
||||
|
||||
## 3. Проверка отзыва украденных credentials (`g1`) на новых соединениях (NC-6)
|
||||
|
||||
| Граница | Результат после `scripts/revoke-worker.sh` | Деталь |
|
||||
| --- | --- | --- |
|
||||
| `openbao_token` | **REJECTED (PASS)** | `403` |
|
||||
| `openbao_cert` | **REJECTED (PASS)** | `400` |
|
||||
| `postgres` | **REJECTED (PASS)** | `28P01` |
|
||||
| `minio_s3` | **REJECTED (PASS)** | `InvalidAccessKeyId` |
|
||||
| `rabbitmq` | **REJECTED (PASS)** | `Handshake terminated by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile."` |
|
||||
| `otel_gateway` | **REJECTED (PASS)** | `ERR_SSL_SSL/TLS_ALERT_CERTIFICATE_REVOKED` |
|
||||
|
||||
## 4. Сохранность и обработка заданий (Pre / During / Post Containment)
|
||||
|
||||
| Этап | Attachment ID | Status | Original SHA-256 | Variants (0 dups) | Thumbnail 256×160 |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| `pre_compromise` | `9678e967-d8a3-4b1e-afb0-ccd4de92ecef` | `ready` | `True` | `3/3` (`True`) | `True` (`[256, 160]`) |
|
||||
| `pre_revocation` | `03fac44e-dccf-47b5-ac0d-758b98168ea2` | `ready` | `True` | `3/3` (`True`) | `True` (`[256, 160]`) |
|
||||
| `during_containment_1` | `5eae2cc8-2ef4-498d-a0a2-fe18358746f3` | `ready` | `True` | `3/3` (`True`) | `True` (`[256, 160]`) |
|
||||
| `during_containment_2` | `398e91cc-43b3-496c-9e79-d82dda372464` | `ready` | `True` | `3/3` (`True`) | `True` (`[256, 160]`) |
|
||||
| `post_recovery` | `eb231d77-d5ed-4160-b5a4-7c92010289ff` | `ready` | `True` | `3/3` (`True`) | `True` (`[256, 160]`) |
|
||||
|
||||
## 5. Детальные результаты всех проверок
|
||||
|
||||
| ID | Категория | Статус | Фактический результат |
|
||||
| --- | --- | --- | --- |
|
||||
| `T1-00-WORKER-ENV-CLEAN` | `baseline` | **PASS** | `leaked_vars=[]` |
|
||||
| `T1-01-BASELINE-UPLOAD-READY` | `baseline` | **PASS** | `att_pre=9678e967-d8a3-4b1e-afb0-ccd4de92ecef status=ready` |
|
||||
| `T1-BAO-01-ALLOW-OWN` | `blast_openbao` | **PASS** | `login=200 own=200 cn=messenger-worker-g2 san=DNS:messenger-worker` |
|
||||
| `T1-BAO-02-DENY-API` | `blast_openbao` | **PASS** | `status=403` |
|
||||
| `T1-BAO-03-DENY-MIGRATOR` | `blast_openbao` | **PASS** | `status=403` |
|
||||
| `T1-BAO-04-DENY-OPERATOR` | `blast_openbao` | **PASS** | `status=403` |
|
||||
| `T1-BAO-05-DENY-POLICY-WRITE` | `blast_openbao` | **PASS** | `status=403` |
|
||||
| `T1-BAO-06-DENY-API-ROLE-LOGIN` | `blast_openbao` | **PASS** | `status=400` |
|
||||
| `T1-PG-07-ALLOW-PIPELINE` | `blast_postgres` | **PASS** | `{'allow_select_jobs': True, 'allow_select_attachments': True, 'allow_select_variants': True, 'allow_update_att_status_noop': True}` |
|
||||
| `T1-PG-08-DENY-USERS` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-09-DENY-MESSAGES` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-10-DENY-CHATS` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-11-DENY-CHAT-MEMBERS` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-12-DENY-MSG-ATT` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-13-DENY-IDEMPOTENCY` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-14-DENY-MIGRATIONS` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-15-DENY-DELETE-ATT` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-16-DENY-DELETE-JOBS` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-17-DENY-UPDATE-SHA256` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-PG-18-DENY-DDL-CREATE` | `blast_postgres` | **PASS** | `allowed=False code=42501` |
|
||||
| `T1-S3-19-ALLOW-OWN-PREFIX` | `blast_s3` | **PASS** | `{'allow_get_staging': 200, 'allow_del_staging': 204, 'allow_get_original': 200, 'allow_put_variant': 200, 'allow_del_variant': 204}` |
|
||||
| `T1-S3-20-DENY-GET-BACKUPS` | `blast_s3` | **PASS** | `allowed=False status=403 code=AccessDenied` |
|
||||
| `T1-S3-21-DENY-PUT-BACKUPS` | `blast_s3` | **PASS** | `allowed=False status=403 code=AccessDenied` |
|
||||
| `T1-S3-22-DENY-PUT-ADMIN` | `blast_s3` | **PASS** | `allowed=False status=403 code=AccessDenied` |
|
||||
| `T1-S3-23-DENY-PUT-STAGING` | `blast_s3` | **PASS** | `allowed=False status=403 code=AccessDenied` |
|
||||
| `T1-S3-24-DENY-DEL-ORIGINAL` | `blast_s3` | **PASS** | `allowed=False status=403 code=AccessDenied` |
|
||||
| `T1-S3-25-DENY-LIST-ROOT` | `blast_s3` | **PASS** | `allowed=False status=403 code=AccessDenied` |
|
||||
| `T1-S3-26-DENY-CREATE-BUCKET` | `blast_s3` | **PASS** | `allowed=False status=403 code=AccessDenied` |
|
||||
| `T1-S3-27-DENY-MINIO-ADMIN` | `blast_s3` | **PASS** | `allowed=False status=403 code=AccessDenied` |
|
||||
| `T1-RMQ-28-ALLOW-CONSUME` | `blast_rabbitmq` | **PASS** | `{'allowed': True, 'detail': 'consumed_ok'}` |
|
||||
| `T1-RMQ-29-DENY-PUBLISH-JOBS` | `blast_rabbitmq` | **PASS** | `allowed=False error=channel closed` |
|
||||
| `T1-RMQ-30-DENY-DECLARE-QUEUE` | `blast_rabbitmq` | **PASS** | `allowed=False error=Operation failed: QueueDeclare; 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - configure access to queue 'track1.pwned.queue' in vhost 'messenger' refused for user 'messenger-worker-g2'"` |
|
||||
| `T1-RMQ-31-DENY-DELETE-QUEUE` | `blast_rabbitmq` | **PASS** | `allowed=False error=Operation failed: QueueDelete; 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - configure access to queue 'attachments.process' in vhost 'messenger' refused for user 'messenger-worker-g2'"` |
|
||||
| `T1-RMQ-32-DENY-CONSUME-DLQ` | `blast_rabbitmq` | **PASS** | `allowed=False error=Operation failed: BasicConsume; 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - read access to queue 'attachments.process.dlq' in vhost 'messenger' refused for user 'messenger-worker-g2'"` |
|
||||
| `T1-RMQ-33-DENY-ROOT-VHOST` | `blast_rabbitmq` | **PASS** | `allowed=False error=Expected ConnectionOpenOk; got <ConnectionClose channel:0>` |
|
||||
| `T1-LAT-34-DENY-REDIS` | `blast_lateral` | **PASS** | `allowed=False error=NOAUTH HELLO must be called with the client already authenticated, otherwise the HELLO <proto> AUTH <user> <pass> option can be used to authenticate the client and select the RESP protocol version at the same time` |
|
||||
| `T1-LAT-35-DENY-API-MTLS` | `blast_lateral` | **PASS** | `status=403 error=None` |
|
||||
| `T1-CONTAIN-36-API-202-WHILE-WORKER-STOPPED` | `containment` | **PASS** | `ids=['03fac44e-dccf-47b5-ac0d-758b98168ea2', '5eae2cc8-2ef4-498d-a0a2-fe18358746f3', '398e91cc-43b3-496c-9e79-d82dda372464']` |
|
||||
| `T1-REVOKE-37-IDENTITY-ROTATED` | `revocation` | **PASS** | `messenger-worker-g2(1018) -> messenger-worker-g3(1019)` |
|
||||
| `T1-REVOKED-38-OPENBAO_TOKEN` | `revocation_nc6` | **PASS** | `{"rejected": true, "status": 403}` |
|
||||
| `T1-REVOKED-39-OPENBAO_CERT` | `revocation_nc6` | **PASS** | `{"rejected": true, "status": 400}` |
|
||||
| `T1-REVOKED-40-POSTGRES` | `revocation_nc6` | **PASS** | `{"rejected": true, "code": "28P01", "error": "password authentication failed for user \"messenger_worker\""}` |
|
||||
| `T1-REVOKED-41-MINIO_S3` | `revocation_nc6` | **PASS** | `{"rejected": true, "status": 403, "code": "InvalidAccessKeyId"}` |
|
||||
| `T1-REVOKED-42-RABBITMQ` | `revocation_nc6` | **PASS** | `{"rejected": true, "error": "Handshake terminated by server: 403 (ACCESS-REFUSED) with message \"ACCESS_REFUSED - Login was refused using authentication mechanism EXTERNAL. For details see the broker logfile.\""}` |
|
||||
| `T1-REVOKED-43-OTEL_GATEWAY` | `revocation_nc6` | **PASS** | `{"rejected": true, "status": null, "error": "ERR_SSL_SSL/TLS_ALERT_CERTIFICATE_REVOKED"}` |
|
||||
| `T1-RECOVER-44-ZERO-IMAGE-REBUILD` | `recovery` | **PASS** | `api_same=True, worker_same=True` |
|
||||
| `T1-RECOVER-45-ALL-JOBS-DURABLE` | `durability` | **PASS** | `{'pre_compromise': {'status': 'ready', 'sha_ok': True, 'no_dups': True, 'thumb_ok': True}, 'pre_revocation': {'status': 'ready', 'sha_ok': True, 'no_dups': True, 'thumb_ok': True}, 'during_containment_1': {'status': 'ready', 'sha_ok': True, 'no_dups': True, 'thumb_ok': True}, 'during_containment_2': {'status': 'ready', 'sha_ok': True, 'no_dups': True, 'thumb_ok': True}, 'post_recovery': {'status': 'ready', 'sha_ok': True, 'no_dups': True, 'thumb_ok': True}}` |
|
||||
| `T1-RECOVER-46-CANARY-INTACT` | `durability` | **PASS** | `canary_intact=True, eve_blocked=True` |
|
||||
|
||||
## 6. Остаточные риски и ограничения
|
||||
|
||||
1. In-scope functional abuse before detection: until revoked, a compromised worker legitimately needs read access to staging/* and write access to attachments/*/v*/* and attachments/*/original for claimed jobs, so it could delay or corrupt rendered variants of active jobs (mitigated by immutable attachments.sha256, job timeouts, and queue lag alerts).
|
||||
2. Single-host lab boundary: host OS root or Docker daemon compromise is outside container isolation; production deployments isolate nodes, run multi-node OpenBao Raft HA with KMS auto-unseal, and issue short-lived workload certs via SPIRE/OpenBao PKI.
|
||||
3. Active connection drain window: credential revocation immediately blocks all new connections (TLS session resumption disabled); active sockets are terminated explicitly during scripts/revoke-worker.sh via pg_terminate_backend, rabbitmqctl delete_user, MinIO user deletion, and OpenBao accessor revocation.
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,161 @@
|
||||
$ cd app && npm test && npm run lint && npm run build
|
||||
|
||||
> app@0.0.1 test
|
||||
> vitest run --reporter=verbose
|
||||
|
||||
[33mThe plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the [1mresolve.tsconfigPaths[22m option. You can remove the plugin and set [1mresolve.tsconfigPaths: true[22m in your Vite config instead.[39m
|
||||
|
||||
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.11 [39m[90m/home/tomato/Projects/VP/mtusi2026lab7/app[39m
|
||||
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22maccepts png and reports its size[32m 194[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22maccepts jpeg and reports its size[32m 9[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22maccepts progressive jpeg and reports its size[32m 5[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22mrejects truncated files on finish[32m 6[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22mrejects a flipped byte inside IDAT by checksum[32m 0[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22mrejects a pixel bomb right after IHDR, before any IDAT[32m 28[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22mapplies the pixel limit to JPEG frame headers[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22mrejects foreign formats and trailing data after IEND[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22maccepts padded and noise PNGs of exact sizes[32m 8[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-inspector.spec.ts[2m > [22mImageInspector[2m > [22mtolerates trailing data after JPEG EOI[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/openbao/openbao.client.spec.ts[2m > [22mOpenBaoClient (HTTPS + mTLS auth/cert)[2m > [22mauthenticates via auth/cert, renews token, reads KV v2, and surfaces 503 sealed errors[32m 135[2mms[22m[39m
|
||||
[32m✓[39m src/openbao/openbao.client.spec.ts[2m > [22mOpenBaoClient (HTTPS + mTLS auth/cert)[2m > [22mrejects untrusted CA certificates (verify-full)[32m 18[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-decoder.spec.ts[2m > [22mImageDecoder[2m > [22maccepts valid PNG and JPEG files, also concurrently[32m 58[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-decoder.spec.ts[2m > [22mImageDecoder[2m > [22mrejects a PNG with a garbage zlib stream[32m 8[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-decoder.spec.ts[2m > [22mImageDecoder[2m > [22mrejects a JPEG without scan data[32m 6[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-decoder.spec.ts[2m > [22mImageDecoder[2m > [22mrejects a progressive JPEG without scan data[32m 4[2mms[22m[39m
|
||||
{"timestamp":"2026-11-26T16:01:35.851Z","severity":"WARN","service.name":"messenger","service.instance.id":"rep-254061ff41df","event":"security.tls_reload_failed","message":"TLS material reload failed (sighup): Error","reason":"sighup"}
|
||||
[32m✓[39m src/security/tls-material.spec.ts[2m > [22mTlsMaterialManager[2m > [22menforces exact DNS SAN allowlist and rejects wrong or lookalike identities[32m 25[2mms[22m[39m
|
||||
{"timestamp":"2026-11-26T16:01:35.875Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-254061ff41df","event":"security.tls_reloaded","message":"TLS material reloaded (sighup)","reason":"sighup","changed":true,"evicted_sockets":0,"server_serial":"1001","client_serial":"1002","crl_revoked_count":0}
|
||||
{"timestamp":"2026-11-26T16:01:35.937Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-254061ff41df","event":"security.tls_reloaded","message":"TLS material reloaded (sighup)","reason":"sighup","changed":true,"evicted_sockets":0,"server_serial":"1001","client_serial":"1002","crl_revoked_count":1}
|
||||
[32m✓[39m src/security/tls-material.spec.ts[2m > [22mTlsMaterialManager[2m > [22mhot-reloads rotated server cert, parses revoked serials from ca.crl, and rejects revoked certs on new & active connections[32m 169[2mms[22m[39m
|
||||
[32m✓[39m src/auth/password-hasher.service.spec.ts[2m > [22mPasswordHasherService[2m > [22mhashes passwords with explicit Argon2id PHC format and unique salts[33m 549[2mms[22m[39m
|
||||
[32m✓[39m src/auth/password-hasher.service.spec.ts[2m > [22mPasswordHasherService[2m > [22mhandles unknown users and malformed hashes via dummy verify without throwing[33m 479[2mms[22m[39m
|
||||
[32m✓[39m src/worker/pipelines.spec.ts[2m > [22mrenderVariants[2m > [22mrenders the v1 contract geometry and formats[32m 168[2mms[22m[39m
|
||||
[32m✓[39m src/worker/pipelines.spec.ts[2m > [22mrenderVariants[2m > [22mapplies EXIF orientation before fitting[32m 91[2mms[22m[39m
|
||||
[32m✓[39m src/worker/pipelines.spec.ts[2m > [22mrenderVariants[2m > [22mcomposites transparent pixels onto white[32m 59[2mms[22m[39m
|
||||
[32m✓[39m src/worker/pipelines.spec.ts[2m > [22mrenderVariants[2m > [22mis deterministic for the same input and version[32m 130[2mms[22m[39m
|
||||
[32m✓[39m src/worker/pipelines.spec.ts[2m > [22mrenderVariants[2m > [22mhonours an aborted job deadline before starting a render[32m 7[2mms[22m[39m
|
||||
[32m✓[39m src/worker/pipelines.spec.ts[2m > [22mrenderVariants[2m > [22mproduces a different v2 thumbnail[32m 221[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/broker.client.spec.ts[2m > [22mBrokerClient least-privilege consumer & producer modes[2m > [22mconsumer mode uses AMQPS EXTERNAL, ZERO confirmChannel, passive checkQueue, and plain channel for queueDepth[32m 212[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-decoder.spec.ts[2m > [22mImageDecoder[2m > [22maccepts the heaviest valid input: 40 MP RGBA 16-bit[33m 1903[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/broker.client.spec.ts[2m > [22mBrokerClient least-privilege consumer & producer modes[2m > [22mproducer mode uses confirmChannel + passive checkExchange and refuses consume()[32m 50[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/image/image-decoder.spec.ts[2m > [22mImageDecoder[2m > [22mdrops an aborted waiter from the queue without running its decode[32m 102[2mms[22m[39m
|
||||
[32m✓[39m src/auth/password-hasher.service.spec.ts[2m > [22mPasswordHasherService[2m > [22mtransparently upgrades weaker Argon2id and legacy $scrypt$ hashes on login[33m 1180[2mms[22m[39m
|
||||
[33m[Nest] 237422 - [39m11/26/2026, 7:01:38 PM [33m WARN[39m [38;5;3m[MessagesCacheService] [39m[33mCache read failed, serving PostgreSQL: redis down[39m
|
||||
[32m✓[39m src/worker/worker.module.spec.ts[2m > [22mWorkerModule least-privilege isolation[2m > [22mexcludes RedisModule and OutboxRelay and loads without Redis or S3_PUBLIC_ENDPOINT env[33m 1387[2mms[22m[39m
|
||||
[32m✓[39m src/messages/cache/messages-cache.service.spec.ts[2m > [22mMessagesCacheService fallback[2m > [22mloads from the authoritative source when Redis read fails[32m 41[2mms[22m[39m
|
||||
[32m✓[39m src/auth/password-hasher.service.spec.ts[2m > [22mPasswordHasherService[2m > [22msheds excess concurrent hashing load with HTTP 429 and Retry-After[33m 324[2mms[22m[39m
|
||||
[33m[Nest] 237422 - [39m11/26/2026, 7:01:38 PM [33m WARN[39m [38;5;3m[MessagesCacheService] [39m[33mCache fill failed: redis down[39m
|
||||
[32m✓[39m src/messages/cache/messages-cache.service.spec.ts[2m > [22mMessagesCacheService fallback[2m > [22mfalls back after bounded lock contention[32m 126[2mms[22m[39m
|
||||
[32m✓[39m src/messages/cache/messages-cache.service.spec.ts[2m > [22mMessagesCacheService fallback[2m > [22mreturns the authoritative page when cache write fails[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/tracing.spec.ts[2m > [22mtrace context helpers[2m > [22mserialises the active span context as job message fields[32m 12[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/tracing.spec.ts[2m > [22mtrace context helpers[2m > [22mrestores the remote parent from job message fields[32m 6[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/tracing.spec.ts[2m > [22mtrace context helpers[2m > [22mreads AMQP headers delivered as buffers[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/tracing.spec.ts[2m > [22mtrace context helpers[2m > [22mignores malformed trace context[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/tracing.spec.ts[2m > [22mtrace context helpers[2m > [22mclassifies errors without leaking their messages[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/fit-inside.spec.ts[2m > [22mfitInside[2m > [22mfits 320x200 into 256 as [256,160][32m 18[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/fit-inside.spec.ts[2m > [22mfitInside[2m > [22mfits 1000x335 into 256 as [256,85][32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/fit-inside.spec.ts[2m > [22mfitInside[2m > [22mfits 100x50 into 256 as [100,50][32m 0[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/fit-inside.spec.ts[2m > [22mfitInside[2m > [22mfits 10000x1 into 256 as [256,1][32m 0[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/fit-inside.spec.ts[2m > [22mfitInside[2m > [22mfits 1x10000 into 256 as [1,256][32m 0[2mms[22m[39m
|
||||
[32m✓[39m src/config/app-config.schema.spec.ts[2m > [22mapp-config.schema (Lab 7 security floors)[2m > [22menforces Argon2id minimum floors (>= 19456 KiB, t >= 2, p >= 1)[32m 41[2mms[22m[39m
|
||||
[32m✓[39m src/config/app-config.schema.spec.ts[2m > [22mapp-config.schema (Lab 7 security floors)[2m > [22mstrictly forbids BAO_TOKEN and VAULT_TOKEN when BAO_ENABLED=true[32m 4[2mms[22m[39m
|
||||
[32m✓[39m src/config/app-config.schema.spec.ts[2m > [22mapp-config.schema (Lab 7 security floors)[2m > [22maccepts zero-secret OpenBao env for API, Worker (no Redis/public S3), and Migrator[32m 12[2mms[22m[39m
|
||||
[32m✓[39m src/config/app-config.schema.spec.ts[2m > [22mapp-config.schema (Lab 7 security floors)[2m > [22mrefuses plaintext S3 endpoints when TLS_ENABLED=true[32m 8[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/logger.spec.ts[2m > [22mStructuredLogger trace_sampled[2m > [22mmarks a log written inside a sampled trace[32m 34[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/logger.spec.ts[2m > [22mStructuredLogger trace_sampled[2m > [22mkeeps IDs but reports false inside a sampled-out trace[32m 8[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/logger.spec.ts[2m > [22mStructuredLogger trace_sampled[2m > [22mwrites none of the three fields without a valid span context[32m 4[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/http.spec.ts[2m > [22mrouteTemplate[2m > [22mturns Fastify params into low-cardinality templates[32m 7[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/http.spec.ts[2m > [22mrouteTemplate[2m > [22mgroups requests that matched no route[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/http.spec.ts[2m > [22mnormalizeMethod[2m > [22mkeeps standard methods and folds the rest[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/http.spec.ts[2m > [22misTracedRoute[2m > [22mskips probes, internal endpoints and unmatched requests[32m 1[2mms[22m[39m
|
||||
{"timestamp":"2026-01-01T00:00:30.000Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-b29a509c8fbe","event":"job.processed","message":"job succeeded","messenger.job.id":"e1f5ca5c-7f37-4d2b-b7c3-5caa57e6fb97","messenger.attachment.id":"905d96b5-6eb5-495c-bfa7-07049ae7b660","messenger.job.attempt":1,"messenger.job.outcome":"succeeded","duration_ms":18}
|
||||
{"timestamp":"2026-01-01T00:00:02.000Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-b29a509c8fbe","event":"job.processed","message":"job superseded","messenger.job.id":"745bda7c-9545-4a11-bb74-4ccfd374670a","messenger.attachment.id":"52d9345f-27a6-4563-9a0b-c39fe3c0fc17","messenger.job.attempt":1,"messenger.job.outcome":"superseded","duration_ms":1}
|
||||
[32m✓[39m src/worker/job-processor.service.spec.ts[2m > [22mJobProcessor time-to-ready boundary[2m > [22mrecords time-to-ready at the ready commit, before post-commit work[32m 75[2mms[22m[39m
|
||||
[32m✓[39m src/worker/job-processor.service.spec.ts[2m > [22mJobProcessor time-to-ready boundary[2m > [22mwrites no time-to-ready sample for a superseded commit[32m 7[2mms[22m[39m
|
||||
[32m✓[39m src/health/health.service.spec.ts[2m > [22mHealthService[2m > [22mreports liveness and readiness when dependencies are healthy[32m 8[2mms[22m[39m
|
||||
[32m✓[39m src/health/health.service.spec.ts[2m > [22mHealthService[2m > [22mrejects readiness when a dependency is unavailable[32m 10[2mms[22m[39m
|
||||
[32m✓[39m src/health/health.service.spec.ts[2m > [22mHealthService[2m > [22mrejects readiness when Redis alone is unavailable[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/health/health.service.spec.ts[2m > [22mHealthService[2m > [22mkeeps liveness healthy while draining[32m 3[2mms[22m[39m
|
||||
[32m✓[39m src/health/health.service.spec.ts[2m > [22mHealthService[2m > [22manswers not-ready during drain without probing dependencies[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/health/health.service.spec.ts[2m > [22mHealthService[2m > [22mfails readiness within the budget when a dependency hangs[32m 22[2mms[22m[39m
|
||||
{"timestamp":"2026-11-26T16:01:40.127Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-71e26b45d31f","event":"security.openbao_bootstrapped","message":"OpenBao secrets loaded for api","role":"api","kv_version":1,"ttl_seconds":300}
|
||||
{"timestamp":"2026-11-26T16:01:40.141Z","severity":"WARN","service.name":"messenger","service.instance.id":"rep-71e26b45d31f","event":"security.openbao_unavailable","message":"OpenBao refresh failed; continuing in bounded degraded mode with cached credentials","op":"refresh","status_code":503,"sealed":true,"error_name":"OpenBaoHttpError"}
|
||||
{"timestamp":"2026-11-26T16:01:40.142Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-71e26b45d31f","event":"security.openbao_recovered","message":"OpenBao connectivity recovered"}
|
||||
{"timestamp":"2026-11-26T16:01:40.142Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-71e26b45d31f","event":"security.openbao_reauthenticated","message":"OpenBao service re-authenticated","ttl_seconds":300}
|
||||
{"timestamp":"2026-11-26T16:01:40.154Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-71e26b45d31f","event":"security.secret_rotated","message":"Secret rotated for scope db","scope":"db","kv_version":2,"reason":"sighup"}
|
||||
{"timestamp":"2026-11-26T16:01:40.161Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-71e26b45d31f","event":"security.openbao_token_renewed","message":"OpenBao service token renewed","ttl_seconds":300}
|
||||
{"timestamp":"2026-11-26T16:01:40.165Z","severity":"INFO","service.name":"messenger","service.instance.id":"rep-71e26b45d31f","event":"security.openbao_reauthenticated","message":"OpenBao service re-authenticated","ttl_seconds":300}
|
||||
[32m✓[39m src/openbao/runtime-secrets.service.spec.ts[2m > [22mRuntimeSecretsStore[2m > [22mstrictly forbids static BAO_TOKEN or VAULT_TOKEN when BAO_ENABLED=true[32m 16[2mms[22m[39m
|
||||
[32m✓[39m src/openbao/runtime-secrets.service.spec.ts[2m > [22mRuntimeSecretsStore[2m > [22mhandles secret rotation, 403 re-auth, 503 sealed bounded degradation, and recovery without writing to process.env[32m 51[2mms[22m[39m
|
||||
[32m✓[39m src/openbao/runtime-secrets.service.spec.ts[2m > [22mRuntimeSecretsStore[2m > [22mloads env fallback cleanly when BAO_ENABLED=false[32m 5[2mms[22m[39m
|
||||
[32m✓[39m src/metrics/metrics.service.spec.ts[2m > [22mMetricsService[2m > [22mcomputes nearest-rank percentiles from observed latencies[32m 6[2mms[22m[39m
|
||||
[32m✓[39m src/metrics/metrics.service.spec.ts[2m > [22mMetricsService[2m > [22mkeeps snapshots isolated from callers and later observations[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/metrics/metrics.service.spec.ts[2m > [22mMetricsService[2m > [22mbounds retained samples but keeps cumulative count and maximum[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/metrics/metrics.service.spec.ts[2m > [22mMetricsService[2m > [22mignores invalid latency observations[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/metrics/metrics.service.spec.ts[2m > [22mMetricsService[2m > [22madds byte counters and ignores invalid amounts[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/metrics/metrics.service.spec.ts[2m > [22mMetricsService[2m > [22mtracks memory peaks until reset[32m 18[2mms[22m[39m
|
||||
[32m✓[39m src/messages/idempotency/idempotency.repository.spec.ts[2m > [22mIdempotencyRepository expired-key cleanup[2m > [22mdeletes only rows older than the configured TTL[32m 14[2mms[22m[39m
|
||||
[32m✓[39m src/auth/login-rate-limiter.service.spec.ts[2m > [22mLoginRateLimiterService[2m > [22mshares per-username and per-IP counters across API replicas and hashes username keys[32m 21[2mms[22m[39m
|
||||
[32m✓[39m src/auth/login-rate-limiter.service.spec.ts[2m > [22mLoginRateLimiterService[2m > [22menforces registration per-IP rate limit and fails closed (503) on Redis failure[32m 4[2mms[22m[39m
|
||||
[32m✓[39m src/auth/login-rate-limiter.service.spec.ts[2m > [22mLoginRateLimiterService[2m > [22mextracts LB-set X-Forwarded-For with clean fallback[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/upload-slots.spec.ts[2m > [22mUploadSlots[2m > [22mcaps one user without starving others, and frees slots after work[32m 12[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/upload-slots.spec.ts[2m > [22mUploadSlots[2m > [22mapplies the replica-wide cap across users[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/upload-slots.spec.ts[2m > [22mUploadSlots[2m > [22mreleases a slot when the work fails[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/job-message.spec.ts[2m > [22mparseJobMessage[2m > [22maccepts the contract example[32m 20[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/job-message.spec.ts[2m > [22mparseJobMessage[2m > [22mrejects an extra property[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/job-message.spec.ts[2m > [22mparseJobMessage[2m > [22mrejects attempt 0[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/job-message.spec.ts[2m > [22mparseJobMessage[2m > [22mrejects a wrong type[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/job-message.spec.ts[2m > [22mparseJobMessage[2m > [22mrejects non-JSON[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/common/validation/code-point-length.spec.ts[2m > [22mCodePointLength[2m > [22mcounts Unicode code points instead of UTF-16 units[32m 5[2mms[22m[39m
|
||||
[32m✓[39m src/common/validation/code-point-length.spec.ts[2m > [22mCodePointLength[2m > [22mapplies to BMP text boundaries[32m 3[2mms[22m[39m
|
||||
[32m✓[39m src/common/validation/code-point-length.spec.ts[2m > [22mCodePointLength[2m > [22mrejects empty and non-string values[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/auth/session.repository.spec.ts[2m > [22mSessionRepository & CurrentUserGuard[2m > [22mstores SHA-256 hashed Bearer tokens and never writes raw tokens to Redis[32m 17[2mms[22m[39m
|
||||
[32m✓[39m src/auth/session.repository.spec.ts[2m > [22mSessionRepository & CurrentUserGuard[2m > [22mrejects expired and malformed session records[32m 5[2mms[22m[39m
|
||||
[32m✓[39m src/auth/session.repository.spec.ts[2m > [22mSessionRepository & CurrentUserGuard[2m > [22menforces Bearer token in CurrentUserGuard and ignores X-User-Id[32m 9[2mms[22m[39m
|
||||
[32m✓[39m src/config/instance-id.spec.ts[2m > [22minstance-id (opaque replica alias)[2m > [22mgenerates a stable process-singleton opaque alias without exposing os.hostname()[32m 28[2mms[22m[39m
|
||||
[32m✓[39m src/config/instance-id.spec.ts[2m > [22minstance-id (opaque replica alias)[2m > [22mpersists the opaque alias to disk for stop-one.sh matching[32m 8[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/redact.spec.ts[2m > [22mredact[2m > [22mmasks bearer and basic credentials[32m 6[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/redact.spec.ts[2m > [22mredact[2m > [22mmasks credentials embedded in connection strings[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/redact.spec.ts[2m > [22mredact[2m > [22mmasks presigned URL credentials and signatures[32m 0[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/redact.spec.ts[2m > [22mredact[2m > [22mmasks OpenBao tokens, vault headers, PHC hashes, and secret fields[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/redact.spec.ts[2m > [22mredact[2m > [22mmasks password-like fields and private keys[32m 0[2mms[22m[39m
|
||||
[32m✓[39m src/telemetry/redact.spec.ts[2m > [22mredact[2m > [22mkeeps ordinary diagnostic text intact[32m 0[2mms[22m[39m
|
||||
[33m[Nest] 238681 - [39m11/26/2026, 7:01:42 PM [33m WARN[39m [38;5;3m[ApiExceptionFilter] [39m[33mDependency outage on POST /api/v1/auth/sessions: password authentication failed for user messenger_api[39m
|
||||
[32m✓[39m src/common/errors/api-exception.filter.spec.ts[2m > [22mApiExceptionFilter (Lab 7 error normalization)[2m > [22mmaps Fastify body-too-large errors cleanly to 413 payload_too_large without leaking internals[32m 9[2mms[22m[39m
|
||||
[32m✓[39m src/common/errors/api-exception.filter.spec.ts[2m > [22mApiExceptionFilter (Lab 7 error normalization)[2m > [22mmaps PG 28P01 auth rotation errors to 503 unavailable without leaking secrets[32m 5[2mms[22m[39m
|
||||
[32m✓[39m src/common/errors/api-exception.filter.spec.ts[2m > [22mApiExceptionFilter (Lab 7 error normalization)[2m > [22memits 429 rate_limited with integer Retry-After >= 1[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/messages/messages.repository.spec.ts[2m > [22mMessagesRepository[2m > [22mreturns rows in response shape[32m 11[2mms[22m[39m
|
||||
[32m✓[39m src/messages/cache/messages-cache.metrics.spec.ts[2m > [22mMessagesCacheService metrics[2m > [22mrecords a miss and a hit for a protected page fill[32m 9[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/backoff.spec.ts[2m > [22mretryDelayMs[2m > [22muses equal jitter[32m 5[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/backoff.spec.ts[2m > [22mretryDelayMs[2m > [22mnever exceeds the cap and grows monotonically at random 0.5[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/errors.spec.ts[2m > [22mclassifyError[2m > [22mclassifies unsupported sharp input as permanent invalid_image[32m 10[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/errors.spec.ts[2m > [22mclassifyError[2m > [22mclassifies the pixel limit as permanent image_too_large[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/errors.spec.ts[2m > [22mclassifyError[2m > [22mclassifies object storage outages as transient[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/jobs/errors.spec.ts[2m > [22mclassifyError[2m > [22mclassifies a job timeout as transient processing_timeout[32m 1[2mms[22m[39m
|
||||
[32m✓[39m src/metrics/metrics.controller.spec.ts[2m > [22mMetricsController[2m > [22mverifies Bearer metrics_token from RuntimeSecretsStore in constant time[32m 10[2mms[22m[39m
|
||||
[32m✓[39m src/common/http/cursor.spec.ts[2m > [22mdecodeCursor[2m > [22maccepts valid instants and normalizes them to canonical milliseconds[32m 8[2mms[22m[39m
|
||||
[32m✓[39m src/common/http/cursor.spec.ts[2m > [22mdecodeCursor[2m > [22mrejects calendar dates that the platform parser rolls over[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/common/http/cursor.spec.ts[2m > [22mdecodeCursor[2m > [22mrejects out-of-range and malformed timestamps[32m 2[2mms[22m[39m
|
||||
[32m✓[39m src/common/http/cursor.spec.ts[2m > [22mdecodeCursor[2m > [22mrejects a cursor from another scope, a malformed id, and non-cursor input[32m 1[2mms[22m[39m
|
||||
[33m[Nest] 238646 - [39m11/26/2026, 7:01:45 PM [33m WARN[39m [38;5;3m[AttachmentsService] [39m[33mCompensation of attachment e6ea2637-3804-452b-8d26-25395d13ac13 deferred: Connection terminated unexpectedly[39m
|
||||
[32m✓[39m src/attachments/attachments.service.spec.ts[2m > [22mAttachmentsService compensation[2m > [22mkeeps the object and answers 202 when the job commit reply was lost[32m 30[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/attachments.service.spec.ts[2m > [22mAttachmentsService compensation[2m > [22mdeletes nothing while PostgreSQL is unreachable[32m 8[2mms[22m[39m
|
||||
[32m✓[39m src/attachments/attachments.service.spec.ts[2m > [22mAttachmentsService compensation[2m > [22mdeletes the object only after claiming the pending row[32m 4[2mms[22m[39m
|
||||
[32m✓[39m src/messages/messages.service.spec.ts[2m > [22mMessagesService idempotency expiry race[2m > [22mdoes not let a stale expiry decision delete a replacement claim[32m 8[2mms[22m[39m
|
||||
|
||||
[2m Test Files [22m [1m[32m35 passed[39m[22m[90m (35)[39m
|
||||
[2m Tests [22m [1m[32m120 passed[39m[22m[90m (120)[39m
|
||||
[2m Start at [22m 19:01:34
|
||||
[2m Duration [22m 11.61s[2m (transform 3.88s, setup 0ms, import 41.00s, tests 9.33s, environment 12ms)[22m
|
||||
|
||||
|
||||
> app@0.0.1 lint
|
||||
> oxlint src/ test/
|
||||
|
||||
Found 0 warnings and 0 errors.
|
||||
Finished in 27ms on 147 files with 96 rules using 8 threads.
|
||||
|
||||
> app@0.0.1 build
|
||||
> nest build
|
||||
|
||||
Reference in New Issue
Block a user