refactor: Remove outdated publicly accessible warning (no-changelog) (#6657)

This commit is contained in:
Iván Ovejero 2023-07-13 09:58:55 +02:00 committed by GitHub
parent b701dcb8ef
commit c35f2b97b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View file

@ -116,6 +116,4 @@ export const DB_QUERY_PARAMS_DOCS_URL =
export const COMMUNITY_NODES_RISKS_URL = 'https://docs.n8n.io/integrations/community-nodes/risks';
export const SELF_HOSTED_AUTH_DOCS_URL = 'https://docs.n8n.io/hosting/authentication';
export const NPM_PACKAGE_URL = 'https://www.npmjs.com/package';

View file

@ -4,7 +4,6 @@ import config from '@/config';
import { toFlaggedNode } from '@/audit/utils';
import { separate } from '@/utils';
import {
SELF_HOSTED_AUTH_DOCS_URL,
ENV_VARS_DOCS_URL,
INSTANCE_REPORT,
WEBHOOK_NODE_TYPE,
@ -193,12 +192,7 @@ export async function reportInstanceRisk(workflows: WorkflowEntity[]) {
report.sections.push({
title: INSTANCE_REPORT.SECTIONS.SECURITY_SETTINGS,
description: 'This n8n instance has the following security settings.',
recommendation: securitySettings.publiclyAccessibleInstance
? [
'Important! Your n8n instance is publicly accessible. Set up user management or basic/JWT auth to protect access to your n8n instance.'.toUpperCase(),
`See: ${SELF_HOSTED_AUTH_DOCS_URL}`,
].join(' ')
: `Consider adjusting the security settings for your n8n instance based on your needs. See: ${ENV_VARS_DOCS_URL}`,
recommendation: `Consider adjusting the security settings for your n8n instance based on your needs. See: ${ENV_VARS_DOCS_URL}`,
settings: securitySettings,
});
}