Backup encryption at rest is straightforward to configure and easy to misuse. The cipher choice doesn’t matter much — AES-256 is fine. The key custody decision matters a lot — a key that lives only on the cPanel server it backs up is decoration, not protection.
What’s happening
There are two layers of “at rest” encryption to consider. Client-side: JetBackup encrypts before writing to the destination (GPG-based; the cPanel server holds the key). Server-side: the object store (S3, B2, Wasabi) encrypts what it receives (key managed by the provider, or by you via KMS).
Client-side protects against the destination being compromised — if Wasabi is breached, your backups are unreadable without the key. Server-side protects against a stolen disk at the provider but does nothing if the destination’s credentials leak. Both is good; one is acceptable; neither is not.
How to verify
Inspect the current state:
jetbackup5api -F getBackupJobs | grep -i encrypt
gpg --list-keys
aws s3api get-bucket-encryption --bucket <bucket>
ls /etc/jetapps/keys/
The GPG keyring on the cPanel server is the canonical store of client-side keys. The S3 bucket encryption configuration is the canonical store of server-side encryption settings.
The fix
- Enable client-side encryption in JetBackup: WHM > JetBackup 5 > Settings > GPG Encryption. Generate or import a key; the public key encrypts at backup time, the private key is needed to decrypt during restore.
- Escrow the private key off-server. Storing it only on the cPanel server is a single point of failure — if the server is destroyed, you can’t decrypt the backups you took to protect against destruction. Use a passphrase-protected backup in a separate location, or a KMS, or an encrypted USB in a safe.
- Enable server-side encryption on the destination bucket. For S3:
aws s3api put-bucket-encryption --bucket <bucket> --server-side-encryption-configuration .... SSE-S3 is fine for most cases; SSE-KMS for stricter control. - Test the restore path with encryption in place. A backup you can’t decrypt is worse than no backup. Run a quarterly restore drill including the decryption step.
- Document key rotation: every 24 months for client-side GPG, never for server-side SSE-S3 (managed by AWS), per your KMS rotation policy for SSE-KMS.
Stack Harbor sets up encryption with proper key custody as part of environment management.