tencent cloud

Cloud Object Storage

Release Notes and Announcements
Release Notes
Announcements
Product Introduction
Overview
Features
Use Cases
Strengths
Concepts
Regions and Access Endpoints
Specifications and Limits
Service Regions and Service Providers
Billing
Billing Overview
Billing Method
Billable Items
Free Tier
Billing Examples
Viewing and Downloading Bill
Payment Overdue
FAQs
Getting Started
Console
Getting Started with COSBrowser
User Guide
Creating Request
Bucket
Object
Data Management
Batch Operation
Global Acceleration
Monitoring and Alarms
Operations Center
Data Processing
Content Moderation
Smart Toolbox
Data Processing Workflow
Application Integration
User Tools
Tool Overview
Installation and Configuration of Environment
COSBrowser
COSCLI (Beta)
COSCMD
COS Migration
FTP Server
Hadoop
COSDistCp
HDFS TO COS
GooseFS-Lite
Online Tools
Diagnostic Tool
Use Cases
Overview
Access Control and Permission Management
Performance Optimization
Accessing COS with AWS S3 SDK
Data Disaster Recovery and Backup
Domain Name Management Practice
Image Processing
Audio/Video Practices
Workflow
Direct Data Upload
Content Moderation
Data Security
Data Verification
Big Data Practice
COS Cost Optimization Solutions
Using COS in the Third-party Applications
Migration Guide
Migrating Local Data to COS
Migrating Data from Third-Party Cloud Storage Service to COS
Migrating Data from URL to COS
Migrating Data Within COS
Migrating Data Between HDFS and COS
Data Lake Storage
Cloud Native Datalake Storage
Metadata Accelerator
GooseFS
Data Processing
Data Processing Overview
Image Processing
Media Processing
Content Moderation
File Processing Service
File Preview
Troubleshooting
Obtaining RequestId
Slow Upload over Public Network
403 Error for COS Access
Resource Access Error
POST Object Common Exceptions
API Documentation
Introduction
Common Request Headers
Common Response Headers
Error Codes
Request Signature
Action List
Service APIs
Bucket APIs
Object APIs
Batch Operation APIs
Data Processing APIs
Job and Workflow
Content Moderation APIs
Cloud Antivirus API
SDK Documentation
SDK Overview
Preparations
Android SDK
C SDK
C++ SDK
.NET(C#) SDK
Flutter SDK
Go SDK
iOS SDK
Java SDK
JavaScript SDK
Node.js SDK
PHP SDK
Python SDK
React Native SDK
Mini Program SDK
Error Codes
Harmony SDK
Endpoint SDK Quality Optimization
Security and Compliance
Data Disaster Recovery
Data Security
Cloud Access Management
FAQs
Popular Questions
General
Billing
Domain Name Compliance Issues
Bucket Configuration
Domain Names and CDN
Object Operations
Logging and Monitoring
Permission Management
Data Processing
Data Security
Pre-signed URL Issues
SDKs
Tools
APIs
Agreements
Service Level Agreement
Privacy Policy
Data Processing And Security Agreement
Contact Us
Glossary

Bucket Encryption Overview

PDF
Focus Mode
Font Size
Last updated: 2025-09-26 14:28:32

Feature Overview

By setting bucket encryption, you can encrypt all new objects uploaded to a bucket with the specified encryption method by default.
Currently, the supported encryption methods for buckets are:
SSE-COS Encryption: Server-side encryption managed by Cloud Object Storage (COS).
SSE-KMS Encryption: Server-side encryption using a key managed by KMS.
For more information on server-side encryption, see Server-Side Encryption Overview.

How to Use

Using COS console

Setting encryption during bucket creation

You may add bucket encryption when creating a bucket, as shown below. For the description of relevant configuration items, please refer to Creating a Bucket.


Setting encryption for existing bucket

If you did not set encryption when creating a bucket, follow the steps below to set it subsequently.
1. On the Bucket List page, click the name of the target bucket to enter the bucket configuration page.
2. Click Security Management > Server-Side Encryption on the left sidebar.
3. In the Server-Side Encryption configuration item, toggle the feature on.
4. Select the specified encryption method and click Save.
Currently, the supported encryption methods for the bucket are:
SSE-COS encryption: Server-side encryption managed by Cloud Object Storage (COS) with keys hosted by the service.
SSE-KMS encryption: Server-side encryption using keys managed by KMS.
Note:
For an introduction to server-side encryption and supported regions, please refer to the Server-Side Encryption Overview.

Using the REST API

You can configure bucket encryption by using the following APIs:

Supports and Limits

Uploading object to 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 based on the encryption configuration of the bucket.
If your PUT request contains encryption information, the uploaded objects will be encrypted based on 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 based on the encryption configuration of the bucket.
If encryption is configured for the inventory, the delivered reports will be encrypted based on 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 based on the encryption configuration of the bucket by default.

Encrypting a bucket that has a cross-region replication rule configured

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.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback