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.

chore(batch-exports): require an integration on every snowflake write (#101038)

Ross21bfa65ca5b4
diff --git a/products/batch_exports/backend/api/batch_export.py b/products/batch_exports/backend/api/batch_export.py
index 9dec48e96ed3..492d7cf16109 100644
--- a/products/batch_exports/backend/api/batch_export.py
+++ b/products/batch_exports/backend/api/batch_export.py
@@ -40,6 +40,8 @@ from posthog.models.integration import (
DatabricksIntegration,
DatabricksIntegrationError,
Integration,
+ SnowflakeIntegration,
+ SnowflakeIntegrationError,
)
from posthog.security.url_validation import (
INVALID_HOST_MESSAGE,
@@ -479,12 +481,17 @@ class S3CompatibleDestinationConfigSerializer(S3FamilyDestinationConfigSerialize
)
+SNOWFLAKE_CREDENTIAL_FIELDS = frozenset(
+ {"account", "user", "authentication_type", "password", "private_key", "private_key_passphrase"}
+)
+
+
class SnowflakeDestinationConfigSerializer(serializers.Serializer):
"""Typed configuration for a Snowflake batch-export destination.
- Account, user, authentication type and credentials may live in a linked Integration (when one is
- provided) or inline in this config (legacy). Mirrors the non-credential fields of
- `SnowflakeBatchExportInputs` in `products/batch_exports/backend/service.py`.
+ Account, user, authentication type and credentials live in the linked Integration, never here.
+ Mirrors the non-credential fields of `SnowflakeBatchExportInputs` in
+ `products/batch_exports/backend/service.py`.
"""
database = serializers.CharField(help_text="Snowflake database to write to.")
@@ -725,8 +732,8 @@ class SnowflakeDestinationRequestSerializer(serializers.Serializer):
type = serializers.ChoiceField(choices=["Snowflake"])
integration_id = serializers.IntegerField(
help_text=(
- "ID of a snowflake-kind Integration providing the account, user and credentials. Required when "
- "creating a batch export. Use the integrations-list MCP tool to find one."
+ "ID of a snowflake-kind Integration providing the account, user and credentials. "
+ "Use the integrations-list MCP tool to find one."
),
)
config = SnowflakeDestinationConfigSerializer()
@@ -767,9 +774,9 @@ class BatchExportDestinationRequestField(serializers.JSONField):
Only integration-backed destinations (Databricks, AzureBlob, BigQuery, Postgres, AwsS3,
S3Compatible, Snowflake, Redshift) are exposed in the schema. integration_id is required for
- every one of them. Existing Postgres, Snowflake and Redshift exports created before
- integrations keep their inline credentials and stay valid when edited. Runtime validation
- remains `BatchExportDestinationSerializer.validate_destination`.
+ every one of them. Existing Postgres and Redshift exports created before integrations keep
+ their inline credentials and stay valid when edited. Runtime validation remains
+ `BatchExportDestinationSerializer.validate_destination`.
"""
pass
@@ -1362,32 +1369,28 @@ class BatchExportSerializer(serializers.ModelSerializer):
raise serializers.ValidationError(f"Invalid destination URL: {url}")
if destination_type == BatchExportDestination.Destination.SNOWFLAKE:
- integration: Integration | None = destination_attrs.get("integration")
+ # Still declared on `SnowflakeBatchExportInputs`, so the generic unknown-field check
+ # lets them through. Raise its message, so dropping them there changes no error text.
+ inline_credentials = sorted(config.keys() & SNOWFLAKE_CREDENTIAL_FIELDS)
+ if inline_credentials:
+ str_fields = ", ".join(f"'{field}'" for field in inline_credentials)
+ raise serializers.ValidationError(f"Configuration has unknown field/s: {str_fields}")
- # Sticky integration: an export that uses one cannot drop back to inline credentials.
- # TODO: remove this guard once inline credentials are gone.
- if instance is not None and instance.destination.integration is not None and integration is None:
- raise serializers.ValidationError(
- "Cannot remove the integration from a Snowflake batch export that uses one. "
- "Re-send its `integration` to keep it (or a different one to swap)."
- )
+ integration: Integration | None = destination_attrs.get("integration")
+ if integration is None and "integration" not in destination_attrs and instance is not None:
+ # A PATCH may send config alone, which keeps the export's existing integration.
+ # An explicit `integration: null` is a removal, and is rejected below.
+ integration = instance.destination.integration
- # New Snowflake exports must use an Integration for credentials. Exports created before
- # integrations existed keep their inline credentials, so only require it on create
- # (`instance is None`); existing inline-credential exports stay valid when edited.
- if integration is None and instance is None:
+ if integration is None:
raise serializers.ValidationError("Integration is required for Snowflake batch exports")
- if integration is not None:
- # (Team ownership is already enforced by the team-scoped `integration` field.)
- if integration.kind != Integration.IntegrationKind.SNOWFLAKE:
- raise serializers.ValidationError("Integration is not a Snowflake integration.")
- else:
- # Inline credentials: the credential field for the chosen auth type is required.
- if config.get("authentication_type") == "password" and merged_config.get("password") is None:
- raise serializers.ValidationError("Password is required if authentication type is password")
- if config.get("authentication_type") == "keypair" and merged_config.get("private_key") is None:
- raise serializers.ValidationError("Private key is required if authentication type is key pair")
+ # Also rejects an integration missing its account, user or authentication type, so a
+ # half-built one fails here rather than on the export's first run.
+ try:
+ SnowflakeIntegration(integration)
+ except SnowflakeIntegrationError as e:
+ raise serializers.ValidationError(str(e))
if destination_type in S3_FAMILY_TYPES:
integration = destination_attrs.get("integration")
@@ -1818,8 +1821,8 @@ def recursive_dict_merge(
@extend_schema_view(
# Request bodies use a polymorphic destination schema so that integration-backed types
# (Databricks, AzureBlob, BigQuery, Postgres, AwsS3, S3Compatible, Snowflake, Redshift) advertise
- # integration_id up front. It is required for every one of them; Postgres, Snowflake and Redshift
- # exports created before integrations keep their inline credentials on update.
+ # integration_id up front. It is required for every one of them; Postgres and Redshift exports
+ # created before integrations keep their inline credentials on update.
# Responses continue to use BatchExportSerializer.
create=extend_schema(request=BatchExportRequestSerializer),
update=extend_schema(request=BatchExportRequestSerializer),
diff --git a/products/batch_exports/backend/tests/api/test_create_snowflake.py b/products/batch_exports/backend/tests/api/test_create_snowflake.py
index 2c3c19dd6738..3dd87b26b541 100644
--- a/products/batch_exports/backend/tests/api/test_create_snowflake.py
+++ b/products/batch_exports/backend/tests/api/test_create_snowflake.py
@@ -18,14 +18,22 @@ pytestmark = [
@pytest.mark.parametrize(
- "auth_type,credentials",
+ "auth_type,credentials,expected_detail",
[
- ("password", {"password": "abc123"}),
- ("keypair", {"private_key": "SECRET_KEY"}),
+ (
+ "password",
+ {"password": "abc123"},
+ "Configuration has unknown field/s: 'account', 'authentication_type', 'password', 'user'",
+ ),
+ (
+ "keypair",
+ {"private_key": "SECRET_KEY"},
+ "Configuration has unknown field/s: 'account', 'authentication_type', 'private_key', 'user'",
+ ),
],
)
def test_create_snowflake_batch_export_with_inline_credentials_is_rejected(
- client: HttpClient, auth_type, credentials, temporal, organization, team, user
+ client: HttpClient, auth_type, credentials, expected_detail, temporal, organization, team, user
):
client.force_login(user)
response = create_batch_export(
@@ -50,7 +58,7 @@ def test_create_snowflake_batch_export_with_inline_credentials_is_rejected(
},
)
assert response.status_code == status.HTTP_400_BAD_REQUEST, response.json()
- assert response.json()["detail"] == "Integration is required for Snowflake batch exports"
+ assert response.json()["detail"] == expected_detail
def test_create_snowflake_batch_export_using_integration(client: HttpClient, temporal, organization, team, user):
@@ -91,4 +99,4 @@ def test_create_snowflake_batch_export_rejects_mismatched_integration_kind(
},
)
assert response.status_code == status.HTTP_400_BAD_REQUEST, response.json()
- assert response.json()["detail"] == "Integration is not a Snowflake integration."
+ assert response.json()["detail"] == ("Integration provided is not a Snowflake integration (got kind='aws-s3')")
diff --git a/products/batch_exports/backend/tests/api/test_update_snowflake.py b/products/batch_exports/backend/tests/api/test_update_snowflake.py
index 525aa7b8bb44..ab3013754154 100644
--- a/products/batch_exports/backend/tests/api/test_update_snowflake.py
+++ b/products/batch_exports/backend/tests/api/test_update_snowflake.py
@@ -13,25 +13,58 @@ pytestmark = [
]
[email protected]("integration_value", [None, "omitted"])
def test_updating_snowflake_batch_export_rejects_removing_integration(
- client: HttpClient, temporal, organization, team, user, integration_value
+ client: HttpClient, temporal, organization, team, user
):
- """An integration-backed export can't drop back to inline credentials — whether the caller sends
- `integration: null` or omits it entirely (clients re-send the full destination on update).
- """
+ """Sending `integration: null` is a removal, and a Snowflake export cannot authenticate without one."""
_, batch_export = create_integration_backed_snowflake_export(client, team, user)
- destination: dict = {"type": "Snowflake", "config": {}}
- if integration_value is None:
- destination["integration"] = None
-
- response = patch_batch_export(client, team.pk, batch_export["id"], {"destination": destination})
+ response = patch_batch_export(
+ client,
+ team.pk,
+ batch_export["id"],
+ {"destination": {"type": "Snowflake", "config": {}, "integration": None}},
+ )
assert response.status_code == status.HTTP_400_BAD_REQUEST, response.json()
- assert response.json()["detail"] == (
- "Cannot remove the integration from a Snowflake batch export that uses one. "
- "Re-send its `integration` to keep it (or a different one to swap)."
+ assert response.json()["detail"] == "Integration is required for Snowflake batch exports"
+
+
+def test_updating_snowflake_batch_export_keeps_its_integration_when_omitted(
+ client: HttpClient, temporal, organization, team, user
+):
+ """Omitting `integration` on a PATCH keeps the linked one, so a config-only edit succeeds."""
+ integration, batch_export = create_integration_backed_snowflake_export(client, team, user)
+
+ response = patch_batch_export(
+ client,
+ team.pk,
+ batch_export["id"],
+ {"destination": {"type": "Snowflake", "config": {"schema": "new_schema"}}},
)
+ assert response.status_code == status.HTTP_200_OK, response.json()
+ assert response.json()["destination"]["integration"] == integration.id
+
+
+def test_updating_snowflake_batch_export_rejects_inline_credentials(
+ client: HttpClient, temporal, organization, team, user
+):
+ """A migrated export still stores its old credentials, so a client that echoes them back is rejected."""
+ integration, batch_export = create_integration_backed_snowflake_export(client, team, user)
+
+ response = patch_batch_export(
+ client,
+ team.pk,
+ batch_export["id"],
+ {
+ "destination": {
+ "type": "Snowflake",
+ "config": {"schema": "new_schema", "account": "my-account", "password": "hunter2"},
+ "integration": integration.id,
+ }
+ },
+ )
+ assert response.status_code == status.HTTP_400_BAD_REQUEST, response.json()
+ assert response.json()["detail"] == "Configuration has unknown field/s: 'account', 'password'"
def test_updating_integration_backed_snowflake_export_allows_config_patch_with_integration(
diff --git a/products/batch_exports/frontend/generated/api.schemas.ts b/products/batch_exports/frontend/generated/api.schemas.ts
index e7331c8fcbad..81b050c374d6 100644
--- a/products/batch_exports/frontend/generated/api.schemas.ts
+++ b/products/batch_exports/frontend/generated/api.schemas.ts
@@ -314,9 +314,9 @@ export const SnowflakeDestinationConfigApiType = {
/**
* Typed configuration for a Snowflake batch-export destination.
*
- * Account, user, authentication type and credentials may live in a linked Integration (when one is
- * provided) or inline in this config (legacy). Mirrors the non-credential fields of
- * `SnowflakeBatchExportInputs` in `products/batch_exports/backend/service.py`.
+ * Account, user, authentication type and credentials live in the linked Integration, never here.
+ * Mirrors the non-credential fields of `SnowflakeBatchExportInputs` in
+ * `products/batch_exports/backend/service.py`.
*/
export interface SnowflakeDestinationConfigApi {
/** Snowflake database to write to. */
@@ -1408,7 +1408,7 @@ export const SnowflakeDestinationRequestApiType = {
*/
export interface SnowflakeDestinationRequestApi {
type: SnowflakeDestinationRequestApiType
- /** ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one. */
+ /** ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one. */
integration_id: number
config: SnowflakeDestinationConfigApi
}
diff --git a/products/batch_exports/frontend/generated/api.zod.ts b/products/batch_exports/frontend/generated/api.zod.ts
index bf10aab32bf1..c571d7a304f0 100644
--- a/products/batch_exports/frontend/generated/api.zod.ts
+++ b/products/batch_exports/frontend/generated/api.zod.ts
@@ -300,7 +300,7 @@ export const BatchExportsCreateBody = /* @__PURE__ */ zod
integration_id: zod
.number()
.describe(
- 'ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one.'
+ 'ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one.'
),
config: zod
.object({
@@ -320,7 +320,7 @@ export const BatchExportsCreateBody = /* @__PURE__ */ zod
type: zod.enum(['Snowflake']),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
})
.describe('Request shape for creating or updating a Snowflake batch-export destination.'),
@@ -996,7 +996,7 @@ export const BatchExportsUpdateBody = /* @__PURE__ */ zod
integration_id: zod
.number()
.describe(
- 'ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one.'
+ 'ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one.'
),
config: zod
.object({
@@ -1016,7 +1016,7 @@ export const BatchExportsUpdateBody = /* @__PURE__ */ zod
type: zod.enum(['Snowflake']),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
})
.describe('Request shape for creating or updating a Snowflake batch-export destination.'),
@@ -1447,7 +1447,7 @@ export const BatchExportsPartialUpdateBody = /* @__PURE__ */ zod
integration_id: zod
.number()
.describe(
- 'ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one.'
+ 'ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one.'
),
config: zod
.object({
@@ -1467,7 +1467,7 @@ export const BatchExportsPartialUpdateBody = /* @__PURE__ */ zod
type: zod.enum(['Snowflake']),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
})
.describe('Request shape for creating or updating a Snowflake batch-export destination.'),
@@ -1888,7 +1888,7 @@ export const BatchExportsPauseCreateBody = /* @__PURE__ */ zod
type: zod.enum(['Snowflake']),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
zod
.object({
@@ -2331,7 +2331,7 @@ export const BatchExportsRunTestStepCreateBody = /* @__PURE__ */ zod
type: zod.enum(['Snowflake']),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
zod
.object({
@@ -2767,7 +2767,7 @@ export const BatchExportsUnpauseCreateBody = /* @__PURE__ */ zod
type: zod.enum(['Snowflake']),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
zod
.object({
@@ -3214,7 +3214,7 @@ export const BatchExportsRunTestStepNewCreateBody = /* @__PURE__ */ zod
type: zod.enum(['Snowflake']),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
zod
.object({
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index f43731cbd2cf..f7135bd8a8db 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -12987,9 +12987,9 @@ export namespace Schemas {
/**
* Typed configuration for a Snowflake batch-export destination.
*
- * Account, user, authentication type and credentials may live in a linked Integration (when one is
- * provided) or inline in this config (legacy). Mirrors the non-credential fields of
- * `SnowflakeBatchExportInputs` in `products/batch_exports/backend/service.py`.
+ * Account, user, authentication type and credentials live in the linked Integration, never here.
+ * Mirrors the non-credential fields of `SnowflakeBatchExportInputs` in
+ * `products/batch_exports/backend/service.py`.
*/
export interface SnowflakeDestinationConfig {
/** Snowflake database to write to. */
@@ -14120,7 +14120,7 @@ export namespace Schemas {
*/
export interface SnowflakeDestinationRequest {
type: SnowflakeDestinationRequestType;
- /** ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one. */
+ /** ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one. */
integration_id: number;
config: SnowflakeDestinationConfig;
}
diff --git a/services/mcp/src/generated/batch_exports/api.ts b/services/mcp/src/generated/batch_exports/api.ts
index 5be113e71eb8..c242bffb1c0e 100644
--- a/services/mcp/src/generated/batch_exports/api.ts
+++ b/services/mcp/src/generated/batch_exports/api.ts
@@ -314,7 +314,7 @@ export const BatchExportsCreateBody = () => zod
integration_id: zod
.number()
.describe(
- 'ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one.'
+ 'ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one.'
),
config: zod
.object({
@@ -333,7 +333,7 @@ export const BatchExportsCreateBody = () => zod
.describe('Optional Snowflake role to assume for the session.'),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
})
.describe('Request shape for creating or updating a Snowflake batch-export destination.'),
@@ -765,7 +765,7 @@ export const BatchExportsPartialUpdateBody = () => zod
integration_id: zod
.number()
.describe(
- 'ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one.'
+ 'ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one.'
),
config: zod
.object({
@@ -784,7 +784,7 @@ export const BatchExportsPartialUpdateBody = () => zod
.describe('Optional Snowflake role to assume for the session.'),
})
.describe(
- 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products\/batch_exports\/backend\/service.py`.'
+ 'Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products\/batch_exports\/backend\/service.py`.'
),
})
.describe('Request shape for creating or updating a Snowflake batch-export destination.'),
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-create.json
index fd5c84826a0c..6d6511ae054b 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-create.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-create.json
@@ -349,7 +349,7 @@
"description": "Request shape for creating or updating a Snowflake batch-export destination.",
"properties": {
"config": {
- "description": "Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products/batch_exports/backend/service.py`.",
+ "description": "Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products/batch_exports/backend/service.py`.",
"properties": {
"database": {
"description": "Snowflake database to write to.",
@@ -384,7 +384,7 @@
"type": "object"
},
"integration_id": {
- "description": "ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one.",
+ "description": "ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one.",
"type": "number"
},
"type": {
diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-update.json
index e0a86f4a1cbe..45f08684a4d2 100644
--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-update.json
+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/batch-export-update.json
@@ -348,7 +348,7 @@
"description": "Request shape for creating or updating a Snowflake batch-export destination.",
"properties": {
"config": {
- "description": "Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials may live in a linked Integration (when one is\nprovided) or inline in this config (legacy). Mirrors the non-credential fields of\n`SnowflakeBatchExportInputs` in `products/batch_exports/backend/service.py`.",
+ "description": "Typed configuration for a Snowflake batch-export destination.\n\nAccount, user, authentication type and credentials live in the linked Integration, never here.\nMirrors the non-credential fields of `SnowflakeBatchExportInputs` in\n`products/batch_exports/backend/service.py`.",
"properties": {
"database": {
"description": "Snowflake database to write to.",
@@ -383,7 +383,7 @@
"type": "object"
},
"integration_id": {
- "description": "ID of a snowflake-kind Integration providing the account, user and credentials. Required when creating a batch export. Use the integrations-list MCP tool to find one.",
+ "description": "ID of a snowflake-kind Integration providing the account, user and credentials. Use the integrations-list MCP tool to find one.",
"type": "number"
},
"type": {