{"record":{"id":"2f3011f6eceda723","repo":"juspay/hyperswitch","slug":"failed-to-decrypt-replica-database-configuration","errorCode":null,"errorMessage":"Failed to decrypt replica database configuration","messagePattern":"Failed to decrypt replica database configuration","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/router/src/configs/secrets_transformers.rs","lineNumber":495,"sourceCode":"                .expect(\"Failed to decrypt global database configuration\"),\n        )\n    } else {\n        None\n    };\n\n    #[cfg(feature = \"olap\")]\n    #[allow(clippy::expect_used)]\n    let analytics =\n        analytics::AnalyticsConfig::convert_to_raw_secret(conf.analytics, secret_management_client)\n            .await\n            .expect(\"Failed to decrypt analytics configuration\");\n\n    #[cfg(feature = \"olap\")]\n    #[allow(clippy::expect_used)]\n    let replica_database =\n        settings::Database::convert_to_raw_secret(conf.replica_database, secret_management_client)\n            .await\n            .expect(\"Failed to decrypt replica database configuration\");\n\n    #[allow(clippy::expect_used)]\n    let secrets = settings::Secrets::convert_to_raw_secret(conf.secrets, secret_management_client)\n        .await\n        .expect(\"Failed to decrypt secrets\");\n\n    #[allow(clippy::expect_used)]\n    let forex_api =\n        settings::ForexApi::convert_to_raw_secret(conf.forex_api, secret_management_client)\n            .await\n            .expect(\"Failed to decrypt forex api configs\");\n\n    #[allow(clippy::expect_used)]\n    let jwekey = settings::Jwekey::convert_to_raw_secret(conf.jwekey, secret_management_client)\n        .await\n        .expect(\"Failed to decrypt jwekey configs\");\n\n    #[allow(clippy::expect_used)]","sourceCodeStart":477,"sourceCodeEnd":513,"githubUrl":"https://github.com/juspay/hyperswitch/blob/3093f22cc46b46415cca152ea0b234277b251ecd/crates/router/src/configs/secrets_transformers.rs#L477-L513","documentation":"Error \"Failed to decrypt replica database configuration\" thrown in juspay/hyperswitch.","triggerScenarios":"Thrown at crates/router/src/configs/secrets_transformers.rs:517 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the master key/KMS configuration used to decrypt the replica database credentials"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3093f22cc46b46415cca152ea0b234277b251ecd","analyzedAt":"2026-08-19T10:36:43.745Z","contentChangedAt":"2026-08-19T10:36:43.745Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}