Skip to main content

Data Sovereignty

MeetLoyd separates control plane data (tenants, agents, teams, policies) from business data (memories, conversations, context graph, audit content). Control plane data lives on MeetLoyd's managed infrastructure. Business data goes wherever you tell us — including your own database or your own key management service.

There are three tiers. You can move between them with online migration — no downtime, no re-provisioning. (Leaving BYOS is refused while content is still held only on your side, so nothing becomes unreadable.)

TierWhere business data livesWho can read it
StandardMeetLoyd platform DB, AES-256-GCM at restMeetLoyd (operationally), customer
CMEKMeetLoyd platform DB, AES-256-GCM with your keyOnly you — MeetLoyd has the ciphertext, not the key
BYOSYour PostgreSQL + optional S3/GCS/Azure BlobYou — MeetLoyd reads it only while an agent you authorized is working

All tiers use TLS 1.3 in transit. All tiers honour the same control-plane audit trail.

What "business data" means​

This content follows the tier you choose:

  • Memories — what an agent remembers
  • Conversation transcripts
  • Context graph — the companies, people and deals agents extract, and how they relate
  • The body of every model and tool call recorded for audit
  • File attachments

These stay on the platform DB regardless of tier (no point encrypting them — they ARE the control plane):

  • Tenant, agent, team, policy configuration
  • Audit log metadata (who did what, when, against which resource — but not the body)
  • Billing and subscription records
  • Governance pack settings, authorization relationships

The split exists so that operational telemetry, governance enforcement, and billing keep working even when you take your business data home.

CMEK — Customer-Managed Encryption Keys​

CMEK encrypts business data columns with a key that you control. MeetLoyd holds the ciphertext; without your key, the rows are mathematically opaque.

Your key protects a data key that is unique to your organisation; that data key encrypts your business data. Remove your key and the data can no longer be read — by anyone.

Two key-management options:

  1. MeetLoyd-managed master key — Generate a key in MeetLoyd. It's stored in the platform vault, encrypted under a platform key. You see the hex once at generation time for offline backup; we never display it again. You can rotate it at any time.

  2. Your own key service — Point MeetLoyd at a key in AWS KMS, Google Cloud KMS, Azure Key Vault, or your own HashiCorp Vault (Transit engine, where your installation has it enabled). For the cloud key services you grant one MeetLoyd identity on that key and MeetLoyd never stores credentials of yours. A Vault has no MeetLoyd identity to grant: MeetLoyd signs in with the Kubernetes service account of your installation (no secret stored), or with an AppRole or a token you issue, stored encrypted and never shown again. Every key MeetLoyd wraps with it is bound to your tenant: a wrapped key presented for another tenant is refused. Remove MeetLoyd's grant and we lose decrypt capability immediately.

What encryption guarantees​

PropertyWhat it means
ConfidentialityA snapshot of our DB is unreadable without your key
AuthenticityAES-256-GCM auth tag detects tampering — modified ciphertext fails to decrypt
Forward secrecy on revokeAfter you revoke the key, future reads of past data fail. We cannot restore it
Per-record randomnessEach record uses a fresh IV — same plaintext encrypts to different ciphertext

What encryption does NOT guarantee​

  • Live agent memory — when an agent is actively running against your tenant, the in-memory working set is decrypted in our process so it can be reasoned about. Encryption protects data at rest, not data being actively processed by an agent you authorized.
  • Embeddings — the vector embeddings used for semantic search stay cleartext, because search runs on them. They are lossy projections, but published research shows that short texts can be largely reconstructed from their embeddings: treat them as being as sensitive as the text. With BYOS, the embeddings of agent memory are stored in your database, not ours.
  • Audit log metadata — we still log who-did-what-when. Encrypting metadata would break governance enforcement.

BYOS — Bring Your Own Storage​

BYOS removes MeetLoyd from the data path entirely for business data. You provide:

  • A PostgreSQL connection URL (RDS, Cloud SQL, Azure DB, on-prem — any PG ≥ 14)
  • Optionally, an S3 / GCS / Azure Blob endpoint for files

MeetLoyd reads and writes through a storage abstraction. The platform keeps only references (which record, whose, when) so audit and billing still function. The content lives entirely on your side.

Agent memory on BYOS. The text of every memory, every earlier version of it, and the vectors used to search it are written to your database. Our side keeps references and the fields that decide who may read a memory and whether it is current (its scope, status, validity dates and labels), never the text or the vectors. Searching memory by meaning runs in your database and needs the pgvector extension; without it, memory search is by keyword only. If your database cannot be reached, agents run without the memories they cannot read and new memories are not saved: nothing falls back to our storage. Switching away from BYOS is refused while content is held on your side, because it would become unreadable.

If your storage stops answering, agents say "your storage is unreachable" and back off rather than hammering your database. The schema is set up automatically on first connection.

Configure it​

The data-plane page lives in your dashboard at Control → Governance → Data protection → Encryption & residency (/app/admin/governance/data-protection).

Generate a MeetLoyd-managed CMEK key​

  1. Go to Control → Governance → Data protection → Encryption & residency.
  2. Click Generate Key. A backup modal appears with your key in hex.
  3. Copy the key and store it in your password manager or HSM now. This is the only time it's displayed.
  4. Check "I have saved this key in a secure location" and close the modal.
  5. Click Activate CMEK. New business data is encrypted with your key, and existing records are re-encrypted in the background. Progress shows under Encryption Keys.

