From 3af43e093dcb9870a91711768664f065bec4bcc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Mon, 11 Mar 2024 17:59:00 +0000 Subject: [PATCH] Clickhouse: hide password/secretAccessKey from ui (#1460) --- ui/app/api/peers/info/[peerName]/route.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/app/api/peers/info/[peerName]/route.ts b/ui/app/api/peers/info/[peerName]/route.ts index b643a1e048..93b0c00647 100644 --- a/ui/app/api/peers/info/[peerName]/route.ts +++ b/ui/app/api/peers/info/[peerName]/route.ts @@ -19,6 +19,7 @@ export async function GET( const s3Config = peerConfig.s3Config; const sfConfig = peerConfig.snowflakeConfig; const ehConfig = peerConfig.eventhubConfig; + const chConfig = peerConfig.clickhouseConfig; if (pgConfig) { pgConfig.password = '********'; pgConfig.transactionSnapshot = '********'; @@ -37,6 +38,10 @@ export async function GET( if (ehConfig) { ehConfig.subscriptionId = '********'; } + if (chConfig) { + chConfig.password = '********'; + chConfig.secretAccessKey = '********'; + } return NextResponse.json(peerConfig); }