Skip to content

Commit

Permalink
Clickhouse: hide password/secretAccessKey from ui (#1460)
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Mar 11, 2024
1 parent 7bb74c0 commit 3af43e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/app/api/peers/info/[peerName]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '********';
Expand All @@ -37,6 +38,10 @@ export async function GET(
if (ehConfig) {
ehConfig.subscriptionId = '********';
}
if (chConfig) {
chConfig.password = '********';
chConfig.secretAccessKey = '********';
}

return NextResponse.json(peerConfig);
}

0 comments on commit 3af43e0

Please sign in to comment.