mirror of
https://github.com/rustfs/rustfs.git
synced 2026-07-26 16:28:15 +00:00
Update crates/kms/src/backends/vault_transit.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: 唐小鸭 <tangtang1251@qq.com>
This commit is contained in:
@@ -535,10 +535,11 @@ impl KmsBackend for VaultTransitKmsBackend {
|
||||
}
|
||||
|
||||
async fn decrypt(&self, request: DecryptRequest) -> Result<DecryptResponse> {
|
||||
let envelope = DataKeyEnvelope::deserialize(&request.ciphertext_blob)?;
|
||||
let plaintext = self.client.decrypt(&request, None).await?;
|
||||
Ok(DecryptResponse {
|
||||
plaintext,
|
||||
key_id: "vault-transit".to_string(),
|
||||
key_id: envelope.master_key_id,
|
||||
encryption_algorithm: Some("vault-transit".to_string()),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user