全部產品
Search
文件中心

Object Storage Service:0005-00000228

更新時間:Apr 18, 2025

問題描述

您在非BYOK情境下使用了要求標頭:x-oss-server-side-encryption-context,導致請求報錯。

問題原因

您在非BYOK情境下使用了要求標頭:x-oss-server-side-encryption-context,該要求標頭僅適用於 BYOK情境。如果您在非 BYOK 情境下使用了該要求標頭,OSS 會拒絕請求並返回錯誤。

問題樣本

您為bucket 配置了 KMS 加密方式,在上傳object時:

  • 未攜帶x-oss-server-side-encryption-key-id要求標頭,因此是非BYOK情境。

  • 同時攜帶了x-oss-server-side-encryption-context要求標頭。

由於 x-oss-server-side-encryption-context 不適用於非 BYOK 情境,因此會觸發報錯。

解決方案

請在BYOK情境下使用x-oss-server-side-encryption-context要求標頭。