18 lines
3.9 KiB
Plaintext
18 lines
3.9 KiB
Plaintext
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"}
|