Security & Compliance
This page describes the security posture of the Ema platform that matters when you administer a workspace: how data is encrypted, how your workspace is isolated from every other workspace, how personally identifiable information (PII) is detected and masked, how every action is recorded, and how data is retained and deleted. It is a reference for the controls Ema operates on your behalf. Most of them are platform guarantees you can't turn off. A few are workspace settings, such as sign-in and two-factor sign-in, which you configure in Admin Settings.
How Ema is hosted. Most customers use Ema as a managed cloud service, where Ema runs and secures the infrastructure. Some customers run Ema on a dedicated or on-premises deployment. Ask your Ema representative which applies to you.
Encryption at rest
All workspace data is stored on encrypted infrastructure: managed PostgreSQL, object storage, and Redis all sit behind disk-level encryption operated by the platform. On top of that baseline, Ema applies two additional layers of application-level encryption to the most sensitive material.
Envelope encryption for secrets
Long-lived secrets, such as the RSA private keys that sign your workspace's JSON Web Tokens (JWTs) and your single sign-on (SSO) configuration, are encrypted with envelope encryption before they are written to the database:
- Ema generates a random 256-bit data encryption key (DEK).
- The secret is encrypted with AES-256-GCM using the DEK.
- The DEK itself is encrypted by a key management service (KMS)-managed key encryption key (KEK).
- Only the ciphertext and the encrypted DEK are stored. The plaintext DEK is never persisted.
Recovering a secret requires a live KMS decrypt call, so a leak of database credentials alone is not enough to read it. Your SSO configuration is stored encrypted with AES-256-GCM for the same reason.
Field-level encryption for PII columns (where enabled)
For deployments with stricter compliance requirements, Ema can transparently encrypt named columns in the identity store (for example a user's email, name, and attributes) at rest. The set of encrypted columns is a deployment configuration, not something a workspace admin turns on or off. When it is on, the column ciphertext is written and read inside the database using AES-256 primitives, and equality lookups that the platform depends on (such as login by email) keep working. This layer is an additional barrier on top of disk-level encryption; it does not change how data appears to you in the product.
Workspace isolation
Every record in Ema carries a tenant_id, which names the workspace it belongs to. A workspace is the hard boundary for all data access. Several mechanisms enforce this together:
- Each request acts in one workspace. Every request is authenticated by a JWT or an API key that belongs to one workspace. Identity is keyed globally by email, but a person can only act in a workspace where they hold an active membership; the role on that membership determines what they can do. See Governance and permissions.
- Every lookup is limited to your workspace. When Ema combines data from several places, each step checks the workspace, not only the final result. This prevents a leak between workspaces even if a stray identifier ever pointed at another workspace's data.
- Sharing between workspaces is explicit and one-directional. Inside Ema, data crosses a workspace boundary only through deliberate sharing: a parent workspace can share a template with the workspaces below it, and shares between workspaces flow downward only, never to a sibling or a parent. A clone refuses outright if the source and destination workspaces differ.
- Export and import. A Builder can download an AI Employee as a bundle file and import it into another workspace or environment where they are a Builder. The bundle holds no credentials, document content, or history. See AI Employee export and import.
- Existence is never disclosed across workspaces. When you reference a resource that lives in another workspace, the platform returns "not found" rather than "forbidden," so you can't probe for the existence of resources or users outside your own workspace and the workspaces below it.
Workspace hierarchy
Workspaces can be organized into a hierarchy: a parent workspace can have child workspaces. Administrative reach and sharing follow the tree strictly downward. A parent admin can create child workspaces and share templates with the workspaces below, but a child workspace's data, users, and audit events are never visible upward or sideways. See Tenant management and SSO.
PII detection and masking
Ema can detect PII in the content it processes and apply a masking policy before that content is displayed to a person or sent to an external model or integration. Detection classifies values into a fixed taxonomy of entity types (for example EMAIL_ADDRESS, US_SOCIAL_SECURITY_NUMBER, CREDIT_CARD_NUMBER) following the Google Cloud DLP infoType naming convention.
Two controls govern detected PII, both configured on the PII Management surface:
- Display levels decide how a detected value appears to people inside Ema —
original,partial(a revealed tail, such as the last four digits),pseudonym(a stable, non-reversible token likeSSN_61038472), orfull_mask. Each entity type has a platform-fixed ceiling reflecting regulatory baselines (HIPAA Safe Harbor, PCI DSS, NIST SP 800-122, GDPR, CCPA). Secrets and credentials are capped at Fully Masked; financial and government identifiers are capped at Partial. You can set a level at or below the ceiling, never above it. - Sharing policy decides what detected PII is allowed to leave Ema in cleartext for external models and integrations. A small set of business-context entities (name, email, organization, phone, address, employment, education) always passes; all sensitive types — credentials, financial, healthcare, government, device, and protected attributes — are hard-locked to never egress in cleartext and cross any external model boundary only as a pseudonym token.
The egress lock at large language model (LLM) boundaries is a platform guarantee enforced in code, not a tenant preference: a tenant toggle can never push a locked entity type across an LLM vendor boundary in cleartext. For the full configuration reference, see PII and data governance.
Enabled per tenant. PII detection and masking is gated by the pii_masking feature flag. When it is off, content passes through unchanged and the PII Management surface is hidden. Contact your Ema representative to enable it.
Audit trail
Every meaningful action in your workspace is recorded in an immutable, append-only audit log: sign-ins, user and role changes, workflow and AI Employee edits, runs, knowledge base changes, integration and API-key events, template and grant changes, and retention-policy changes. Events can't be edited or deleted through any API.
Each event captures who acted (actor ID, name, email, and role at the time), what they did (the action and the resource, with the resource name and version captured at event time), when, and the actor's IP address. Actor and resource names are denormalized into the event when it is written, so the record stays accurate even if a user or resource is later renamed or removed.
Ema filters audit events by your role before they load: System admins, User admins, and Builder admins (older role) see every event in the workspace, Builders see events on build resources, and a User sees only their own actions. System admins open the full log in Settings → Admin Settings → Governance. When PII masking is on, Ema also records each masking decision as a pii_access or pii_data_export event. System admins can query these through the PII access log API (GET /audit/pii-access), which answers questions like "what cleartext PII left the workspace, for which integration, and when." See the Audit log for the full field reference, filters, contextual activity feeds, and CSV export.
Data retention and legal holds
Ema manages the lifecycle of your data with configurable retention policies, and suspends deletion entirely while a legal hold is in place.
Retention policies
A retention policy sets how long a given type of data is kept before it expires and is deleted. Policies resolve by precedence: an AI Employee-specific policy overrides a workspace-wide default, which overrides the platform default. The platform defaults are:
| Data type | Default retention |
|---|---|
| Documents | Never expire |
| Chat sessions | 365 days |
| Workflow runs | 365 days |
| Audit events | 365 days |
| Token usage | 365 days |
| Evaluation runs | 180 days |
| Agent tests | 180 days |
A custom retention period must be at least 7 days, or 0 to mean "never expire." Audit events are kept for 365 days by default, a window Ema sets, and cleaned up by a background process. No API edits or deletes an individual audit event.
When data expires, the platform orchestrates a cascade deletion across the services that own the data, in dependency order, and records every deletion operation in a deletion log that is itself retained for seven years for compliance. Deletion is forward-only: a partial failure is logged and retried rather than rolled back, so deletions never silently undo themselves.
Legal holds
A legal hold is a first-class control that suspends all deletion for a workspace. Retention expiry, workspace closure, and data-subject deletion requests all stop while the hold is active. A workspace can have one active hold at a time; placing it records who placed it and why, and releasing it records who released it and why. The platform surfaces holds older than twelve months for annual review. While a hold is active, any deletion the platform attempts for that workspace is refused.
Data-subject deletion requests
For privacy-regulation deletion requests (such as GDPR Article 17), Ema queues a data-subject request keyed to a subject's email with a tracked deadline. If the workspace is under a legal hold, the request is parked until the hold is released rather than deleting data that must be preserved.
What's next
- PII and data governance: configure detection display levels and integration egress.
- Audit log: review and export the immutable record of every action.
- Governance and permissions: the roles and permissions that control every screen.
- AI Employee export and import: how AI Employees move between workspaces, and the isolation rules that govern it.
- Tenant management and SSO: sign-in, providers, two-factor sign-in, and workspace settings.