---
title: 使用客戶管理金鑰
url: https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/customer-managed-keys
description: 使用您在自己的金鑰管理服務中持有的金鑰來加密您的資料。
---

<Warning>
  Enterprise Frontier Safeguards 目前處於測試版階段。此功能依據您與 Anthropic 之間的協議提供，例如僅限內部使用條款、[商業服務條款](https://www.anthropic.com/legal/commercial-terms)和[服務特定條款](https://www.anthropic.com/legal/service-specific-terms)。在測試版期間，設定和行為可能會有所變更。
</Warning>

使用「customer-managed key」（客戶管理金鑰，CMEK）時，Anthropic 會使用您在自己的金鑰管理服務中持有的金鑰來加密您的資料：AWS KMS、Google Cloud KMS 或 Azure Key Vault。[停用金鑰](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/customer-managed-keys#revoke-your-key)後約一小時內，Anthropic 將無法再解密您的金鑰所保護的資料。

您需要在 Claude Console 中將金鑰附加到每個使用該金鑰的[工作區](https://platform.claude.com/docs/zh-TW/manage-claude/workspaces)，並透過 [Enterprise Frontier Safeguards](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/overview)（EFS）或 [Enterprise Data Controls](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/overview#enterprise-data-controls) 取得存取權。

## 附加金鑰之前

您需要具備組織管理員角色才能附加金鑰。

您的組織也需要取得客戶管理金鑰的存取權。若要透過 EFS 取得存取權，請依照[在 Claude Platform 上設定 Enterprise Frontier Safeguards](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/setup-console#get-access) 中的「取得存取權」一節操作。若要在不使用 EFS 的情況下取得存取權，請依照[誰可以使用 CMEK](https://platform.claude.com/docs/zh-TW/manage-claude/cmek#availability) 中的說明，聯絡您的 Anthropic 客戶團隊。

附加您的第一把金鑰會為您的整個組織開啟 [Access Transparency](https://platform.claude.com/docs/zh-TW/manage-claude/access-transparency#access-transparency-with-customer-managed-keys)（存取透明度），除非該功能已經開啟。您無法將其關閉。開啟 Access Transparency 後，您的組織將無法[直接從瀏覽器呼叫 Claude API](https://platform.claude.com/docs/zh-TW/manage-claude/authentication#browser-based-applications)。

金鑰會關閉部分功能，而且[附加金鑰是永久的](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/customer-managed-keys#attach-a-customer-managed-key)，因此 Anthropic 建議您先閱讀客戶管理的加密金鑰指南中的以下部分：

* [使用金鑰會有哪些變化](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-coverage-claude-platform#turned-off-or-changed)：金鑰會關閉的功能。
* [金鑰涵蓋的範圍](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-coverage-claude-platform#encrypted-with-your-key)：您的金鑰會加密哪些內容。
* [撤銷金鑰的意義](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-key-lifecycle#what-each-action-does)：撤銷或停用金鑰會產生什麼影響。刪除金鑰後，您無法復原。

### 如果您使用客戶自有儲存空間

同時使用客戶自有儲存空間和客戶管理金鑰的工作區會有兩把不同的金鑰：

| 金鑰 | 建立位置 | 用途 |
| ----- | ----- | ----- |
| 您的儲存貯體金鑰 | 在您[建立儲存貯體和角色](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/external-storage#create-the-bucket-and-roles)時，與您的儲存貯體一起建立 | 加密您的儲存貯體。 |
| 您的客戶管理金鑰 | 在您的金鑰管理服務中，依照本頁稍後的指南建立 | 加密您的資料。這是您附加到工作區的金鑰。 |

請勿對兩者使用同一把金鑰。哪些金鑰會加密您儲存貯體中的內容，取決於資料類型：

* **密封的安全資料：** Anthropic 會先以您的客戶管理金鑰加密內容，再將其寫入您的儲存貯體，然後您的儲存服務會以您的儲存貯體金鑰再次加密所儲存的物件。一旦您的客戶管理金鑰停止運作，無論您的儲存貯體金鑰狀態如何，Anthropic 都將無法解密該儲存內容。
* **逐字記錄和 Safety Cases：** 只有您的儲存貯體金鑰會加密這些內容。

## 附加客戶管理金鑰

<Warning>
  附加金鑰是永久的。您無法分離該金鑰，也無法將其換成其他金鑰。支援在同一金鑰內輪替金鑰材料。在 Claude Platform 上，該工作區無法切換至 **Legacy ZDR**，且您需建立新的工作區才能使用其他金鑰。
</Warning>

<Steps>
  <Step title="建立並註冊您的金鑰">
    請依照您所用金鑰管理服務的指南建立金鑰並向 Anthropic 註冊，然後回到此處附加金鑰。

    * [AWS KMS](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-aws-kms)
    * [Google Cloud KMS](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-google-cloud-kms)
    * [Azure Key Vault](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-azure-key-vault)
  </Step>

  <Step title="附加您的金鑰">
    請在工作區開始處理流量之前附加您的金鑰，因為在已處理流量的工作區上，金鑰最多可能需要一天才會生效。

    如果工作區將使用客戶自有儲存空間，請先在 **Storage destinations** 下為您的組織[連接儲存目的地](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/external-storage)。如果工作區使用 EFS，請依照[在 Claude Platform 上設定 Enterprise Frontier Safeguards](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/setup-console)中的步驟操作。

    若要附加您的金鑰，請對每個將使用該金鑰的工作區執行以下步驟：

    1. 前往 Claude Console 中的[資料保留](https://platform.claude.com/settings/privacy)頁面，並在頁面頂端選取工作區。
    2. 在**加密金鑰**下選取您的金鑰，然後儲存。

    如果工作區使用 Anthropic 管理的儲存空間，則無需執行其他操作。

    若要在 Claude Platform on AWS 上設定金鑰，請依照[在 Claude Platform on AWS 上設定 CMEK](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-claude-platform-on-aws)中的步驟操作。

    若要在 Claude Models on Google Cloud (Anthropic managed) 上設定金鑰，請依照[新增雲端資源](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/setup-claude-models-on-google-cloud-anthropic-managed#add-cloud-resources)中適用於您自有金鑰的步驟操作。您需要具備 `roles/claude.admin`，而非組織管理員角色。使用金鑰不需要儲存貯體。
  </Step>
</Steps>

## 撤銷您的金鑰

在 Claude Platform 上，一旦您的金鑰[生效](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-how-it-works#when-your-key-takes-effect)，您撤銷或停用金鑰後最多一小時內，對該工作區的請求就會開始失敗。停用金鑰後約一小時內，Anthropic 將無法再解密您的金鑰所保護的資料。有一小部分記錄[不受您的金鑰保護](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-data-retention#limited-preservation-outside-your-key)。撤銷或停用您的金鑰不會刪除資料，也無法撤回已經發生的讀取。

在您撤銷金鑰之前，請先閱讀[撤銷的意義以及哪些操作無法復原](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-key-lifecycle#what-each-action-does)。關於您的請求會受到什麼影響以及會通知誰，請參閱[如果您的金鑰停止運作](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/customer-managed-keys#if-your-key-stops-working)。

## 如果您的金鑰停止運作

下表說明在 Claude Platform 上，當工作區無法使用您的金鑰時會發生什麼情況，以及您應如何處理。

| 事件 | 請求 | 您的資料 | 通知對象 | 處理方式 |
| ----- | ----- | ----- | ----- | ----- |
| 您的金鑰遭撤銷或停用 | 如果您的金鑰已生效，請求最多一小時內仍可能繼續成功。之後，對該工作區的請求會失敗。 | 一旦您的金鑰停止運作，在您重新啟用金鑰或恢復 Anthropic 對金鑰的存取權之前，Anthropic 無法解密您的金鑰所保護的內容。刪除金鑰後，您無法復原。 | Anthropic 通常會以電子郵件通知您組織中可管理加密金鑰的成員。在 Claude Models on Google Cloud (Anthropic managed) 和 Claude Platform on AWS 上，Anthropic 則通常會以電子郵件通知完成您組織設定的人員。 | 重新啟用您的金鑰，或恢復 Anthropic 對金鑰的存取權。在此期間失敗的請求不會重試，且保留期限會持續計算。請參閱[重新啟用金鑰後會恢復哪些內容](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-key-lifecycle#restore-access)。 |
| 無法連線到您的金鑰管理服務 | 最多一小時內仍可能繼續成功。之後，對該工作區的請求會失敗。在 Messages API 上，這些請求會傳回[代碼為 `cmek_key_unreachable` 的 503 錯誤](https://platform.claude.com/docs/zh-TW/manage-claude/cmek-key-lifecycle#unreachable-key)，您可以重試。Message Batches API 會替您重試，直到您的金鑰可用或批次到期為止。 | 已儲存的內容維持不變。一旦您的金鑰停止運作，Anthropic 將無法解密您的金鑰所保護的內容，直到您的金鑰管理服務恢復連線為止。Anthropic 在中斷期間無法加密的記錄不會被保留。 | 不通知任何人。 | 恢復對您金鑰管理服務的存取。 |

如果該工作區也使用客戶自有儲存空間，請參閱[如果您的儲存貯體停止運作](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/external-storage-manage#if-your-bucket-stops-working)。

## 輪替或更換您的金鑰

您可以在同一把金鑰內輪替金鑰材料，而不需要在 Claude Console 中變更任何設定。

在 Claude Platform 上，若要使用不同的金鑰，請以新金鑰建立新的工作區並將您的流量移至該工作區，因為[附加金鑰是永久的](https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/customer-managed-keys#attach-a-customer-managed-key)。

## 後續步驟

<CardGroup cols={2}>
  <Card title="在 Claude Platform 上設定 Enterprise Frontier Safeguards" icon="settings" href="https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/setup-console">
    對於使用 EFS 的工作區，請附加您的金鑰，然後檢查您的設定。
  </Card>

  <Card title="設定客戶自有儲存空間" icon="database" href="https://platform.claude.com/docs/zh-TW/manage-claude/enterprise-frontier-safeguards/external-storage">
    將您的密封的安全資料保存在您自己雲端帳戶中的儲存空間。
  </Card>

  <Card title="客戶管理的加密金鑰" icon="book" href="https://platform.claude.com/docs/zh-TW/manage-claude/cmek">
    金鑰涵蓋的範圍、會關閉的功能，以及撤銷金鑰的意義。
  </Card>
</CardGroup>
