# ClassNotify P1-RC2 Gate RC-5 (Security Closure & Release Security Gate) Final Dossier - **Consolidation Timestamp**: 2026-09-23T15:05:46.3092436+08:00 - **Release Candidate Unit**: P1-RC2-20260922-151442-F2C14966 - **Windows Installer SHA256**: \$ExpectedInstallerHash\ - **Linux Server Tarball SHA256**: \$ExpectedServerHash\ - **Production Source Code**: 100% FROZEN (0 lines modified) - **Sub-Suites Consolidated**: - **RC-5A (Host/Permissions/Least Privilege)**: [EVIDENCE-RC5-PERMS-20260923-150236](https://audit.paradise.eu.org/acceptance/P1-RC2/RC-5/EVIDENCE-RC5-PERMS-20260923-150236/) - **RC-5B (Auth/Role/Tenant Isolation)**: [EVIDENCE-RC5-ISOLATION-20260923-150236](https://audit.paradise.eu.org/acceptance/P1-RC2/RC-5/EVIDENCE-RC5-ISOLATION-20260923-150236/) - **RC-5C (Network/CORS/RateLimit/IPC)**: [EVIDENCE-RC5-NETIPC-20260923-150236](https://audit.paradise.eu.org/acceptance/P1-RC2/RC-5/EVIDENCE-RC5-NETIPC-20260923-150236/) - **RC-5D (Secret Scan/Closure/Rotation)**: [EVIDENCE-RC5-SECRETS-20260923-150236](https://audit.paradise.eu.org/acceptance/P1-RC2/RC-5/EVIDENCE-RC5-SECRETS-20260923-150236/) --- ## Executive Gate Review Matrix (Authoritative Reviewer Criteria) | Category | Reviewer Mandate / Hard Blocker | Actual Result | Verification Status | | :--- | :--- | :--- | :--- | | **Host Least Privilege** | classnotify.service runs as User=www-data, Group=www-data, UID != 0 | User=www-data, UID=33 | **PASS** | | **Kestrel Loopback** | 127.0.0.1:5000 only, never 0.0.0.0 | 127.0.0.1:5000 only | **PASS** | | **PostgreSQL Loopback** | 127.0.0.1:5432 only, never 0.0.0.0 | 127.0.0.1:5432 only | **PASS** | | **Production Secrets ACL** | /etc/classnotify/classnotify.env is 600 root:root | 600 root root | **PASS** | | **Windows DPAPI / ACL** | Inheritance disabled, SYSTEM + Administrators only | SYSTEM:(F) Admins:(F) only | **PASS** | | **PostgreSQL Least Privilege** | rolsuper=f, rolcreatedb=f; CREATE DATABASE fails | All false; Permission Denied | **PASS** | | **JWT Validation** | No token -> 401, Malformed -> 401, Tampered -> 401 | 100% Rejected with 401 | **PASS** | | **Role Authorization** | Teacher/SchoolAdmin -> SuperAdmin API -> 403 | 100% Forbidden with 403 | **PASS** | | **Tenant Isolation** | Cross-tenant notification -> 403, Cross-tenant command -> 403 | 100% Forbidden with 403 | **PASS** | | **Cross-Tenant Data Leakage** | 0 foreign records in queries/history | 0 foreign records | **PASS** | | **Cross-Tenant Side Effects** | 0 new DB records, 0 receipt side effects | 0 mutations | **PASS** | | **Unauthorized Escalation** | 0 unauthorized privilege escalations | 0 escalations | **PASS** | | **TLS 1.0 / 1.1 Negotiation** | Rejected (Handshake fails / unsupported) | Handshake rejected | **PASS** | | **TLS 1.2 Negotiation** | Accepted (HTTP 200 OK) | HTTP 200 OK | **PASS** | | **HTTP -> HTTPS Redirect** | 301/308 Permanent Redirect | 308 Permanent Redirect | **PASS** | | **CORS Isolation** | Official gets ACAO, Malicious Origin gets 0 ACAO | Valid ACAO / 0 Evil ACAO | **PASS** | | **Auth Rate Limiting** | AuthLimiter triggers 429 upon limit breach | 429 triggered at req #59 | **PASS** | | **NamedPipe IPC Security** | Protocol 1/unauthorized handshake rejected; 0 leakage | 13/13 Negative Tests PASS | **PASS** | | **Live Secret in Artifacts** | 0 live secrets in installer, server tarball, bundles | 0 matches | **PASS** | | **Live Secret in Evidence** | 0 live secrets in public audit evidence | 0 matches | **PASS** | | **Known Default Credentials** | 0 active logins across historical combinations | 0 active logins (50/50 rejected)| **PASS** | | **Dev Activation Codes Active** | 0 active, cannot activate new devices | 0 active (All 400 Bad Request) | **PASS** | | **Temporary Credential Inventory** | 0 UNKNOWN statuses | 0 UNKNOWN | **PASS** | | **Old JWT Post-Rotation** | Strictly REJECTED (401 Unauthorized) | REJECTED (401) | **PASS** | | **New JWT Post-Rotation** | Authenticated (200 OK) | ACCEPTED (200) | **PASS** | | **Device Auto-Reconnect** | Operational, 0 re-activation required | Healthy Connected | **PASS** | | **Post-Rotation Smoke Delivery** | Delivered & ACKed | Delivered & ACKed | **PASS** | | **Production Source Modified** | 0 lines modified in \src/\ | 0 lines modified | **PASS** | | **Product BLOCKER** | 0 blockers | 0 blockers | **PASS** | --- ## Security Findings & Hardening Notes (Non-Blocking) - **HSTS Header Absence**: Strict-Transport-Security not yet configured in Caddy. Formally recorded as \SECURITY_HARDENING_NOTE\. - **CSP Header Absence**: Content-Security-Policy header recorded as \SECURITY_HARDENING_NOTE\. - **Systemd Security Sandbox**: Score recorded as \SECURITY_HARDENING_NOTE\ for future P2 hardening milestone. --- ## Final Gate RC-5 Verdict & GA Sealing Request All 4 security verification pillars of Gate RC-5 (Host/Permissions, Auth/Tenant Isolation, Network/CORS/RateLimit/IPC, and Secret Scan/Credential Closure/JWT Rotation) have successfully passed with **100% compliance**, **zero data leakage**, **zero cross-tenant side effects**, **zero product blockers**, and **zero production source code modifications**. Per the Reviewer directive, Gate RC-5 is SEALED and ready for the **P1-RC2 Final Release Decision / P1 GA Sealing Request**.