Lab7 verification, 2026-11-27. Docker Engine 29.3.0 (Linux/amd64), 12 vCPUs, 3.68 GiB memory assigned, i5-12450H.
Clean source copy, separate Compose project and volumes, fresh operator PKI. Verified external API: https://127.0.0.1:18443.
Public Python entry points run directly on Windows. Values and failed development attempts omitted.

> Public contract check
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.

> Public full OpenAPI validation
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.

> Public HTTPS smoke
PASS: lab7 public API scenario; infrastructure and grading evidence remain separate.

> Public TLS trust
PASS: trusted HTTPS works; untrusted CA rejected. This does NOT verify internal mTLS, OpenBao or hardening.

> Student TLS, OpenBao, app ACL and telemetry
Ingress: verified CA works; mismatched external hostname rejected
API mTLS: 2 replicas allow LB; missing, foreign CA, wrong identity and wrong server SAN rejected
Broker and Collector: missing, foreign CA and wrong same-CA identity rejected
Telemetry storage: audit read succeeds; LB peer and reader ingest rejected
OpenBao: 4 scoped roles with 45s tokens; cross-role reads, policy writes and wrong same-CA identity denied
Login limit: 6 attempts across 2 replicas; attempt 7 received 429 with Retry-After
HTTP ACL: forged identity, outsider metadata/content and cross-chat attachment denied; size limit and logout passed
Telemetry: Grafana auth, mTLS data sources, API metrics, Loki request id and corresponding Tempo trace verified
Sampled traces, logs and service output contain no synthetic session/password or OpenBao root token

> Session TTL
Session expiry: valid before configured TTL and rejected after expiry

> Public persistence
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
Restart confirmed with new StartedAt on 15 containers, original container IDs and volumes retained.

> Public failover run 1
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 116, "failed_attempts": 4, "first_recovery_seconds": 2.485}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

> Public failover run 2
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 84, "failed_attempts": 2, "first_recovery_seconds": 3.831}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

> Public failover run 3
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 99, "failed_attempts": 3, "first_recovery_seconds": 3.065}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

> Public failover run 4
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 97, "failed_attempts": 2, "first_recovery_seconds": 2.858}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

> Explicit sequential failover
Sequential failover: both explicit API targets stopped, 10 writes on the respective survivor, history and session preserved

> OpenBao seal and lease expiry
Sealed OpenBao: last lease expired; verified HTTPS returned 503 after 41.51s
OpenBao unsealed by operator.
HTTPS readiness restored in 1.91s after unseal

> Track 1 worker: run 1
Worker DB: TLS and job read allowed; password hashes, messages, job deletion and owner changes denied
Worker S3: staged originals readable before cleanup
Worker S3: result reads allowed; bucket listing, staging write and delete denied
Worker queue: broker login allowed; producer, unrelated stream and admin commands denied
Worker Collector: OTLP ingest allowed
Prior worker KV policy removed; probe token revoked or already expired.
Old worker token rejected on KV read (403).
Old worker certificate denied for OpenBao login (400).
Old worker: DB password, S3 credentials and broker/Collector certificate rejected on fresh connections
New worker certificate, DB password and S3 key activated without rebuilding.
{"accept_plus_message_ms": [49.4, 50.0, 54.4, 54.7, 71.4, 72.5, 75.4, 90.7, 93.1, 100.0], "accepted": 10, "accepted_per_second": 15.35, "activation_to_all_ready_s": 1.77, "lost": 0, "p50_ms": 71.4, "p95_ms": 100.0, "p99_ms": 100.0, "parallel_uploads": 2, "ready": 10, "rotation_s": 5.4, "worker_stop_to_all_ready_s": 9.59}

> Track 1 worker: run 2
Worker DB: TLS and job read allowed; password hashes, messages, job deletion and owner changes denied
Worker S3: staged originals readable before cleanup
Worker S3: result reads allowed; bucket listing, staging write and delete denied
Worker queue: broker login allowed; producer, unrelated stream and admin commands denied
Worker Collector: OTLP ingest allowed
Prior worker KV policy removed; probe token revoked or already expired.
Old worker token rejected on KV read (403).
Old worker certificate denied for OpenBao login (400).
Old worker: DB password, S3 credentials and broker/Collector certificate rejected on fresh connections
New worker certificate, DB password and S3 key activated without rebuilding.
{"accept_plus_message_ms": [39.0, 39.4, 40.7, 46.2, 48.3, 50.2, 56.4, 61.3, 67.8, 74.9], "accepted": 10, "accepted_per_second": 34.41, "activation_to_all_ready_s": 1.78, "lost": 0, "p50_ms": 48.3, "p95_ms": 74.9, "p99_ms": 74.9, "parallel_uploads": 2, "ready": 10, "rotation_s": 6.19, "worker_stop_to_all_ready_s": 9.23}

> Final image track control
Worker DB: TLS and job read allowed; password hashes, messages, job deletion and owner changes denied
Worker S3: staged originals readable before cleanup
Worker S3: result reads allowed; bucket listing, staging write and delete denied
Worker queue: broker login allowed; producer, unrelated stream and admin commands denied
Worker Collector: OTLP ingest allowed
Prior worker KV policy removed; probe token revoked or already expired.
Old worker token rejected on KV read (403).
Old worker certificate denied for OpenBao login (400).
Old worker: DB password, S3 credentials and broker/Collector certificate rejected on fresh connections
New worker certificate, DB password and S3 key activated without rebuilding.
{"accept_plus_message_ms": [60.9, 64.0, 64.2, 68.2, 69.6, 75.1, 75.9, 92.0, 141.4, 153.5], "accepted": 10, "accepted_per_second": 20.79, "activation_to_all_ready_s": 3.41, "lost": 0, "p50_ms": 69.6, "p95_ms": 153.5, "p99_ms": 153.5, "parallel_uploads": 2, "ready": 10, "rotation_s": 21.1, "worker_stop_to_all_ready_s": 27.01}

> Compose hardening and spot resource snapshot
22 Compose service definitions checked. Read-only, no-new-privileges, and all capabilities dropped before any explicit DB bootstrap exceptions. No privileged, host networking, or Docker socket. Only LB, Grafana and OpenBao use localhost port publication.
After an auth sample: API 154.3 MiB / 512 MiB and 151.2 MiB / 512 MiB, worker 32.27 MiB / 640 MiB. CPU snapshot 0.81%, 0.88% and 0.07% respectively.

> Argon benchmark, GOMAXPROCS=1, 8 iterations per sample
19 MiB t=2: 23.726, 19.587, 19.678 ms/op; 19,925,232 B/op.
64 MiB t=3: 127.292, 122.399, 128.872 ms/op; 67,111,408 B/op.
Go tests and vet passed.

> govulncheck -mode binary on final API image
No vulnerabilities found.

> Offline Trivy, api-published
0 total, 0 critical and 0 high. See security/SCANS.md for applicability.

> Offline Trivy, worker-published
292 total, 2 critical and 49 high. See security/SCANS.md for applicability.

> Offline Trivy, bao-final
19 total, 0 critical and 2 high. See security/SCANS.md for applicability.

> Offline Trivy, haproxy
127 total, 3 critical and 28 high. See security/SCANS.md for applicability.

> Offline Trivy, collector
168 total, 7 critical and 73 high. See security/SCANS.md for applicability.

> Offline Trivy, minio
84 total, 6 critical and 43 high. See security/SCANS.md for applicability.
