Careeroza
Encryption & Auditing
Protecting Data
| Layer | How |
|---|---|
| In transit | TLS/SSL connections between application and database |
| At rest | Transparent Data Encryption (SQL Server, Oracle, MySQL Enterprise) or encrypted disks |
| Column level | encrypt very sensitive fields (Always Encrypted, pgcrypto) |
| Backups | encrypt 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).