juspay/hyperswitch · error
Failed to decrypt replica database configuration
Error message
Failed to decrypt replica database configuration
What it means
Error "Failed to decrypt replica database configuration" thrown in juspay/hyperswitch.
Source
Thrown at crates/router/src/configs/secrets_transformers.rs:495
.expect("Failed to decrypt global database configuration"),
)
} else {
None
};
#[cfg(feature = "olap")]
#[allow(clippy::expect_used)]
let analytics =
analytics::AnalyticsConfig::convert_to_raw_secret(conf.analytics, secret_management_client)
.await
.expect("Failed to decrypt analytics configuration");
#[cfg(feature = "olap")]
#[allow(clippy::expect_used)]
let replica_database =
settings::Database::convert_to_raw_secret(conf.replica_database, secret_management_client)
.await
.expect("Failed to decrypt replica database configuration");
#[allow(clippy::expect_used)]
let secrets = settings::Secrets::convert_to_raw_secret(conf.secrets, secret_management_client)
.await
.expect("Failed to decrypt secrets");
#[allow(clippy::expect_used)]
let forex_api =
settings::ForexApi::convert_to_raw_secret(conf.forex_api, secret_management_client)
.await
.expect("Failed to decrypt forex api configs");
#[allow(clippy::expect_used)]
let jwekey = settings::Jwekey::convert_to_raw_secret(conf.jwekey, secret_management_client)
.await
.expect("Failed to decrypt jwekey configs");
#[allow(clippy::expect_used)]View on GitHub (pinned to 3093f22cc4)
Solutions
- Verify the master key/KMS configuration used to decrypt the replica database credentials
When it happens
Trigger: Thrown at crates/router/src/configs/secrets_transformers.rs:517 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of juspay/hyperswitch@3093f22cc4 (2026-08-19).
Data as JSON: /api/errors/2f3011f6eceda723.
Report an issue: GitHub.