Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): add public-host guidance to MySQL and MSSQL source host fields (#77031)

Tom Owersbf35c6f54475
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/mssql/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/mssql/source.py
index 8de27f0fb2b8..24e8eddbde7f 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/mssql/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/mssql/source.py
@@ -194,7 +194,13 @@ class MSSQLSource(SQLSource[MSSQLSourceConfig], SSHTunnelMixin, ValidateDatabase
label="Host",
type=SourceFieldInputConfigType.TEXT,
required=True,
- placeholder="localhost",
+ placeholder="db.example.com",
+ caption=(
+ "Must be reachable from the public internet. Add PostHog's egress IP addresses to your "
+ "firewall allowlist (see the docs above) and use a public host. `localhost` and private "
+ "IPs (10.x, 172.16-31.x, 192.168.x) can't be reached. For a database that can't be "
+ "exposed publicly, enable the SSH tunnel below."
+ ),
secret=False,
),
SourceFieldInputConfig(
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/mysql/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/mysql/source.py
index 4af7467f9a3f..006a80f02701 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/mysql/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/mysql/source.py
@@ -107,7 +107,13 @@ class MySQLSource(SQLSource[MySQLSourceConfig], SSHTunnelMixin, ValidateDatabase
label="Host",
type=SourceFieldInputConfigType.TEXT,
required=True,
- placeholder="localhost",
+ placeholder="db.example.com",
+ caption=(
+ "Must be reachable from the public internet. Add PostHog's egress IP addresses to your "
+ "firewall allowlist (see the docs above) and use a public host. `localhost` and private "
+ "IPs (10.x, 172.16-31.x, 192.168.x) can't be reached. For a database that can't be "
+ "exposed publicly, enable the SSH tunnel below."
+ ),
secret=False,
),
SourceFieldInputConfig(
diff --git a/products/warehouse_sources/backend/temporal/data_imports/sources/postgres/source.py b/products/warehouse_sources/backend/temporal/data_imports/sources/postgres/source.py
index d4149fb8f06e..ee33e3a561ed 100644
--- a/products/warehouse_sources/backend/temporal/data_imports/sources/postgres/source.py
+++ b/products/warehouse_sources/backend/temporal/data_imports/sources/postgres/source.py
@@ -250,8 +250,8 @@ class PostgresSource(SQLSource[PostgresSourceConfig], SSHTunnelMixin, ValidateDa
placeholder="db.example.com",
caption=(
"Must be reachable from the public internet. Add PostHog's egress IP addresses to your "
- "firewall allowlist (see the docs above) and use a public host — `localhost` and private "
- "IPs (10.x, 172.16–31.x, 192.168.x) can't be reached. For a database that can't be "
+ "firewall allowlist (see the docs above) and use a public host. `localhost` and private "
+ "IPs (10.x, 172.16-31.x, 192.168.x) can't be reached. For a database that can't be "
"exposed publicly, enable the SSH tunnel below."
),
secret=False,