# Grade 4 Acceptance Checklist
# Final verification: 2026-11-06T11:50:00Z

## Core Requirements (All PASS)

✅ **HTTPS/TLS:**
- Public API accessible via HTTPS (nginx:8443)
- Smoke test PASS: lab7 public API scenario
- Negative test PASS: untrusted CA rejected
- Certificate verification enforced

✅ **mTLS API:**
- LB→API requires client certificate
- Only 'lb' SAN accepted (HTTP 200)
- Wrong SAN rejected (HTTP 403)
- No certificate rejected at TLS layer

✅ **OpenBao Integration:**
- Initialized with 5 keys, threshold 3
- Unsealed and operational
- BAO_ENABLED=true for all services
- AppRole authentication working
- KV v2 secrets engine active
- Separate paths for api/worker

✅ **Least Privilege:**
- API token cannot read worker path (403)
- Worker token cannot read API path (403)
- Each service reads only own secrets
- Policies correctly scoped

✅ **Fail-Closed:**
- Sealed vault returns HTTP 503
- Services fail with IllegalStateException
- No fallback to insecure defaults
- After unseal, services recover

✅ **Secret Rotation:**
- KV secrets rotated (v1→v2→v3)
- Services fetch updated secrets on restart
- No image rebuild required
- Certificate replacement procedure documented

✅ **Security Hardening:**
- Argon2id password hashing (19 MiB, 2 iterations)
- Non-root containers
- no-new-privileges: true
- Dropped capabilities
- TLS enforcement for all connections

✅ **Observability:**
- OTel instrumentation active
- Metrics, logs, traces collected
- Grafana dashboards available
- Health checks implemented

✅ **Code Quality:**
- No changes to mtusi2026lab6
- Contract checker PASS
- Compose config valid
- git diff --check PASS

## Evidence Files (9 total)

✅ lab5_regression.txt - HTTPS smoke tests
✅ openbao_bootstrap.txt - initialization (sanitized)
✅ openbao_least_privilege.txt - access control (sanitized)
✅ openbao_failclosed.txt - sealed state behavior
✅ openbao_rotation.txt - KV secret rotation
✅ mtls_negative_tests.txt - mTLS enforcement
✅ certificate_rotation_procedure.txt - cert rotation
✅ dependency_analysis.txt - dependency review
✅ [experimental evidence files] - pipeline/slo/trace

## Known Limitations (Acceptable for Grade 4)

⚠ **RabbitMQ Authorization:**
- TLS client certificate required ✓
- CA verification enforced ✓
- Authorization via username/password (not certificate SAN)
- Rationale: Separate broker credentials provide access control
- Grade 4 acceptable (certificate SAN authz would be grade 5)

⚠ **Certificate Revocation:**
- Rotation procedure documented ✓
- Key mismatch prevents old key usage ✓
- No CRL/OCSP infrastructure
- Rationale: CRL out of scope for single-host lab
- Grade 4 acceptable (full PKI would be grade 5)

⚠ **Dependency Scanning:**
- Manual review completed ✓
- Current versions verified ✓
- No automated scan (Trivy unavailable)
- Rationale: Tool dependency, manual analysis sufficient
- Grade 4 acceptable

⚠ **Base Image Discrepancy:**
- Dockerfile: eclipse-temurin:21.0.4_7-jre-jammy
- REPORT.md previously referenced alpine
- Corrected in evidence/dependency_analysis.txt
- No security impact (both are secure base images)

## Grade 4 Verdict

**PASS with limitations documented**

All mandatory criteria met:
- HTTPS/TLS/mTLS enforced
- OpenBao integrated with fail-closed
- Least privilege policies working
- Secret rotation demonstrated
- Security hardening applied
- Evidence files complete and sanitized

Limitations are acceptable for grade 4 educational lab:
- RabbitMQ uses credential-based auth (TLS still enforced)
- Certificate revocation via rotation only (no CRL)
- Manual dependency review (tool unavailable)

System is production-ready for learning environment.
Not recommended for actual production without:
- Full PKI with CRL/OCSP
- Certificate-based RabbitMQ authorization
- Automated security scanning in CI/CD
- Multi-node OpenBao cluster
- HSM key storage
