mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(drainer, router): KMS decrypt database password when kms feature is enabled (#733)
This commit is contained in:
@ -109,9 +109,21 @@ impl Store {
|
||||
});
|
||||
|
||||
Self {
|
||||
master_pool: diesel_make_pg_pool(&config.master_database, test_transaction).await,
|
||||
master_pool: diesel_make_pg_pool(
|
||||
&config.master_database,
|
||||
test_transaction,
|
||||
#[cfg(feature = "kms")]
|
||||
&config.kms,
|
||||
)
|
||||
.await,
|
||||
#[cfg(feature = "olap")]
|
||||
replica_pool: diesel_make_pg_pool(&config.replica_database, test_transaction).await,
|
||||
replica_pool: diesel_make_pg_pool(
|
||||
&config.replica_database,
|
||||
test_transaction,
|
||||
#[cfg(feature = "kms")]
|
||||
&config.kms,
|
||||
)
|
||||
.await,
|
||||
redis_conn,
|
||||
#[cfg(feature = "kv_store")]
|
||||
config: StoreConfig {
|
||||
|
||||
Reference in New Issue
Block a user