Overview
Once a bucket is configured for encryption, all objects uploaded to the bucket thereafter will be encrypted by default with the specified encryption method.
Currently, only SSE-COS encryption, that is, server-side encryption using COS-managed encryption keys, is supported.
For more information on server-side encryption, see Server-Side Encryption Overview.
Directions
Using the COS console
Set bucket encryption in the COS console. For more information, see Setting Bucket Encryption in Console Guide.
Using REST APIs
Configure bucket encryption using the following APIs:
Notes
Uploading objects to an encrypted bucket
For buckets requiring encryption, note the following:
- Configuring encryption for a bucket will not lead to encryption operations on objects that already exist in it.
- After encryption is configured for a bucket, for objects uploaded to the bucket:
- If your PUT request does not contain encryption information, the uploaded objects will be encrypted with the encryption configuration of the bucket.
- If your PUT request contains encryption information, the uploaded objects will be encrypted with the contained encryption information.
- After encryption is configured for a bucket, for inventory reports delivered to the bucket:
- If encryption is not configured for the inventory, the delivered reports will be encrypted with the encryption configuration of the bucket.
- If encryption is configured for the inventory, the delivered reports will be encrypted with the encryption configuration of the inventory.
- After encryption is configured for a bucket, the data retrieved from the origin to the bucket will be encrypted with the encryption configuration of the bucket by default.
For the destination bucket that has a cross-region replication rule configured, if you configure encryption for it, note the following:
- If the objects in the source bucket are not encrypted, the object copies in the destination bucket will be encrypted by default.
- If the objects in the source bucket are encrypted, the object copies in the destination bucket will inherit the encryption from the source bucket, and the bucket encryption settings will not be applied.
Apakah halaman ini membantu?