Defense-in-depth across mydb.stream: bcrypt auth, Email OTPs, OAuth 2.0, HTTP-only cookies, RBAC, and audit trails.
Every customer and administrator password is hashed with bcrypt (12 salt rounds) before persistence. Plaintext passwords are never written to SQLite or application logs.
Authentication uses HS256 JWT tokens signed with a server-side secret and delivered via HTTP-only, SameSite=Lax cookies so client-side scripts cannot read session tokens.
Server components and API routes verify both active session status in SQLite and user role (CUSTOMER vs ADMIN). Disabled accounts are rejected immediately on the next request.
Administrative changes to PKR plan pricing, customer status, payment verification, provisioning details, and support tickets are appended to the AuditLog table with actor IDs and timestamps.
All public, customer, and administrative JSON endpoints validate payloads with strict Zod schemas before touching Prisma queries, preventing malformed inputs and type confusion.
Database passwords inside the Customer Console are masked by default behind explicit reveal toggles, scoped strictly by authenticated customer ownership, and never printed in server logs.
If you discover a security concern on mydb.stream, please contact ZOFA Softwares directly at [email protected] or call +92 0000000.