Skip to content

Commit 86529eb

Browse files
committed
replace buffer with btoa for snowflake private key encoding
1 parent 05d82e3 commit 86529eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/notebooks/deepnote/sqlIntegrationEnvironmentVariablesProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function convertIntegrationConfigToJson(config: IntegrationConfig): string {
131131
}
132132

133133
// For key-pair auth, pass the private key and passphrase as params
134-
params.snowflake_private_key = Buffer.from(config.privateKey).toString('base64');
134+
params.snowflake_private_key = btoa(config.privateKey);
135135
if (config.privateKeyPassphrase) {
136136
params.snowflake_private_key_passphrase = config.privateKeyPassphrase;
137137
}

0 commit comments

Comments
 (0)