mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-11 23:56:53 +00:00
fix(kms): restore configure and decrypt compatibility
This commit is contained in:
@@ -535,7 +535,7 @@ impl KmsBackend for VaultTransitKmsBackend {
|
||||
}
|
||||
|
||||
async fn decrypt(&self, request: DecryptRequest) -> Result<DecryptResponse> {
|
||||
let envelope = DataKeyEnvelope::deserialize(&request.ciphertext_blob)?;
|
||||
let envelope: DataKeyEnvelope = serde_json::from_slice(&request.ciphertext)?;
|
||||
let plaintext = self.client.decrypt(&request, None).await?;
|
||||
Ok(DecryptResponse {
|
||||
plaintext,
|
||||
|
||||
Reference in New Issue
Block a user