Updated on 2026-03-17 GMT+08:00

Default Encryption for a Bucket

You can configure default encryption for an OBS bucket. Once configured, any objects you upload to the bucket will be encrypted with the specified KMS key by default.

You can enable default encryption when creating a bucket (see Creating a Bucket). You can also enable or disable default encryption for an existing bucket.

OBS only encrypts the objects uploaded after default encryption is enabled for the bucket, and does not encrypt those uploaded before. After default encryption is disabled, encryption status of existing objects in the bucket remains unchanged, and you can still encrypt objects when you upload them.

Enabling Default Encryption for a Bucket

  1. In the bucket list of OBS Console, click the required bucket to go to the Overview page.
  2. In the Basic Configurations area, click Default Encryption. The Default Encryption dialog box is displayed.
  3. Select Enable.

    Key obs/default is selected by default for KMS encryption. You can also click Create KMS Key to create one on the DEW console. Then, go back here and select the created key from the drop-down list.

  4. Click OK.

Disabling Default Encryption for a Bucket

  1. In the bucket list of OBS Console, click the required bucket to go to the Overview page.
  2. In the Basic Configurations area, click Default Encryption. The Default Encryption dialog box is displayed.
  3. Select Disable.
  4. Click OK.