Security and safeguards
Encryption
| Layer | Method | Detail |
|---|---|---|
| At rest | AES-256 | Keys managed by the cloud managed key service |
| In transit | TLS 1.3 | Client↔server, server↔LLM, server↔DB - every hop |
| OAuth tokens | RSA-2048 | Asymmetric encryption applied |
Access control
Authentication
| Component | Description |
|---|---|
| Global authentication | Authentication applied by default to every API endpoint |
| Session management | In-memory store based session management in production |
| OAuth SSO | Platform-integrated authentication |
| Refresh tokens | Expiry configured, managed per device |
Role-based access control (RBAC)
| Scope | Description |
|---|---|
| User (USER) | Access limited to one's own conversations, files, and settings |
| Company (COMPANY) | Access to assistants and chat rooms shared within the company |
| Public (PUBLIC) | Access through a share link |
| Master (MASTER) | Administrator-only functions |
Administrator access restrictions
| Measure | Description |
|---|---|
| Administrator-only authentication | Administrator role verified through a separate authentication step |
| Feature access control | Additional permission check required to reach administrator functions |
| Allowlist | Only pre-approved users can access |
| Read-only mode | Restricted administrator permission supporting view-only access |
| Audit logs | Administrator search, view, and download actions recorded together with the IP address |
Session security
| Setting | Description |
|---|---|
| httpOnly | Enabled (blocks JavaScript access) |
| secure | Enabled in production (HTTPS required) |
| sameSite | CSRF protection configured |
| Expiry | Automatic expiry per policy |
| Session validation | Periodic revalidation |
| Session regeneration on login | Applied (prevents session fixation attacks) |
Rate limiting
| Item | Setting |
|---|---|
| Per-minute limit | Requests per minute capped (adjustable by configuration) |
| Hourly limit | Differentiated by the user's plan |
| On exceeding | Rate-limit response plus the remaining wait time |
Security headers
| Header | Setting |
|---|---|
| HSTS | Forces HTTPS |
| X-Content-Type-Options | Prevents MIME sniffing |
| X-XSS-Protection | Blocks XSS |
| X-Frame-Options | Prevents clickjacking |
| Referrer-Policy | Limits referrer information sent externally |
Audit logs
| Subject | What is recorded |
|---|---|
| All API requests | Connection information, user identifier, response time |
| Administrator actions | Administrator identifier, connection information, action performed, target |
| Security masking detections | Detection type, masking result, related conversation |
| Banned-term detections | User identifier, conversation identifier |
| File downloads | Downloading user, file identifier |
| Authentication failures | Connection information, request path |
Monitoring infrastructure
| Item | Use |
|---|---|
| Metrics collection | System performance and health monitoring |
| Distributed tracing | Request flow tracing and incident analysis |
| Central logging | Log collection and analysis |
Data destruction
Automatic cleanup scheduler
| Item | Description |
|---|---|
| Target | Conversations, messages, files |
| Retention | 90 days by default (changeable by administrator setting) |
| Frequency | Runs daily on schedule |
| Method | Complete deletion in batches (not recoverable) |
| Cloud storage | Files deleted along with the database records |
| Execution history | Deletion counts, status, and run time recorded |