# Security overview

## Identity

Passwords are stored with bcrypt. Sessions are signed, HttpOnly cookies with an
eight-hour lifetime. Two-factor authentication uses TOTP and can be enabled per
user from the profile page.

## Tenant isolation

Every record carries an organisation identifier. API handlers resolve the
organisation from the session, never from request input, and filter reads by it.

## Transport and storage

All traffic is served over TLS. Database and object storage are encrypted at
rest. Secrets live in a managed secret store and are injected at runtime.

## Audit

Authentication events, settings changes and invoice updates are written to an
append-only audit log. Logs exclude passwords, tokens and full card numbers.

## Reporting a vulnerability

Email security@afriyontech.com with reproduction steps. We acknowledge within one
business day and will not pursue action against good-faith researchers.
