Azure 事件中樞 Dedicated 支援機密運算以保護您正在使用的事件資料。 機密運算使用基於硬體的可信執行環境(TEE)來提供更強的資料保護,防止事件在處理過程中被未經授權存取。
當你在事件中心專用命名空間啟用機密運算時,你的資料除了在靜態與傳輸中加密外,還能享有硬體層級的隔離。 此能力協助處理敏感或受管制資料的組織,符合嚴格的安全與合規要求。
Benefits
Azure 事件中樞 的機密運算提供以下優勢:
- 無需修改程式碼:在命名空間層級啟用機密運算,無需修改應用程式或事件處理模式。
- 深度防禦:結合現有的事件中心安全功能,如 客戶管理的金鑰、 私有端點及 受管理身份。
- 事件串流保護:您的活動中心在事件處理過程中享有硬體層級隔離。
區域可用性
Azure 事件中樞 的機密運算僅在部分地區提供。
| 區域 |
|---|
| 南韓中部 |
| 阿拉伯聯合大公國北部 |
局限性
以下限制適用於 Azure 事件中樞 的機密運算:
- 機密運算僅在 專用層級提供。
- 您必須在命名空間建立時啟用機密運算。 你無法在現有的命名空間啟用它。
透過 Azure 入口網站啟用機密運算
前往 Azure portal,開啟 Event Hubs 命名空間建立頁面。
選擇 專用 定價層級。
選擇 支援的區域 作為位置。
對於 機密運算,請選擇 啟用。
請填寫剩餘的命名空間配置欄位。
選擇 Review + 建立,然後選擇 建立 以啟用機密運算來部署命名空間。
透過使用範本來啟用機密運算
你可以透過在部署範本中包含該 platformCapabilities 屬性,以程式方式啟用機密運算。
步驟 1:建立具備機密運算功能的專用叢集
以下 Bicep 檔案建立一個啟用機密運算的事件中心專用叢集:
@description('Name of the Event Hubs Dedicated cluster')
param clusterName string
@description('Location for the cluster. Must be a region that supports confidential computing.')
@allowed([
'koreacentral'
'uaenorth'
])
param location string = 'uaenorth'
@description('Capacity units for the Dedicated cluster')
@minValue(1)
param capacity int = 1
resource eventHubCluster 'Microsoft.EventHub/clusters@2025-05-01-preview' = {
name: clusterName
location: location
sku: {
name: 'Dedicated'
capacity: capacity
}
properties: {
supportsScaling: true
platformCapabilities: {
confidentialCompute: {
mode: 'Enabled'
}
}
}
}
output clusterArmId string = eventHubCluster.id
步驟 2:在專用叢集中建立命名空間
叢集建立後,透過參考叢集的資源 ID 在其中建立一個事件中心命名空間。
@description('Name of the Event Hubs namespace')
param namespaceName string
@description('Location for the namespace. Must match the cluster location.')
param location string
@description('Resource ID of the Dedicated cluster')
param clusterArmId string
resource eventHubNamespace 'Microsoft.EventHub/namespaces@2025-05-01-preview' = {
name: namespaceName
location: location
sku: {
name: 'Standard'
tier: 'Standard'
capacity: 1
}
properties: {
clusterArmId: clusterArmId
}
}
結合機密運算與客戶管理的金鑰
為了最大程度的資料保護,建議結合機密運算與由 Azure Key Vault Managed HSM 支援的客戶管理金鑰。 此組合確保:
- 您的資料在使用時受到機密運算保護。
- 你的加密金鑰會儲存在經過驗證的硬體安全模組中。
- 你完全掌控你的加密金鑰。
使用 Azure 原則 來強制執行機密運算
建立 Azure 原則 定義,強制你組織內所有 Event Hubs 專用叢集都啟用機密運算。 此方法確保 Azure 環境的安全配置一致。
以下政策定義拒絕或審核未啟用機密運算的專用叢集的建立:
{
"mode": "All",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Deny or Audit"
},
"allowedValues": [
"Deny",
"Audit"
],
"defaultValue": "Deny"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.EventHub/clusters"
},
{
"not": {
"field": "Microsoft.EventHub/clusters/platformCapabilities.confidentialCompute.mode",
"equals": "Enabled"
}
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
}
}
使用此政策時,請在 Azure 原則 中建立自訂政策定義,並將其指派到適當的範圍,例如管理群組、訂閱或資源群組。
Note
當機密運算與客戶管理的金鑰結合時,請使用使用者指派的託管身份。 此要求存在是因為身份必須先被授權存取受管理的 HSM 才能建立命名空間。 系統指派的身份只有在命名空間建立後才會存在。