@activepieces/piece-sftp 0.4.9 → 0.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@activepieces/piece-sftp",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "dependencies": {
5
5
  "@sinclair/typebox": "0.34.11",
6
+ "@types/ssh2": "1.15.5",
6
7
  "ai": "^6.0.0",
7
- "axios": "1.13.1",
8
+ "axios": "1.13.5",
8
9
  "axios-retry": "4.4.1",
9
10
  "basic-ftp": "5.0.5",
10
11
  "dayjs": "1.11.9",
11
12
  "deepmerge-ts": "7.1.0",
12
13
  "form-data": "4.0.4",
13
- "i18next": "23.13.0",
14
14
  "mime-types": "2.1.35",
15
15
  "nanoid": "3.3.8",
16
16
  "semver": "7.6.0",
@@ -18,8 +18,8 @@
18
18
  "ssh2-sftp-client": "9.1.0",
19
19
  "zod": "4.1.13",
20
20
  "@activepieces/pieces-common": "0.11.5",
21
- "@activepieces/pieces-framework": "0.25.2",
22
- "@activepieces/shared": "0.34.0",
21
+ "@activepieces/pieces-framework": "0.25.3",
22
+ "@activepieces/shared": "0.37.0",
23
23
  "tslib": "2.6.2"
24
24
  },
