Course contentsShow
← Cloud and Infrastructure
Lesson 163 of 2,9893. Storage PrimitivesFree lesson

Server-Side Encryption Options

Encrypt objects at rest using provider-managed keys, customer-managed keys, or customer-provided keys.

Server-Side Encryption Options

What you'll learn: How cloud providers protect your stored objects using different encryption key management approaches.

When you store objects in the cloud, you want them encrypted at rest—meaning the data is scrambled on disk so no one can read it without the right keys. Cloud providers offer server-side encryption (SSE), where the provider handles encryption automatically before writing your objects to storage. You get three main options for managing the encryption keys:

Provider-Managed Keys (SSE-S3, SSE-GCS)

The cloud provider creates, rotates, and manages encryption keys for you completely behind the scenes. You enable this option, and encryption "just works." This is the simplest approach—zero key management overhead.

Analogy: Like leaving your valuables in a bank's safe deposit box where the bank controls the master keys. Convenient and secure, but you're trusting the bank entirely.

Customer-Managed Keys (SSE-KMS, CMEK)

You create and control encryption keys through the provider's key management service (like AWS KMS or GCP Cloud KMS). You grant the storage service permission to use your keys, but you control key policies, rotation schedules, and access auditing. You can even disable keys to make data temporarily inaccessible.

Analogy: You own the key to the safe deposit box, but the bank still stores both the key and your valuables in their facility. You decide who can use your key.

Customer-Provided Keys (SSE-C)

You generate and manage keys completely outside the cloud provider. For each object request, you supply the encryption key yourself. The provider never stores your keys—only uses them temporarily for encryption/decryption operations.

Analogy: You bring your own padlock to the storage unit. The facility never gets a copy of your key.

Key Takeaway: Server-side encryption protects data at rest using provider-managed keys (easiest), customer-managed keys (more control), or customer-provided keys (maximum control, maximum responsibility).