File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ const getConnection: RequestHandler =
69
69
// prettier-ignore-next-line
70
70
async ( req , res , next ) => {
71
71
try {
72
+ if ( req . headers [ 'authorization' ] === 'Basic Og==' ) {
73
+ // this means username & password === 0, which indicates we must be
74
+ // doing some other authorization mechanism (probably connection_id)
75
+ delete req . headers [ 'authorization' ] ;
76
+ }
72
77
const { teamId } = getNonNullUserWithTeam ( req ) ;
73
78
const connection_id = req . headers [ 'x-hyperdx-connection-id' ] ! ; // ! because zod already validated
74
79
delete req . headers [ 'x-hyperdx-connection-id' ] ;
Original file line number Diff line number Diff line change @@ -455,6 +455,8 @@ export class ClickhouseClient {
455
455
wait_end_of_query : 0 ,
456
456
cancel_http_readonly_queries_on_client_close : 1 ,
457
457
} ,
458
+ username : '' ,
459
+ password : '' ,
458
460
compression : {
459
461
response : true ,
460
462
} ,
You can’t perform that action at this time.
0 commit comments