Database Encryption in Transit

TLS for DB connections.

Overview

Database encryption in transit enforces TLS for every database connection. Encryption at rest protects the data on disk; encryption in transit protects it on the wire between the application and the database. Without it, a network-position attacker (compromised host on the same VPC, sniffer on a misconfigured switch, MITM at the cloud edge) reads queries and results in plaintext. The discipline is making TLS the only acceptable connection mode and verifying it with verify-full to prevent MITM attacks.

The approach

The practical approach is to enforce TLS at the database engine (refuse non-TLS connections), require verify-full mode on all clients (sslmode=verify-full in libpq, equivalent in other drivers), add mTLS for high-sensitivity workloads, manage the CA per cluster as part of the database operational surface, and document the per-database TLS policy in the security handbook so the rules are auditable.

Why this compounds

Encryption-in-transit discipline compounds across services. Each protected connection reduces the attack surface for network-position attackers; each verify-full client prevents MITM at the connection layer; the team builds a security posture that survives perimeter compromise. The opposite, where TLS is "available" but not enforced, lets the next misconfigured client open a hole nobody notices.

Encryption-in-transit discipline is a security discipline that pays off across years. Nova AI Ops integrates with database telemetry, surfaces TLS patterns, and supports the team’s database security discipline.