Skip to content

Commit 6b64d80

Browse files
committed
fix(snowflake): accept underscore account hosts in the connect form and state the key-size ceiling
1 parent c92548b commit 6b64d80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/integrations/components/connect-service-account-modal/snowflake-account-modal.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ type SnowflakeAuthType = 'workload_identity' | 'key_pair' | 'programmatic_access
5353

5454
const SNOWFLAKE_DESCRIPTOR = getTokenServiceAccountDescriptor(SNOWFLAKE_SERVICE_ACCOUNT_PROVIDER_ID)
5555
const SNOWFLAKE_DOCS_URL = 'https://docs.sim.ai/integrations/snowflake-service-account'
56-
const HOST_PATTERN = /^[a-z0-9][a-z0-9.-]*\.snowflakecomputing\.(com|cn)$/i
56+
const HOST_PATTERN = /^[a-z0-9][a-z0-9_.-]*\.snowflakecomputing\.(com|cn)$/i
5757

5858
const AUTH_TYPE_HINTS: Record<SnowflakeAuthType, string> = {
5959
workload_identity:
@@ -335,7 +335,7 @@ function SnowflakeAccountForm({
335335
type='custom'
336336
title='Private key'
337337
required
338-
hint='An unencrypted PKCS#8 PEM RSA key of 2048 bits or more, such as one created with openssl pkcs8 -topk8 -nocrypt.'
338+
hint='An unencrypted PKCS#8 PEM RSA key of 2048 to 4096 bits, such as one created with openssl pkcs8 -topk8 -nocrypt.'
339339
>
340340
{(aria) => (
341341
<ChipTextarea

0 commit comments

Comments
 (0)