Algorithm
- AES-256-GCM — authenticated encryption
- Key derived from your encryption secret via PBKDF2 (100,000 iterations by default)
- A unique initialization vector (IV) per backup
- The authentication tag is stored alongside the ciphertext
Generate an encryption key
0–9, a–f).
Where to store the key
Do
A password manager, secret vault, or cloud KMS. Somewhere separate from the backups.
Don't
In the backup destination, or in your repository. An attacker with your bucket must not also get the key.
Rotating the key
The short version: decrypt old backups with the old key, re-encrypt with the new one. See the full Key rotation guide for the procedure.Encryption in DBDock Cloud
DBDock Cloud uses the same AES-256-GCM scheme. On paid plans, encryption is enabled by default for new backups. If you download an encrypted backup to restore it elsewhere, you’ll need the encryption secret — treat it with the same care as above. See Key management.Credential masking
DBDock masks credentials in log output by default:PostgreSQL .pgpass
For host-level credential isolation with PostgreSQL, use the native .pgpass file:
.pgpass automatically when present. Environment variables take priority if both are set. .pgpass is handy when multiple tools share credentials, or you want OS file permissions gating access.
