mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	refactor(kms): share a KMS client for all KMS operations (#744)
This commit is contained in:
		| @ -313,6 +313,18 @@ pub enum VaultError { | ||||
|     UnexpectedResponseError(bytes::Bytes), | ||||
| } | ||||
|  | ||||
| #[derive(Debug, thiserror::Error)] | ||||
| pub enum KmsError { | ||||
|     #[error("Failed to base64 decode input data")] | ||||
|     Base64DecodingFailed, | ||||
|     #[error("Failed to KMS decrypt input data")] | ||||
|     DecryptionFailed, | ||||
|     #[error("Missing plaintext KMS decryption output")] | ||||
|     MissingPlaintextDecryptionOutput, | ||||
|     #[error("Failed to UTF-8 decode decryption output")] | ||||
|     Utf8DecodingFailed, | ||||
| } | ||||
|  | ||||
| #[derive(Debug, thiserror::Error)] | ||||
| pub enum ProcessTrackerError { | ||||
|     #[error("An unexpected flow was specified")] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sanchith Hegde
					Sanchith Hegde