25
25
  "resolutions": {
package/src/i18n/de.json CHANGED
@@ -15,9 +15,9 @@
15
15
  "The host of the server": "Der Host des Servers",
16
16
  "The port of the server": "Der Port des Servers",
17
17
  "The username to authenticate with": "Benutzername für Authentifizierung",
18
- "The password to authenticate with. Either this or private key is required": "Das Passwort, mit dem sich authentifizieren soll. Entweder dieser oder der private Schlüssel ist erforderlich",
19
- "The private key to authenticate with. Either this or password is required": "Der private Schlüssel für die Authentifizierung erforderlich ist. Entweder dieser oder das Passwort ist erforderlich",
20
- "The host key algorithm to use for SFTP Private Key authentication": "Der Hostschlüssel-Algorithmus für die SFTP Private Key Authentifizierung",
18
+ "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.": "Das Passwort für die Authentifizierung. Entweder dieser oder privater Schlüssel wird benötigt. Wenn Sie einen privaten Schlüssel verwenden, wird dieses Feld als Passphrase verwendet, um den Schlüssel zu entschlüsseln.",
19
+ "The private key to authenticate with. Either this or password is required.": "Der private Schlüssel mit dem sich authentifizieren soll. Entweder dieser oder das Passwort wird benötigt.",
20
+ "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).": "Der Hostschlüssel-Algorithmus für SFTP-Verbindung. Nur erforderlich, wenn Sie die Standardalgorithmen überschreiben möchten (z.B. um ssh-dss zu unterstützen).",
21
21
  "SFTP": "SFTP",
22
22
  "FTP": "FTP",
23
23
  "FTPS": "FTPS",
package/src/i18n/es.json CHANGED
@@ -15,9 +15,9 @@
15
15
  "The host of the server": "El host del servidor",
16
16
  "The port of the server": "El puerto del servidor",
17
17
  "The username to authenticate with": "El nombre de usuario con el que autenticar",
18
- "The password to authenticate with. Either this or private key is required": "La contraseña con la que autenticarse. Se requiere esta o la clave privada",
19
- "The private key to authenticate with. Either this or password is required": "La clave privada con la que autenticarse. O esto o la contraseña es necesaria",
20
- "The host key algorithm to use for SFTP Private Key authentication": "El algoritmo de clave de host a usar para autenticación de clave privada SFTP",
18
+ "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.": "La contraseña para autenticar. Se requiere esta o la clave privada. Cuando se usa una clave privada, este campo se utiliza como la frase de paso para descifrar la clave.",
19
+ "The private key to authenticate with. Either this or password is required.": "La clave privada para autenticarse. O esto o la contraseña es requerida.",
20
+ "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).": "El algoritmo de clave de host a usar para conexión SFTP. Sólo es necesario si desea sobreescribir los algoritmos por defecto (por ejemplo, para soportar ssh-dss).",
21
21
  "SFTP": "SFTP",
22
22
  "FTP": "FTP",
23
23
  "FTPS": "FTPS",
package/src/i18n/fr.json CHANGED
@@ -15,9 +15,9 @@
15
15
  "The host of the server": "L'hôte du serveur",
16
16
  "The port of the server": "Le port du serveur",
17
17
  "The username to authenticate with": "Le nom d'utilisateur avec lequel s'authentifier",
18
- "The password to authenticate with. Either this or private key is required": "Le mot de passe pour s'authentifier. Cette clé ou privée est requise",
19
- "The private key to authenticate with. Either this or password is required": "La clé privée avec laquelle s'authentifier. Soit ceci ou le mot de passe est requis",
20
- "The host key algorithm to use for SFTP Private Key authentication": "L'algorithme de clé d'hôte à utiliser pour l'authentification de la clé privée SFTP",
18
+ "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.": "Le mot de passe pour s'authentifier. Cette clé ou privée est requise. Lorsque vous utilisez une clé privée, ce champ est utilisé comme mot de passe pour déchiffrer la clé.",
19
+ "The private key to authenticate with. Either this or password is required.": "La clé privée avec laquelle s'authentifier. Soit ceci ou le mot de passe est requis.",
20
+ "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).": "L'algorithme de clé d'hôte à utiliser pour la connexion SFTP. Nécessaire uniquement si vous voulez remplacer les algorithmes par défaut (par exemple, pour supporter ssh-dss).",
21
21
  "SFTP": "SFTP",
22
22
  "FTP": "FTP",
23
23
  "FTPS": "FTPS",
package/src/i18n/ja.json CHANGED
@@ -15,9 +15,9 @@
15
15
  "The host of the server": "サーバーのホスト",
16
16
  "The port of the server": "サーバーのポート",
17
17
  "The username to authenticate with": "認証するユーザー名",
18
- "The password to authenticate with. Either this or private key is required": "認証用パスワード。これまたは秘密鍵が必要です。",
19
- "The private key to authenticate with. Either this or password is required": "この秘密鍵またはパスワードが必要です",
20
- "The host key algorithm to use for SFTP Private Key authentication": "SFTP 秘密鍵認証に使用するホスト鍵アルゴリズム",
18
+ "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.": "認証用パスワード。これまたは秘密鍵が必要です。 秘密鍵を使用する場合、このフィールドは鍵を復号するためのパスフレーズとして使用されます。",
19
+ "The private key to authenticate with. Either this or password is required.": "この秘密鍵またはパスワードが必要です。",
20
+ "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).": "SFTP 接続に使用するホスト鍵アルゴリズム。デフォルトのアルゴリズムを上書きしたい場合にのみ必要です (ssh-dssをサポートする場合など)。",
21
21
  "SFTP": "SFTP",
22
22
  "FTP": "FTP",
23
23
  "FTPS": "FTPS",
package/src/i18n/nl.json CHANGED
@@ -15,9 +15,9 @@
15
15
  "The host of the server": "De host van de server",
16
16
  "The port of the server": "De poort van de server",
17
17
  "The username to authenticate with": "De gebruikersnaam om mee te verifiëren",
18
- "The password to authenticate with. Either this or private key is required": "Het wachtwoord om mee te verifiëren. Of deze of private key is vereist",
19
- "The private key to authenticate with. Either this or password is required": "De geheime sleutel om mee te verifiëren. Of dit of het wachtwoord is vereist",
20
- "The host key algorithm to use for SFTP Private Key authentication": "Het host-sleutel-algoritme dat moet worden gebruikt voor SFTP Private Key authenticatie",
18
+ "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.": "Het wachtwoord om mee te verifiëren. Of deze of private key is vereist. Wanneer u een private key gebruikt, wordt dit veld gebruikt als wachtwoordzin om de sleutel te decoderen.",
19
+ "The private key to authenticate with. Either this or password is required.": "De geheime sleutel om mee te verifiëren. Of dit of het wachtwoord is vereist.",
20
+ "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).": "Het host-sleutel-algoritme dat gebruikt moet worden voor SFTP-verbinding. Alleen nodig als u de standaard algoritmes wilt overschrijven (bijv. om ssh-dss) te ondersteunen.",
21
21
  "SFTP": "SFTP",
22
22
  "FTP": "FTP",
23
23
  "FTPS": "FTPS",
package/src/i18n/pt.json CHANGED
@@ -15,9 +15,9 @@
15
15
  "The host of the server": "O host do servidor",
16
16
  "The port of the server": "A porta do servidor",
17
17
  "The username to authenticate with": "O nome de usuário para autenticar com",
18
- "The password to authenticate with. Either this or private key is required": "A senha para autenticação. Ou esta ou chave privada é necessária",
19
- "The private key to authenticate with. Either this or password is required": "A chave privada para se autenticar. Ou isto ou a senha é necessária",
20
- "The host key algorithm to use for SFTP Private Key authentication": "O algoritmo de chave de host usado para autenticação de chave privada SFTP",
18
+ "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.": "A senha para autenticação. Ou esta ou a chave privada é obrigatória. Ao usar uma chave privada, este campo é usado como a senha para descriptografar a chave.",
19
+ "The private key to authenticate with. Either this or password is required.": "A chave privada com a qual se autenticar. Ou isto ou a senha é necessária.",
20
+ "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).": "O algoritmo da chave de host a ser usado para conexão SFTP. é necessário se você deseja substituir os algoritmos padrão (por exemplo, para suportar ssh-dss).",
21
21
  "SFTP": "SFTP",
22
22
  "FTP": "FTP",
23
23
  "FTPS": "FTPS",
@@ -15,9 +15,9 @@
15
15
  "The host of the server": "The host of the server",
16
16
  "The port of the server": "The port of the server",
17
17
  "The username to authenticate with": "The username to authenticate with",
18
- "The password to authenticate with. Either this or private key is required": "The password to authenticate with. Either this or private key is required",
19
- "The private key to authenticate with. Either this or password is required": "The private key to authenticate with. Either this or password is required",
20
- "The host key algorithm to use for SFTP Private Key authentication": "The host key algorithm to use for SFTP Private Key authentication",
18
+ "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.": "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.",
19
+ "The private key to authenticate with. Either this or password is required.": "The private key to authenticate with. Either this or password is required.",
20
+ "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).": "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).",
21
21
  "SFTP": "SFTP",
22
22
  "FTP": "FTP",
23
23
  "FTPS": "FTPS",
package/src/i18n/zh.json CHANGED
@@ -15,9 +15,9 @@
15
15
  "The host of the server": "The host of the server",
16
16
  "The port of the server": "The port of the server",
17
17
  "The username to authenticate with": "The username to authenticate with",
18
- "The password to authenticate with. Either this or private key is required": "The password to authenticate with. Either this or private key is required",
19
- "The private key to authenticate with. Either this or password is required": "The private key to authenticate with. Either this or password is required",
20
- "The host key algorithm to use for SFTP Private Key authentication": "The host key algorithm to use for SFTP Private Key authentication",
18
+ "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.": "The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.",
19
+ "The private key to authenticate with. Either this or password is required.": "The private key to authenticate with. Either this or password is required.",
20
+ "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).": "The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).",
21
21
  "SFTP": "SFTP",
22
22
  "FTP": "FTP",
23
23
  "FTPS": "FTPS",
package/src/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import Client from 'ssh2-sftp-client';
2
+ import { ServerHostKeyAlgorithm } from 'ssh2';
2
3
  import { Client as FTPClient } from 'basic-ftp';
3
4
  export declare function getProtocolBackwardCompatibility(protocol: string | undefined): Promise<string>;
4
5
  export declare function getClient<T extends Client | FTPClient>(auth: {
@@ -10,7 +11,7 @@ export declare function getClient<T extends Client | FTPClient>(auth: {
10
11
  username: string;
11
12
  password: string | undefined;
12
13
  privateKey: string | undefined;
13
- algorithm: string[] | undefined;
14
+ algorithm: ServerHostKeyAlgorithm[] | string[] | undefined;
14
15
  }): Promise<T>;
15
16
  export declare function endClient(client: Client | FTPClient, protocol: string | undefined): Promise<void>;
16
17
  export declare const sftpAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
package/src/index.js CHANGED
@@ -32,27 +32,66 @@ function getClient(auth) {
32
32
  const protocolBackwardCompatibility = yield getProtocolBackwardCompatibility(protocol);
33
33
  if (protocolBackwardCompatibility === 'sftp') {
34
34
  const sftp = new ssh2_sftp_client_1.default();
35
- if (password) {
36
- yield sftp.connect({
35
+ if (privateKey) {
36
+ // Handle literal \n strings (from users who manually escaped newlines)
37
+ let processedKey = privateKey
38
+ .replace(/\\r\\n/g, '\n')
39
+ .replace(/\\n/g, '\n')
40
+ .replace(/\r\n/g, '\n')
41
+ .replace(/\r/g, '\n')
42
+ .trim();
43
+ // Handle case where browser input converts newlines to spaces
44
+ // Detect if key is on a single line (no newlines) but has PEM markers
45
+ if (!processedKey.includes('\n') && processedKey.match(/-----BEGIN [A-Z0-9 ]+ KEY-----.*-----END [A-Z0-9 ]+ KEY-----/)) {
46
+ // Split on spaces that appear after key markers or base64 content
47
+ // PEM format: header, optional encryption info, blank line, base64 (64 chars/line), footer
48
+ processedKey = processedKey
49
+ // Add newline after BEGIN header
50
+ .replace(/(-----BEGIN [A-Z0-9 ]+ KEY-----)\s+/, '$1\n')
51
+ // Add newline after Proc-Type header
52
+ .replace(/(Proc-Type:\s*\S+)\s+/, '$1\n')
53
+ // Add newline after DEK-Info header (followed by blank line)
54
+ .replace(/(DEK-Info:\s*\S+)\s+/, '$1\n\n')
55
+ // Add newline before END footer
56
+ .replace(/\s+(-----END [A-Z0-9 ]+ KEY-----)/, '\n$1');
57
+ // Now handle the base64 content - split into 64-char lines
58
+ const beginMatch = processedKey.match(/(-----BEGIN [A-Z0-9 ]+ KEY-----\n(?:Proc-Type:[^\n]+\n)?(?:DEK-Info:[^\n]+\n\n)?)/);
59
+ const endMatch = processedKey.match(/(\n-----END [A-Z0-9 ]+ KEY-----)/);
60
+ if (beginMatch && endMatch) {
61
+ const header = beginMatch[1];
62
+ const footer = endMatch[1];
63
+ const base64Content = processedKey
64
+ .replace(header, '')
65
+ .replace(footer, '')
66
+ .replace(/\s+/g, ''); // Remove all whitespace from base64
67
+ // Split base64 into 64-character lines
68
+ const lines = base64Content.match(/.{1,64}/g) || [];
69
+ processedKey = header + lines.join('\n') + footer;
70
+ }
71
+ }
72
+ const connectOptions = {
37
73
  host,
38
74
  port,
39
75
  username,
40
- password,
76
+ privateKey: processedKey,
41
77
  timeout: 10000,
42
- });
43
- }
44
- else if (privateKey) {
45
- if (!algorithm || algorithm.length === 0) {
46
- throw new Error('At least one algorithm must be selected for SFTP Private Key authentication.');
78
+ };
79
+ if (password) {
80
+ connectOptions.passphrase = password;
81
+ }
82
+ if (algorithm && algorithm.length > 0) {
83
+ connectOptions.algorithms = {
84
+ serverHostKey: algorithm
85
+ };
47
86
  }
87
+ yield sftp.connect(connectOptions);
88
+ }
89
+ else if (password) {
48
90
  yield sftp.connect({
49
91
  host,
50
92
  port,
51
93
  username,
52
- privateKey: privateKey.replace(/\\n/g, '\n').trim(),
53
- algorithms: {
54
- serverHostKey: algorithm
55
- },
94
+ password,
56
95
  timeout: 10000,
57
96
  });
58
97
  }
@@ -129,17 +168,17 @@ exports.sftpAuth = pieces_framework_1.PieceAuth.CustomAuth({
129
168
  }),
130
169
  password: pieces_framework_1.PieceAuth.SecretText({
131
170
  displayName: 'Password',
132
- description: 'The password to authenticate with. Either this or private key is required',
171
+ description: 'The password to authenticate with. Either this or private key is required. When using a private key, this field is used as the passphrase to decrypt the key.',
133
172
  required: false,
134
173
  }),
135
174
  privateKey: pieces_framework_1.PieceAuth.SecretText({
136
175
  displayName: 'Private Key',
137
- description: 'The private key to authenticate with. Either this or password is required',
176
+ description: 'The private key to authenticate with. Either this or password is required.',
138
177
  required: false,
139
178
  }),
140
179
  algorithm: pieces_framework_1.Property.StaticMultiSelectDropdown({
141
180
  displayName: 'Host Key Algorithm',
142
- description: 'The host key algorithm to use for SFTP Private Key authentication',
181
+ description: 'The host key algorithm to use for SFTP connection. Only needed if you want to override the default algorithms (e.g., to support ssh-dss).',
143
182
  required: false,
144
183
  options: {
145
184
  options: [
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/sftp/src/index.ts"],"names":[],"mappings":";;;AAkBA,4EAKC;AACD,8BA8CC;AAED,8BAOC;;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AAC;oBAC1C,MAAM;gBACR,CAAC;YACH,CAAC;YACD,OAAO;gBACL,KAAK,EAAE,IAAI;aACZ,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAG,GAAa,aAAb,GAAG,uBAAH,GAAG,CAAY,OAAO;aAC/B,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;YACzC,CAAC;QACH,CAAC;IACH,CAAC,CAAA;IACD,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,OAAO,GAAG,IAAA,8BAAW,EAAC;IACjC,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,sCAAsC;IACnD,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,uDAAuD;IAChE,UAAU,EAAE,CAAC,sBAAa,CAAC,IAAI,EAAE,sBAAa,CAAC,eAAe,CAAC;IAC/D,OAAO,EAAE;QACP,qBAAqB;QACrB,YAAY;QACZ,sBAAsB;QACtB,eAAe;QACf,UAAU;QACV,kBAAkB;KACnB;IACD,IAAI,EAAE,gBAAQ;IACd,OAAO,EAAE;QACP,wBAAU;QACV,8BAAgB;QAChB,2BAAe;QACf,8BAAgB;QAChB,kCAAkB;QAClB,kCAAkB;QAClB,qCAAwB;QACxB,gDAAwB;KACzB;IACD,QAAQ,EAAE,CAAC,qCAAiB,CAAC;CAC9B,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/sftp/src/index.ts"],"names":[],"mappings":";;;AAmBA,4EAKC;AACD,8BAyFC;AAED,8BAOC;;AA3HD,qEAIwC;AACxC,iDAA4D;AAC5D,gFAAsC;AAEtC,yCAAgD;AAChD,2DAAuD;AACvD,2DAA6D;AAC7D,uDAA0D;AAC1D,wEAAqE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