feat: HTTP request tool (#9228)

This commit is contained in:
Michael Kret
2024-06-19 10:54:13 +03:00
committed by GitHub
parent 4131408e5e
commit be2635e50e
14 changed files with 2423 additions and 144 deletions

View File

@@ -136,6 +136,7 @@ import {
CONFIG_FILES,
CUSTOM_EXTENSION_ENV,
HTTP_REQUEST_NODE_TYPE,
HTTP_REQUEST_TOOL_NODE_TYPE,
PLACEHOLDER_EMPTY_EXECUTION_ID,
RESTRICT_FILE_ACCESS_TO,
UM_EMAIL_TEMPLATES_INVITE,
@@ -1997,7 +1998,7 @@ export async function getCredentials(
// Hardcode for now for security reasons that only a single node can access
// all credentials
const fullAccess = [HTTP_REQUEST_NODE_TYPE].includes(node.type);
const fullAccess = [HTTP_REQUEST_NODE_TYPE, HTTP_REQUEST_TOOL_NODE_TYPE].includes(node.type);
let nodeCredentialDescription: INodeCredentialDescription | undefined;
if (!fullAccess) {