Security Architecture
Defense-in-depth across accounts, sessions, and operations
Pakistan DBaaS (mydb.stream) by ZOFA Softwares is engineered around strict credential hygiene, server-side authorization, and complete administrative traceability.
Salted Bcrypt Password Storage
Every customer and administrator password is hashed with bcrypt (12 salt rounds) before persistence. Plaintext passwords are never written to SQLite or application logs.
Signed HTTP-Only Session Cookies
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.
Strict Role-Based Access Control (RBAC)
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.
Immutable Admin Audit Logging
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.
Schema-Validated Input Boundaries
All public, customer, and administrative JSON endpoints validate payloads with strict Zod schemas before touching Prisma queries, preventing malformed inputs and type confusion.
Least-Privilege Credential Preview
Database passwords inside the Customer Console are masked by default behind explicit visibility toggles, and this environment clearly labels demo credentials as simulated.
Vulnerability Reporting & Contact
If you discover a security concern on mydb.stream, please contact ZOFA Softwares directly at info@zofasoftwares.com or call +92 322 202 7196.