Skip to content

Commit 4fc4c77

Browse files
fix(api): load connection passwords in the usage stats job
The password field is select: false, so the job built ClickHouse clients with no password and every run failed auth on password-protected connections. Fixes #3612
1 parent 6310023 commit 4fc4c77

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@hyperdx/api': patch
3+
---
4+
5+
fix: usage stats job no longer fails ClickHouse auth on password-protected
6+
connections

‎packages/api/src/tasks/usageStats.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function extractTableNames(source: SourceDocument): string[] {
151151

152152
const getClickhouseTableSize = async () => {
153153
// fetch mongo data
154-
const connections = await Connection.find();
154+
const connections = await Connection.find().select('+password');
155155
const sources = await Source.find();
156156

157157
// build map for each db instance

0 commit comments

Comments
 (0)