Help Center/ Data Encryption Workshop/ Getting Started/ Getting Started with Common Practices
Updated on 2023-09-26 GMT+08:00

Getting Started with Common Practices

After completing basic operations such as creating keys, key pairs, and secrets, you can get started with common Data Encryption Workshop (DEW) practices as needed.

Table 1 Common practices

Practice

Description

Data protection

Encrypting or Decrypting Small Volumes of Data

You can use online tools on the Key Management Service (KMS) console or call the necessary KMS APIs to directly encrypt or decrypt small-size data with a Customer Master Key (CMK), such as passwords, certificates, or phone numbers.

Encrypting or Decrypting a Large Amount of Data

If you want to encrypt or decrypt large volumes of data, such as pictures, videos, and database files, you can use envelope encryption, which allows you to encrypt and decrypt files without having to transfer a large amount of data over the network.

Cloud services use KMS for encryption

Encrypting Data in ECS

KMS supports one-click encryption for Elastic Cloud Server (ECS). The images and data disks of ECS can be encrypted.

  • When creating an ECS, if you select an encrypted image, the system disk of the created ECS automatically has encryption enabled, with its encryption mode same as the image encryption mode.
  • When creating an ECS, you can encrypt added data disks.

Encrypting Data in OBS

When you enable server-side encryption in Object Storage Service (OBS):

  • An object uploaded to OBS is encrypted on the server before being stored.
  • When the object is downloaded, data is decrypted on the server first.

Server-side encryption with KMS-managed keys (SSE-KMS) can be implemented for the objects to be uploaded.

Encrypting Data in EVS

In case your services require encryption for the data stored on disks, KMS is integrated with Elastic Volume Service (EVS). You can use the key provided by KMS to encrypt the disk.

Encrypting Data in IMS

When creating a private image, you can select KMS encryption and use the key provided by KMS to encrypt the image, ensuring image data security.

Encrypting an RDS DB Instance

After encryption is enabled, disk data will be encrypted and stored on the server when you create a Relational Database Service (RDS) database instance or expand disk capacity. When you download encrypted objects, the encrypted data will be decrypted on the server and displayed in plaintext.

Encrypting a DDS DB Instance

After encryption is enabled, disk data will be encrypted and stored on the server when you create a Document Database Service (DDS) database instance or expand disk capacity. When you download encrypted objects, the encrypted data will be decrypted on the server first.

API calling

Retrying Failed DEW Requests by Using Exponential Backoff

If you receive an error message when calling an API, you can use exponential backoff to retry the request.