Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(kms): fix kms decryption for jwe keys (#1872)

Sampras Lopesddc0302298ae
diff --git a/crates/router/src/configs/kms.rs b/crates/router/src/configs/kms.rs
index 668cf15b4d..17ff6069d4 100644
--- a/crates/router/src/configs/kms.rs
+++ b/crates/router/src/configs/kms.rs
@@ -13,9 +13,9 @@ impl KmsDecrypt for settings::Jwekey {
kms_client: &KmsClient,
) -> CustomResult<Self::Output, KmsError> {
(
+ self.locker_encryption_key1,
self.locker_encryption_key2,
self.locker_decryption_key1,
- self.locker_encryption_key1,
self.locker_decryption_key2,
self.vault_encryption_key,
self.vault_private_key,