Kommander.ai stores application data in the infrastructure configured for the deployed environment. Residency is therefore an environment and vendor-account setting, not a per-request control.
Data Flow
Data Stores
| Data category | Primary store | Notes |
|---|---|---|
| Users, organizations, memberships, invitations, settings | MongoDB | Includes OAuth account metadata and organization role records. |
| Conversations and assistant messages | MongoDB | Includes user messages, assistant responses, tool messages, and conversation metadata. |
| Training files and OpenAPI specs | MongoDB GridFS or configured file storage | Uploaded files can include customer content and connector schema metadata. |
| Customer data connector configuration | MongoDB | Credentials are stored encrypted; plaintext credential values are not returned by API responses. |
| Billing records | MongoDB and Stripe | Stripe is the processor of record for payment methods, subscriptions, invoices, and metered events. |
| Email delivery metadata | MongoDB and email provider logs | Resend or SMTP providers may retain delivery events according to provider settings. |
| Model requests and generated responses | OpenAI API and Kommander runtime logs | Do not send secrets or unnecessary sensitive data in prompts, tool descriptions, or tool results. |
| Real-time and workflow events | Socket.IO, Inngest, and application logs | Event payloads should contain operational identifiers and minimal user content. |
Residency Policy
Production residency must be documented for each deployment:
- MongoDB cluster region and backup region.
- File or GridFS storage region.
- RAG/vector storage region when enabled.
- Stripe account region and billing data processing region.
- Email provider region and retention settings.
- OpenAI processing configuration used by the deployment.
Kommander.ai does not currently expose per-organization residency selection in the product UI. If an organization requires data to stay in a specific country or region, confirm the deployment’s infrastructure region before enabling production traffic.
Residency Checklist
| Item | Evidence to collect |
|---|---|
| Application hosting region | Deployment project and runtime region configuration. |
| MongoDB primary and backup regions | Cluster settings and backup policy screenshot or export. |
| File storage region | GridFS deployment region or object storage bucket region. |
| Stripe processing region | Stripe account and invoice processor details. |
| Email provider region | Provider account settings and retention policy. |
| OpenAI data processing configuration | Current vendor configuration and applicable agreement. |
| Logging region and retention | Observability provider settings and retention window. |
Retention Policy
Retention depends on data type:
| Data category | Default retention behavior |
|---|---|
| Account and organization records | Retained while the account or organization is active, then deleted or anonymized through account deletion workflows. |
| Conversations | Retained for product history, analytics, support, and auditability until deleted by an authorized user or lifecycle job. |
| Uploaded training files | Retained while the associated assistant, knowledge base, or connector configuration needs them. |
| OpenAPI connector specs | Retained while the connector is configured or needed for audit and rollback. |
| Connector credentials | Retained encrypted while the connector is active; rotate or delete the connector to revoke access. |
| Billing records | Retained according to Stripe, accounting, tax, and legal requirements. |
| Security audit events | Retained for investigation and abuse detection according to operational policy. |
| Application logs | Retained according to the deployment logging provider’s retention settings. |
Deletion of one data category may not delete related processor records immediately. For example, deleting an organization does not remove Stripe invoices that must be retained for billing and tax compliance.
Customer Data Connectors
Customer data connectors should minimize data movement:
- Configure narrow read operations instead of broad search or export endpoints.
- Return only fields needed for the assistant answer.
- Prefer opaque user ownership keys such as
userHash. - Keep connector credentials least-privilege and read-only whenever possible.
- Ensure connector responses include ownership markers so cross-user results can be filtered before the model sees them.
Current Limitations
- Per-organization residency pinning is not self-service.
- Retention windows are not yet configurable per organization in the UI.
- Conversation and file deletion may depend on manual workflows or lifecycle jobs in the deployed environment.
- Third-party processors retain data under their own contracts and settings.
- Billing records cannot be fully deleted on request when legal retention obligations apply.
For additional product limitations, see Known Limitations.