Web usershttpOnly cookies, then
require_permission()Security
ReplyBox security rests on tenant isolation, RBAC, httpOnly cookies, HMAC internal callbacks, encrypted session/media storage, and careful production secret handling.
Where the boundaries sit
require_permission()organization_idMain boundaries
Tenant boundary
organization_id on user-facing rows.User permissions
require_permission() on REST endpoints.Internal connector trust
Session confidentiality
CHANNEL_SESSION_KEYMedia confidentiality
MEDIA_OBJECT_KEYPublic integrations
Keep in view
Production secrets are part of the boundary: the API and connector share keys, and a leaked or mismatched key breaks the guarantees above. Known gaps are tracked separately.