n8n
Version:
n8n Workflow Automation Tool
20 lines (19 loc) • 838 B
TypeScript
import { InstanceSettings } from 'n8n-core';
import type { WorkflowEntity } from '../../databases/entities/WorkflowEntity';
import type { RiskReporter, Risk } from '../../security-audit/types';
import { Logger } from '../../Logger';
import { GlobalConfig } from '@n8n/config';
export declare class InstanceRiskReporter implements RiskReporter {
private readonly instanceSettings;
private readonly logger;
private readonly globalConfig;
constructor(instanceSettings: InstanceSettings, logger: Logger, globalConfig: GlobalConfig);
report(workflows: WorkflowEntity[]): Promise<Risk.InstanceReport | null>;
private getSecuritySettings;
private hasValidatorChild;
private getUnprotectedWebhookNodes;
private getNextVersions;
private removeIconData;
private classify;
private getOutdatedState;
}