Skip to main content

cos

Tencent Cloud Object Storage

Config#

Servicer#

NameRequiredComments
credentialYonly support hmac protocol

Storager#

NameRequiredComments
nameYbucket name
work_dirNwork dir
locationYlocation

Example#

Init servicer

credential: hmac:<access_key>:<secret_key>

Init storager

credential: hmac:<access_key>:<secret_key>
name: <bucket_name>
work_dir: /<work_dir>
location: <bucket_location>

Implementation#

This service implements following interfaces:

Pairs#

Server-Side Encryption (SSE)#

COS supports three options for Server-Side Encryption:

  • Server-Side Encryption with COS-Managed Keys (SSE-COS)
  • Server-Side Encryption with Customer Master Keys (CMKs) Stored in Key Management Service (SSE-KMS)
  • Server-Side Encryption with Customer-Provided Keys (SSE-C)

Refer to https://cloud.tencent.com/document/product/436/18145 for more details.

SSE-COS#

NameComments
server-side-encryptionthe encryption algorithm. It should be AES256 .
Supported Operations#

SSE-KMS#

NameComments
server-side-encryptionthe server-side encryption algorithm used. It should be cos/kms .
server-side-encryption-cos-kms-key-idspecify the ID of the customer managed CMK used to protect the data
server-side-encryption-contextan optional set of key-value pairs that can contain additional contextual information about the data. The value of this header is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.
Supported Operations#

SSE-C#

Server-Side Encryption with Customer-Provided Keys

NameComments
server-side-encryption-customer-algorithmUse this header to specify the encryption algorithm. The header value must be "AES256".
server-side-encryption-customer-keya 32-byte customer-provided AES256 key
Supported Operations#
Last updated on by Xuanwo