Skip to content

Commit ee7c6c9

Browse files
committed
skip tenant checks for balancerd sni path
1 parent c7d381d commit ee7c6c9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/balancerd/src/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,16 +1319,17 @@ impl Resolver {
13191319
}),
13201320
) => {
13211321
let sni_addr = sni_addr_template.replace("{}", servername);
1322-
let tenant = stub_resolver.tenant(&sni_addr).await;
1322+
// let tenant = stub_resolver.tenant(&sni_addr).await;
13231323
let sni_addr = format!("{sni_addr}:{port}");
13241324
let addr = lookup(&sni_addr).await?;
1325-
if tenant.is_some() {
1326-
debug!("SNI header found for tenant {:?}", tenant);
1327-
}
1325+
// if tenant.is_some() {
1326+
// debug!("SNI header found for tenant {:?}", tenant);
1327+
// }
13281328
ResolvedAddr {
13291329
addr,
13301330
password: None,
1331-
tenant,
1331+
tenant: None,
1332+
// tenant,
13321333
}
13331334
}
13341335
_ => {

test/balancerd/mzcompose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def app_password(email: str) -> str:
102102
"--https-sni-resolver-template=materialized:6876",
103103
# This will be turned off until we can resolve perf issues
104104
# https://github.com/MaterializeInc/database-issues/issues/9700
105-
# "--pgwire-sni-resolver-template=materialized:6875",
105+
"--pgwire-sni-resolver-template=materialized:6875",
106106
"--tls-key=/secrets/balancerd.key",
107107
"--tls-cert=/secrets/balancerd.crt",
108108
"--internal-tls",

0 commit comments

Comments
 (0)