refactor(core): Convert external-secrets code into a backend module (#15769)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-06-05 14:21:29 +02:00
committed by GitHub
parent 10dc73fc82
commit 1587eb0742
31 changed files with 40 additions and 34 deletions

View File

@@ -11,7 +11,6 @@ import {
ObjectStoreService,
DataDeduplicationService,
ErrorReporter,
ExternalSecretsProxy,
} from 'n8n-core';
import { ensureError, sleep, UserError } from 'n8n-workflow';
@@ -26,7 +25,6 @@ import { TestRunCleanupService } from '@/evaluation.ee/test-runner/test-run-clea
import { MessageEventBus } from '@/eventbus/message-event-bus/message-event-bus';
import { TelemetryEventRelay } from '@/events/relays/telemetry.event-relay';
import { ExternalHooks } from '@/external-hooks';
import { ExternalSecretsManager } from '@/external-secrets.ee/external-secrets-manager.ee';
import { License } from '@/license';
import { LoadNodesAndCredentials } from '@/load-nodes-and-credentials';
import { ModuleRegistry } from '@/modules/module-registry';
@@ -88,7 +86,6 @@ export abstract class BaseCommand extends Command {
instance: this.instanceSettings,
})
) {
// register module in the registry for the dependency injection
await import(`../modules/${moduleName}/${moduleName}.module`);
this.modulesConfig.addLoadedModule(moduleName);
@@ -276,12 +273,6 @@ export abstract class BaseCommand extends Command {
}
}
async initExternalSecrets() {
const secretsManager = Container.get(ExternalSecretsManager);
await secretsManager.init();
Container.get(ExternalSecretsProxy).setManager(secretsManager);
}
initWorkflowHistory() {
Container.get(WorkflowHistoryManager).init();
}