import { latestVersion } from '../module-registry/module-changelog'; import { ModuleRegistryService } from '../module-registry/module-registry.service'; import { CERT_MANAGER_CHANGELOG } from './cert-manager.changelog'; /** * Seeds the cert-manager module into the module registry. * * Called during CertManagerModule initialization to ensure the * "cert-manager" module record exists in the database (CERT-06). * * isSystem: true registers the module in the registry but does NOT * auto-activate it per tenant. Admin must activate via Marketplace UI. */ export async function seedCertManagerModule( moduleRegistryService: ModuleRegistryService, ): Promise { await moduleRegistryService.seedModule({ slug: 'cert-manager', name: 'Cert Manager', // Die Version kommt ausschließlich aus dem Changelog (quick-261008-w5w). version: latestVersion(CERT_MANAGER_CHANGELOG), category: 'security-tools', description: { de: 'Zertifikate analysieren, konvertieren und verwalten', en: 'Inspect, convert and manage certificates', }, isSystem: true, }); }