> For the complete documentation index, see [llms.txt](https://docs-epc.gitbook.io/ncs-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-epc.gitbook.io/ncs-documents/storage/object-storage-s3/object-storage-encryption-sse.md).

# Object Storage Encryption (SSE)

NCS Object Storage รองรับ SSE 2 รูปแบบ โดยใช้ **AES-256** เป็น Encryption Algorithm

<table><thead><tr><th width="112.8515625">รูปแบบ</th><th width="368.8203125">S3 API Header</th><th>จัดการ Key โดย</th></tr></thead><tbody><tr><td><strong>SSE-KMS</strong></td><td><code>x-amz-server-side-encryption: aws:kms</code></td><td>ลูกค้า ผ่าน NCS Key Manager (Barbican)</td></tr><tr><td><strong>SSE-C</strong></td><td><code>x-amz-server-side-encryption-customer-algorithm: AES256</code></td><td>ลูกค้าส่ง Key มาเองทุก Request</td></tr></tbody></table>

### SSE-KMS

ลูกค้าสร้างและควบคุม Encryption Key เองใน NCS Key Manager โดยระบุ **Barbican Secret UUID** เป็น Key ID ใน Header `x-amz-server-side-encryption-aws-kms-key-id` รองรับการตั้งค่าระดับ Bucket (Default Encryption) เพื่อให้ทุก Object ที่ PUT เข้ามาถูกเข้ารหัสอัตโนมัติ

### SSE-C

ลูกค้าส่ง AES-256 Key มาเองใน Request Header ทุกครั้ง NCS จะไม่จัดเก็บ Key ไว้ในระบบ ลูกค้าต้องส่ง Key เดิมกลับมาทุกครั้งที่ GET, DELETE หรือ COPY Object

{% hint style="warning" %}
หากสูญหาย Key จะไม่สามารถ decrypt ข้อมูลได้อีกต่อไป
{% endhint %}

***

{% hint style="info" %}
การเปิดใช้งาน SSE จำเป็นต้องติดต่อทีมงาน NIPA Cloud เพื่อเปิดใช้งานในระดับ Project ก่อน
{% endhint %}

### ติดต่อทีมงาน

* **Support Portal**: [support.nipa.cloud](https://support.nipa.cloud)
* **Email**: <support@nipa.cloud>
