Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(control-api): run hosted member-registration boot enrollment at startup

Jose Ramireze8c8a2a89bc3
diff --git a/control-api/src/main.ts b/control-api/src/main.ts
index fcefb2c88..3fea9fbce 100644
--- a/control-api/src/main.ts
+++ b/control-api/src/main.ts
@@ -7,6 +7,7 @@ import {
startAdminRevokedTokenCleanup,
stopAdminRevokedTokenCleanup,
} from './services/adminAuthService.js'
+import { runBootEnrollment } from './services/memberRegistrationEnrollment.js'
import {
startBudgetReservationSweepCron,
stopBudgetReservationSweepCron,
@@ -50,6 +51,10 @@ async function main(): Promise<void> {
// self-hosted deployment that has no registry_connection identity row.
await assertRegistryConnectionReady()
+ // Hosted member-registration self-enrollment (spec §8.4): degrade, never
+ // block — runBootEnrollment never rejects; failures log and retry on demand.
+ await runBootEnrollment()
+
startExpiryCron(config.userApprovalRequestExpiryIntervalMs)
startPluginWorkloadSdkMaintenanceCron()
startRateLimiterCleanup(config.approvalRlCleanupIntervalMs)