n8n-core 2.26.2 → 2.27.0
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/dist/binary-data/binary-data.service.js +2 -2
- package/dist/binary-data/binary-data.service.js.map +1 -1
- package/dist/binary-data/index.d.ts +1 -1
- package/dist/binary-data/index.js +1 -2
- package/dist/binary-data/index.js.map +1 -1
- package/dist/binary-data/object-store/object-store.service.ee.d.ts +2 -1
- package/dist/binary-data/object-store/object-store.service.ee.js +37 -16
- package/dist/binary-data/object-store/object-store.service.ee.js.map +1 -1
- package/dist/binary-data/object-store.manager.js +2 -2
- package/dist/binary-data/object-store.manager.js.map +1 -1
- package/dist/binary-data/utils.d.ts +1 -3
- package/dist/binary-data/utils.js +0 -20
- package/dist/binary-data/utils.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/credentials.js +1 -1
- package/dist/credentials.js.map +1 -1
- package/dist/execution-engine/active-workflow-triggers.d.ts +30 -0
- package/dist/execution-engine/active-workflow-triggers.js +272 -0
- package/dist/execution-engine/active-workflow-triggers.js.map +1 -0
- package/dist/execution-engine/index.d.ts +12 -11
- package/dist/execution-engine/index.js +14 -13
- package/dist/execution-engine/index.js.map +1 -1
- package/dist/execution-engine/node-execution-context/base-execute-context.d.ts +2 -2
- package/dist/execution-engine/node-execution-context/base-execute-context.js +3 -3
- package/dist/execution-engine/node-execution-context/base-execute-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/execute-context.js +2 -2
- package/dist/execution-engine/node-execution-context/execute-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/execute-single-context.js +1 -1
- package/dist/execution-engine/node-execution-context/execute-single-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/hook-context.js +2 -2
- package/dist/execution-engine/node-execution-context/hook-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/index.d.ts +1 -1
- package/dist/execution-engine/node-execution-context/index.js +2 -2
- package/dist/execution-engine/node-execution-context/index.js.map +1 -1
- package/dist/execution-engine/node-execution-context/node-execution-context.d.ts +3 -3
- package/dist/execution-engine/node-execution-context/node-execution-context.js +2 -2
- package/dist/execution-engine/node-execution-context/node-execution-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/poll-context.js +2 -2
- package/dist/execution-engine/node-execution-context/poll-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/trigger-context.js +3 -3
- package/dist/execution-engine/node-execution-context/trigger-context.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.d.ts +0 -1
- package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.js +4 -15
- package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/extract-value.js +10 -8
- package/dist/execution-engine/node-execution-context/utils/extract-value.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js +1 -1
- package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/normalize-items.js +3 -3
- package/dist/execution-engine/node-execution-context/utils/normalize-items.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/authentication.js +5 -5
- package/dist/execution-engine/node-execution-context/utils/request-helpers/authentication.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/factory.js +2 -2
- package/dist/execution-engine/node-execution-context/utils/request-helpers/factory.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/index.d.ts +0 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/index.js +2 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/index.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/legacy-request-adapter.d.ts +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/legacy-request-adapter.js +18 -22
- package/dist/execution-engine/node-execution-context/utils/request-helpers/legacy-request-adapter.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/oauth.js +19 -11
- package/dist/execution-engine/node-execution-context/utils/request-helpers/oauth.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/pagination.js +4 -5
- package/dist/execution-engine/node-execution-context/utils/request-helpers/pagination.js.map +1 -1
- package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.js +7 -4
- package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.js.map +1 -1
- package/dist/execution-engine/node-execution-context/webhook-context.d.ts +2 -1
- package/dist/execution-engine/node-execution-context/webhook-context.js +11 -4
- package/dist/execution-engine/node-execution-context/webhook-context.js.map +1 -1
- package/dist/execution-engine/scheduled-task-manager.d.ts +5 -1
- package/dist/execution-engine/scheduled-task-manager.js +42 -1
- package/dist/execution-engine/scheduled-task-manager.js.map +1 -1
- package/dist/execution-engine/ssh-clients-manager.js +1 -1
- package/dist/execution-engine/ssh-clients-manager.js.map +1 -1
- package/dist/execution-engine/triggers-and-pollers.js +3 -3
- package/dist/execution-engine/triggers-and-pollers.js.map +1 -1
- package/dist/execution-engine/workflow-active-triggers-state.d.ts +11 -0
- package/dist/execution-engine/workflow-active-triggers-state.js +31 -0
- package/dist/execution-engine/workflow-active-triggers-state.js.map +1 -0
- package/dist/execution-engine/workflow-execute.d.ts +2 -0
- package/dist/execution-engine/workflow-execute.js +45 -18
- package/dist/execution-engine/workflow-execute.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/dist/instance-settings/instance-settings.js +1 -1
- package/dist/instance-settings/instance-settings.js.map +1 -1
- package/dist/interfaces.d.ts +1 -4
- package/dist/nodes-loader/directory-loader.js +4 -2
- package/dist/nodes-loader/directory-loader.js.map +1 -1
- package/dist/nodes-loader/package-directory-loader.js +1 -1
- package/dist/nodes-loader/package-directory-loader.js.map +1 -1
- package/dist/storage.config.d.ts +3 -3
- package/dist/storage.config.js +3 -2
- package/dist/storage.config.js.map +1 -1
- package/package.json +15 -21
- package/dist/execution-engine/active-workflows.d.ts +0 -26
- package/dist/execution-engine/active-workflows.js +0 -180
- package/dist/execution-engine/active-workflows.js.map +0 -1
- package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.d.ts +0 -16
- package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.js +0 -75
- package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.js.map +0 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-config.d.ts +0 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-config.js +0 -35
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-config.js.map +0 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-utils.d.ts +0 -24
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-utils.js +0 -257
- package/dist/execution-engine/node-execution-context/utils/request-helpers/axios-utils.js.map +0 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/http-request.d.ts +0 -7
- package/dist/execution-engine/node-execution-context/utils/request-helpers/http-request.js +0 -146
- package/dist/execution-engine/node-execution-context/utils/request-helpers/http-request.js.map +0 -1
- package/dist/execution-engine/node-execution-context/utils/request-helpers/outbound-user-agent.d.ts +0 -4
- package/dist/execution-engine/node-execution-context/utils/request-helpers/outbound-user-agent.js +0 -40
- package/dist/execution-engine/node-execution-context/utils/request-helpers/outbound-user-agent.js.map +0 -1
- package/dist/http-proxy.d.ts +0 -6
- package/dist/http-proxy.js +0 -109
- package/dist/http-proxy.js.map +0 -1
- package/dist/ssrf/dns-resolver.d.ts +0 -13
- package/dist/ssrf/dns-resolver.js +0 -93
- package/dist/ssrf/dns-resolver.js.map +0 -1
- package/dist/ssrf/hostname-matcher.d.ts +0 -6
- package/dist/ssrf/hostname-matcher.js +0 -38
- package/dist/ssrf/hostname-matcher.js.map +0 -1
- package/dist/ssrf/in-memory-dns-cache.service.d.ts +0 -11
- package/dist/ssrf/in-memory-dns-cache.service.js +0 -61
- package/dist/ssrf/in-memory-dns-cache.service.js.map +0 -1
- package/dist/ssrf/index.d.ts +0 -5
- package/dist/ssrf/index.js +0 -10
- package/dist/ssrf/index.js.map +0 -1
- package/dist/ssrf/ip-range-builder.d.ts +0 -10
- package/dist/ssrf/ip-range-builder.js +0 -52
- package/dist/ssrf/ip-range-builder.js.map +0 -1
- package/dist/ssrf/ssrf-blocked-ip.error.d.ts +0 -6
- package/dist/ssrf/ssrf-blocked-ip.error.js +0 -21
- package/dist/ssrf/ssrf-blocked-ip.error.js.map +0 -1
- package/dist/ssrf/ssrf-protection.service.d.ts +0 -30
- package/dist/ssrf/ssrf-protection.service.js +0 -159
- package/dist/ssrf/ssrf-protection.service.js.map +0 -1
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SsrfProtectionService = void 0;
|
|
16
|
-
const backend_common_1 = require("@n8n/backend-common");
|
|
17
|
-
const config_1 = require("@n8n/config");
|
|
18
|
-
const di_1 = require("@n8n/di");
|
|
19
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
20
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
|
21
|
-
const node_net_1 = require("node:net");
|
|
22
|
-
const dns_resolver_1 = require("./dns-resolver");
|
|
23
|
-
const hostname_matcher_1 = require("./hostname-matcher");
|
|
24
|
-
const ip_range_builder_1 = require("./ip-range-builder");
|
|
25
|
-
const ssrf_blocked_ip_error_1 = require("./ssrf-blocked-ip.error");
|
|
26
|
-
let SsrfProtectionService = class SsrfProtectionService {
|
|
27
|
-
constructor(ssrfConfig, dnsResolver, logger) {
|
|
28
|
-
this.ssrfConfig = ssrfConfig;
|
|
29
|
-
this.dnsResolver = dnsResolver;
|
|
30
|
-
this.logger = logger.scoped('ssrf-protection');
|
|
31
|
-
const blocked = (0, ip_range_builder_1.buildIpRangeList)(this.ssrfConfig.blockedIpRanges);
|
|
32
|
-
for (const issue of blocked.issues) {
|
|
33
|
-
this.logger.warn(`Invalid value '${issue.entry}' in N8N_SSRF_BLOCKED_IP_RANGES: ${issue.error}`);
|
|
34
|
-
}
|
|
35
|
-
this.blockedIps = blocked.list;
|
|
36
|
-
const allowed = (0, ip_range_builder_1.buildIpRangeList)(this.ssrfConfig.allowedIpRanges);
|
|
37
|
-
for (const issue of allowed.issues) {
|
|
38
|
-
this.logger.warn(`Invalid value '${issue.entry}' in N8N_SSRF_ALLOWED_IP_RANGES: ${issue.error}`);
|
|
39
|
-
}
|
|
40
|
-
this.allowedIps = allowed.list;
|
|
41
|
-
this.allowedHostnameMatcher = new hostname_matcher_1.HostnameMatcher(this.ssrfConfig.allowedHostnames);
|
|
42
|
-
}
|
|
43
|
-
async validateUrl(url) {
|
|
44
|
-
const parsed = this.tryParseUrl(url);
|
|
45
|
-
if (!parsed) {
|
|
46
|
-
return (0, n8n_workflow_1.createResultError)(new Error(`Invalid URL: ${String(url)}`));
|
|
47
|
-
}
|
|
48
|
-
const { hostname } = parsed;
|
|
49
|
-
const result = await this.lookupAndValidate(hostname, { all: true });
|
|
50
|
-
if (!result.ok) {
|
|
51
|
-
return result;
|
|
52
|
-
}
|
|
53
|
-
return (0, n8n_workflow_1.createResultOk)(undefined);
|
|
54
|
-
}
|
|
55
|
-
validateIp(ip) {
|
|
56
|
-
const family = this.getIpFamily(ip);
|
|
57
|
-
(0, node_assert_1.default)(family !== null, `Invalid IP address: ${ip}`);
|
|
58
|
-
if (this.allowedIps.check(ip, family)) {
|
|
59
|
-
return (0, n8n_workflow_1.createResultOk)(undefined);
|
|
60
|
-
}
|
|
61
|
-
if (this.blockedIps.check(ip, family)) {
|
|
62
|
-
return (0, n8n_workflow_1.createResultError)(new ssrf_blocked_ip_error_1.SsrfBlockedIpError(ip));
|
|
63
|
-
}
|
|
64
|
-
return (0, n8n_workflow_1.createResultOk)(undefined);
|
|
65
|
-
}
|
|
66
|
-
createSecureLookup() {
|
|
67
|
-
return async (hostname, options, onResult) => {
|
|
68
|
-
try {
|
|
69
|
-
const resolved = await this.secureLookupAsync(hostname, options);
|
|
70
|
-
if (options.all) {
|
|
71
|
-
onResult(null, resolved);
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const first = resolved[0];
|
|
75
|
-
onResult(null, first.address, first.family);
|
|
76
|
-
}
|
|
77
|
-
catch (error) {
|
|
78
|
-
onResult((0, n8n_workflow_1.ensureError)(error), options.all ? [] : '', undefined);
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
validateRedirectSync(url) {
|
|
83
|
-
const parsed = this.tryParseUrl(url);
|
|
84
|
-
if (!parsed)
|
|
85
|
-
return;
|
|
86
|
-
const { hostname } = parsed;
|
|
87
|
-
if (this.allowedHostnameMatcher.matches(hostname))
|
|
88
|
-
return;
|
|
89
|
-
const cleanIp = this.normalizeIpInHostname(hostname);
|
|
90
|
-
if ((0, node_net_1.isIP)(cleanIp)) {
|
|
91
|
-
const result = this.validateIp(cleanIp);
|
|
92
|
-
if (!result.ok) {
|
|
93
|
-
throw result.error;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
normalizeIpInHostname(hostname) {
|
|
98
|
-
return hostname.startsWith('[') && hostname.endsWith(']') ? hostname.slice(1, -1) : hostname;
|
|
99
|
-
}
|
|
100
|
-
async secureLookupAsync(hostname, options) {
|
|
101
|
-
const result = await this.lookupAndValidate(hostname, options);
|
|
102
|
-
if (!result.ok) {
|
|
103
|
-
throw result.error;
|
|
104
|
-
}
|
|
105
|
-
return result.result;
|
|
106
|
-
}
|
|
107
|
-
async lookupAndValidate(hostname, options) {
|
|
108
|
-
const cleanIp = this.normalizeIpInHostname(hostname);
|
|
109
|
-
const ipFamily = (0, node_net_1.isIP)(cleanIp);
|
|
110
|
-
if (ipFamily) {
|
|
111
|
-
const result = this.validateIp(cleanIp);
|
|
112
|
-
if (!result.ok) {
|
|
113
|
-
return result;
|
|
114
|
-
}
|
|
115
|
-
return (0, n8n_workflow_1.createResultOk)([
|
|
116
|
-
{
|
|
117
|
-
address: cleanIp,
|
|
118
|
-
family: ipFamily,
|
|
119
|
-
},
|
|
120
|
-
]);
|
|
121
|
-
}
|
|
122
|
-
const resolved = await this.dnsResolver.lookup(hostname, options);
|
|
123
|
-
(0, node_assert_1.default)(resolved.length > 0, `DNS lookup for ${hostname} returned no results`);
|
|
124
|
-
if (this.allowedHostnameMatcher.matches(hostname)) {
|
|
125
|
-
return (0, n8n_workflow_1.createResultOk)(resolved);
|
|
126
|
-
}
|
|
127
|
-
for (const ip of resolved) {
|
|
128
|
-
const result = this.validateIp(ip.address);
|
|
129
|
-
if (!result.ok) {
|
|
130
|
-
return result;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
return (0, n8n_workflow_1.createResultOk)(resolved);
|
|
134
|
-
}
|
|
135
|
-
tryParseUrl(url) {
|
|
136
|
-
try {
|
|
137
|
-
return url instanceof URL ? url : new URL(url);
|
|
138
|
-
}
|
|
139
|
-
catch {
|
|
140
|
-
return null;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
getIpFamily(ip) {
|
|
144
|
-
const version = (0, node_net_1.isIP)(ip);
|
|
145
|
-
if (version === 4)
|
|
146
|
-
return 'ipv4';
|
|
147
|
-
if (version === 6)
|
|
148
|
-
return 'ipv6';
|
|
149
|
-
return null;
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
exports.SsrfProtectionService = SsrfProtectionService;
|
|
153
|
-
exports.SsrfProtectionService = SsrfProtectionService = __decorate([
|
|
154
|
-
(0, di_1.Service)(),
|
|
155
|
-
__metadata("design:paramtypes", [config_1.SsrfProtectionConfig,
|
|
156
|
-
dns_resolver_1.DnsResolver,
|
|
157
|
-
backend_common_1.Logger])
|
|
158
|
-
], SsrfProtectionService);
|
|
159
|
-
//# sourceMappingURL=ssrf-protection.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssrf-protection.service.js","sourceRoot":"","sources":["../../src/ssrf/ssrf-protection.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAA6C;AAC7C,wCAAmD;AACnD,gCAAkC;AAClC,+CAAsF;AACtF,8DAAiC;AAGjC,uCAAgC;AAEhC,iDAA6C;AAC7C,yDAAqD;AACrD,yDAAsD;AACtD,mEAA6D;AAwBtD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IASjC,YACkB,UAAgC,EAChC,WAAwB,EACzC,MAAc;QAFG,eAAU,GAAV,UAAU,CAAsB;QAChC,gBAAW,GAAX,WAAW,CAAa;QAGzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAE/C,MAAM,OAAO,GAAG,IAAA,mCAAgB,EAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;QAClE,KAAK,MAAM,KAAK,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,IAAI,CACf,kBAAkB,KAAK,CAAC,KAAK,oCAAoC,KAAK,CAAC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