Server-Side Encryption
Application Scenario
After server-side encryption is enabled, objects to be uploaded will be encrypted and stored on the server. When downloading the encrypted objects, the encrypted data will be decrypted on the server and displayed in plaintext to you.
OBS supports the following two server-side encryption modes. Both modes use the industry-standard AES-256 encryption algorithm.
- Server-side encryption using keys hosted by KMS (SSE-KMS)
You need to create a key using Key Management Service (KMS) or use the default key provided by KMS. Then you can use the KMS key to perform server-side encryption when uploading objects in OBS.
In the SSE-KMS mode, you can enable the default encryption when creating a bucket. Then all objects uploaded to the bucket are encrypted. You can also enable the default encryption for a bucket after its creation, and then newly uploaded objects are encrypted.
OBS encrypts only the objects uploaded after the default encryption function is enabled. The encryption status of existing objects in the bucket remains unchanged. Disabling default encryption does not change the encryption status of existing objects in a bucket. After this function is disabled, you can still manually encrypt objects upon upload.
You can use OBS Console, APIs, SDKs, or OBS Browser+ to configure SSE-KMS.
- Server-side encryption with customer-provided keys (SSE-C)
OBS uses the keys and MD5 values provided by customers for server-side encryption.
You can use APIs or SDKs to configure SSE-C.
Background Information
In the SSE-KMS mode, KMS uses the hardware security module (HSM) to protect key security, helping you easily create and control encryption keys. Keys are not displayed in plaintext outside HSMs, which prevents key disclosure. All operations performed on keys are controlled and logged, and usage of all keys is recorded, meeting regulatory compliance requirements.
How to Use This Function
You can use OBS Console, APIs, SDKs, or OBS Browser+ to set server-side encryption.
| Tool | Reference |
|---|---|
| OBS Console | |
| SDKs | OBS supports software development kits (SDKs) in multiple languages. For details, see the corresponding developer guide on the SDK Overview page. |
| APIs | Server-Side Encryption (SSE-KMS) |
| OBS Browser+ | - |
Last Article: Cross-Region Replication
Next Article: Static Website Hosting
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.