Azure Key Vault Keys SDK for Rust
使用 Rust 管理 Azure Key Vault 金鑰
需要從 Rust 應用程式安全地管理 Azure Key Vault 中的加密金鑰。此技能提供全面的指導,說明如何使用 Azure Key Vault Keys SDK 來建立、管理和執行金鑰的加密作業。
下載技能 ZIP
在 Claude 中上傳
前往 設定 → 功能 → 技能 → 上傳技能
開啟並開始使用
測試它
正在使用「Azure Key Vault Keys SDK for Rust」。 如何從 Rust 驗證 Azure Key Vault?
預期結果:
使用 azure_identity crate 搭配 DeveloperToolsCredential 進行開發,或使用 ManagedIdentityCredential 進行生產環境。使用您的 Vault URL 和認證建立 KeyClient。認證會自動處理權杖取得。
正在使用「Azure Key Vault Keys SDK for Rust」。 我應該何時使用 HSM 金鑰與一般金鑰?
預期結果:
對於合規需求、敏感資料加密,或金鑰绝不能離開硬體安全模組的情況,請使用 HSM 金鑰 (RSA-HSM、EC-HSM)。一般金鑰適用於 Azure 受管 HSM 提供足夠安全性的一般用途加密作業。
安全審計
安全This is a prompt-only skill containing only documentation (SKILL.md) with no executable code. Static analysis scanned 0 files and detected 0 security issues. The skill provides safe guidance for using the Azure Key Vault Keys SDK in Rust for cryptographic key management.
品質評分
你能建構什麼
雲端應用程式的安全金鑰管理
將加密金鑰安全地儲存在 Azure Key Vault 中,而不是放在應用程式程式碼中
HSM 保護的金鑰作業
使用硬體安全模組保護的金鑰以符合規範和高安全性需求
無需金鑰揭露的加密作業
執行簽署和加密作業,無需將私密金鑰揭露給應用程式
試試這些提示
如何使用 Rust SDK 在 Azure Key Vault 中建立新的 RSA 金鑰?
請展示如何使用 Azure Key Vault Rust SDK 建立用於數位簽章的橢圓曲線金鑰。
使用 Rust 在 Azure Key Vault 中備份和還原金鑰的流程是什麼?
在生產環境 Rust 應用程式中使用 Azure Key Vault 金鑰的最佳實務是什麼?
最佳實務
- 在生產環境中使用 ManagedIdentityCredential 而不是硬編碼認證
- 在 Key Vault 上啟用軟刪除以復原意外刪除的金鑰
- 定期建立新金鑰版本以使用金鑰輪替
避免
- 將金鑰材料儲存在程式碼或環境變數中,而不是 Key Vault
- 在生產環境中使用開發人員認證
- 在生產 Key Vault 上停用軟刪除