refactor(drainer, router): KMS decrypt database password when kms feature is enabled (#733)

This commit is contained in:
Sanchith Hegde
2023-03-30 04:26:19 +05:30
committed by GitHub
parent a733eafbbe
commit 9d6e4ee37d
11 changed files with 149 additions and 50 deletions

View File

@ -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 {