All Resources

R-76

Technology

Tessera DB Tutorial: Enable At-Rest Encryption for Connector Credentials

Turn on opt-in at-rest encryption and connector passwords, API keys, and stored data become authenticated ciphertext on disk.

PAR2 Labs

August 29, 2026

3 min

Tessera DB Tutorial: Enable At-Rest Encryption for Connector Credentials

By default Tessera persists connector credentials in plaintext and warns you about it. For production, turn on at-rest encryption: the same fields become authenticated ciphertext (AES-256-GCM) on disk, alongside the storage and audit layers.

01

Before you start

Tier

01

Encryption at rest is an Enterprise feature — optional and opt-in.

02

Step 1: Generate a strong key

Encryption at rest is unlocked with a secret key you supply. Generate one with plenty of entropy from any tool you trust.

bash

openssl rand -hex 32

03

Step 2: Provide the key at startup

Give the running server the key when it boots, sourced from your secret manager rather than hard-coded anywhere. On startup Tessera logs that credentials and data are encrypted at rest, confirming the key was picked up.

Don't bake the key into a script or image.

04

Step 3: What gets protected

Every secret-shaped field a connector stores — passwords, API keys, connection strings — is replaced on disk with authenticated ciphertext, each with its own unique nonce. The durable audit log and storage layers are covered under the same key. Because the reader auto-detects encrypted versus plaintext, you can turn this on without a data migration.

05

Step 4: Restart and verify

Restart the server with the same key. Sources load, credentials decrypt transparently, and polling resumes. Lose the key and the data is unrecoverable by design — Tessera will fail to load the affected source and log a clear error rather than silently continuing.

06

Key management in practice

Don't bake the key into a script or image. Source it from your secret manager (Vault, AWS Secrets Manager, GCP Secret Manager) at process start. It only needs to exist in the running process's environment.

Key Takeaways

01

Generated a high-entropy key with openssl rand -hex 32.

02

Supplied the key at startup from a secret manager, and seen the startup log confirm it was picked up.

03

Had connector secrets, the audit log and storage written as authenticated ciphertext, with no data migration.

04

Restarted with the same key and confirmed that sources decrypt and polling resumes.


PAR2 Labs · Technology

Work With Us

Have a problem worth solving?