Encryption & Auditing

Protecting Data

LayerHow
In transitTLS/SSL connections between application and database
At restTransparent Data Encryption (SQL Server, Oracle, MySQL Enterprise) or encrypted disks
Column levelencrypt very sensitive fields (Always Encrypted, pgcrypto)
Backupsencrypt backup files and restrict who can read them

Auditing

  • Enable the database audit log for logins, permission changes and access to sensitive tables.
  • Record data changes with audit triggers or change data capture (see Triggers → Audit Log Example).
  • Alert on suspicious activity: many failed logins, unusual export volumes.
  • Mask data in non-production copies (dynamic data masking or anonymised dumps).