Use a key in your own key service​

  1. Go to Control → Governance → Data protection → Encryption & residency and click Use Your Own Key / KMS (or Switch Provider if a key already exists).
  2. Pick the tab of your key service and enter your key:
    • AWS KMS — the key ARN, e.g. arn:aws:kms:eu-west-1:123456789012:key/abcd-....
    • GCP Cloud KMS — the full key resource name, projects/.../locations/.../keyRings/.../cryptoKeys/....
    • Azure Key Vault — vaultUrl#keyName, e.g. https://acme.vault.azure.net#meetloyd, and your directory (tenant) id.
    • HashiCorp Vault — address#mount/key, e.g. https://vault.corp.example:8200#transit/meetloyd, how MeetLoyd signs in (Kubernetes, AppRole or token), and optionally a Vault Enterprise namespace and the CA certificate of a private CA.
  3. The tab shows the MeetLoyd identity to grant on that key, with the command filled in from the key you entered. Run it in your cloud (see below).
  4. Click Test and use this key. MeetLoyd encrypts and decrypts with your key first; if that fails, the key is refused and nothing changes. Once it succeeds, new data is encrypted with it and existing records are re-encrypted in the background.

What to grant, per key service​

You grant one MeetLoyd identity on one key, nothing else in your account. The exact identifier is shown in the dialog.

Key serviceWhat you grantTo
AWS KMSA key-policy statement allowing kms:Encrypt, kms:Decrypt, kms:GenerateDataKey, limited by the condition kms:EncryptionContext:tenantId to your MeetLoyd tenantMeetLoyd's AWS role
Google Cloud KMSThe role Cloud KMS CryptoKey Encrypter/Decrypter on the keyMeetLoyd's service account
Azure Key VaultA directory administrator approves MeetLoyd's application once (az ad sp create --id <client id>), then grants it Key Vault Crypto User on the key (or, for a vault using access policies, the key permissions get, wrapKey and unwrapKey)MeetLoyd's application
HashiCorp VaultA policy allowing update on <mount>/encrypt/<key> and <mount>/decrypt/<key> only, attached to the sign-in MeetLoyd usesYour installation's service account (Kubernetes auth), or the AppRole or token you issue

Rotating the key inside your key service needs nothing from MeetLoyd: data keys wrapped with an earlier version keep unwrapping, as long as that version stays enabled.

Change the key​

Rotate Key creates a new key, tests it, and only then makes it the key in use. Switch Provider does the same with a key you bring. In both cases:

  • the previous key is kept, so nothing becomes unreadable;
  • existing records are re-encrypted under the new key in the background, and each one is checked by reading it back;
  • the Encryption Keys list shows every key, how many records it still protects, and the re-encryption progress.

Destroy an old key​

An old key can be destroyed once it has been out of use for 30 days, the time database backups that may still hold records encrypted with it are kept.

  1. In the Encryption Keys list, click Check on the old key. MeetLoyd opens every record without that key.
  2. If every record opens, Destroy becomes available. Confirm by typing DESTROY.

If the check finds records that still need the key, it stays, and the list tells you how many.

To stop using your own key service, change the key (above) and keep MeetLoyd's grant in place until the old key has been destroyed: removing it earlier makes the records and backups that still need it unreadable.

Destroy all keys (crypto-shredding)​

Irreversible

Destroy all keys permanently destroys every encryption key of yours. Every record encrypted with them becomes unreadable, by you and by MeetLoyd, and cannot be recovered.

Use it when the data itself must be made unrecoverable, for example at the end of a contract. Confirm by typing the explicit phrase. Your tier returns to Standard for new data.

Configure BYOS​

  1. Go to Control → Governance → Data protection → Encryption & residency and click Connect your database.
  2. Pre-flight checklist — review what to allow-list on your network, what lands in your database, and the recommended two-role setup with your DBA or security team.
  3. Connection — paste the PostgreSQL URL MeetLoyd uses to set up the schema, choose the SSL mode (and a CA bundle if your certificates are private), and optionally a separate read/write-only credential for day-to-day use (recommended).
  4. Schema & runtime role — MeetLoyd checks the schema and that each role has the rights it needs.
  5. Review & activate — click Connect and start copying. Existing data is copied to your database in the background; progress shows on the page, and you can stop the copy.

Audit trail​

Every key operation is recorded in the append-only audit log:

EventRecorded with
Key generatedKey ID
Key importedKey service
Key rotatedOld and new key ID
Old key destroyedKey ID
All keys destroyed—
Key service configuredKey service, key reference, activation state
Tier changedOld and new tier
Migration startedMigration ID

Audit log content is itself subject to the data plane tier — under CMEK, the request/response bodies in the audit log are encrypted with your key.

Frequently asked questions​

Does enabling CMEK slow agents down? Marginally. The decrypt happens at row fetch, AES-256-GCM is hardware-accelerated, and derived keys are kept briefly in memory, so the added cost stays small.

What happens if I lose my master key? If you generated it through MeetLoyd, we still hold an encrypted copy of it — you can read your data. If you used an external KMS and your KMS forgets the key, your data is unrecoverable. Always have a recovery procedure for keys held outside MeetLoyd.

Can MeetLoyd see my data in transit while running an agent? While the agent is running, yes — that's what the agent is doing. After the agent stops, the at-rest encryption resumes. If you don't want any MeetLoyd-side decryption ever, look at BYOS or the on-prem deployment.

Are embeddings encrypted under CMEK? No. Embeddings are cleartext because semantic search runs on them. They are lossy, but research has shown that short texts can be largely reconstructed from their embeddings, so a leaked embedding can reveal much of what it was computed from. If that matters to you, use BYOS: the embeddings of agent memory are then stored in your database.

How do I prove to my auditor that CMEK is active for my tenant? The data-protection page shows the current tier + key fingerprint. The audit log records every tier change with timestamp + actor. We can export a signed attestation on request.


Next: Configure Governance Packs to add automated compliance enforcement on top of your chosen data-plane tier.