mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
fix: kms decryption of redis_temp_locker_encryption_key (#2650)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
949937e364
commit
5a6601fad4
@ -120,6 +120,14 @@ pub enum KmsError {
|
||||
/// The KMS client has not been initialized.
|
||||
#[error("The KMS client has not been initialized")]
|
||||
KmsClientNotInitialized,
|
||||
|
||||
/// The KMS client has not been initialized.
|
||||
#[error("Hex decode failed")]
|
||||
HexDecodeFailed,
|
||||
|
||||
/// The KMS client has not been initialized.
|
||||
#[error("Utf8 decode failed")]
|
||||
Utf8DecodeFailed,
|
||||
}
|
||||
|
||||
impl KmsConfig {
|
||||
@ -140,7 +148,7 @@ impl KmsConfig {
|
||||
/// A wrapper around a KMS value that can be decrypted.
|
||||
#[derive(Clone, Debug, Default, serde::Deserialize, Eq, PartialEq)]
|
||||
#[serde(transparent)]
|
||||
pub struct KmsValue(Secret<String>);
|
||||
pub struct KmsValue(pub Secret<String>);
|
||||
|
||||
impl common_utils::ext_traits::ConfigExt for KmsValue {
|
||||
fn is_empty_after_trim(&self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user