@wildo-ai/wildo-cli 1.1.13 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/commands/build/approve.command.d.ts +4 -0
- package/dist/src/commands/build/approve.command.d.ts.map +1 -1
- package/dist/src/commands/build/approve.command.js +14 -3
- package/dist/src/commands/build/approve.command.js.map +1 -1
- package/dist/src/commands/build/close.command.d.ts +4 -0
- package/dist/src/commands/build/close.command.d.ts.map +1 -1
- package/dist/src/commands/build/close.command.js +17 -3
- package/dist/src/commands/build/close.command.js.map +1 -1
- package/dist/src/commands/config/sync.command.d.ts.map +1 -1
- package/dist/src/commands/config/sync.command.js +21 -1
- package/dist/src/commands/config/sync.command.js.map +1 -1
- package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
- package/dist/src/commands/creation/feed.command.js +6 -3
- package/dist/src/commands/creation/feed.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
- package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-all.command.js +57 -3
- package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/publish-docker.command.js +16 -1
- package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
- package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
- package/dist/src/commands/fwk/registry-host.command.js +78 -3
- package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
- package/dist/src/commands/generate/email-command.utils.d.ts +2 -0
- package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
- package/dist/src/commands/generate/email-command.utils.js +5 -0
- package/dist/src/commands/generate/email-command.utils.js.map +1 -1
- package/dist/src/commands/init.command.d.ts +14 -0
- package/dist/src/commands/init.command.d.ts.map +1 -1
- package/dist/src/commands/init.command.js +36 -5
- package/dist/src/commands/init.command.js.map +1 -1
- package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
- package/dist/src/commands/local/deregister.command.js +4 -0
- package/dist/src/commands/local/deregister.command.js.map +1 -1
- package/dist/src/commands/local/dev.command.d.ts +6 -0
- package/dist/src/commands/local/dev.command.d.ts.map +1 -1
- package/dist/src/commands/local/dev.command.js +72 -0
- package/dist/src/commands/local/dev.command.js.map +1 -1
- package/dist/src/commands/local/jobs-command.utils.d.ts +24 -0
- package/dist/src/commands/local/jobs-command.utils.d.ts.map +1 -0
- package/dist/src/commands/local/jobs-command.utils.js +44 -0
- package/dist/src/commands/local/jobs-command.utils.js.map +1 -0
- package/dist/src/commands/local/jobs-run.command.d.ts +7 -0
- package/dist/src/commands/local/jobs-run.command.d.ts.map +1 -0
- package/dist/src/commands/local/jobs-run.command.js +92 -0
- package/dist/src/commands/local/jobs-run.command.js.map +1 -0
- package/dist/src/commands/local/jobs.command.d.ts +7 -0
- package/dist/src/commands/local/jobs.command.d.ts.map +1 -0
- package/dist/src/commands/local/jobs.command.js +59 -0
- package/dist/src/commands/local/jobs.command.js.map +1 -0
- package/dist/src/commands/local/tunnel.command.d.ts +84 -0
- package/dist/src/commands/local/tunnel.command.d.ts.map +1 -0
- package/dist/src/commands/local/tunnel.command.js +274 -0
- package/dist/src/commands/local/tunnel.command.js.map +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
- package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
- package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
- package/dist/src/commands/registry/update.command.d.ts.map +1 -1
- package/dist/src/commands/registry/update.command.js +1 -0
- package/dist/src/commands/registry/update.command.js.map +1 -1
- package/dist/src/commands/seal/verify.command.d.ts +18 -0
- package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
- package/dist/src/commands/seal/verify.command.js +62 -1
- package/dist/src/commands/seal/verify.command.js.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts +41 -1
- package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
- package/dist/src/services/application/app-bootstrap.service.js +49 -3
- package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
- package/dist/src/services/application/app-runtime-targets.service.js +9 -1
- package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.d.ts +20 -0
- package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
- package/dist/src/services/application/application-dependency-alignment.service.js +32 -2
- package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
- package/dist/src/services/application/local-tunnel.service.d.ts +153 -0
- package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -0
- package/dist/src/services/application/local-tunnel.service.js +294 -0
- package/dist/src/services/application/local-tunnel.service.js.map +1 -0
- package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
- package/dist/src/services/application/provider-runtime-sync.service.js +29 -1
- package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.d.ts +7 -0
- package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
- package/dist/src/services/application/saas-skeleton.service.js +26 -2
- package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts +7 -1
- package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
- package/dist/src/services/catalog/service-address-resolver.service.js +6 -3
- package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
- package/dist/src/services/companion/build-console.service.d.ts +39 -2
- package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/build-console.service.js +54 -4
- package/dist/src/services/companion/build-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-console.service.d.ts +6 -1
- package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-console.service.js +14 -2
- package/dist/src/services/companion/creation-console.service.js.map +1 -1
- package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
- package/dist/src/services/companion/creation-drive.service.js +5 -2
- package/dist/src/services/companion/creation-drive.service.js.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.d.ts +6 -0
- package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
- package/dist/src/services/credentials/application-secrets.service.js +1 -1
- package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
- package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
- package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js +3 -1
- package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
- package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secret-requirements.service.js +17 -1
- package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.d.ts +11 -2
- package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
- package/dist/src/services/credentials/secrets-writer.service.js +12 -3
- package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
- package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
- package/dist/src/services/deployment/application-runtime-environment.js +3 -13
- package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/ci-deploy-generator.service.js +3 -3
- package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +3 -3
- package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -14
- package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts +6 -0
- package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
- package/dist/src/services/deployment/framework-pod-network-membership.js +12 -3
- package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
- package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +4 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +20 -8
- package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +7 -0
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +15 -9
- package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts +43 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts.map +1 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js +12 -0
- package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js.map +1 -0
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +3 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -1
- package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -1
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +124 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +249 -0
- package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -0
- package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
- package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
- package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -0
- package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
- package/dist/src/services/environment/authored-infra-config.utils.js +20 -1
- package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +6 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -1
- package/dist/src/services/environment/container-host-gateway-listen-host.js +6 -0
- package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.d.ts +12 -0
- package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-configuration-generator.service.js +45 -8
- package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts +2 -1
- package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
- package/dist/src/services/environment/env-vars-builder.service.js +47 -32
- package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.d.ts +7 -4
- package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-lifecycle.service.js +14 -18
- package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
- package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
- package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
- package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
- package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment-setup.service.js +17 -6
- package/dist/src/services/environment/environment-setup.service.js.map +1 -1
- package/dist/src/services/environment/environment.service.d.ts +4 -3
- package/dist/src/services/environment/environment.service.d.ts.map +1 -1
- package/dist/src/services/environment/environment.service.js +0 -1
- package/dist/src/services/environment/environment.service.js.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.d.ts +129 -0
- package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
- package/dist/src/services/framework/framework-docker-publish.service.js +271 -19
- package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
- package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
- package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
- package/dist/src/services/framework/github-actions-annotation.js +25 -0
- package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
- package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
- package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
- package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
- package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
- package/dist/src/services/registry/installed-file-state.utils.js +9 -1
- package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
- package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
- package/dist/src/services/registry/module-install.service.js +1 -0
- package/dist/src/services/registry/module-install.service.js.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
- package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
- package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
- package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
- package/dist/src/services/security/csp-sync.service.js +21 -2
- package/dist/src/services/security/csp-sync.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/framework-root-package.json +3 -3
- package/package.json +23 -23
- package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
- package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +31 -9
- package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +13 -0
- package/templates/infra/registry-host/docker-compose.yml +9 -2
- package/templates/infra/registry-host/upgrade-image.sh +108 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
- package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
- package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
- package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
- package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
- package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
- package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
- package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
- package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
- package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
- package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
- package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
- package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
- package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
- package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
- package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
- package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
- package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
- package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
- package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
- package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
- package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
- package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
- package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
- package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
- package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
- package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
- package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
- package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
- package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
- package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
- package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
- package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
- package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
- package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
- package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
- package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
- package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
- package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
- package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
- package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
- package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
- package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
- package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
- package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
- package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
- package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
- package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
- package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
- package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
- package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
- package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
- package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
- package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
- package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
- package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
- package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
- package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
- package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
- package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
- package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
- package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
- package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
- package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
- package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
- package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
- package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
- package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
- package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
- package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
- package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
- package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
- package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
- package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
- package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
- package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
- package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
- package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
- package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
- package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
- package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
- package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
- package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
- package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
- package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
- package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
- package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
- package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
- package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
- package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
- package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
- package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
- package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
- package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
- package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
- package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
- package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
- package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
- package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
- package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
- package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
- package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
- package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
- package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
- package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
- package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
- package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
- package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
- package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
- package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
- package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
- package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
- package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
- package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
- package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
- package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
- package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
- package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
- package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
- package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
- package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
- package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
- package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
- package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
- package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
- package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
- package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
- package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
- package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
- package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
- package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
- package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
- package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
- package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
- package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
- package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
- package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
- package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
- package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
- package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
- package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
- package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
- package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
- package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
- package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
- package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
- package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
- package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
- package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
- package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
- package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
- package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
- package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
- package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
- package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
- package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
- package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
- package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
- package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
- package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
- package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
- package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
- package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
- package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
- package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
- package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
- package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
- package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
- package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
- package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
- package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
- package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
- package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
- package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
- package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
- package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
- package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
- package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
- package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
- package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
- package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
- package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
- package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
- package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
- package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
- package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
- package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
- package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
- package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
- package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
- package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
- package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +18 -4
- package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
- package/templates/saas/skeleton/frontend/Dockerfile +4 -1
- package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +1 -1
- package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +4 -4
- package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
- package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
- package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +2 -0
- package/wildo-framework.info.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-manifest-generator.service.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-manifest-generator.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EACL,+BAA+B,EAC/B,+BAA+B,EAC/B,4BAA4B,EAC5B,kCAAkC,EAGlC,yBAAyB,EACzB,+BAA+B,EAC/B,0CAA0C,EAC1C,+BAA+B,EAC/B,+BAA+B,EAC/B,+BAA+B,GAGhC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,YAAY,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AwE;YACxE,mCAAmC;YACnC,SAAS,EAAE;gBACT,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,IAAI,KAAK;gBAC/C,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,UAAU,IAAI,KAAK;aAClD;YACD,sEAAsE;YACtE,iDAAiD;YACjD,cAAc,EAAE,mBAAmB,CAAC,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC;SACrE,CAAC;QACF,MAAM,KAAK,GAA4B;YACrC,CAAC,4BAA4B,EAAE,mBAAmB,CAAC;YACnD,CAAC,yBAAyB,EAAE,gBAAgB,CAAC;SAC9C,CAAC;QACF,MAAM,QAAQ,GAA0C,EAAE,CAAC;QAC3D,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;YACnC,MAAM,GAAG,GAAG,gBAAgB,gBAAgB,IAAI,IAAI,EAAE,CAAC;YACvD,IAAI,UAAU,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;gBACzC,QAAQ,CAAC,IAAI,CAAC;oBACZ,IAAI,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,gBAAgB,IAAI,MAAM,EAAE;oBACvD,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC;iBACpC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","sourcesContent":["/**\n * K8s Manifest Generator — builds TemplateVariables contexts and renders\n * .yaml.hbs templates into deployable YAML manifests.\n *\n * Static stateless class (consistent with ServiceAddressResolver, PlatformEnvVarsBuilder).\n */\n\nimport { stringify as stringifyYaml } from 'yaml';\nimport {\n ApplicationRuntimePrincipalKind,\n buildNetworkMembershipPodLabels,\n buildRuntimeNetworkPodLabels,\n buildRuntimeNetworkPolicyDocuments,\n type ApplicationRuntimePrincipal,\n type RuntimeAccessDeclaration,\n selfHostsPlatformKeyVault,\n describeUnreachablePkcs11Module,\n pkcs11ModuleIsReachableInPlatformContainer,\n buildMinionLivenessHeartbeatEnv,\n buildMinionLivenessProbeCommand,\n deriveMinionLivenessProbeTiming,\n type MinionLiveness,\n type DatabaseEngine,\n} from '@wildo-ai/platform-config-lib';\nimport { join, posix } from 'path';\nimport { existsSync, readFileSync, mkdirSync, rmSync, writeFileSync } from 'fs';\n\nimport { TemplateProcessor } from '~wildo-cli/infrastructure/io/template-processor';\nimport { DEFAULT_PLATFORM_IMAGE_TAG, resolvePlatformImageRef } from '~wildo-cli/services/environment/platform-runtime.schemas';\nimport { readVersion } from '~wildo-cli/kernel/bootstrap';\nimport {\n BackingServiceKind,\n BackingServiceSource,\n K8S_LOCAL_DEFAULTS,\n PUBLIC_DOMAIN_DEFAULTS,\n KIND_CLUSTER_DEFAULTS,\n resolveFrameworkLayout,\n WildoLocationType,\n WildoTlsIssuer,\n WildoKubernetesIngressClass,\n PlatformWildoServices,\n k8sServiceSecretName,\n k8sRuntimeProvidersSecretName,\n k8sRuntimeEnvSecretName,\n RUNTIME_MANDATORY_WRITABLE_PATH,\n APP_BACKEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_MANDATORY_WRITABLE_PATHS,\n INFRA_DEFAULT_PORTS,\n} from '@wildo-ai/platform-config-lib';\nimport {\n CUSTOM_DOMAIN_BACKEND_PATH_PREFIXES,\n CUSTOM_DOMAIN_RECONCILER_IMAGE,\n CUSTOM_DOMAIN_RECONCILER_MANAGED_BY,\n ENGINE_ROOT_ROUTES,\n EngineRootRouteKey,\n RuntimeEnvironment,\n} from '@wildo-ai/saas-models';\nimport { buildMinionServiceName, buildWorkerServiceName, normalizeServiceKeyToDnsName } from '@wildo-ai/platform-core-shared';\nimport { PlatformDataServices, IMMUDB_AUDIT_STATE_CONTAINER_DIR, MONGOT_SYNC_SOURCE } from '~wildo-cli/services/data-services/data-services.schemas';\nimport {\n asFrameworkWorkload,\n resolveFrameworkWorkloadNetworks,\n type FrameworkWorkload,\n} from '~wildo-cli/services/deployment/framework-pod-network-membership';\nimport { PLATFORM_KEY_VAULT_SERVER, renderPlatformKeyVaultServerConfig } from '~wildo-cli/services/data-services/platform-key-vault.server-config';\nimport { SecretsReader } from '~wildo-cli/services/credentials/secrets-reader.service';\nimport { PLATFORM_SERVICE_CATALOG, INFRA_SERVICE_CATALOG, getDeployableInfraServicesForK8s } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { includesMongoSearchSidecar } from '~wildo-cli/services/environment/environment-service-profile.utils';\nimport {\n TemplateVariables,\n DEFAULT_PLATFORM_RESOURCES,\n DEFAULT_PLATFORM_DEV_RESOURCES,\n platformServiceResources,\n DEFAULT_INTERNAL_RESOURCES,\n DEFAULT_APP_PROD_RESOURCES,\n} from '~wildo-cli/services/deployment/k8s/k8s-manifest.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { InfrastructureHost, SharedInfrastructureAction } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { shouldDeployPlatformServicesInRuntime } from '~wildo-cli/services/deployment/platform-runtime-policy.service';\nimport { resolveOffClusterBackingServices } from '~wildo-cli/services/deployment/k8s/off-cluster-backing-services';\n\n/**\n * The file holding the namespace's NetworkPolicy set, in both lanes: the local `cluster/` directory and the remote CI\n * deploy directory (#3511).\n */\nexport const NETWORK_POLICIES_MANIFEST_FILE = 'network-policies.yaml';\n\n// ============================================================================\n// Constants\n// ============================================================================\n\nconst LOCAL_TLS_SECRET_NAME = 'local-wildo-ai-tls';\nconst INGRESS_CLASS = WildoKubernetesIngressClass.TRAEFIK;\n\nenum NodeEnv {\n DEVELOPMENT = 'development',\n PRODUCTION = 'production',\n}\n\n// Per-env deployable list comes from `getDeployableInfraServicesForK8s(env)`,\n// which gates MongoDB on `EnvironmentUtils.needsLocalMongoDB` and (Slice 4.8)\n// ClamAV on `resolveIncludeLocalClamAV` so Atlas / managed environments do\n// NOT spawn redundant local workloads.\n\nconst DEFAULT_STORAGE_SIZES: Record<string, string> = {\n mongodb: '5Gi',\n // mongot (issue #74) — matched to `mongot-data-pv`'s 5Gi capacity in\n // `storage/local/persistent-volumes.yaml.hbs` and to the template's own\n // `{{default storageSize \"5Gi\"}}`. Keeping all three equal is the point: a PVC that\n // requests LESS than its static PV is the confusion the clamav note below records.\n mongot: '5Gi',\n valkey: '1Gi',\n rabbitmq: '1Gi',\n minio: '5Gi',\n postgresql: '5Gi',\n // Slice 4 second-pass-2 review fix (MEDIUM-1) — bumped to 2Gi to match\n // the static PV (`templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs`\n // — `clamav-data-pv` capacity 2Gi after Sizing M-5) AND the template's\n // `volumeClaimTemplates` default (`{{default storageSize \"2Gi\"}}`).\n // Previously this generator passed `1Gi` as `storageSize`, which won\n // over the template default and produced PVCs that requested LESS\n // than the static PV — confusing for any policy/tool that compares\n // requested vs allocated storage, and tight enough to risk ENOSPC\n // during freshclam's transient DB-double on signature refresh.\n // The PV, the template default, and this generator default are now\n // all 2Gi so the rendered PVC matches the bound PV exactly.\n clamav: '2Gi',\n // Audit Phase 2 — immudb append-only audit store. Local-dev default; the PV\n // (persistent-volumes.yaml.hbs), this size, and the StatefulSet's\n // volumeClaimTemplate default MUST all match (2Gi) so the pre-bound PVC binds.\n immudb: '2Gi',\n // #2933 — the platform Vault's raft storage: a few keys and their metadata. The PV and the volumeClaimTemplate\n // default match it (1Gi).\n openbao: '1Gi',\n};\n\nconst APPLICATION_NAME = 'wildo-ai-application';\n\n/**\n * Per-ingress TLS secret for the framework `wildo-ai-application` ingress\n * under the HTTP-01 per-ingress strategy. cert-manager's ingress-shim issues\n * the enumerated-host certificate into this secret (one per ingress — the\n * shared wildcard secret is retired for remote).\n */\nconst APPLICATION_TLS_SECRET_NAME = `${APPLICATION_NAME}-tls`;\n\n/**\n * Remote TLS template vars for the HTTP-01 per-ingress strategy. Empty for\n * LOCAL (self-signed wildcard preserved — `tls-config.yaml.hbs` keeps its\n * `TLSStore` default because `perIngressTls` stays unset). For REMOTE:\n * - `acmeEmail` → Let's Encrypt `ClusterIssuer` registration email.\n * - `issuerName` → the `ClusterIssuer` an ingress annotation points at\n * (`remoteProvider.tlsIssuer`, default `letsencrypt-prod` — a remote deploy\n * implies a real domain that browsers must trust; operators opt into\n * `letsencrypt-staging` while validating a new cluster).\n * - `perIngressTls: true` → each ingress owns its own `<name>-tls` secret and\n * the wildcard `TLSStore` default is suppressed (no wildcard secret backs it).\n */\nfunction resolveRemoteTlsVars(env: PlatformEnvironmentConfiguration): {\n acmeEmail?: string;\n issuerName?: string;\n perIngressTls?: boolean;\n} {\n if (env.locationType === WildoLocationType.LOCAL) return {};\n return {\n acmeEmail: env.remoteProvider?.acmeEmail,\n issuerName: env.remoteProvider?.tlsIssuer ?? WildoTlsIssuer.LETSENCRYPT_PROD,\n perIngressTls: true,\n };\n}\n\n/**\n * Container/service name of the self-hosted immudb audit store — the single\n * source of truth (from the infra catalog) used to (a) key its immudb-specific\n * resource profile and (b) select the `immudb-secret` admin-credential wiring\n * in `buildForInternalService`. Renders for both local Kind and self-hosted\n * prod/staging (`backingServices.immudb.source === SELF`); managed/external\n * immudb never enters the deployable list so no StatefulSet is emitted.\n */\nconst IMMUDB_INTERNAL_SERVICE_NAME = INFRA_SERVICE_CATALOG[PlatformDataServices.IMMUDB].containerName;\n\n/**\n * #2933 — the self-hosted OpenBao's template variables: the same server configuration the compose lane renders\n * (`renderPlatformKeyVaultServerConfig`), and the names of the `openbao-secret` keys its environment reads. The\n * configuration needs the unseal key's ID, so it is built from `secrets.json`; a missing material is refused here\n * rather than rendered into a StatefulSet that cannot unseal or issues tokens apps-manager does not hold.\n */\nfunction buildPlatformKeyVaultTemplateVariables(env: PlatformEnvironmentConfiguration): Partial<TemplateVariables> {\n const material = SecretsReader.loadSecrets(env.name)?.platformKeyVault;\n if (!material?.unsealKey || !material.signerToken || !material.operatorToken || !material.recoveryToken) {\n throw new Error(\n `Environment \"${env.name}\" self-hosts the platform Vault (platformKeyManagement.vault.source = self), but secrets.json `\n + 'carries no platformKeyVault material. Run `wildo config sync`, which provisions it, then render again.',\n );\n }\n const configFilePath = PLATFORM_KEY_VAULT_SERVER.CONFIG_FILE_PATH;\n return {\n openbaoImage: PLATFORM_KEY_VAULT_SERVER.IMAGE,\n openbaoPort: INFRA_DEFAULT_PORTS.OPENBAO,\n openbaoSecretName: k8sServiceSecretName(INFRA_SERVICE_CATALOG[PlatformDataServices.OPENBAO].containerName),\n openbaoConfigDir: posix.dirname(configFilePath),\n openbaoConfigFileName: posix.basename(configFilePath),\n openbaoConfigFilePath: configFilePath,\n openbaoDataPath: PLATFORM_KEY_VAULT_SERVER.DATA_PATH,\n openbaoEnv: {\n unsealKey: PLATFORM_KEY_VAULT_SERVER.ENV.UNSEAL_KEY,\n signerToken: PLATFORM_KEY_VAULT_SERVER.ENV.SIGNER_TOKEN,\n operatorToken: PLATFORM_KEY_VAULT_SERVER.ENV.OPERATOR_TOKEN,\n recoveryToken: PLATFORM_KEY_VAULT_SERVER.ENV.RECOVERY_TOKEN,\n previousUnsealKey: PLATFORM_KEY_VAULT_SERVER.ENV.PREVIOUS_UNSEAL_KEY,\n },\n openbaoSecretKeys: {\n unsealKey: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.UNSEAL_KEY,\n signerToken: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.SIGNER_TOKEN,\n operatorToken: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.OPERATOR_TOKEN,\n recoveryToken: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.RECOVERY_TOKEN,\n previousUnsealKey: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.PREVIOUS_UNSEAL_KEY,\n },\n // #3006 — only between the two steps of `wildo keys vault-rotate-unseal-key`: the StatefulSet then reads the\n // previous key too, and the configuration names it.\n openbaoHasPreviousUnsealKey: Boolean(material.previousUnsealKey),\n // Four spaces: the ConfigMap's `data.<file>: |` block scalar.\n openbaoServerConfigIndented: renderPlatformKeyVaultServerConfig({ unsealKey: material.unsealKey, previousUnsealKey: material.previousUnsealKey })\n .trimEnd().split('\\n').map((line) => (line ? ` ${line}` : '')).join('\\n'),\n };\n}\n\nfunction resolveManifestKubernetesRuntime(\n env: PlatformEnvironmentConfiguration,\n): {\n namespace: string;\n publicDomain: string;\n imageRegistry: string;\n applicationEnv: RuntimeEnvironment;\n} {\n if (env.locationType === WildoLocationType.LOCAL) {\n return {\n namespace: env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE,\n publicDomain: env.publicDomain ?? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S,\n imageRegistry: env.kubernetes?.imageRegistry ?? `localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}`,\n applicationEnv: env.runtimeEnvironment ?? RuntimeEnvironment.DEVELOPMENT,\n };\n }\n\n const namespace = env.kubernetes?.namespace;\n const publicDomain = env.publicDomain;\n const imageRegistry = env.kubernetes?.imageRegistry ?? env.remoteProvider?.registryEndpoint;\n const applicationEnv = env.runtimeEnvironment;\n\n if (!namespace || !publicDomain || !imageRegistry || !applicationEnv) {\n throw new Error(\n `Environment '${env.name}' is missing explicit remote Kubernetes namespace, top-level publicDomain, imageRegistry, or runtimeEnvironment metadata.`,\n );\n }\n\n return {\n namespace,\n publicDomain,\n imageRegistry,\n applicationEnv,\n };\n}\n\n// ============================================================================\n// K8s Manifest Generator\n// ============================================================================\n\n/**\n * Derive the `{name, path}` pairs the Deployment templates render as `volumes:`\n * + `volumeMounts:`, prepending the mandatory scratch mount.\n *\n * ONE definition for all four app-owned container kinds (minion, worker, app\n * backend, frontend). It was two copies for a day and would have been four: the\n * name derivation has to agree between the `volumes:` block and the\n * `volumeMounts:` block of the SAME pod, and a pod whose two lists disagree is\n * rejected at admission with an error naming neither.\n *\n * Volume names are RFC1123 (lowercase alphanumerics and `-`). Deriving them from\n * the path rather than an index keeps a manifest diff readable when a path is\n * inserted in the middle of the list.\n */\nfunction buildWritableMounts(additionalPaths: readonly string[] = []): Array<{ path: string; name: string }> {\n return [RUNTIME_MANDATORY_WRITABLE_PATH, ...additionalPaths].map((path) => ({\n path,\n name: `scratch-${path.replace(/^\\/+/, '').replace(/[^a-zA-Z0-9]+/g, '-').toLowerCase() || 'root'}`,\n }));\n}\n\n/**\n * #3019 — the vendor PKCS#11 client apps-manager's pod mounts, or `{}` for every other platform service and for an\n * environment that declares no token. apps-manager always runs in the platform image on Kubernetes, so a `modulePath` it\n * cannot reach there (neither the bundled SoftHSM2 nor under a `clientFiles[].containerPath`) is refused, not rendered.\n *\n * Each file is a `hostPath` volume with no `type` (an entry may be a file or a directory), which Kubernetes mounts with no\n * check: a path missing on the node surfaces as the token apps-manager cannot open, logged at boot. Values are JSON-quoted (a JSON string is\n * a YAML double-quoted scalar), with `$(` doubled because Kubernetes expands `$(VAR)` in an env value and `$$` is its\n * only escape.\n */\nfunction buildApplicationsManagerPkcs11Variables(\n service: PlatformWildoServices,\n env: PlatformEnvironmentConfiguration,\n): Pick<TemplateVariables, 'pkcs11ClientFiles' | 'pkcs11Environment'> {\n const pkcs11 = env.platformKeyManagement?.pkcs11;\n if (service !== PlatformWildoServices.APPS_MANAGER || !pkcs11) return {};\n if (!pkcs11ModuleIsReachableInPlatformContainer(pkcs11)) throw new Error(describeUnreachablePkcs11Module(pkcs11, env.name));\n return {\n pkcs11ClientFiles: (pkcs11.clientFiles ?? []).map((file, index) => ({\n volumeName: `pkcs11-client-file-${index}`,\n hostPathYaml: JSON.stringify(file.hostPath),\n containerPathYaml: JSON.stringify(file.containerPath),\n })),\n pkcs11Environment: Object.entries(pkcs11.environment ?? {}).map(([name, value]) => ({\n name,\n valueYaml: JSON.stringify(value.split('$(').join('$$(')),\n })),\n };\n}\n\nexport class K8sManifestGenerator {\n private static resolveK8sTemplatesRoot(frameworkPath: string): string {\n return resolveFrameworkLayout(frameworkPath).k8sTemplatesHome;\n }\n\n\n // --------------------------------------------------------------------------\n // Variable builders\n // --------------------------------------------------------------------------\n\n /**\n * Build TemplateVariables for a platform service deployment.\n * @param replicaOverride — from infra config `services.<key>.replicas`, falls back to 1.\n */\n static buildForPlatformService(\n service: PlatformWildoServices,\n env: PlatformEnvironmentConfiguration,\n imageTag?: string,\n replicaOverride?: number,\n ): TemplateVariables {\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const isDevMode = isLocal;\n const catalog = PLATFORM_SERVICE_CATALOG[service as Exclude<PlatformWildoServices, PlatformWildoServices.PLATFORM_INIT>];\n const runtime = resolveManifestKubernetesRuntime(env);\n\n return {\n namespace: runtime.namespace,\n publicDomain: runtime.publicDomain,\n imageRegistry: runtime.imageRegistry,\n imageTag: imageTag ?? DEFAULT_PLATFORM_IMAGE_TAG,\n imagePullPolicy: 'Always',\n /*\n * The PLATFORM image is resolved by the LANE, never composed from this environment's\n * registry (#349). `imageRegistry` above is the APPLICATION's registry — the Kind registry\n * locally, the operator's own registry remotely — and it is the right answer for the app's\n * own backend/frontend/minion/worker images, which are built from the app's source. It is\n * the wrong answer for the platform image, which the framework publishes: composing\n * `<operator registry>/wildo-platform:latest` names an image that exists nowhere, the same\n * defect the compose lane carried until 2026-09-03.\n *\n * The answer is the PUBLISHED `docker.io/wildoai/wildo-platform:<framework version>` for every\n * lane that renders here. A LOCAL framework developer never reaches this builder (their platform\n * runs natively); an app creator has no checkout to build from; and a REMOTE framework developer\n * pulls the published image by decision (#969) — until then it was named\n * `<cluster registry>/wildo-platform:latest`, which nothing pushed there. See\n * `resolvePlatformImageRef` for the reasoning and the consequence. `k8s-bootstrap` accordingly\n * builds no platform image at all.\n */\n platformImageRef: resolvePlatformImageRef({ frameworkVersion: readVersion(), imageTag }),\n\n nodeEnv: isDevMode ? NodeEnv.DEVELOPMENT : NodeEnv.PRODUCTION,\n applicationEnv: runtime.applicationEnv,\n appsManagerMode: 'normal',\n\n ingressClass: INGRESS_CLASS,\n tlsSecretName: isLocal ? LOCAL_TLS_SECRET_NAME : undefined,\n tlsEnabled: true,\n\n // Local (Kind) keeps the generous dev profile — a 4Gi limit above every measured profile, and a\n // 512Mi request because a local cluster schedules on one node where a high request buys nothing.\n // Everywhere else the pod is sized from the service's MEASURED profile (#1592).\n resources: isDevMode ? DEFAULT_PLATFORM_DEV_RESOURCES : platformServiceResources(catalog.memory),\n heapCeilingMb: catalog.memory.heapCeilingMb,\n replicas: replicaOverride ?? 1,\n\n isDevMode,\n\n port: catalog.defaultPort,\n\n useStaticPV: false,\n\n podNetworkLabelsYaml: K8sManifestGenerator.renderFrameworkWorkloadLabels(service, env),\n\n ...buildApplicationsManagerPkcs11Variables(service, env),\n };\n }\n\n /**\n * Build TemplateVariables for an internal (infra) service.\n */\n static buildForInternalService(\n serviceName: string,\n env: PlatformEnvironmentConfiguration,\n ): TemplateVariables {\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const runtime = resolveManifestKubernetesRuntime(env);\n const workload = asFrameworkWorkload(serviceName);\n\n return {\n namespace: runtime.namespace,\n publicDomain: runtime.publicDomain,\n imageRegistry: runtime.imageRegistry,\n imageTag: 'latest',\n imagePullPolicy: 'IfNotPresent',\n\n nodeEnv: NodeEnv.PRODUCTION,\n applicationEnv: runtime.applicationEnv,\n appsManagerMode: 'normal',\n\n ingressClass: INGRESS_CLASS,\n tlsSecretName: isLocal ? LOCAL_TLS_SECRET_NAME : undefined,\n tlsEnabled: true,\n\n resources: DEFAULT_INTERNAL_RESOURCES[serviceName] ?? DEFAULT_PLATFORM_RESOURCES,\n replicas: 1,\n\n isDevMode: false,\n\n useStaticPV: isLocal,\n storageClassName: isLocal ? 'wildo-local-storage' : undefined,\n storageSize: DEFAULT_STORAGE_SIZES[serviceName] ?? '1Gi',\n\n // #3372 — the segments this pod belongs to, so the namespace's NetworkPolicy set admits its clients and lets it\n // dial what it dials. `undefined` only for a name the membership table does not know (this builder also feeds\n // the cluster/storage renders under the name `valkey`, which read no labels); a deployment template rendered\n // with no labels would be isolated by the default-deny, and the policy-graph test renders every one of them.\n podNetworkLabelsYaml: workload ? K8sManifestGenerator.renderFrameworkWorkloadLabels(workload, env) : undefined,\n mongodbInitPodNetworkLabelsYaml:\n serviceName === PlatformDataServices.MONGODB\n ? K8sManifestGenerator.renderFrameworkWorkloadLabels(PlatformDataServices.MONGODB_INIT, env)\n : undefined,\n\n // Self-hosted immudb only: wire the StatefulSet's admin password from the\n // `immudb-secret` (emitted by `generateK8sSecrets` §3 from the platform's\n // `credentials.immudb.adminPassword`, #1696). The `secretKeyRef` is `optional`\n // so an un-provisioned secret does not crash-loop the pod. `undefined` for every other internal\n // service (they ignore the var). Prod/staging and local Kind both use it;\n // managed/external immudb never renders a StatefulSet.\n immudbAdminPasswordSecretName:\n serviceName === IMMUDB_INTERNAL_SERVICE_NAME\n ? k8sServiceSecretName(IMMUDB_INTERNAL_SERVICE_NAME)\n : undefined,\n\n // Self-hosted immudb only: mount the state-signing PRIVATE key from the same\n // `immudb-secret` (emitted by `generateK8sSecrets` §3 from `credentials.immudb`) as a file\n // and pass `--signingKey`, so immudb signs its state and the audit client can pin the public\n // key to detect a whole-server substitution. The keypair is provisioned from the\n // `FRAMEWORK_MANAGED_SECRET_MATERIALS` registry — at setup for a new env and by the idempotent\n // self-heal for an existing one — so `source === SELF` ⇒ the key is present; an env lacking it\n // would surface loudly (immudb fails to load a missing `--signingKey` file) rather than\n // silently run unsigned — the correct posture for a security control. `undefined` for every\n // other internal service and for managed/external immudb (no StatefulSet).\n immudbStateSigningKeySecretName:\n serviceName === IMMUDB_INTERNAL_SERVICE_NAME\n ? k8sServiceSecretName(IMMUDB_INTERNAL_SERVICE_NAME)\n : undefined,\n\n // Slice 4 — gating flags for cross-service templates (storage PVs).\n // Single source of truth: `EnvironmentUtils.selfHostsBackingService` is the SAME total\n // predicate `getDeployableInfraServicesForK8s` gates the StatefulSets on, so a PV and the\n // workload that claims it cannot drift. The four below joined the gated set when the\n // managed-selection defect was fixed: `valkey`, `rabbitmq`, `minio` and `postgresql` PVs were\n // rendered for every environment — including ones whose StatefulSet is now (and, for\n // postgresql, effectively always was) absent, leaving an unbound PV holding a hostPath claim.\n includeLocalMongoDB: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.MONGODB),\n // #2303 — the mongot search sidecar, which the service profile may omit beside a self-hosted mongod. Read by\n // the mongod StatefulSet (its `mongotHost` routing parameters) and the mongot PersistentVolume, through the\n // same predicate `getDeployableInfraServicesForK8s` gates the mongot workload on.\n includeMongotSidecar: includesMongoSearchSidecar(env),\n includeLocalMongotVolume: isLocal && includesMongoSearchSidecar(env),\n includeLocalValkey: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.REDIS),\n includeLocalRabbitMQ: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.RABBITMQ),\n includeLocalMinIO: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.S3),\n includePostgreSQL: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.POSTGRESQL),\n includeLocalClamAV: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.CLAMAV),\n includeLocalImmudb: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.IMMUDB),\n includeLocalPlatformKeyVault: isLocal && selfHostsPlatformKeyVault(env.platformKeyManagement),\n // #2933 — the self-hosted OpenBao's own template variables, only for its render (they read secrets).\n ...(serviceName === PlatformDataServices.OPENBAO ? buildPlatformKeyVaultTemplateVariables(env) : {}),\n\n // Issue #74 — mongot wiring, supplied to EVERY internal service render rather than\n // only to the mongot one, because two workloads consume it: the mongot templates,\n // and the mongod StatefulSet whose `--setParameter mongotHost=` must name the same\n // gRPC port. Passing it once from here is what keeps those two in agreement; a\n // literal repeated per template is the two-lane drift `mongot` was added to avoid.\n mongotGrpcPort: INFRA_DEFAULT_PORTS.MONGOT_GRPC,\n mongotHealthPort: INFRA_DEFAULT_PORTS.MONGOT_HEALTH,\n mongotMetricsPort: INFRA_DEFAULT_PORTS.MONGOT_METRICS,\n mongotSyncSourceUsername: MONGOT_SYNC_SOURCE.USERNAME,\n mongotSyncSourceAuthSource: MONGOT_SYNC_SOURCE.AUTH_SOURCE,\n mongotPasswordFilePath: MONGOT_SYNC_SOURCE.PASSWORD_FILE_PATH,\n mongotConfigFilePath: MONGOT_SYNC_SOURCE.CONFIG_FILE_PATH,\n mongotDataPath: MONGOT_SYNC_SOURCE.DATA_PATH,\n };\n }\n\n /**\n * Build TemplateVariables for the remote wildo-ai-application deployment.\n * Local application development now runs directly on the machine, so local\n * Kind runtimes no longer manage a separate application dev image/lane.\n * @param replicaOverride — common default for direct callers; target-specific counts override it, otherwise one.\n */\n static buildForApplication(\n env: PlatformEnvironmentConfiguration,\n imageTag?: string,\n replicaOverride?: number,\n ): TemplateVariables {\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const runtime = resolveManifestKubernetesRuntime(env);\n\n return {\n namespace: runtime.namespace,\n publicDomain: runtime.publicDomain,\n imageRegistry: runtime.imageRegistry,\n imageTag: imageTag ?? DEFAULT_PLATFORM_IMAGE_TAG,\n imagePullPolicy: 'Always',\n\n nodeEnv: NodeEnv.PRODUCTION,\n applicationEnv: runtime.applicationEnv,\n appsManagerMode: 'normal',\n\n ingressClass: INGRESS_CLASS,\n // Per-ingress TLS secret for remote (HTTP-01); local keeps its self-signed\n // wildcard secret. See `resolveRemoteTlsVars`.\n tlsSecretName: isLocal ? LOCAL_TLS_SECRET_NAME : APPLICATION_TLS_SECRET_NAME,\n tlsEnabled: true,\n ...resolveRemoteTlsVars(env),\n\n resources: DEFAULT_APP_PROD_RESOURCES,\n replicas: replicaOverride ?? 1,\n\n isDevMode: false,\n\n useStaticPV: false,\n\n // Durable cross-restart tamper-evidence trust anchor for the immudb audit sink. Provisioned\n // whenever the env has an immudb audit backing service configured (SELF or external/managed —\n // the anchor is the CLIENT's own file, independent of who hosts immudb). The app-backend\n // deployment then renders `IMMUDB_STATE_DIR` + a `volumeMount` + a PVC-backed volume, and\n // `renderApplicationForTarget` emits the matching PVC. Without it the client runs EPHEMERAL and a\n // cross-restart rollback of the audit ledger is silently re-adopted (signature pinning cannot\n // catch a rollback — immudb re-signs its current state). App-backend k8s manifests render for\n // REMOTE only, so the PVC always uses the dynamic default StorageClass (no local static PV).\n immudbAuditStateDir: env.backingServices?.[BackingServiceKind.IMMUDB]\n ? IMMUDB_AUDIT_STATE_CONTAINER_DIR\n : undefined,\n };\n }\n\n // --------------------------------------------------------------------------\n // Full manifest rendering\n // --------------------------------------------------------------------------\n\n /**\n * Render infrastructure and platform K8s manifests for the environment.\n * Application deployment artifacts are emitted separately by deployment CI generation.\n * Writes files to `{infraPath}/manifests/{internal,platform,applications,storage}/`.\n *\n * @param serviceReplicas — per-service replica overrides from infra config\n * `kubernetes.services.<key>.replicas`. Keys match `PlatformWildoServices`\n * enum values for platform services.\n * Internal infra services (valkey, postgresql, etc.) are always single-replica.\n */\n /**\n * @param options.outputBase — when supplied, render manifests under\n * `<outputBase>/manifests/...` instead of the canonical\n * `EnvironmentPaths.resolveInfraDir(env.name)/manifests/...` location.\n * Used by `wildo config validate --domain manifest` (Slice 6 / F-19)\n * to render into a sandbox tempdir so the validation pass does NOT\n * silently mutate the operator's persisted infra state. ALL render\n * side effects (mkdir, rmSync, writeFileSync) honor this base — no\n * path falls through to the canonical location when an override is\n * passed.\n */\n static renderAllManifests(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n options: {\n imageTag?: string;\n serviceReplicas?: Record<string, number>;\n isFrameworkDeveloper?: boolean;\n outputBase?: string;\n } = {},\n ): { total: number; dirs: { cluster: string; internal: string; platform: string; applications: string; storage: string } } {\n // Rendering into a caller-owned sandbox (`config validate`) mutates nothing shared; rendering the\n // environment's own manifests is the infrastructure owner's.\n if (options.outputBase === undefined) {\n InfrastructureHost.assertOwnsSharedInfrastructure(env, SharedInfrastructureAction.RENDER_PLATFORM_MANIFESTS);\n }\n const infraPath = options.outputBase ?? EnvironmentPaths.resolveInfraDir(env.name);\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const includePlatformServices = shouldDeployPlatformServicesInRuntime(\n env,\n options.isFrameworkDeveloper ?? false,\n );\n\n const templateProcessor = new TemplateProcessor(\n K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath),\n );\n\n const clusterDir = join(infraPath, 'manifests', 'cluster');\n const internalDir = join(infraPath, 'manifests', 'internal');\n const platformDir = join(infraPath, 'manifests', 'platform');\n const applicationsDir = join(infraPath, 'manifests', 'applications');\n const storageDir = join(infraPath, 'manifests', 'storage');\n\n mkdirSync(clusterDir, { recursive: true });\n mkdirSync(internalDir, { recursive: true });\n mkdirSync(storageDir, { recursive: true });\n rmSync(platformDir, { recursive: true, force: true });\n rmSync(applicationsDir, { recursive: true, force: true });\n if (includePlatformServices) {\n mkdirSync(platformDir, { recursive: true });\n }\n if (!isLocal) {\n mkdirSync(applicationsDir, { recursive: true });\n }\n\n let total = 0;\n\n // --- Cluster-wide infra (middlewares, TLS config) ---\n total += K8sManifestGenerator.renderClusterInfra(\n templateProcessor, env, clusterDir, frameworkPath,\n );\n\n // --- Storage PVs (local mode only) ---\n if (isLocal) {\n total += K8sManifestGenerator.renderStorageManifests(\n templateProcessor, env, storageDir, frameworkPath,\n );\n }\n\n // --- Internal services ---\n // Per-env list (Slice 4) — gates MongoDB on `needsLocalMongoDB` and\n // (Slice 4.8) ClamAV on `resolveIncludeLocalClamAV`. Atlas / managed\n // configurations therefore never get a local mongod manifest emitted.\n for (const serviceName of getDeployableInfraServicesForK8s(env)) {\n total += K8sManifestGenerator.renderInternalService(\n templateProcessor, serviceName, env, internalDir, frameworkPath,\n );\n }\n\n // --- Platform services ---\n const platformServices = Object.values(PlatformWildoServices).filter(\n s => s !== PlatformWildoServices.PLATFORM_INIT,\n );\n if (includePlatformServices) {\n for (const service of platformServices) {\n total += K8sManifestGenerator.renderPlatformService(\n templateProcessor, service, env, platformDir, frameworkPath, options.imageTag,\n options.serviceReplicas?.[service],\n );\n }\n }\n\n // --- Application ---\n // The app (+ its minions/workers) is rendered PER-APP by the CI deploy lane\n // (`generateCiDeployArtifacts` → `renderApplicationForTarget` /\n // `renderMinionForTarget` / `renderWorkerForTarget`), which has the resolved\n // app target (identity, ports, ingress routes). `renderAllManifests` is the\n // LOCAL-only infra/platform lane and does NOT render the app — the old\n // target-less `renderApplication` produced empty-identity / port-less\n // manifests and was removed (it was reachable only via remote\n // `validate --domain manifest`, where it emitted broken YAML).\n\n return { total, dirs: { cluster: clusterDir, internal: internalDir, platform: platformDir, applications: applicationsDir, storage: storageDir } };\n }\n\n /**\n * Render the per-env remote-cluster TLS infra as FLAT files into the CI\n * deploy dir (`.wildo-saas/deploy/<env>/k8s/`), applied by the CI's\n * `kubectl apply -f <dir>` (which is NON-recursive — hence flat siblings of\n * the Secret YAMLs, not a nested `cluster/` subdir like `renderAllManifests`).\n *\n * This is the remote counterpart to the LOCAL-only `renderClusterInfra`\n * (which runs inside `renderAllManifests`). The remote CI path\n * (`generateCiDeployArtifacts`) does NOT call `renderAllManifests`; it emits\n * Secrets/ConfigMaps and — via this method — the cluster TLS manifests and\n * the namespace's NetworkPolicy set.\n *\n * Emits (HTTP-01 per-ingress strategy):\n * - `cluster-issuer.yaml` — Let's Encrypt HTTP-01 `ClusterIssuer`s\n * (prod + staging), registration email from `remoteProvider.acmeEmail`.\n * - `tls-config.yaml` — the Traefik websocket `ServersTransport`. The\n * wildcard `TLSStore` default block is suppressed here (`perIngressTls`)\n * because no wildcard secret backs it under per-ingress issuance.\n * - `network-policies.yaml` — the namespace's NetworkPolicy set (#3511), from\n * {@link renderNamespaceNetworkPolicies}: the segments every pod's labels name,\n * the egress allows to the backing services the environment serves off the\n * cluster, and the ingress allow the ACME HTTP-01 solver needs.\n *\n * The cert-manager + Traefik CONTROLLERS are Helm-installed by the CI\n * workflow (`deploy-k8s.yml.hbs`), NOT rendered here.\n *\n * Local envs render nothing (returns `[]`) — their ingress stack is owned by\n * `k8s-bootstrap.service.ts::phaseIngressStack`.\n *\n * @returns absolute paths of the manifests written.\n */\n static renderRemoteClusterInfra(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n k8sDir: string,\n ): string[] {\n if (env.locationType === WildoLocationType.LOCAL) return [];\n\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const tp = new TemplateProcessor(templatesRoot);\n const vars = {\n ...K8sManifestGenerator.buildForInternalService('valkey', env),\n ...resolveRemoteTlsVars(env),\n } as unknown as Record<string, unknown>;\n\n const templates = [\n { template: 'ingress/cert-manager/cluster-issuer.yaml.hbs', output: 'cluster-issuer.yaml' },\n { template: 'tls-config.yaml.hbs', output: 'tls-config.yaml' },\n ];\n\n const written: string[] = [];\n for (const { template, output } of templates) {\n if (!existsSync(join(templatesRoot, template))) continue;\n const outputPath = join(k8sDir, output);\n writeFileSync(outputPath, tp.processTemplate(template, vars), 'utf8');\n written.push(outputPath);\n }\n\n // #3511 — the namespace's NetworkPolicy set. Until then it was written only by the LOCAL lane's\n // `renderClusterInfra`, so on a remote cluster every pod carried `wildo.ai/net-*` labels that no policy read and\n // every pod reached every other. A flat sibling like the files above, for the same non-recursive apply. Here, in\n // the cluster-owner's half, because a policy set is namespace-wide: a hosted application shares its host's\n // namespace and is governed by the host's set, exactly as it shares the host's ClusterIssuer.\n const policiesPath = join(k8sDir, NETWORK_POLICIES_MANIFEST_FILE);\n writeFileSync(policiesPath, K8sManifestGenerator.renderNamespaceNetworkPolicies(env), 'utf8');\n written.push(policiesPath);\n return written;\n }\n\n /**\n * The namespace's NetworkPolicy set (Step 5-egress, #3372, #3511), serialised from the typed documents of\n * `buildRuntimeNetworkPolicyDocuments` — never from a template, which would be a second description of the shape.\n * One method for both lanes, so the local `cluster/network-policies.yaml` and the remote CI deploy's file cannot\n * describe different policy sets for the same environment.\n *\n * What depends on the environment, and where it comes from:\n * - **The off-cluster allows**: one per segment whose backing service the environment serves from outside its\n * deployment, derived from its declared providers by `resolveOffClusterBackingServices`. A local Kind environment\n * pointed at a managed Atlas cluster needs it as much as a remote one does.\n * - **The ACME HTTP-01 solver allow**: a remote environment's certificates come from the HTTP-01 `ClusterIssuer`\n * `renderRemoteClusterInfra` writes, whose solver pod the ingress controller must reach; a local one's do not.\n * - **The namespace**: a remote environment's own, with no default (the CI applies with `-n` and a mismatching\n * `metadata.namespace` would be refused); the local default otherwise.\n */\n static renderNamespaceNetworkPolicies(env: PlatformEnvironmentConfiguration): string {\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const namespace = isLocal ? env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE : env.kubernetes?.namespace;\n const documents = buildRuntimeNetworkPolicyDocuments(namespace, {\n offClusterServices: resolveOffClusterBackingServices(env),\n admitsAcmeHttp01Solver: !isLocal,\n });\n return documents.map((document) => stringifyYaml(document)).join('---\\n');\n }\n\n /**\n * Render the provider-agnostic remote Traefik Helm values\n * (`traefik/values.yaml.hbs`) to `<outputDir>/traefik-values.yaml`, referenced\n * by the CI `helm upgrade --install traefik ... -f traefik-values.yaml` step.\n * Provider-agnostic: a plain `LoadBalancer` service, no cloud LB annotations. The values template keeps a generic\n * `loadBalancerAnnotations` hook, which nothing fills today. A Scaleway-specific annotations partial lived beside it,\n * rendered by nothing, and was deleted (#3498): no remote Kubernetes environment exists (#1172), and per-brand\n * support is written when an environment deploys to that brand (#1695), as an authored, typed environment field\n * passed into that hook, never as an unwired partial. Every\n * variable the template reads is `{{default …}}`-guarded, so an empty context\n * renders the generic values. Local envs render nothing (returns `null`).\n *\n * @returns the absolute path written, or `null` when nothing was rendered.\n */\n static renderRemoteTraefikValues(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n outputDir: string,\n ): string | null {\n if (env.locationType === WildoLocationType.LOCAL) return null;\n\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const template = 'ingress/traefik/values.yaml.hbs';\n if (!existsSync(join(templatesRoot, template))) return null;\n\n const tp = new TemplateProcessor(templatesRoot);\n const outputPath = join(outputDir, 'traefik-values.yaml');\n writeFileSync(outputPath, tp.processTemplate(template, {}), 'utf8');\n return outputPath;\n }\n\n // --------------------------------------------------------------------------\n // Private rendering helpers\n // --------------------------------------------------------------------------\n\n /**\n * The pod-label block of a framework workload (#3372): its segments from `resolveFrameworkWorkloadNetworks`, indented\n * for the pod template's `labels:` mapping (eight spaces, like every runtime's).\n */\n private static renderFrameworkWorkloadLabels(workload: FrameworkWorkload, env: PlatformEnvironmentConfiguration): string {\n return K8sManifestGenerator.renderPodLabelBlock(\n buildNetworkMembershipPodLabels(\n resolveFrameworkWorkloadNetworks(workload, { selfHostsPlatformKeyVault: selfHostsPlatformKeyVault(env.platformKeyManagement) }),\n ),\n 8,\n );\n }\n\n /**\n * Render pod labels as an indented YAML block.\n *\n * Values are quoted unconditionally: a label value is a string, and an\n * unquoted `true` would be parsed as a BOOLEAN by any conformant YAML reader —\n * which is exactly the value every network label carries.\n */\n private static renderPodLabelBlock(labels: Record<string, string>, indent: number): string {\n const pad = ' '.repeat(indent);\n return Object.entries(labels)\n .sort(([a], [b]) => a.localeCompare(b))\n .map(([key, value]) => `${pad}${key}: \"${value}\"`)\n .join('\\n');\n }\n\n private static renderClusterInfra(\n tp: TemplateProcessor,\n env: PlatformEnvironmentConfiguration,\n outputDir: string,\n frameworkPath: string,\n ): number {\n const baseVars = K8sManifestGenerator.buildForInternalService('valkey', env);\n let count = 0;\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n\n /*\n * `middleware.yaml.hbs` was here until 2026-09-08 and is deliberately gone (#432). It rendered\n * FIVE Traefik middlewares — rate-limit, security-headers, cors-api, strip-api-prefix, compress —\n * into every namespace, and the only ingress template annotated its middleware reference as a\n * literal empty string, so no route ever used any of them. The measured finding named two; all\n * five were unreferenced.\n *\n * The consequence, chosen rather than discovered: THE EDGE IS NO LONGER A PLACE WILDO ADDS\n * PROTECTION. Rate limiting and security headers are the application's own concern, in its\n * backend. Reintroducing an edge middleware means choosing its values — a rate limit that\n * reaches a live route can break a legitimate high-volume integration — which is why deploying\n * them unreferenced was worse than not deploying them at all.\n */\n const clusterTemplates = [\n { template: 'tls-config.yaml.hbs', output: 'tls-config.yaml' },\n { template: 'namespace.yaml.hbs', output: 'namespace.yaml' },\n ];\n\n for (const { template, output } of clusterTemplates) {\n const templatePath = join(templatesRoot, template);\n if (!existsSync(templatePath)) continue;\n\n const content = tp.processTemplate(template, baseVars as unknown as Record<string, unknown>);\n writeFileSync(join(outputDir, output), content, 'utf8');\n count++;\n }\n\n // Network segmentation (Step 5-egress, half A). Serialised from the typed\n // documents rather than rendered from a `.hbs` template: the shape is decided\n // in `platform-config-lib` and a template would be a SECOND description of it,\n // free to drift. `yaml` is already a dependency of this package, so nothing is\n // hand-rolled either.\n //\n // Safe to emit only because every pod rendered into the namespace carries the\n // labels these policies select on — the default-deny selects EVERY pod. Until\n // #3372 only the app-owned pods did, so the backing and platform services this\n // lane renders were isolated from both ends; `renderFrameworkWorkloadLabels`\n // now labels them, and `k8s-network-policy-graph.test.ts` evaluates the\n // rendered policies against every rendered pod.\n writeFileSync(join(outputDir, NETWORK_POLICIES_MANIFEST_FILE), K8sManifestGenerator.renderNamespaceNetworkPolicies(env), 'utf8');\n count++;\n\n return count;\n }\n\n private static renderStorageManifests(\n tp: TemplateProcessor,\n env: PlatformEnvironmentConfiguration,\n outputDir: string,\n frameworkPath: string,\n ): number {\n const pvTemplate = 'storage/local/persistent-volumes.yaml.hbs';\n const pvPath = join(K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath), pvTemplate);\n if (!existsSync(pvPath)) return 0;\n\n const vars = K8sManifestGenerator.buildForInternalService('valkey', env);\n const content = tp.processTemplate(pvTemplate, vars as unknown as Record<string, unknown>);\n writeFileSync(join(outputDir, 'persistent-volumes.yaml'), content, 'utf8');\n return 1;\n }\n\n private static renderInternalService(\n tp: TemplateProcessor,\n serviceName: string,\n env: PlatformEnvironmentConfiguration,\n outputDir: string,\n frameworkPath: string,\n ): number {\n const vars = K8sManifestGenerator.buildForInternalService(serviceName, env);\n let count = 0;\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n\n const templates = [\n { template: `internal/${serviceName}/deployment.yaml.hbs`, output: `${serviceName}-deployment.yaml` },\n { template: `internal/${serviceName}/service.yaml.hbs`, output: `${serviceName}-service.yaml` },\n { template: `internal/${serviceName}/configmap.yaml.hbs`, output: `${serviceName}-configmap.yaml` },\n ];\n\n for (const { template, output } of templates) {\n const templatePath = join(templatesRoot, template);\n if (!existsSync(templatePath)) continue;\n\n const content = tp.processTemplate(template, vars as unknown as Record<string, unknown>);\n writeFileSync(join(outputDir, output), content, 'utf8');\n count++;\n }\n\n return count;\n }\n\n private static renderPlatformService(\n tp: TemplateProcessor,\n service: PlatformWildoServices,\n env: PlatformEnvironmentConfiguration,\n outputDir: string,\n frameworkPath: string,\n imageTag?: string,\n replicaOverride?: number,\n ): number {\n if (service === PlatformWildoServices.PLATFORM_INIT) return 0;\n\n const catalog = PLATFORM_SERVICE_CATALOG[service as Exclude<PlatformWildoServices, PlatformWildoServices.PLATFORM_INIT>];\n const containerName = catalog.containerName;\n const vars = K8sManifestGenerator.buildForPlatformService(service, env, imageTag, replicaOverride);\n /*\n * The deployment templates render `--max-old-space-size={{heapCeilingMb}}` unconditionally, and the\n * template engine renders a missing value as an empty string — a pod that starts with no heap\n * ceiling and no error. Refuse instead (#1592).\n */\n if (!vars.heapCeilingMb) {\n throw new Error(\n `Platform service '${service}' has no heap ceiling to render; every PLATFORM_SERVICE_CATALOG entry must declare its measured memory profile.`,\n );\n }\n let count = 0;\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n\n // Deployment template (always .hbs)\n const deploymentTemplate = `platform/${containerName}/deployment.yaml.hbs`;\n const deploymentPath = join(templatesRoot, deploymentTemplate);\n if (existsSync(deploymentPath)) {\n const content = tp.processTemplate(deploymentTemplate, vars as unknown as Record<string, unknown>);\n writeFileSync(join(outputDir, `${containerName}-deployment.yaml`), content, 'utf8');\n count++;\n }\n\n // Service manifest (static .yaml, not templated)\n const staticServicePath = join(templatesRoot, 'platform', containerName, 'service.yaml');\n if (existsSync(staticServicePath)) {\n const content = readFileSync(staticServicePath, 'utf8');\n writeFileSync(join(outputDir, `${containerName}-service.yaml`), content, 'utf8');\n count++;\n }\n\n return count;\n }\n\n /**\n * Render the per-app single-pod Deployment + Ingress + Service for ONE app\n * from its resolved deploy target, returning `{name, yaml}` pairs the caller\n * writes as FLAT files (the CI lane's `kubectl apply -f <dir>` is\n * non-recursive, so no nested `applications/` subdir).\n *\n * This is the reachable remote self-host app-deploy path. It supersedes the\n * old target-less `renderApplication` (removed): that one was gated `!isLocal`\n * inside the LOCAL-only `renderAllManifests`, so it never ran on the real\n * deploy path and — once the templates were parameterized — emitted broken\n * empty-identity manifests (see\n * `remote-k8s-deploy-two-lanes-renderallmanifests-local-only`). App identity,\n * container/Service ports, ingress host→port routes, per-app TLS secret, and\n * the `{appSlug}-secret` mount are all parameterized per-app from `target`\n * (mirrors the compose app lane `docker-compose.app.yml.hbs`). Local Kind\n * does NOT deploy the app in-cluster, so this is remote-only.\n */\n /**\n * Render the per-service k8s manifests for one app (per-service deploy model):\n * - the BACKEND Deployment + Service (its one API port; image\n * `{registry}/{backendServiceName}:{tag}`; health probes on `healthPort`);\n * - ONE nginx Deployment + Service PER frontend (image\n * `{registry}/{frontendServiceName}:{tag}`, serving on :80);\n * - ONE Ingress whose rules route each serviceHosts host → its OWN per-service\n * Service (`ingressRoutes[].serviceName`), not a shared app Service.\n * Returns flat `{serviceName}-{deployment|service}` + `{appName}-ingress`\n * manifests. Remote-only (the CI deploy lane).\n */\n static renderApplicationForTarget(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n target: {\n /** The application's own store (#3367): it bounds this runtime's database network segments. */\n applicationDatabaseEngine: DatabaseEngine;\n appName: string;\n backendServiceName?: string;\n /** Per-backend desired count; takes precedence over the common direct-call override. */\n backendReplicas?: number;\n ingressRoutes?: Array<{ host: string; serviceName: string; port: number }>;\n podPorts?: Array<{ name: string; containerPort: number }>;\n healthPort?: number;\n /**\n * Effective backend container isolation, already resolved through\n * `resolveAppServiceIsolation` — NOT the raw authored block. Resolution\n * happens once at the config boundary so this renderer and the compose app\n * lane cannot apply different fallbacks to the same service row.\n */\n isolation?: { runAsUser: number; runAsGroup: number; writablePaths: string[] };\n frontends?: Array<{\n replicas?: number;\n serviceName: string;\n port: number;\n /** Same contract as the backend `isolation` above, per frontend. */\n isolation?: { runAsUser: number; runAsGroup: number; writablePaths: string[] };\n }>;\n },\n imageTag?: string,\n replicaOverride?: number,\n ): Array<{ name: string; yaml: string }> {\n // Fail-closed: without an app slug, a backend service + its ports, or ingress\n // routes we'd emit invalid/empty manifests. The CI lane already gates on\n // ingressRoutes.length; this guards any direct caller too.\n if (\n !target.appName ||\n !target.backendServiceName ||\n !target.ingressRoutes?.length ||\n !target.podPorts?.length\n ) {\n return [];\n }\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const tp = new TemplateProcessor(templatesRoot);\n const base = K8sManifestGenerator.buildForApplication(\n env,\n imageTag,\n replicaOverride,\n ) as unknown as Record<string, unknown>;\n const rendered: Array<{ name: string; yaml: string }> = [];\n\n const renderTpl = (file: string, name: string, vars: Record<string, unknown>): void => {\n const tpl = `applications/${APPLICATION_NAME}/${file}`;\n if (existsSync(join(templatesRoot, tpl))) {\n rendered.push({ name, yaml: tp.processTemplate(tpl, vars) });\n }\n };\n\n // --- Backend Deployment + Service (the primary backend's own pod) ---\n const backendVars: Record<string, unknown> = {\n // The application backend reaches every backing service the app provisions,\n // and serves the public route, so it joins the edge as well.\n runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(\n buildRuntimeNetworkPodLabels(\n { kind: ApplicationRuntimePrincipalKind.APPLICATION_BACKEND } as ApplicationRuntimePrincipal,\n undefined,\n { servesHttp: true, applicationDatabaseEngine: target.applicationDatabaseEngine },\n ),\n 8,\n ),\n ...base,\n appName: target.appName,\n serviceName: target.backendServiceName,\n replicas: target.backendReplicas ?? replicaOverride ?? 1,\n // The backend's own provider Secret (#369). Resolved through the SAME helper the emit side\n // calls, never composed in the template — emit-name and mount-name are one decision, and this\n // file already carries the scar of the version where they were two.\n // The backend's own environment Secret. Threaded rather than composed as `{{appName}}-secret`\n // in the template, so every mount name in this lane is resolved by one function (#377).\n runtimeEnvSecretName: k8sRuntimeEnvSecretName(target.appName),\n providersSecretName: k8sRuntimeProvidersSecretName(target.appName),\n ports: target.podPorts,\n healthPort: target.healthPort,\n // Defaults repeated for a direct caller that passes a partial target: an\n // undefined uid renders `runAsUser:` with an empty value, which k8s\n // rejects only at apply time. Kept equal to\n // `APP_BACKEND_DEFAULT_RUNTIME_UID` by importing it rather than retyping.\n isolation: {\n runAsUser: target.isolation?.runAsUser ?? APP_BACKEND_DEFAULT_RUNTIME_UID,\n runAsGroup: target.isolation?.runAsGroup ?? APP_BACKEND_DEFAULT_RUNTIME_UID,\n },\n writableMounts: buildWritableMounts(target.isolation?.writablePaths),\n };\n renderTpl('backend.deployment.yaml.hbs', `${target.backendServiceName}-deployment`, backendVars);\n renderTpl('backend.service.yaml.hbs', `${target.backendServiceName}-service`, backendVars);\n // Durable immudb audit trust-anchor PVC — emitted ONLY when the env configured an immudb audit\n // backing service (buildForApplication set `immudbAuditStateDir`). The deployment above mounts it\n // and points IMMUDB_STATE_DIR at it; without it the audit client would run EPHEMERAL in-cluster.\n if (backendVars.immudbAuditStateDir) {\n renderTpl(\n 'backend.immudb-audit-state.pvc.yaml.hbs',\n `${target.backendServiceName}-immudb-audit-state-pvc`,\n backendVars,\n );\n }\n\n // --- Frontend Deployments + Services (one nginx pod per frontend) ---\n for (const fe of target.frontends ?? []) {\n const feVars: Record<string, unknown> = {\n // A static frontend is NOT a runtime principal: it holds no credential and\n // reaches no backing service. Passing `undefined` yields the narrowest set,\n // which is the honest answer — passing APPLICATION_BACKEND to \"keep it\n // simple\" would put an nginx container on every database segment.\n // It joins the edge only: `resolveRuntimeNetworkMembership` adds PLATFORM\n // for runtime principals alone, and a static frontend is none.\n runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(\n buildRuntimeNetworkPodLabels(undefined, undefined, { servesHttp: true, applicationDatabaseEngine: target.applicationDatabaseEngine }),\n 8,\n ),\n ...base,\n appName: target.appName,\n serviceName: fe.serviceName,\n replicas: fe.replicas ?? replicaOverride ?? 1,\n frontendPort: fe.port,\n isolation: {\n runAsUser: fe.isolation?.runAsUser ?? APP_FRONTEND_DEFAULT_RUNTIME_UID,\n runAsGroup: fe.isolation?.runAsGroup ?? APP_FRONTEND_DEFAULT_RUNTIME_UID,\n },\n // The nginx mounts are appended even on the fallback path: a frontend\n // rendered from a partial target still gets a read-only rootfs, and\n // without them nginx cannot start at all.\n writableMounts: buildWritableMounts(\n fe.isolation?.writablePaths ?? [...APP_FRONTEND_MANDATORY_WRITABLE_PATHS],\n ),\n };\n renderTpl('frontend.deployment.yaml.hbs', `${fe.serviceName}-deployment`, feVars);\n renderTpl('frontend.service.yaml.hbs', `${fe.serviceName}-service`, feVars);\n }\n\n // --- Ingress (one object; each rule → its per-service Service) ---\n const ingressVars: Record<string, unknown> = {\n ...base,\n appName: target.appName,\n ingressRoutes: target.ingressRoutes,\n // One cert per app-ingress (HTTP-01 per-ingress) into `{appSlug}-tls`,\n // overriding buildForApplication's framework `wildo-ai-application-tls`.\n tlsSecretName: `${target.appName}-tls`,\n };\n renderTpl('ingress.yaml.hbs', `${target.appName}-ingress`, ingressVars);\n\n // --- Custom-domain Ingress reconciler (#2974) ---\n // Organizations' domains are proven at runtime, so their Ingresses are written by a namespaced reconciler that asks\n // the backend which domains are served. Rendered only when the backend has a public route: its port is the one the\n // reconciler asks on, and a backend with no route serves no domain anyway.\n const backendRoute = target.ingressRoutes.find((route) => route.serviceName === target.backendServiceName);\n if (backendRoute) {\n // One object per rendered entry, as every other manifest here: the template holds the reconciler's six objects\n // (ServiceAccount, Role, RoleBinding, NetworkPolicy, ConfigMap, CronJob), split on their document separators.\n const reconcilerStart = rendered.length;\n renderTpl('custom-domain-reconciler.yaml.hbs', `${target.appName}-custom-domain-reconciler`, {\n ...base,\n appName: target.appName,\n backendServiceName: target.backendServiceName,\n backendPort: backendRoute.port,\n edgePath: ENGINE_ROOT_ROUTES[EngineRootRouteKey.EDGE_CUSTOM_DOMAINS],\n managedBy: CUSTOM_DOMAIN_RECONCILER_MANAGED_BY,\n reconcilerImage: CUSTOM_DOMAIN_RECONCILER_IMAGE,\n backendPathPrefixesJson: JSON.stringify(CUSTOM_DOMAIN_BACKEND_PATH_PREFIXES),\n // Every routed service's port by Service name: the backend names the default frontend at run time.\n servicePortsJson: JSON.stringify(Object.fromEntries(target.ingressRoutes.map((route) => [route.serviceName, route.port]))),\n });\n const combined = rendered.splice(reconcilerStart)[0];\n if (combined) {\n // The template's leading comment rides with its first object, the ServiceAccount.\n for (const object of combined.yaml.split(/^---$/m)) {\n const kind = /^kind:\\s*(\\S+)/m.exec(object)?.[1]?.toLowerCase() ?? 'object';\n rendered.push({ name: `${combined.name}-${kind}`, yaml: object.trimStart() });\n }\n }\n }\n\n return rendered;\n }\n\n /**\n * Render the per-app, per-minion Deployment (KD-5/KD-8 — singleton, no\n * Service, no Ingress; shares the app scope + mounts the SAME `{appSlug}-secret`).\n * Maps the authored reinstantiation policy → K8s strategy (per\n * `MinionReinstantiationSchema`: `kill_previous`→Recreate, `let_run`→RollingUpdate)\n * and builds the liveness `exec` command from the liveness spec. Per-service\n * model: the minion runs its OWN per-minion image\n * `{registry}/{appSlug}-minion-{dnsName}` (built from its package Dockerfile\n * — symmetric with the worker's `{appSlug}-worker-{dnsName}`; NOT the deleted\n * single-pod `{appSlug}` app image), where `dnsName` is the bucket key\n * RFC1123-normalized via `buildMinionServiceName` so a camelCase key\n * (`marketingScrapper`) yields a valid image tag / object name\n * (`marketing-scrapper`). Headless role — marked by the\n * `wildo.ai/owned-service-kind: minion` pod label; no `APP_OWNED_SERVICE_*`\n * env is stamped, as the Node minion sources identity from its compiled-in\n * `defineMinionInit` config, not env. The RAW bucket key remains the minion's\n * IDENTITY (the `wildo.ai/owned-service-name` label), distinct from the DNS name.\n * Returns one flat `{appSlug}-minion-{dnsName}` manifest. Remote-only.\n *\n * This renderer selects the per-minion image. The generated deployment CI\n * workflow owns building and publishing that image from its package Dockerfile.\n */\n static renderMinionForTarget(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n target: {\n /** The application's own store (#3367): it bounds this runtime's database network segments. */\n applicationDatabaseEngine: DatabaseEngine;\n appName: string;\n minionName: string;\n /**\n * What this minion DECLARED — forwarded so its pod carries the network\n * labels its `NetworkPolicy` set selects on (Step 5-egress / 5A).\n * Optional here and absent means \"declared nothing\", which yields the\n * NARROWEST label set rather than none — the same fail-closed direction as\n * every other consumer of this declaration.\n */\n accessDeclaration?: RuntimeAccessDeclaration;\n reinstantiationPolicy?: 'kill_previous' | 'let_run';\n gracePeriodSec?: number;\n /**\n * The PARSED `wildo.minion.config.ts > liveness`, whole. Absent means the schema defaults. The probe\n * command, its cadence and the heartbeat env are all derived from this one value\n * (`minion-liveness.contracts.ts`, #1859), so a caller cannot hand the probe one interval and the\n * writer another.\n */\n liveness?: MinionLiveness;\n /**\n * Authored `wildo.minion.config.ts > isolation`. Only the image-dependent\n * (`runAsUser`/`runAsGroup`) and ADDITIVE (`writablePaths`) knobs travel\n * here — the security floor is emitted unconditionally by the template and\n * is deliberately not representable in this shape, so no caller can pass a\n * value that lowers it. See `MinionIsolationSchema`.\n */\n isolation?: { runAsUser?: number; runAsGroup?: number; writablePaths?: string[]; pidsLimit?: number };\n imageRef?: string;\n },\n imageTag?: string,\n ): Array<{ name: string; yaml: string }> {\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const tpl = `applications/${APPLICATION_NAME}/minion.deployment.yaml.hbs`;\n if (!existsSync(join(templatesRoot, tpl))) return [];\n const tp = new TemplateProcessor(templatesRoot);\n const base = K8sManifestGenerator.buildForApplication(env, imageTag);\n\n const useRollingUpdate = target.reinstantiationPolicy === 'let_run';\n // Probe command, probe cadence and the heartbeat env the minion runtime writes from: ONE parsed liveness,\n // three derivations, all owned by platform-config-lib (#1859). The previous inline `find -mmin` command\n // with its own fallback literals had no producer at all and could not be shared with compose.\n const livenessCommand = buildMinionLivenessProbeCommand(target.liveness);\n const livenessTiming = deriveMinionLivenessProbeTiming(target.liveness);\n const livenessHeartbeatEnv = buildMinionLivenessHeartbeatEnv(target.liveness);\n\n // The RFC1123-normalized DNS name (k8s object + image ref). `minionName`\n // stays the RAW bucket key — it is the minion's IDENTITY, stamped verbatim\n // as the `wildo.ai/owned-service-name` pod label. Splitting the two is why\n // the template consumes `{{minionServiceName}}` for names and `{{minionName}}`\n // for the identity label (see the schema-reshape rule on distinct concepts).\n const minionServiceName = buildMinionServiceName(target.appName, target.minionName);\n\n // The MANDATORY `/tmp` mount always leads, then any authored additions.\n //\n // This pairing is load-bearing, not cosmetic: the template emits\n // `readOnlyRootFilesystem: true`, and the default liveness probe writes to\n // `/tmp/wildo-minion-alive`. Emitting the read-only flag without a writable\n // /tmp restart-loops every HEALTHY minion, and the k8s event names a failing\n // probe rather than the missing mount — a long way from the cause. The\n // schema rejects `/tmp` in `writablePaths` (duplicate mountPath = pod\n // refused at admission), so prepending here cannot collide.\n //\n // Volume names are RFC1123: lowercase alphanumerics and '-'. Deriving them\n // from the path (rather than an index) keeps a manifest diff readable when a\n // path is added in the middle of the list.\n const writableMounts = buildWritableMounts(target.isolation?.writablePaths);\n\n const vars: Record<string, unknown> = {\n namespace: base.namespace,\n imageRegistry: base.imageRegistry,\n imageTag: base.imageTag,\n imagePullPolicy: base.imagePullPolicy,\n applicationEnv: base.applicationEnv,\n appName: target.appName,\n minionServiceName,\n // Scoped to `providers.scopes.minions.<name>`, keyed on the SAME DNS name the Deployment\n // uses (#369) — one runtime, one provider Secret, one name.\n // This minion's OWN environment Secret — no longer the backend's (#377).\n runtimeEnvSecretName: k8sRuntimeEnvSecretName(minionServiceName),\n providersSecretName: k8sRuntimeProvidersSecretName(minionServiceName),\n minionName: target.minionName,\n imageRef: target.imageRef ?? `${base.imageRegistry}/${minionServiceName}:${base.imageTag}`,\n reinstantiationStrategy: useRollingUpdate ? 'RollingUpdate' : 'Recreate',\n useRollingUpdate,\n gracePeriodSeconds: target.gracePeriodSec,\n // JSON-encode the command → a valid YAML flow sequence whose string\n // elements are always-valid scalars (guards against `:`/`#` in an\n // authored filePath/execCommand corrupting the manifest).\n livenessCommandJson: JSON.stringify(livenessCommand),\n livenessPeriodSeconds: livenessTiming.periodSeconds,\n livenessTimeoutSeconds: livenessTiming.timeoutSeconds,\n livenessFailureThreshold: livenessTiming.failureThreshold,\n livenessStartupFailureThreshold: livenessTiming.startupFailureThreshold,\n // `- name: K` / `value: <JSON string>` pairs, pre-rendered for the same reason as the command: a JSON\n // string is a valid YAML double-quoted scalar whatever an authored path contains. Not `$`-escaped, and\n // deliberately: the kubelet expands `$(NAME)` in env values AND in exec probe commands, so escaping one side\n // only would hand the writer and the probe two different paths. The schema refuses `$` in a heartbeat\n // `filePath` instead (`refineLivenessFileIsWritable`), which keeps both sides literal.\n livenessHeartbeatEnvYaml: Object.entries(livenessHeartbeatEnv)\n .map(([name, value]) => ` - name: ${name}\\n value: ${JSON.stringify(value)}`)\n .join('\\n'),\n // Pre-rendered as an indented YAML block rather than iterated in the\n // template: Handlebars `{{#each}}` whitespace is fragile inside a YAML\n // mapping, and a mis-indented label silently becomes a sibling key. Same\n // reasoning as `livenessCommandJson` above — serialise where the types are.\n runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(\n buildRuntimeNetworkPodLabels(\n { kind: ApplicationRuntimePrincipalKind.MINION, name: target.minionName } as ApplicationRuntimePrincipal,\n target.accessDeclaration,\n // A minion serves no HTTP route, so it never joins the edge segment.\n { servesHttp: false, applicationDatabaseEngine: target.applicationDatabaseEngine },\n ),\n 8,\n ),\n // Defaults mirror `MinionIsolationSchema`. Repeated here because this\n // renderer is reachable from callers that pass a partially-populated\n // target (the schema defaults apply at config-parse time, not here), and\n // an undefined uid would emit `runAsUser:` with an empty value — which\n // k8s rejects, but only at apply time.\n isolation: {\n runAsUser: target.isolation?.runAsUser ?? 10001,\n runAsGroup: target.isolation?.runAsGroup ?? 10001,\n },\n writableMounts,\n };\n return [{ name: minionServiceName, yaml: tp.processTemplate(tpl, vars) }];\n }\n\n /**\n * Render the per-app, per-worker Deployment + ClusterIP Service (KD-3 —\n * in-cluster HTTP only, no Ingress; mounts `{appSlug}-secret` for the 4-env\n * bootstrap it uses to fetch its worker-bootstrap key). Scalable (`replicas`).\n * Worker image is per-worker (`{registry}/{appSlug}-worker-{dnsName}`), where\n * `dnsName` is the bucket key RFC1123-normalized via `buildWorkerServiceName`\n * (`myRustWorker` → `my-rust-worker`) so the tag / object name / dispatch host\n * are valid and coherent. The RAW bucket key stays the worker IDENTITY\n * (`APP_OWNED_SERVICE_NAME` + `wildo.ai/owned-service-name` label).\n * Returns two flat manifests. Remote-only.\n *\n * NOTE: deploying the worker does NOT make it invokable — the backend→worker\n * dispatch client + `WILDO_WORKER_<NAME>_URL` injection (G-8 / MW4) is a\n * separate, not-yet-built feature. See the Phase 8 plan.\n */\n static renderWorkerForTarget(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n target: {\n /** The application's own store (#3367): it bounds this runtime's database network segments. */\n applicationDatabaseEngine: DatabaseEngine;\n appName: string;\n workerName: string;\n httpPort?: number;\n replicas?: number;\n healthPath?: string;\n readyPath?: string;\n metricsPath?: string;\n /**\n * Authored `wildo.worker.config.ts > isolation`. Same contract as the\n * minion renderer: only the image-dependent and ADDITIVE knobs travel\n * here — the security floor is emitted unconditionally by the template and\n * is deliberately not representable, so no caller can lower it.\n */\n isolation?: { runAsUser?: number; runAsGroup?: number; writablePaths?: string[]; pidsLimit?: number };\n imageRef?: string;\n },\n imageTag?: string,\n ): Array<{ name: string; yaml: string }> {\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const tp = new TemplateProcessor(templatesRoot);\n const base = K8sManifestGenerator.buildForApplication(env, imageTag);\n // The RFC1123-normalized DNS name (Deployment/Service `metadata.name`,\n // `app.kubernetes.io/name` selector, image ref, and the dispatch URL host the\n // backend reaches it at). `workerName` stays the RAW bucket key — it is the\n // worker's IDENTITY, stamped verbatim as `APP_OWNED_SERVICE_NAME` (the Rust\n // worker reads it at boot to key its apps-manager bootstrap) and the\n // `wildo.ai/owned-service-name` label. The template consumes\n // `{{workerServiceName}}` for names and `{{workerName}}` for the identity.\n const workerServiceName = buildWorkerServiceName(target.appName, target.workerName);\n // A worker never boots the application lifecycle and holds no backing-service\n // credential (D22/KD-3), so it joins PLATFORM and the telemetry collector it\n // emits to (#3368) — the declaration is not even consulted, because there is\n // no declaration that would widen it.\n const workerNetworkLabelsYaml = K8sManifestGenerator.renderPodLabelBlock(\n buildRuntimeNetworkPodLabels(\n { kind: ApplicationRuntimePrincipalKind.WORKER, name: target.workerName } as ApplicationRuntimePrincipal,\n undefined,\n { servesHttp: false, applicationDatabaseEngine: target.applicationDatabaseEngine },\n ),\n 8,\n );\n // The bare normalized segment (`myNodeWorker` → `my-node-worker`) for the\n // per-manifest FILE key `{appName}-{seg}-{deployment|service}` — keeps the\n // historical filename shape (already lowercase for a lowercase key) rather than\n // doubling the `-worker-` infix that `workerServiceName` already carries.\n const workerDnsSegment = normalizeServiceKeyToDnsName(target.workerName);\n const vars: Record<string, unknown> = {\n namespace: base.namespace,\n imageRegistry: base.imageRegistry,\n imageTag: base.imageTag,\n imagePullPolicy: base.imagePullPolicy,\n applicationEnv: base.applicationEnv,\n appName: target.appName,\n workerServiceName,\n // Scoped to `providers.scopes.workers.<name>` (#369). `myRustWorker` authors\n // `providers: {}`, so no Secret is emitted for it and the optional mount finds nothing —\n // which is the whole point.\n // This worker's OWN environment Secret — no longer the backend's (#377).\n runtimeEnvSecretName: k8sRuntimeEnvSecretName(workerServiceName),\n providersSecretName: k8sRuntimeProvidersSecretName(workerServiceName),\n runtimeNetworkLabelsYaml: workerNetworkLabelsYaml,\n workerName: target.workerName,\n imageRef:\n target.imageRef ??\n `${base.imageRegistry}/${workerServiceName}:${base.imageTag}`,\n httpPort: target.httpPort ?? 8080,\n replicas: target.replicas ?? 1,\n healthPath: target.healthPath ?? '/healthz',\n readyPath: target.readyPath ?? '/readyz',\n metricsPath: target.metricsPath,\n // Defaults mirror `RuntimeIsolationSchema`; repeated because this renderer\n // is reachable from callers passing a partially-populated target, and an\n // undefined uid would emit `runAsUser:` with an empty value — which k8s\n // rejects, but only at apply time.\n isolation: {\n runAsUser: target.isolation?.runAsUser ?? 10001,\n runAsGroup: target.isolation?.runAsGroup ?? 10001,\n },\n // Mandatory writable mount first, then authored additions — identical\n // ordering and reasoning to the minion renderer.\n writableMounts: buildWritableMounts(target.isolation?.writablePaths),\n };\n const files: Array<[string, string]> = [\n ['worker.deployment.yaml.hbs', 'worker-deployment'],\n ['worker.service.yaml.hbs', 'worker-service'],\n ];\n const rendered: Array<{ name: string; yaml: string }> = [];\n for (const [file, suffix] of files) {\n const tpl = `applications/${APPLICATION_NAME}/${file}`;\n if (existsSync(join(templatesRoot, tpl))) {\n rendered.push({\n name: `${target.appName}-${workerDnsSegment}-${suffix}`,\n yaml: tp.processTemplate(tpl, vars),\n });\n }\n }\n return rendered;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"k8s-manifest-generator.service.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-manifest-generator.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EACL,+BAA+B,EAC/B,+B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C,SAAS,EAAE,UAAU,IAAI,KAAK;aAClD;YACD,sEAAsE;YACtE,iDAAiD;YACjD,cAAc,EAAE,mBAAmB,CAAC,MAAM,CAAC,SAAS,EAAE,aAAa,CAAC;SACrE,CAAC;QACF,MAAM,KAAK,GAA4B;YACrC,CAAC,4BAA4B,EAAE,mBAAmB,CAAC;YACnD,CAAC,yBAAyB,EAAE,gBAAgB,CAAC;SAC9C,CAAC;QACF,MAAM,QAAQ,GAA0C,EAAE,CAAC;QAC3D,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;YACnC,MAAM,GAAG,GAAG,gBAAgB,gBAAgB,IAAI,IAAI,EAAE,CAAC;YACvD,IAAI,UAAU,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;gBACzC,QAAQ,CAAC,IAAI,CAAC;oBACZ,IAAI,EAAE,GAAG,MAAM,CAAC,OAAO,IAAI,gBAAgB,IAAI,MAAM,EAAE;oBACvD,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,EAAE,IAAI,CAAC;iBACpC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF","sourcesContent":["/**\n * K8s Manifest Generator — builds TemplateVariables contexts and renders\n * .yaml.hbs templates into deployable YAML manifests.\n *\n * Static stateless class (consistent with ServiceAddressResolver, PlatformEnvVarsBuilder).\n */\n\nimport { stringify as stringifyYaml } from 'yaml';\nimport {\n ApplicationRuntimePrincipalKind,\n buildNetworkMembershipPodLabels,\n buildRuntimeNetworkPodLabels,\n buildRuntimeNetworkPolicyDocuments,\n type ApplicationRuntimePrincipal,\n type RuntimeAccessDeclaration,\n selfHostsPlatformKeyVault,\n describeUnreachablePkcs11Module,\n pkcs11ModuleIsReachableInPlatformContainer,\n buildMinionLivenessHeartbeatEnv,\n buildMinionLivenessProbeCommand,\n deriveMinionLivenessProbeTiming,\n type MinionLiveness,\n type DatabaseEngine,\n} from '@wildo-ai/platform-config-lib';\nimport { join, posix } from 'path';\nimport { existsSync, readFileSync, mkdirSync, rmSync, writeFileSync } from 'fs';\n\nimport { TemplateProcessor } from '~wildo-cli/infrastructure/io/template-processor';\nimport { DEFAULT_PLATFORM_IMAGE_TAG, resolvePlatformImageRef } from '~wildo-cli/services/environment/platform-runtime.schemas';\nimport { readVersion } from '~wildo-cli/kernel/bootstrap';\nimport {\n BackingServiceKind,\n BackingServiceSource,\n K8S_LOCAL_DEFAULTS,\n PUBLIC_DOMAIN_DEFAULTS,\n KIND_CLUSTER_DEFAULTS,\n resolveFrameworkLayout,\n WildoLocationType,\n WildoTlsIssuer,\n WildoKubernetesIngressClass,\n PlatformWildoServices,\n k8sServiceSecretName,\n k8sRuntimeProvidersSecretName,\n k8sRuntimeEnvSecretName,\n RUNTIME_MANDATORY_WRITABLE_PATH,\n APP_BACKEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_DEFAULT_RUNTIME_UID,\n APP_FRONTEND_MANDATORY_WRITABLE_PATHS,\n INFRA_DEFAULT_PORTS,\n environmentServiceProfileRunsMessageBroker,\n resolveRuntimeApplicationStores,\n} from '@wildo-ai/platform-config-lib';\nimport {\n CUSTOM_DOMAIN_BACKEND_PATH_PREFIXES,\n CUSTOM_DOMAIN_RECONCILER_IMAGE,\n CUSTOM_DOMAIN_RECONCILER_MANAGED_BY,\n ENGINE_ROOT_ROUTES,\n EngineRootRouteKey,\n RuntimeEnvironment,\n} from '@wildo-ai/saas-models';\nimport { buildMinionServiceName, buildWorkerServiceName, normalizeServiceKeyToDnsName } from '@wildo-ai/platform-core-shared';\nimport { PlatformDataServices, IMMUDB_AUDIT_STATE_CONTAINER_DIR, MONGOT_SYNC_SOURCE } from '~wildo-cli/services/data-services/data-services.schemas';\nimport {\n asFrameworkWorkload,\n resolveFrameworkWorkloadNetworks,\n type FrameworkWorkload,\n} from '~wildo-cli/services/deployment/framework-pod-network-membership';\nimport { PLATFORM_KEY_VAULT_SERVER, renderPlatformKeyVaultServerConfig } from '~wildo-cli/services/data-services/platform-key-vault.server-config';\nimport { SecretsReader } from '~wildo-cli/services/credentials/secrets-reader.service';\nimport { PLATFORM_SERVICE_CATALOG, INFRA_SERVICE_CATALOG, getDeployableInfraServicesForK8s } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { assertProfileRunsDeclaredMinions, includesMongoSearchSidecar } from '~wildo-cli/services/environment/environment-service-profile.utils';\nimport {\n TemplateVariables,\n DEFAULT_PLATFORM_RESOURCES,\n DEFAULT_PLATFORM_DEV_RESOURCES,\n platformServiceResources,\n DEFAULT_INTERNAL_RESOURCES,\n DEFAULT_APP_PROD_RESOURCES,\n} from '~wildo-cli/services/deployment/k8s/k8s-manifest.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { resolveKindPodHostGateway } from '~wildo-cli/services/deployment/k8s/kind-pod-host-gateway';\nimport type { ContainerHostGatewayProbe } from '~wildo-cli/services/environment/container-host-gateway-listen-host';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { InfrastructureHost, SharedInfrastructureAction } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport { shouldDeployPlatformServicesInRuntime } from '~wildo-cli/services/deployment/platform-runtime-policy.service';\nimport { resolveOffClusterBackingServices } from '~wildo-cli/services/deployment/k8s/off-cluster-backing-services';\n\n/**\n * The file holding the namespace's NetworkPolicy set, in both lanes: the local `cluster/` directory and the remote CI\n * deploy directory (#3511).\n */\nexport const NETWORK_POLICIES_MANIFEST_FILE = 'network-policies.yaml';\n\n// ============================================================================\n// Constants\n// ============================================================================\n\nconst LOCAL_TLS_SECRET_NAME = 'local-wildo-ai-tls';\nconst INGRESS_CLASS = WildoKubernetesIngressClass.TRAEFIK;\n\nenum NodeEnv {\n DEVELOPMENT = 'development',\n PRODUCTION = 'production',\n}\n\n// Per-env deployable list comes from `getDeployableInfraServicesForK8s(env)`,\n// which gates MongoDB on `EnvironmentUtils.needsLocalMongoDB` and (Slice 4.8)\n// ClamAV on `resolveIncludeLocalClamAV` so Atlas / managed environments do\n// NOT spawn redundant local workloads.\n\nconst DEFAULT_STORAGE_SIZES: Record<string, string> = {\n mongodb: '5Gi',\n // mongot (issue #74) — matched to `mongot-data-pv`'s 5Gi capacity in\n // `storage/local/persistent-volumes.yaml.hbs` and to the template's own\n // `{{default storageSize \"5Gi\"}}`. Keeping all three equal is the point: a PVC that\n // requests LESS than its static PV is the confusion the clamav note below records.\n mongot: '5Gi',\n valkey: '1Gi',\n rabbitmq: '1Gi',\n minio: '5Gi',\n postgresql: '5Gi',\n // Slice 4 second-pass-2 review fix (MEDIUM-1) — bumped to 2Gi to match\n // the static PV (`templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs`\n // — `clamav-data-pv` capacity 2Gi after Sizing M-5) AND the template's\n // `volumeClaimTemplates` default (`{{default storageSize \"2Gi\"}}`).\n // Previously this generator passed `1Gi` as `storageSize`, which won\n // over the template default and produced PVCs that requested LESS\n // than the static PV — confusing for any policy/tool that compares\n // requested vs allocated storage, and tight enough to risk ENOSPC\n // during freshclam's transient DB-double on signature refresh.\n // The PV, the template default, and this generator default are now\n // all 2Gi so the rendered PVC matches the bound PV exactly.\n clamav: '2Gi',\n // Audit Phase 2 — immudb append-only audit store. Local-dev default; the PV\n // (persistent-volumes.yaml.hbs), this size, and the StatefulSet's\n // volumeClaimTemplate default MUST all match (2Gi) so the pre-bound PVC binds.\n immudb: '2Gi',\n // #2933 — the platform Vault's raft storage: a few keys and their metadata. The PV and the volumeClaimTemplate\n // default match it (1Gi).\n openbao: '1Gi',\n};\n\nconst APPLICATION_NAME = 'wildo-ai-application';\n\n/**\n * Per-ingress TLS secret for the framework `wildo-ai-application` ingress\n * under the HTTP-01 per-ingress strategy. cert-manager's ingress-shim issues\n * the enumerated-host certificate into this secret (one per ingress — the\n * shared wildcard secret is retired for remote).\n */\nconst APPLICATION_TLS_SECRET_NAME = `${APPLICATION_NAME}-tls`;\n\n/**\n * Remote TLS template vars for the HTTP-01 per-ingress strategy. Empty for\n * LOCAL (self-signed wildcard preserved — `tls-config.yaml.hbs` keeps its\n * `TLSStore` default because `perIngressTls` stays unset). For REMOTE:\n * - `acmeEmail` → Let's Encrypt `ClusterIssuer` registration email.\n * - `issuerName` → the `ClusterIssuer` an ingress annotation points at\n * (`remoteProvider.tlsIssuer`, default `letsencrypt-prod` — a remote deploy\n * implies a real domain that browsers must trust; operators opt into\n * `letsencrypt-staging` while validating a new cluster).\n * - `perIngressTls: true` → each ingress owns its own `<name>-tls` secret and\n * the wildcard `TLSStore` default is suppressed (no wildcard secret backs it).\n */\nfunction resolveRemoteTlsVars(env: PlatformEnvironmentConfiguration): {\n acmeEmail?: string;\n issuerName?: string;\n perIngressTls?: boolean;\n} {\n if (env.locationType === WildoLocationType.LOCAL) return {};\n return {\n acmeEmail: env.remoteProvider?.acmeEmail,\n issuerName: env.remoteProvider?.tlsIssuer ?? WildoTlsIssuer.LETSENCRYPT_PROD,\n perIngressTls: true,\n };\n}\n\n/**\n * Container/service name of the self-hosted immudb audit store — the single\n * source of truth (from the infra catalog) used to (a) key its immudb-specific\n * resource profile and (b) select the `immudb-secret` admin-credential wiring\n * in `buildForInternalService`. Renders for both local Kind and self-hosted\n * prod/staging (`backingServices.immudb.source === SELF`); managed/external\n * immudb never enters the deployable list so no StatefulSet is emitted.\n */\nconst IMMUDB_INTERNAL_SERVICE_NAME = INFRA_SERVICE_CATALOG[PlatformDataServices.IMMUDB].containerName;\n\n/**\n * #2933 — the self-hosted OpenBao's template variables: the same server configuration the compose lane renders\n * (`renderPlatformKeyVaultServerConfig`), and the names of the `openbao-secret` keys its environment reads. The\n * configuration needs the unseal key's ID, so it is built from `secrets.json`; a missing material is refused here\n * rather than rendered into a StatefulSet that cannot unseal or issues tokens apps-manager does not hold.\n */\nfunction buildPlatformKeyVaultTemplateVariables(env: PlatformEnvironmentConfiguration): Partial<TemplateVariables> {\n const material = SecretsReader.loadSecrets(env.name)?.platformKeyVault;\n if (!material?.unsealKey || !material.signerToken || !material.operatorToken || !material.recoveryToken) {\n throw new Error(\n `Environment \"${env.name}\" self-hosts the platform Vault (platformKeyManagement.vault.source = self), but secrets.json `\n + 'carries no platformKeyVault material. Run `wildo config sync`, which provisions it, then render again.',\n );\n }\n const configFilePath = PLATFORM_KEY_VAULT_SERVER.CONFIG_FILE_PATH;\n return {\n openbaoImage: PLATFORM_KEY_VAULT_SERVER.IMAGE,\n openbaoPort: INFRA_DEFAULT_PORTS.OPENBAO,\n openbaoSecretName: k8sServiceSecretName(INFRA_SERVICE_CATALOG[PlatformDataServices.OPENBAO].containerName),\n openbaoConfigDir: posix.dirname(configFilePath),\n openbaoConfigFileName: posix.basename(configFilePath),\n openbaoConfigFilePath: configFilePath,\n openbaoDataPath: PLATFORM_KEY_VAULT_SERVER.DATA_PATH,\n openbaoEnv: {\n unsealKey: PLATFORM_KEY_VAULT_SERVER.ENV.UNSEAL_KEY,\n signerToken: PLATFORM_KEY_VAULT_SERVER.ENV.SIGNER_TOKEN,\n operatorToken: PLATFORM_KEY_VAULT_SERVER.ENV.OPERATOR_TOKEN,\n recoveryToken: PLATFORM_KEY_VAULT_SERVER.ENV.RECOVERY_TOKEN,\n previousUnsealKey: PLATFORM_KEY_VAULT_SERVER.ENV.PREVIOUS_UNSEAL_KEY,\n },\n openbaoSecretKeys: {\n unsealKey: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.UNSEAL_KEY,\n signerToken: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.SIGNER_TOKEN,\n operatorToken: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.OPERATOR_TOKEN,\n recoveryToken: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.RECOVERY_TOKEN,\n previousUnsealKey: PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.PREVIOUS_UNSEAL_KEY,\n },\n // #3006 — only between the two steps of `wildo keys vault-rotate-unseal-key`: the StatefulSet then reads the\n // previous key too, and the configuration names it.\n openbaoHasPreviousUnsealKey: Boolean(material.previousUnsealKey),\n // Four spaces: the ConfigMap's `data.<file>: |` block scalar.\n openbaoServerConfigIndented: renderPlatformKeyVaultServerConfig({ unsealKey: material.unsealKey, previousUnsealKey: material.previousUnsealKey })\n .trimEnd().split('\\n').map((line) => (line ? ` ${line}` : '')).join('\\n'),\n };\n}\n\nfunction resolveManifestKubernetesRuntime(\n env: PlatformEnvironmentConfiguration,\n): {\n namespace: string;\n publicDomain: string;\n imageRegistry: string;\n applicationEnv: RuntimeEnvironment;\n} {\n if (env.locationType === WildoLocationType.LOCAL) {\n return {\n namespace: env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE,\n publicDomain: env.publicDomain ?? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S,\n imageRegistry: env.kubernetes?.imageRegistry ?? `localhost:${KIND_CLUSTER_DEFAULTS.REGISTRY_PORT}`,\n applicationEnv: env.runtimeEnvironment ?? RuntimeEnvironment.DEVELOPMENT,\n };\n }\n\n const namespace = env.kubernetes?.namespace;\n const publicDomain = env.publicDomain;\n const imageRegistry = env.kubernetes?.imageRegistry ?? env.remoteProvider?.registryEndpoint;\n const applicationEnv = env.runtimeEnvironment;\n\n if (!namespace || !publicDomain || !imageRegistry || !applicationEnv) {\n throw new Error(\n `Environment '${env.name}' is missing explicit remote Kubernetes namespace, top-level publicDomain, imageRegistry, or runtimeEnvironment metadata.`,\n );\n }\n\n return {\n namespace,\n publicDomain,\n imageRegistry,\n applicationEnv,\n };\n}\n\n// ============================================================================\n// K8s Manifest Generator\n// ============================================================================\n\n/**\n * Derive the `{name, path}` pairs the Deployment templates render as `volumes:`\n * + `volumeMounts:`, prepending the mandatory scratch mount.\n *\n * ONE definition for all four app-owned container kinds (minion, worker, app\n * backend, frontend). It was two copies for a day and would have been four: the\n * name derivation has to agree between the `volumes:` block and the\n * `volumeMounts:` block of the SAME pod, and a pod whose two lists disagree is\n * rejected at admission with an error naming neither.\n *\n * Volume names are RFC1123 (lowercase alphanumerics and `-`). Deriving them from\n * the path rather than an index keeps a manifest diff readable when a path is\n * inserted in the middle of the list.\n */\nfunction buildWritableMounts(additionalPaths: readonly string[] = []): Array<{ path: string; name: string }> {\n return [RUNTIME_MANDATORY_WRITABLE_PATH, ...additionalPaths].map((path) => ({\n path,\n name: `scratch-${path.replace(/^\\/+/, '').replace(/[^a-zA-Z0-9]+/g, '-').toLowerCase() || 'root'}`,\n }));\n}\n\n/**\n * #3019 — the vendor PKCS#11 client apps-manager's pod mounts, or `{}` for every other platform service and for an\n * environment that declares no token. apps-manager always runs in the platform image on Kubernetes, so a `modulePath` it\n * cannot reach there (neither the bundled SoftHSM2 nor under a `clientFiles[].containerPath`) is refused, not rendered.\n *\n * Each file is a `hostPath` volume with no `type` (an entry may be a file or a directory), which Kubernetes mounts with no\n * check: a path missing on the node surfaces as the token apps-manager cannot open, logged at boot. Values are JSON-quoted (a JSON string is\n * a YAML double-quoted scalar), with `$(` doubled because Kubernetes expands `$(VAR)` in an env value and `$$` is its\n * only escape.\n */\nfunction buildApplicationsManagerPkcs11Variables(\n service: PlatformWildoServices,\n env: PlatformEnvironmentConfiguration,\n): Pick<TemplateVariables, 'pkcs11ClientFiles' | 'pkcs11Environment'> {\n const pkcs11 = env.platformKeyManagement?.pkcs11;\n if (service !== PlatformWildoServices.APPS_MANAGER || !pkcs11) return {};\n if (!pkcs11ModuleIsReachableInPlatformContainer(pkcs11)) throw new Error(describeUnreachablePkcs11Module(pkcs11, env.name));\n return {\n pkcs11ClientFiles: (pkcs11.clientFiles ?? []).map((file, index) => ({\n volumeName: `pkcs11-client-file-${index}`,\n hostPathYaml: JSON.stringify(file.hostPath),\n containerPathYaml: JSON.stringify(file.containerPath),\n })),\n pkcs11Environment: Object.entries(pkcs11.environment ?? {}).map(([name, value]) => ({\n name,\n valueYaml: JSON.stringify(value.split('$(').join('$$(')),\n })),\n };\n}\n\nexport class K8sManifestGenerator {\n private static resolveK8sTemplatesRoot(frameworkPath: string): string {\n return resolveFrameworkLayout(frameworkPath).k8sTemplatesHome;\n }\n\n\n // --------------------------------------------------------------------------\n // Variable builders\n // --------------------------------------------------------------------------\n\n /**\n * Build TemplateVariables for a platform service deployment.\n * @param replicaOverride — from infra config `services.<key>.replicas`, falls back to 1.\n */\n static buildForPlatformService(\n service: PlatformWildoServices,\n env: PlatformEnvironmentConfiguration,\n imageTag?: string,\n replicaOverride?: number,\n /** What the scheduler's host route reads from the machine (#3957); the real probe unless a test supplies one. */\n hostGatewayProbe?: ContainerHostGatewayProbe,\n ): TemplateVariables {\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const isDevMode = isLocal;\n const catalog = PLATFORM_SERVICE_CATALOG[service as Exclude<PlatformWildoServices, PlatformWildoServices.PLATFORM_INIT>];\n const runtime = resolveManifestKubernetesRuntime(env);\n const hostGateway = resolveKindPodHostGateway(service, env, hostGatewayProbe);\n\n return {\n namespace: runtime.namespace,\n publicDomain: runtime.publicDomain,\n imageRegistry: runtime.imageRegistry,\n imageTag: imageTag ?? DEFAULT_PLATFORM_IMAGE_TAG,\n imagePullPolicy: 'Always',\n /*\n * The PLATFORM image is resolved by the LANE, never composed from this environment's\n * registry (#349). `imageRegistry` above is the APPLICATION's registry — the Kind registry\n * locally, the operator's own registry remotely — and it is the right answer for the app's\n * own backend/frontend/minion/worker images, which are built from the app's source. It is\n * the wrong answer for the platform image, which the framework publishes: composing\n * `<operator registry>/wildo-platform:latest` names an image that exists nowhere, the same\n * defect the compose lane carried until 2026-09-03.\n *\n * The answer is the PUBLISHED `docker.io/wildoai/wildo-platform:<framework version>` for every\n * lane that renders here. A LOCAL framework developer never reaches this builder (their platform\n * runs natively); an app creator has no checkout to build from; and a REMOTE framework developer\n * pulls the published image by decision (#969) — until then it was named\n * `<cluster registry>/wildo-platform:latest`, which nothing pushed there. See\n * `resolvePlatformImageRef` for the reasoning and the consequence. `k8s-bootstrap` accordingly\n * builds no platform image at all.\n */\n platformImageRef: resolvePlatformImageRef({ frameworkVersion: readVersion(), imageTag }),\n\n nodeEnv: isDevMode ? NodeEnv.DEVELOPMENT : NodeEnv.PRODUCTION,\n applicationEnv: runtime.applicationEnv,\n appsManagerMode: 'normal',\n\n ingressClass: INGRESS_CLASS,\n tlsSecretName: isLocal ? LOCAL_TLS_SECRET_NAME : undefined,\n tlsEnabled: true,\n\n // Local (Kind) keeps the generous dev profile — a 4Gi limit above every measured profile, and a\n // 512Mi request because a local cluster schedules on one node where a high request buys nothing.\n // Everywhere else the pod is sized from the service's MEASURED profile (#1592).\n resources: isDevMode ? DEFAULT_PLATFORM_DEV_RESOURCES : platformServiceResources(catalog.memory),\n heapCeilingMb: catalog.memory.heapCeilingMb,\n replicas: replicaOverride ?? 1,\n\n isDevMode,\n\n port: catalog.defaultPort,\n\n useStaticPV: false,\n\n podNetworkLabelsYaml: K8sManifestGenerator.renderFrameworkWorkloadLabels(service, env),\n\n // The scheduler's route to a host-run backend on a LOCAL (Kind) environment (#3957).\n hostGatewayHostname: hostGateway?.hostname,\n hostGatewayAliasIp: hostGateway?.aliasIp,\n\n ...buildApplicationsManagerPkcs11Variables(service, env),\n };\n }\n\n /**\n * Build TemplateVariables for an internal (infra) service.\n */\n static buildForInternalService(\n serviceName: string,\n env: PlatformEnvironmentConfiguration,\n ): TemplateVariables {\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const runtime = resolveManifestKubernetesRuntime(env);\n const workload = asFrameworkWorkload(serviceName);\n\n return {\n namespace: runtime.namespace,\n publicDomain: runtime.publicDomain,\n imageRegistry: runtime.imageRegistry,\n imageTag: 'latest',\n imagePullPolicy: 'IfNotPresent',\n\n nodeEnv: NodeEnv.PRODUCTION,\n applicationEnv: runtime.applicationEnv,\n appsManagerMode: 'normal',\n\n ingressClass: INGRESS_CLASS,\n tlsSecretName: isLocal ? LOCAL_TLS_SECRET_NAME : undefined,\n tlsEnabled: true,\n\n resources: DEFAULT_INTERNAL_RESOURCES[serviceName] ?? DEFAULT_PLATFORM_RESOURCES,\n replicas: 1,\n\n isDevMode: false,\n\n useStaticPV: isLocal,\n storageClassName: isLocal ? 'wildo-local-storage' : undefined,\n storageSize: DEFAULT_STORAGE_SIZES[serviceName] ?? '1Gi',\n\n // #3372 — the segments this pod belongs to, so the namespace's NetworkPolicy set admits its clients and lets it\n // dial what it dials. `undefined` only for a name the membership table does not know (this builder also feeds\n // the cluster/storage renders under the name `valkey`, which read no labels); a deployment template rendered\n // with no labels would be isolated by the default-deny, and the policy-graph test renders every one of them.\n podNetworkLabelsYaml: workload ? K8sManifestGenerator.renderFrameworkWorkloadLabels(workload, env) : undefined,\n mongodbInitPodNetworkLabelsYaml:\n serviceName === PlatformDataServices.MONGODB\n ? K8sManifestGenerator.renderFrameworkWorkloadLabels(PlatformDataServices.MONGODB_INIT, env)\n : undefined,\n\n // Self-hosted immudb only: wire the StatefulSet's admin password from the\n // `immudb-secret` (emitted by `generateK8sSecrets` §3 from the platform's\n // `credentials.immudb.adminPassword`, #1696). The `secretKeyRef` is `optional`\n // so an un-provisioned secret does not crash-loop the pod. `undefined` for every other internal\n // service (they ignore the var). Prod/staging and local Kind both use it;\n // managed/external immudb never renders a StatefulSet.\n immudbAdminPasswordSecretName:\n serviceName === IMMUDB_INTERNAL_SERVICE_NAME\n ? k8sServiceSecretName(IMMUDB_INTERNAL_SERVICE_NAME)\n : undefined,\n\n // Self-hosted immudb only: mount the state-signing PRIVATE key from the same\n // `immudb-secret` (emitted by `generateK8sSecrets` §3 from `credentials.immudb`) as a file\n // and pass `--signingKey`, so immudb signs its state and the audit client can pin the public\n // key to detect a whole-server substitution. The keypair is provisioned from the\n // `FRAMEWORK_MANAGED_SECRET_MATERIALS` registry — at setup for a new env and by the idempotent\n // self-heal for an existing one — so `source === SELF` ⇒ the key is present; an env lacking it\n // would surface loudly (immudb fails to load a missing `--signingKey` file) rather than\n // silently run unsigned — the correct posture for a security control. `undefined` for every\n // other internal service and for managed/external immudb (no StatefulSet).\n immudbStateSigningKeySecretName:\n serviceName === IMMUDB_INTERNAL_SERVICE_NAME\n ? k8sServiceSecretName(IMMUDB_INTERNAL_SERVICE_NAME)\n : undefined,\n\n // Slice 4 — gating flags for cross-service templates (storage PVs).\n // Single source of truth: `EnvironmentUtils.selfHostsBackingService` is the SAME total\n // predicate `getDeployableInfraServicesForK8s` gates the StatefulSets on, so a PV and the\n // workload that claims it cannot drift. The four below joined the gated set when the\n // managed-selection defect was fixed: `valkey`, `rabbitmq`, `minio` and `postgresql` PVs were\n // rendered for every environment — including ones whose StatefulSet is now (and, for\n // postgresql, effectively always was) absent, leaving an unbound PV holding a hostPath claim.\n includeLocalMongoDB: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.MONGODB),\n // #2303 — the mongot search sidecar, which the service profile may omit beside a self-hosted mongod. Read by\n // the mongod StatefulSet (its `mongotHost` routing parameters) and the mongot PersistentVolume, through the\n // same predicate `getDeployableInfraServicesForK8s` gates the mongot workload on.\n includeMongotSidecar: includesMongoSearchSidecar(env),\n includeLocalMongotVolume: isLocal && includesMongoSearchSidecar(env),\n includeLocalValkey: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.REDIS),\n includeLocalRabbitMQ: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.RABBITMQ),\n includeLocalMinIO: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.S3),\n includePostgreSQL: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.POSTGRESQL),\n includeLocalClamAV: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.CLAMAV),\n includeLocalImmudb: isLocal && EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.IMMUDB),\n includeLocalPlatformKeyVault: isLocal && selfHostsPlatformKeyVault(env.platformKeyManagement),\n // #2933 — the self-hosted OpenBao's own template variables, only for its render (they read secrets).\n ...(serviceName === PlatformDataServices.OPENBAO ? buildPlatformKeyVaultTemplateVariables(env) : {}),\n\n // Issue #74 — mongot wiring, supplied to EVERY internal service render rather than\n // only to the mongot one, because two workloads consume it: the mongot templates,\n // and the mongod StatefulSet whose `--setParameter mongotHost=` must name the same\n // gRPC port. Passing it once from here is what keeps those two in agreement; a\n // literal repeated per template is the two-lane drift `mongot` was added to avoid.\n mongotGrpcPort: INFRA_DEFAULT_PORTS.MONGOT_GRPC,\n mongotHealthPort: INFRA_DEFAULT_PORTS.MONGOT_HEALTH,\n mongotMetricsPort: INFRA_DEFAULT_PORTS.MONGOT_METRICS,\n mongotSyncSourceUsername: MONGOT_SYNC_SOURCE.USERNAME,\n mongotSyncSourceAuthSource: MONGOT_SYNC_SOURCE.AUTH_SOURCE,\n mongotPasswordFilePath: MONGOT_SYNC_SOURCE.PASSWORD_FILE_PATH,\n mongotConfigFilePath: MONGOT_SYNC_SOURCE.CONFIG_FILE_PATH,\n mongotDataPath: MONGOT_SYNC_SOURCE.DATA_PATH,\n };\n }\n\n /**\n * Build TemplateVariables for the remote wildo-ai-application deployment.\n * Local application development now runs directly on the machine, so local\n * Kind runtimes no longer manage a separate application dev image/lane.\n * @param replicaOverride — common default for direct callers; target-specific counts override it, otherwise one.\n */\n static buildForApplication(\n env: PlatformEnvironmentConfiguration,\n imageTag?: string,\n replicaOverride?: number,\n ): TemplateVariables {\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const runtime = resolveManifestKubernetesRuntime(env);\n\n return {\n namespace: runtime.namespace,\n publicDomain: runtime.publicDomain,\n imageRegistry: runtime.imageRegistry,\n imageTag: imageTag ?? DEFAULT_PLATFORM_IMAGE_TAG,\n imagePullPolicy: 'Always',\n\n nodeEnv: NodeEnv.PRODUCTION,\n applicationEnv: runtime.applicationEnv,\n appsManagerMode: 'normal',\n\n ingressClass: INGRESS_CLASS,\n // Per-ingress TLS secret for remote (HTTP-01); local keeps its self-signed\n // wildcard secret. See `resolveRemoteTlsVars`.\n tlsSecretName: isLocal ? LOCAL_TLS_SECRET_NAME : APPLICATION_TLS_SECRET_NAME,\n tlsEnabled: true,\n ...resolveRemoteTlsVars(env),\n\n resources: DEFAULT_APP_PROD_RESOURCES,\n replicas: replicaOverride ?? 1,\n\n isDevMode: false,\n\n useStaticPV: false,\n\n // Durable cross-restart tamper-evidence trust anchor for the immudb audit sink. Provisioned\n // whenever the env has an immudb audit backing service configured (SELF or external/managed —\n // the anchor is the CLIENT's own file, independent of who hosts immudb). The app-backend\n // deployment then renders `IMMUDB_STATE_DIR` + a `volumeMount` + a PVC-backed volume, and\n // `renderApplicationForTarget` emits the matching PVC. Without it the client runs EPHEMERAL and a\n // cross-restart rollback of the audit ledger is silently re-adopted (signature pinning cannot\n // catch a rollback — immudb re-signs its current state). App-backend k8s manifests render for\n // REMOTE only, so the PVC always uses the dynamic default StorageClass (no local static PV).\n immudbAuditStateDir: env.backingServices?.[BackingServiceKind.IMMUDB]\n ? IMMUDB_AUDIT_STATE_CONTAINER_DIR\n : undefined,\n };\n }\n\n // --------------------------------------------------------------------------\n // Full manifest rendering\n // --------------------------------------------------------------------------\n\n /**\n * Render infrastructure and platform K8s manifests for the environment.\n * Application deployment artifacts are emitted separately by deployment CI generation.\n * Writes files to `{infraPath}/manifests/{internal,platform,applications,storage}/`.\n *\n * @param serviceReplicas — per-service replica overrides from infra config\n * `kubernetes.services.<key>.replicas`. Keys match `PlatformWildoServices`\n * enum values for platform services.\n * Internal infra services (valkey, postgresql, etc.) are always single-replica.\n */\n /**\n * @param options.outputBase — when supplied, render manifests under\n * `<outputBase>/manifests/...` instead of the canonical\n * `EnvironmentPaths.resolveInfraDir(env.name)/manifests/...` location.\n * Used by `wildo config validate --domain manifest` (Slice 6 / F-19)\n * to render into a sandbox tempdir so the validation pass does NOT\n * silently mutate the operator's persisted infra state. ALL render\n * side effects (mkdir, rmSync, writeFileSync) honor this base — no\n * path falls through to the canonical location when an override is\n * passed.\n */\n static renderAllManifests(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n options: {\n imageTag?: string;\n serviceReplicas?: Record<string, number>;\n isFrameworkDeveloper?: boolean;\n outputBase?: string;\n } = {},\n ): { total: number; dirs: { cluster: string; internal: string; platform: string; applications: string; storage: string } } {\n // Rendering into a caller-owned sandbox (`config validate`) mutates nothing shared; rendering the\n // environment's own manifests is the infrastructure owner's.\n if (options.outputBase === undefined) {\n InfrastructureHost.assertOwnsSharedInfrastructure(env, SharedInfrastructureAction.RENDER_PLATFORM_MANIFESTS);\n }\n const infraPath = options.outputBase ?? EnvironmentPaths.resolveInfraDir(env.name);\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const includePlatformServices = shouldDeployPlatformServicesInRuntime(\n env,\n options.isFrameworkDeveloper ?? false,\n );\n\n const templateProcessor = new TemplateProcessor(\n K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath),\n );\n\n const clusterDir = join(infraPath, 'manifests', 'cluster');\n const internalDir = join(infraPath, 'manifests', 'internal');\n const platformDir = join(infraPath, 'manifests', 'platform');\n const applicationsDir = join(infraPath, 'manifests', 'applications');\n const storageDir = join(infraPath, 'manifests', 'storage');\n\n mkdirSync(clusterDir, { recursive: true });\n mkdirSync(internalDir, { recursive: true });\n mkdirSync(storageDir, { recursive: true });\n rmSync(platformDir, { recursive: true, force: true });\n rmSync(applicationsDir, { recursive: true, force: true });\n if (includePlatformServices) {\n mkdirSync(platformDir, { recursive: true });\n }\n if (!isLocal) {\n mkdirSync(applicationsDir, { recursive: true });\n }\n\n let total = 0;\n\n // --- Cluster-wide infra (middlewares, TLS config) ---\n total += K8sManifestGenerator.renderClusterInfra(\n templateProcessor, env, clusterDir, frameworkPath,\n );\n\n // --- Storage PVs (local mode only) ---\n if (isLocal) {\n total += K8sManifestGenerator.renderStorageManifests(\n templateProcessor, env, storageDir, frameworkPath,\n );\n }\n\n // --- Internal services ---\n // Per-env list (Slice 4) — gates MongoDB on `needsLocalMongoDB` and\n // (Slice 4.8) ClamAV on `resolveIncludeLocalClamAV`. Atlas / managed\n // configurations therefore never get a local mongod manifest emitted.\n for (const serviceName of getDeployableInfraServicesForK8s(env)) {\n total += K8sManifestGenerator.renderInternalService(\n templateProcessor, serviceName, env, internalDir, frameworkPath,\n );\n }\n\n // --- Platform services ---\n const platformServices = Object.values(PlatformWildoServices).filter(\n s => s !== PlatformWildoServices.PLATFORM_INIT,\n );\n if (includePlatformServices) {\n for (const service of platformServices) {\n total += K8sManifestGenerator.renderPlatformService(\n templateProcessor, service, env, platformDir, frameworkPath, options.imageTag,\n options.serviceReplicas?.[service],\n );\n }\n }\n\n // --- Application ---\n // The app (+ its minions/workers) is rendered PER-APP by the CI deploy lane\n // (`generateCiDeployArtifacts` → `renderApplicationForTarget` /\n // `renderMinionForTarget` / `renderWorkerForTarget`), which has the resolved\n // app target (identity, ports, ingress routes). `renderAllManifests` is the\n // LOCAL-only infra/platform lane and does NOT render the app — the old\n // target-less `renderApplication` produced empty-identity / port-less\n // manifests and was removed (it was reachable only via remote\n // `validate --domain manifest`, where it emitted broken YAML).\n\n return { total, dirs: { cluster: clusterDir, internal: internalDir, platform: platformDir, applications: applicationsDir, storage: storageDir } };\n }\n\n /**\n * Render the per-env remote-cluster TLS infra as FLAT files into the CI\n * deploy dir (`.wildo-saas/deploy/<env>/k8s/`), applied by the CI's\n * `kubectl apply -f <dir>` (which is NON-recursive — hence flat siblings of\n * the Secret YAMLs, not a nested `cluster/` subdir like `renderAllManifests`).\n *\n * This is the remote counterpart to the LOCAL-only `renderClusterInfra`\n * (which runs inside `renderAllManifests`). The remote CI path\n * (`generateCiDeployArtifacts`) does NOT call `renderAllManifests`; it emits\n * Secrets/ConfigMaps and — via this method — the cluster TLS manifests and\n * the namespace's NetworkPolicy set.\n *\n * Emits (HTTP-01 per-ingress strategy):\n * - `cluster-issuer.yaml` — Let's Encrypt HTTP-01 `ClusterIssuer`s\n * (prod + staging), registration email from `remoteProvider.acmeEmail`.\n * - `tls-config.yaml` — the Traefik websocket `ServersTransport`. The\n * wildcard `TLSStore` default block is suppressed here (`perIngressTls`)\n * because no wildcard secret backs it under per-ingress issuance.\n * - `network-policies.yaml` — the namespace's NetworkPolicy set (#3511), from\n * {@link renderNamespaceNetworkPolicies}: the segments every pod's labels name,\n * the egress allows to the backing services the environment serves off the\n * cluster, and the ingress allow the ACME HTTP-01 solver needs.\n *\n * The cert-manager + Traefik CONTROLLERS are Helm-installed by the CI\n * workflow (`deploy-k8s.yml.hbs`), NOT rendered here.\n *\n * Local envs render nothing (returns `[]`) — their ingress stack is owned by\n * `k8s-bootstrap.service.ts::phaseIngressStack`.\n *\n * @returns absolute paths of the manifests written.\n */\n static renderRemoteClusterInfra(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n k8sDir: string,\n ): string[] {\n if (env.locationType === WildoLocationType.LOCAL) return [];\n\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const tp = new TemplateProcessor(templatesRoot);\n const vars = {\n ...K8sManifestGenerator.buildForInternalService('valkey', env),\n ...resolveRemoteTlsVars(env),\n } as unknown as Record<string, unknown>;\n\n const templates = [\n { template: 'ingress/cert-manager/cluster-issuer.yaml.hbs', output: 'cluster-issuer.yaml' },\n { template: 'tls-config.yaml.hbs', output: 'tls-config.yaml' },\n ];\n\n const written: string[] = [];\n for (const { template, output } of templates) {\n if (!existsSync(join(templatesRoot, template))) continue;\n const outputPath = join(k8sDir, output);\n writeFileSync(outputPath, tp.processTemplate(template, vars), 'utf8');\n written.push(outputPath);\n }\n\n // #3511 — the namespace's NetworkPolicy set. Until then it was written only by the LOCAL lane's\n // `renderClusterInfra`, so on a remote cluster every pod carried `wildo.ai/net-*` labels that no policy read and\n // every pod reached every other. A flat sibling like the files above, for the same non-recursive apply. Here, in\n // the cluster-owner's half, because a policy set is namespace-wide: a hosted application shares its host's\n // namespace and is governed by the host's set, exactly as it shares the host's ClusterIssuer.\n const policiesPath = join(k8sDir, NETWORK_POLICIES_MANIFEST_FILE);\n writeFileSync(policiesPath, K8sManifestGenerator.renderNamespaceNetworkPolicies(env), 'utf8');\n written.push(policiesPath);\n return written;\n }\n\n /**\n * The namespace's NetworkPolicy set (Step 5-egress, #3372, #3511), serialised from the typed documents of\n * `buildRuntimeNetworkPolicyDocuments` — never from a template, which would be a second description of the shape.\n * One method for both lanes, so the local `cluster/network-policies.yaml` and the remote CI deploy's file cannot\n * describe different policy sets for the same environment.\n *\n * What depends on the environment, and where it comes from:\n * - **The off-cluster allows**: one per segment whose backing service the environment serves from outside its\n * deployment, derived from its declared providers by `resolveOffClusterBackingServices`. A local Kind environment\n * pointed at a managed Atlas cluster needs it as much as a remote one does.\n * - **The ACME HTTP-01 solver allow**: a remote environment's certificates come from the HTTP-01 `ClusterIssuer`\n * `renderRemoteClusterInfra` writes, whose solver pod the ingress controller must reach; a local one's do not.\n * - **The namespace**: a remote environment's own, with no default (the CI applies with `-n` and a mismatching\n * `metadata.namespace` would be refused); the local default otherwise.\n */\n static renderNamespaceNetworkPolicies(env: PlatformEnvironmentConfiguration): string {\n const isLocal = env.locationType === WildoLocationType.LOCAL;\n const namespace = isLocal ? env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE : env.kubernetes?.namespace;\n const documents = buildRuntimeNetworkPolicyDocuments(namespace, {\n offClusterServices: resolveOffClusterBackingServices(env),\n admitsAcmeHttp01Solver: !isLocal,\n });\n return documents.map((document) => stringifyYaml(document)).join('---\\n');\n }\n\n /**\n * Render the provider-agnostic remote Traefik Helm values\n * (`traefik/values.yaml.hbs`) to `<outputDir>/traefik-values.yaml`, referenced\n * by the CI `helm upgrade --install traefik ... -f traefik-values.yaml` step.\n * Provider-agnostic: a plain `LoadBalancer` service, no cloud LB annotations. The values template keeps a generic\n * `loadBalancerAnnotations` hook, which nothing fills today. A Scaleway-specific annotations partial lived beside it,\n * rendered by nothing, and was deleted (#3498): no remote Kubernetes environment exists (#1172), and per-brand\n * support is written when an environment deploys to that brand (#1695), as an authored, typed environment field\n * passed into that hook, never as an unwired partial. Every\n * variable the template reads is `{{default …}}`-guarded, so an empty context\n * renders the generic values. Local envs render nothing (returns `null`).\n *\n * @returns the absolute path written, or `null` when nothing was rendered.\n */\n static renderRemoteTraefikValues(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n outputDir: string,\n ): string | null {\n if (env.locationType === WildoLocationType.LOCAL) return null;\n\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const template = 'ingress/traefik/values.yaml.hbs';\n if (!existsSync(join(templatesRoot, template))) return null;\n\n const tp = new TemplateProcessor(templatesRoot);\n const outputPath = join(outputDir, 'traefik-values.yaml');\n writeFileSync(outputPath, tp.processTemplate(template, {}), 'utf8');\n return outputPath;\n }\n\n // --------------------------------------------------------------------------\n // Private rendering helpers\n // --------------------------------------------------------------------------\n\n /**\n * The pod-label block of a framework workload (#3372): its segments from `resolveFrameworkWorkloadNetworks`, indented\n * for the pod template's `labels:` mapping (eight spaces, like every runtime's).\n */\n private static renderFrameworkWorkloadLabels(workload: FrameworkWorkload, env: PlatformEnvironmentConfiguration): string {\n return K8sManifestGenerator.renderPodLabelBlock(\n buildNetworkMembershipPodLabels(\n resolveFrameworkWorkloadNetworks(workload, {\n selfHostsPlatformKeyVault: selfHostsPlatformKeyVault(env.platformKeyManagement),\n runsMessageBroker: environmentServiceProfileRunsMessageBroker(env.serviceProfile),\n }),\n ),\n 8,\n );\n }\n\n /**\n * Render pod labels as an indented YAML block.\n *\n * Values are quoted unconditionally: a label value is a string, and an\n * unquoted `true` would be parsed as a BOOLEAN by any conformant YAML reader —\n * which is exactly the value every network label carries.\n */\n private static renderPodLabelBlock(labels: Record<string, string>, indent: number): string {\n const pad = ' '.repeat(indent);\n return Object.entries(labels)\n .sort(([a], [b]) => a.localeCompare(b))\n .map(([key, value]) => `${pad}${key}: \"${value}\"`)\n .join('\\n');\n }\n\n private static renderClusterInfra(\n tp: TemplateProcessor,\n env: PlatformEnvironmentConfiguration,\n outputDir: string,\n frameworkPath: string,\n ): number {\n const baseVars = K8sManifestGenerator.buildForInternalService('valkey', env);\n let count = 0;\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n\n /*\n * `middleware.yaml.hbs` was here until 2026-09-08 and is deliberately gone (#432). It rendered\n * FIVE Traefik middlewares — rate-limit, security-headers, cors-api, strip-api-prefix, compress —\n * into every namespace, and the only ingress template annotated its middleware reference as a\n * literal empty string, so no route ever used any of them. The measured finding named two; all\n * five were unreferenced.\n *\n * The consequence, chosen rather than discovered: THE EDGE IS NO LONGER A PLACE WILDO ADDS\n * PROTECTION. Rate limiting and security headers are the application's own concern, in its\n * backend. Reintroducing an edge middleware means choosing its values — a rate limit that\n * reaches a live route can break a legitimate high-volume integration — which is why deploying\n * them unreferenced was worse than not deploying them at all.\n */\n const clusterTemplates = [\n { template: 'tls-config.yaml.hbs', output: 'tls-config.yaml' },\n { template: 'namespace.yaml.hbs', output: 'namespace.yaml' },\n ];\n\n for (const { template, output } of clusterTemplates) {\n const templatePath = join(templatesRoot, template);\n if (!existsSync(templatePath)) continue;\n\n const content = tp.processTemplate(template, baseVars as unknown as Record<string, unknown>);\n writeFileSync(join(outputDir, output), content, 'utf8');\n count++;\n }\n\n // Network segmentation (Step 5-egress, half A). Serialised from the typed\n // documents rather than rendered from a `.hbs` template: the shape is decided\n // in `platform-config-lib` and a template would be a SECOND description of it,\n // free to drift. `yaml` is already a dependency of this package, so nothing is\n // hand-rolled either.\n //\n // Safe to emit only because every pod rendered into the namespace carries the\n // labels these policies select on — the default-deny selects EVERY pod. Until\n // #3372 only the app-owned pods did, so the backing and platform services this\n // lane renders were isolated from both ends; `renderFrameworkWorkloadLabels`\n // now labels them, and `k8s-network-policy-graph.test.ts` evaluates the\n // rendered policies against every rendered pod.\n writeFileSync(join(outputDir, NETWORK_POLICIES_MANIFEST_FILE), K8sManifestGenerator.renderNamespaceNetworkPolicies(env), 'utf8');\n count++;\n\n return count;\n }\n\n private static renderStorageManifests(\n tp: TemplateProcessor,\n env: PlatformEnvironmentConfiguration,\n outputDir: string,\n frameworkPath: string,\n ): number {\n const pvTemplate = 'storage/local/persistent-volumes.yaml.hbs';\n const pvPath = join(K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath), pvTemplate);\n if (!existsSync(pvPath)) return 0;\n\n const vars = K8sManifestGenerator.buildForInternalService('valkey', env);\n const content = tp.processTemplate(pvTemplate, vars as unknown as Record<string, unknown>);\n writeFileSync(join(outputDir, 'persistent-volumes.yaml'), content, 'utf8');\n return 1;\n }\n\n private static renderInternalService(\n tp: TemplateProcessor,\n serviceName: string,\n env: PlatformEnvironmentConfiguration,\n outputDir: string,\n frameworkPath: string,\n ): number {\n const vars = K8sManifestGenerator.buildForInternalService(serviceName, env);\n let count = 0;\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n\n const templates = [\n { template: `internal/${serviceName}/deployment.yaml.hbs`, output: `${serviceName}-deployment.yaml` },\n { template: `internal/${serviceName}/service.yaml.hbs`, output: `${serviceName}-service.yaml` },\n { template: `internal/${serviceName}/configmap.yaml.hbs`, output: `${serviceName}-configmap.yaml` },\n ];\n\n for (const { template, output } of templates) {\n const templatePath = join(templatesRoot, template);\n if (!existsSync(templatePath)) continue;\n\n const content = tp.processTemplate(template, vars as unknown as Record<string, unknown>);\n writeFileSync(join(outputDir, output), content, 'utf8');\n count++;\n }\n\n return count;\n }\n\n private static renderPlatformService(\n tp: TemplateProcessor,\n service: PlatformWildoServices,\n env: PlatformEnvironmentConfiguration,\n outputDir: string,\n frameworkPath: string,\n imageTag?: string,\n replicaOverride?: number,\n ): number {\n if (service === PlatformWildoServices.PLATFORM_INIT) return 0;\n\n const catalog = PLATFORM_SERVICE_CATALOG[service as Exclude<PlatformWildoServices, PlatformWildoServices.PLATFORM_INIT>];\n const containerName = catalog.containerName;\n const vars = K8sManifestGenerator.buildForPlatformService(service, env, imageTag, replicaOverride);\n /*\n * The deployment templates render `--max-old-space-size={{heapCeilingMb}}` unconditionally, and the\n * template engine renders a missing value as an empty string — a pod that starts with no heap\n * ceiling and no error. Refuse instead (#1592).\n */\n if (!vars.heapCeilingMb) {\n throw new Error(\n `Platform service '${service}' has no heap ceiling to render; every PLATFORM_SERVICE_CATALOG entry must declare its measured memory profile.`,\n );\n }\n let count = 0;\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n\n // Deployment template (always .hbs)\n const deploymentTemplate = `platform/${containerName}/deployment.yaml.hbs`;\n const deploymentPath = join(templatesRoot, deploymentTemplate);\n if (existsSync(deploymentPath)) {\n const content = tp.processTemplate(deploymentTemplate, vars as unknown as Record<string, unknown>);\n writeFileSync(join(outputDir, `${containerName}-deployment.yaml`), content, 'utf8');\n count++;\n }\n\n // Service manifest (static .yaml, not templated)\n const staticServicePath = join(templatesRoot, 'platform', containerName, 'service.yaml');\n if (existsSync(staticServicePath)) {\n const content = readFileSync(staticServicePath, 'utf8');\n writeFileSync(join(outputDir, `${containerName}-service.yaml`), content, 'utf8');\n count++;\n }\n\n return count;\n }\n\n /**\n * Render the per-app single-pod Deployment + Ingress + Service for ONE app\n * from its resolved deploy target, returning `{name, yaml}` pairs the caller\n * writes as FLAT files (the CI lane's `kubectl apply -f <dir>` is\n * non-recursive, so no nested `applications/` subdir).\n *\n * This is the reachable remote self-host app-deploy path. It supersedes the\n * old target-less `renderApplication` (removed): that one was gated `!isLocal`\n * inside the LOCAL-only `renderAllManifests`, so it never ran on the real\n * deploy path and — once the templates were parameterized — emitted broken\n * empty-identity manifests (see\n * `remote-k8s-deploy-two-lanes-renderallmanifests-local-only`). App identity,\n * container/Service ports, ingress host→port routes, per-app TLS secret, and\n * the `{appSlug}-secret` mount are all parameterized per-app from `target`\n * (mirrors the compose app lane `docker-compose.app.yml.hbs`). Local Kind\n * does NOT deploy the app in-cluster, so this is remote-only.\n */\n /**\n * Render the per-service k8s manifests for one app (per-service deploy model):\n * - the BACKEND Deployment + Service (its one API port; image\n * `{registry}/{backendServiceName}:{tag}`; health probes on `healthPort`);\n * - ONE nginx Deployment + Service PER frontend (image\n * `{registry}/{frontendServiceName}:{tag}`, serving on :80);\n * - ONE Ingress whose rules route each serviceHosts host → its OWN per-service\n * Service (`ingressRoutes[].serviceName`), not a shared app Service.\n * Returns flat `{serviceName}-{deployment|service}` + `{appName}-ingress`\n * manifests. Remote-only (the CI deploy lane).\n */\n static renderApplicationForTarget(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n target: {\n /** The application's own store (#3367): it bounds this runtime's database network segments. */\n applicationDatabaseEngine: DatabaseEngine;\n appName: string;\n backendServiceName?: string;\n /** Per-backend desired count; takes precedence over the common direct-call override. */\n backendReplicas?: number;\n ingressRoutes?: Array<{ host: string; serviceName: string; port: number }>;\n podPorts?: Array<{ name: string; containerPort: number }>;\n healthPort?: number;\n /**\n * Effective backend container isolation, already resolved through\n * `resolveAppServiceIsolation` — NOT the raw authored block. Resolution\n * happens once at the config boundary so this renderer and the compose app\n * lane cannot apply different fallbacks to the same service row.\n */\n isolation?: { runAsUser: number; runAsGroup: number; writablePaths: string[] };\n frontends?: Array<{\n replicas?: number;\n serviceName: string;\n port: number;\n /** Same contract as the backend `isolation` above, per frontend. */\n isolation?: { runAsUser: number; runAsGroup: number; writablePaths: string[] };\n }>;\n },\n imageTag?: string,\n replicaOverride?: number,\n ): Array<{ name: string; yaml: string }> {\n // Fail-closed: without an app slug, a backend service + its ports, or ingress\n // routes we'd emit invalid/empty manifests. The CI lane already gates on\n // ingressRoutes.length; this guards any direct caller too.\n if (\n !target.appName ||\n !target.backendServiceName ||\n !target.ingressRoutes?.length ||\n !target.podPorts?.length\n ) {\n return [];\n }\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const tp = new TemplateProcessor(templatesRoot);\n const base = K8sManifestGenerator.buildForApplication(\n env,\n imageTag,\n replicaOverride,\n ) as unknown as Record<string, unknown>;\n const rendered: Array<{ name: string; yaml: string }> = [];\n\n const renderTpl = (file: string, name: string, vars: Record<string, unknown>): void => {\n const tpl = `applications/${APPLICATION_NAME}/${file}`;\n if (existsSync(join(templatesRoot, tpl))) {\n rendered.push({ name, yaml: tp.processTemplate(tpl, vars) });\n }\n };\n\n // --- Backend Deployment + Service (the primary backend's own pod) ---\n const backendVars: Record<string, unknown> = {\n // The application backend reaches every backing service the app provisions,\n // and serves the public route, so it joins the edge as well.\n runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(\n buildRuntimeNetworkPodLabels(\n { kind: ApplicationRuntimePrincipalKind.APPLICATION_BACKEND } as ApplicationRuntimePrincipal,\n undefined,\n { servesHttp: true, ...resolveRuntimeApplicationStores({ applicationDatabase: { engine: target.applicationDatabaseEngine }, serviceProfile: env.serviceProfile }) },\n ),\n 8,\n ),\n ...base,\n appName: target.appName,\n serviceName: target.backendServiceName,\n replicas: target.backendReplicas ?? replicaOverride ?? 1,\n // The backend's own provider Secret (#369). Resolved through the SAME helper the emit side\n // calls, never composed in the template — emit-name and mount-name are one decision, and this\n // file already carries the scar of the version where they were two.\n // The backend's own environment Secret. Threaded rather than composed as `{{appName}}-secret`\n // in the template, so every mount name in this lane is resolved by one function (#377).\n runtimeEnvSecretName: k8sRuntimeEnvSecretName(target.appName),\n providersSecretName: k8sRuntimeProvidersSecretName(target.appName),\n ports: target.podPorts,\n healthPort: target.healthPort,\n // Defaults repeated for a direct caller that passes a partial target: an\n // undefined uid renders `runAsUser:` with an empty value, which k8s\n // rejects only at apply time. Kept equal to\n // `APP_BACKEND_DEFAULT_RUNTIME_UID` by importing it rather than retyping.\n isolation: {\n runAsUser: target.isolation?.runAsUser ?? APP_BACKEND_DEFAULT_RUNTIME_UID,\n runAsGroup: target.isolation?.runAsGroup ?? APP_BACKEND_DEFAULT_RUNTIME_UID,\n },\n writableMounts: buildWritableMounts(target.isolation?.writablePaths),\n };\n renderTpl('backend.deployment.yaml.hbs', `${target.backendServiceName}-deployment`, backendVars);\n renderTpl('backend.service.yaml.hbs', `${target.backendServiceName}-service`, backendVars);\n // Durable immudb audit trust-anchor PVC — emitted ONLY when the env configured an immudb audit\n // backing service (buildForApplication set `immudbAuditStateDir`). The deployment above mounts it\n // and points IMMUDB_STATE_DIR at it; without it the audit client would run EPHEMERAL in-cluster.\n if (backendVars.immudbAuditStateDir) {\n renderTpl(\n 'backend.immudb-audit-state.pvc.yaml.hbs',\n `${target.backendServiceName}-immudb-audit-state-pvc`,\n backendVars,\n );\n }\n\n // --- Frontend Deployments + Services (one nginx pod per frontend) ---\n for (const fe of target.frontends ?? []) {\n const feVars: Record<string, unknown> = {\n // A static frontend is NOT a runtime principal: it holds no credential and\n // reaches no backing service. Passing `undefined` yields the narrowest set,\n // which is the honest answer — passing APPLICATION_BACKEND to \"keep it\n // simple\" would put an nginx container on every database segment.\n // It joins the edge only: `resolveRuntimeNetworkMembership` adds PLATFORM\n // for runtime principals alone, and a static frontend is none.\n runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(\n buildRuntimeNetworkPodLabels(undefined, undefined, { servesHttp: true, ...resolveRuntimeApplicationStores({ applicationDatabase: { engine: target.applicationDatabaseEngine }, serviceProfile: env.serviceProfile }) }),\n 8,\n ),\n ...base,\n appName: target.appName,\n serviceName: fe.serviceName,\n replicas: fe.replicas ?? replicaOverride ?? 1,\n frontendPort: fe.port,\n isolation: {\n runAsUser: fe.isolation?.runAsUser ?? APP_FRONTEND_DEFAULT_RUNTIME_UID,\n runAsGroup: fe.isolation?.runAsGroup ?? APP_FRONTEND_DEFAULT_RUNTIME_UID,\n },\n // The nginx mounts are appended even on the fallback path: a frontend\n // rendered from a partial target still gets a read-only rootfs, and\n // without them nginx cannot start at all.\n writableMounts: buildWritableMounts(\n fe.isolation?.writablePaths ?? [...APP_FRONTEND_MANDATORY_WRITABLE_PATHS],\n ),\n };\n renderTpl('frontend.deployment.yaml.hbs', `${fe.serviceName}-deployment`, feVars);\n renderTpl('frontend.service.yaml.hbs', `${fe.serviceName}-service`, feVars);\n }\n\n // --- Ingress (one object; each rule → its per-service Service) ---\n const ingressVars: Record<string, unknown> = {\n ...base,\n appName: target.appName,\n ingressRoutes: target.ingressRoutes,\n // One cert per app-ingress (HTTP-01 per-ingress) into `{appSlug}-tls`,\n // overriding buildForApplication's framework `wildo-ai-application-tls`.\n tlsSecretName: `${target.appName}-tls`,\n };\n renderTpl('ingress.yaml.hbs', `${target.appName}-ingress`, ingressVars);\n\n // --- Custom-domain Ingress reconciler (#2974) ---\n // Organizations' domains are proven at runtime, so their Ingresses are written by a namespaced reconciler that asks\n // the backend which domains are served. Rendered only when the backend has a public route: its port is the one the\n // reconciler asks on, and a backend with no route serves no domain anyway.\n const backendRoute = target.ingressRoutes.find((route) => route.serviceName === target.backendServiceName);\n if (backendRoute) {\n // One object per rendered entry, as every other manifest here: the template holds the reconciler's six objects\n // (ServiceAccount, Role, RoleBinding, NetworkPolicy, ConfigMap, CronJob), split on their document separators.\n const reconcilerStart = rendered.length;\n renderTpl('custom-domain-reconciler.yaml.hbs', `${target.appName}-custom-domain-reconciler`, {\n ...base,\n appName: target.appName,\n backendServiceName: target.backendServiceName,\n backendPort: backendRoute.port,\n edgePath: ENGINE_ROOT_ROUTES[EngineRootRouteKey.EDGE_CUSTOM_DOMAINS],\n managedBy: CUSTOM_DOMAIN_RECONCILER_MANAGED_BY,\n reconcilerImage: CUSTOM_DOMAIN_RECONCILER_IMAGE,\n backendPathPrefixesJson: JSON.stringify(CUSTOM_DOMAIN_BACKEND_PATH_PREFIXES),\n // Every routed service's port by Service name: the backend names the default frontend at run time.\n servicePortsJson: JSON.stringify(Object.fromEntries(target.ingressRoutes.map((route) => [route.serviceName, route.port]))),\n });\n const combined = rendered.splice(reconcilerStart)[0];\n if (combined) {\n // The template's leading comment rides with its first object, the ServiceAccount.\n for (const object of combined.yaml.split(/^---$/m)) {\n const kind = /^kind:\\s*(\\S+)/m.exec(object)?.[1]?.toLowerCase() ?? 'object';\n rendered.push({ name: `${combined.name}-${kind}`, yaml: object.trimStart() });\n }\n }\n }\n\n return rendered;\n }\n\n /**\n * Render the per-app, per-minion Deployment (KD-5/KD-8 — singleton, no\n * Service, no Ingress; shares the app scope + mounts the SAME `{appSlug}-secret`).\n * Maps the authored reinstantiation policy → K8s strategy (per\n * `MinionReinstantiationSchema`: `kill_previous`→Recreate, `let_run`→RollingUpdate)\n * and builds the liveness `exec` command from the liveness spec. Per-service\n * model: the minion runs its OWN per-minion image\n * `{registry}/{appSlug}-minion-{dnsName}` (built from its package Dockerfile\n * — symmetric with the worker's `{appSlug}-worker-{dnsName}`; NOT the deleted\n * single-pod `{appSlug}` app image), where `dnsName` is the bucket key\n * RFC1123-normalized via `buildMinionServiceName` so a camelCase key\n * (`marketingScrapper`) yields a valid image tag / object name\n * (`marketing-scrapper`). Headless role — marked by the\n * `wildo.ai/owned-service-kind: minion` pod label; no `APP_OWNED_SERVICE_*`\n * env is stamped, as the Node minion sources identity from its compiled-in\n * `defineMinionInit` config, not env. The RAW bucket key remains the minion's\n * IDENTITY (the `wildo.ai/owned-service-name` label), distinct from the DNS name.\n * Returns one flat `{appSlug}-minion-{dnsName}` manifest. Remote-only.\n *\n * This renderer selects the per-minion image. The generated deployment CI\n * workflow owns building and publishing that image from its package Dockerfile.\n */\n static renderMinionForTarget(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n target: {\n /** The application's own store (#3367): it bounds this runtime's database network segments. */\n applicationDatabaseEngine: DatabaseEngine;\n appName: string;\n minionName: string;\n /**\n * What this minion DECLARED — forwarded so its pod carries the network\n * labels its `NetworkPolicy` set selects on (Step 5-egress / 5A).\n * Optional here and absent means \"declared nothing\", which yields the\n * NARROWEST label set rather than none — the same fail-closed direction as\n * every other consumer of this declaration.\n */\n accessDeclaration?: RuntimeAccessDeclaration;\n reinstantiationPolicy?: 'kill_previous' | 'let_run';\n gracePeriodSec?: number;\n /**\n * The PARSED `wildo.minion.config.ts > liveness`, whole. Absent means the schema defaults. The probe\n * command, its cadence and the heartbeat env are all derived from this one value\n * (`minion-liveness.contracts.ts`, #1859), so a caller cannot hand the probe one interval and the\n * writer another.\n */\n liveness?: MinionLiveness;\n /**\n * Authored `wildo.minion.config.ts > isolation`. Only the image-dependent\n * (`runAsUser`/`runAsGroup`) and ADDITIVE (`writablePaths`) knobs travel\n * here — the security floor is emitted unconditionally by the template and\n * is deliberately not representable in this shape, so no caller can pass a\n * value that lowers it. See `MinionIsolationSchema`.\n */\n isolation?: { runAsUser?: number; runAsGroup?: number; writablePaths?: string[]; pidsLimit?: number };\n imageRef?: string;\n },\n imageTag?: string,\n ): Array<{ name: string; yaml: string }> {\n // #2303: a profile whose queue cannot confine a minion (the DATABASE queue on MongoDB) refuses it, before anything is rendered.\n assertProfileRunsDeclaredMinions(env, 1, target.applicationDatabaseEngine);\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const tpl = `applications/${APPLICATION_NAME}/minion.deployment.yaml.hbs`;\n if (!existsSync(join(templatesRoot, tpl))) return [];\n const tp = new TemplateProcessor(templatesRoot);\n const base = K8sManifestGenerator.buildForApplication(env, imageTag);\n\n const useRollingUpdate = target.reinstantiationPolicy === 'let_run';\n // Probe command, probe cadence and the heartbeat env the minion runtime writes from: ONE parsed liveness,\n // three derivations, all owned by platform-config-lib (#1859). The previous inline `find -mmin` command\n // with its own fallback literals had no producer at all and could not be shared with compose.\n const livenessCommand = buildMinionLivenessProbeCommand(target.liveness);\n const livenessTiming = deriveMinionLivenessProbeTiming(target.liveness);\n const livenessHeartbeatEnv = buildMinionLivenessHeartbeatEnv(target.liveness);\n\n // The RFC1123-normalized DNS name (k8s object + image ref). `minionName`\n // stays the RAW bucket key — it is the minion's IDENTITY, stamped verbatim\n // as the `wildo.ai/owned-service-name` pod label. Splitting the two is why\n // the template consumes `{{minionServiceName}}` for names and `{{minionName}}`\n // for the identity label (see the schema-reshape rule on distinct concepts).\n const minionServiceName = buildMinionServiceName(target.appName, target.minionName);\n\n // The MANDATORY `/tmp` mount always leads, then any authored additions.\n //\n // This pairing is load-bearing, not cosmetic: the template emits\n // `readOnlyRootFilesystem: true`, and the default liveness probe writes to\n // `/tmp/wildo-minion-alive`. Emitting the read-only flag without a writable\n // /tmp restart-loops every HEALTHY minion, and the k8s event names a failing\n // probe rather than the missing mount — a long way from the cause. The\n // schema rejects `/tmp` in `writablePaths` (duplicate mountPath = pod\n // refused at admission), so prepending here cannot collide.\n //\n // Volume names are RFC1123: lowercase alphanumerics and '-'. Deriving them\n // from the path (rather than an index) keeps a manifest diff readable when a\n // path is added in the middle of the list.\n const writableMounts = buildWritableMounts(target.isolation?.writablePaths);\n\n const vars: Record<string, unknown> = {\n namespace: base.namespace,\n imageRegistry: base.imageRegistry,\n imageTag: base.imageTag,\n imagePullPolicy: base.imagePullPolicy,\n applicationEnv: base.applicationEnv,\n appName: target.appName,\n minionServiceName,\n // Scoped to `providers.scopes.minions.<name>`, keyed on the SAME DNS name the Deployment\n // uses (#369) — one runtime, one provider Secret, one name.\n // This minion's OWN environment Secret — no longer the backend's (#377).\n runtimeEnvSecretName: k8sRuntimeEnvSecretName(minionServiceName),\n providersSecretName: k8sRuntimeProvidersSecretName(minionServiceName),\n minionName: target.minionName,\n imageRef: target.imageRef ?? `${base.imageRegistry}/${minionServiceName}:${base.imageTag}`,\n reinstantiationStrategy: useRollingUpdate ? 'RollingUpdate' : 'Recreate',\n useRollingUpdate,\n gracePeriodSeconds: target.gracePeriodSec,\n // JSON-encode the command → a valid YAML flow sequence whose string\n // elements are always-valid scalars (guards against `:`/`#` in an\n // authored filePath/execCommand corrupting the manifest).\n livenessCommandJson: JSON.stringify(livenessCommand),\n livenessPeriodSeconds: livenessTiming.periodSeconds,\n livenessTimeoutSeconds: livenessTiming.timeoutSeconds,\n livenessFailureThreshold: livenessTiming.failureThreshold,\n livenessStartupFailureThreshold: livenessTiming.startupFailureThreshold,\n // `- name: K` / `value: <JSON string>` pairs, pre-rendered for the same reason as the command: a JSON\n // string is a valid YAML double-quoted scalar whatever an authored path contains. Not `$`-escaped, and\n // deliberately: the kubelet expands `$(NAME)` in env values AND in exec probe commands, so escaping one side\n // only would hand the writer and the probe two different paths. The schema refuses `$` in a heartbeat\n // `filePath` instead (`refineLivenessFileIsWritable`), which keeps both sides literal.\n livenessHeartbeatEnvYaml: Object.entries(livenessHeartbeatEnv)\n .map(([name, value]) => ` - name: ${name}\\n value: ${JSON.stringify(value)}`)\n .join('\\n'),\n // Pre-rendered as an indented YAML block rather than iterated in the\n // template: Handlebars `{{#each}}` whitespace is fragile inside a YAML\n // mapping, and a mis-indented label silently becomes a sibling key. Same\n // reasoning as `livenessCommandJson` above — serialise where the types are.\n runtimeNetworkLabelsYaml: K8sManifestGenerator.renderPodLabelBlock(\n buildRuntimeNetworkPodLabels(\n { kind: ApplicationRuntimePrincipalKind.MINION, name: target.minionName } as ApplicationRuntimePrincipal,\n target.accessDeclaration,\n // A minion serves no HTTP route, so it never joins the edge segment.\n { servesHttp: false, ...resolveRuntimeApplicationStores({ applicationDatabase: { engine: target.applicationDatabaseEngine }, serviceProfile: env.serviceProfile }) },\n ),\n 8,\n ),\n // Defaults mirror `MinionIsolationSchema`. Repeated here because this\n // renderer is reachable from callers that pass a partially-populated\n // target (the schema defaults apply at config-parse time, not here), and\n // an undefined uid would emit `runAsUser:` with an empty value — which\n // k8s rejects, but only at apply time.\n isolation: {\n runAsUser: target.isolation?.runAsUser ?? 10001,\n runAsGroup: target.isolation?.runAsGroup ?? 10001,\n },\n writableMounts,\n };\n return [{ name: minionServiceName, yaml: tp.processTemplate(tpl, vars) }];\n }\n\n /**\n * Render the per-app, per-worker Deployment + ClusterIP Service (KD-3 —\n * in-cluster HTTP only, no Ingress; mounts `{appSlug}-secret` for the 4-env\n * bootstrap it uses to fetch its worker-bootstrap key). Scalable (`replicas`).\n * Worker image is per-worker (`{registry}/{appSlug}-worker-{dnsName}`), where\n * `dnsName` is the bucket key RFC1123-normalized via `buildWorkerServiceName`\n * (`myRustWorker` → `my-rust-worker`) so the tag / object name / dispatch host\n * are valid and coherent. The RAW bucket key stays the worker IDENTITY\n * (`APP_OWNED_SERVICE_NAME` + `wildo.ai/owned-service-name` label).\n * Returns two flat manifests. Remote-only.\n *\n * NOTE: deploying the worker does NOT make it invokable — the backend→worker\n * dispatch client + `WILDO_WORKER_<NAME>_URL` injection (G-8 / MW4) is a\n * separate, not-yet-built feature. See the Phase 8 plan.\n */\n static renderWorkerForTarget(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string,\n target: {\n /** The application's own store (#3367): it bounds this runtime's database network segments. */\n applicationDatabaseEngine: DatabaseEngine;\n appName: string;\n workerName: string;\n httpPort?: number;\n replicas?: number;\n healthPath?: string;\n readyPath?: string;\n metricsPath?: string;\n /**\n * Authored `wildo.worker.config.ts > isolation`. Same contract as the\n * minion renderer: only the image-dependent and ADDITIVE knobs travel\n * here — the security floor is emitted unconditionally by the template and\n * is deliberately not representable, so no caller can lower it.\n */\n isolation?: { runAsUser?: number; runAsGroup?: number; writablePaths?: string[]; pidsLimit?: number };\n imageRef?: string;\n },\n imageTag?: string,\n ): Array<{ name: string; yaml: string }> {\n const templatesRoot = K8sManifestGenerator.resolveK8sTemplatesRoot(frameworkPath);\n const tp = new TemplateProcessor(templatesRoot);\n const base = K8sManifestGenerator.buildForApplication(env, imageTag);\n // The RFC1123-normalized DNS name (Deployment/Service `metadata.name`,\n // `app.kubernetes.io/name` selector, image ref, and the dispatch URL host the\n // backend reaches it at). `workerName` stays the RAW bucket key — it is the\n // worker's IDENTITY, stamped verbatim as `APP_OWNED_SERVICE_NAME` (the Rust\n // worker reads it at boot to key its apps-manager bootstrap) and the\n // `wildo.ai/owned-service-name` label. The template consumes\n // `{{workerServiceName}}` for names and `{{workerName}}` for the identity.\n const workerServiceName = buildWorkerServiceName(target.appName, target.workerName);\n // A worker never boots the application lifecycle and holds no backing-service\n // credential (D22/KD-3), so it joins PLATFORM and the telemetry collector it\n // emits to (#3368) — the declaration is not even consulted, because there is\n // no declaration that would widen it.\n const workerNetworkLabelsYaml = K8sManifestGenerator.renderPodLabelBlock(\n buildRuntimeNetworkPodLabels(\n { kind: ApplicationRuntimePrincipalKind.WORKER, name: target.workerName } as ApplicationRuntimePrincipal,\n undefined,\n { servesHttp: false, ...resolveRuntimeApplicationStores({ applicationDatabase: { engine: target.applicationDatabaseEngine }, serviceProfile: env.serviceProfile }) },\n ),\n 8,\n );\n // The bare normalized segment (`myNodeWorker` → `my-node-worker`) for the\n // per-manifest FILE key `{appName}-{seg}-{deployment|service}` — keeps the\n // historical filename shape (already lowercase for a lowercase key) rather than\n // doubling the `-worker-` infix that `workerServiceName` already carries.\n const workerDnsSegment = normalizeServiceKeyToDnsName(target.workerName);\n const vars: Record<string, unknown> = {\n namespace: base.namespace,\n imageRegistry: base.imageRegistry,\n imageTag: base.imageTag,\n imagePullPolicy: base.imagePullPolicy,\n applicationEnv: base.applicationEnv,\n appName: target.appName,\n workerServiceName,\n // Scoped to `providers.scopes.workers.<name>` (#369). `myRustWorker` authors\n // `providers: {}`, so no Secret is emitted for it and the optional mount finds nothing —\n // which is the whole point.\n // This worker's OWN environment Secret — no longer the backend's (#377).\n runtimeEnvSecretName: k8sRuntimeEnvSecretName(workerServiceName),\n providersSecretName: k8sRuntimeProvidersSecretName(workerServiceName),\n runtimeNetworkLabelsYaml: workerNetworkLabelsYaml,\n workerName: target.workerName,\n imageRef:\n target.imageRef ??\n `${base.imageRegistry}/${workerServiceName}:${base.imageTag}`,\n httpPort: target.httpPort ?? 8080,\n replicas: target.replicas ?? 1,\n healthPath: target.healthPath ?? '/healthz',\n readyPath: target.readyPath ?? '/readyz',\n metricsPath: target.metricsPath,\n // Defaults mirror `RuntimeIsolationSchema`; repeated because this renderer\n // is reachable from callers passing a partially-populated target, and an\n // undefined uid would emit `runAsUser:` with an empty value — which k8s\n // rejects, but only at apply time.\n isolation: {\n runAsUser: target.isolation?.runAsUser ?? 10001,\n runAsGroup: target.isolation?.runAsGroup ?? 10001,\n },\n // Mandatory writable mount first, then authored additions — identical\n // ordering and reasoning to the minion renderer.\n writableMounts: buildWritableMounts(target.isolation?.writablePaths),\n };\n const files: Array<[string, string]> = [\n ['worker.deployment.yaml.hbs', 'worker-deployment'],\n ['worker.service.yaml.hbs', 'worker-service'],\n ];\n const rendered: Array<{ name: string; yaml: string }> = [];\n for (const [file, suffix] of files) {\n const tpl = `applications/${APPLICATION_NAME}/${file}`;\n if (existsSync(join(templatesRoot, tpl))) {\n rendered.push({\n name: `${target.appName}-${workerDnsSegment}-${suffix}`,\n yaml: tp.processTemplate(tpl, vars),\n });\n }\n }\n return rendered;\n }\n}\n"]}
|
|
@@ -94,6 +94,13 @@ export interface TemplateVariables {
|
|
|
94
94
|
name: string;
|
|
95
95
|
valueYaml: string;
|
|
96
96
|
}>;
|
|
97
|
+
/**
|
|
98
|
+
* The name the scheduler re-points a host-run backend's loopback delivery URL at (`PLATFORM_HOST_GATEWAY_HOSTNAME`).
|
|
99
|
+
* Set by `buildForPlatformService` for the scheduler on a LOCAL environment only; see `resolveKindPodHostGateway`.
|
|
100
|
+
*/
|
|
101
|
+
hostGatewayHostname?: string;
|
|
102
|
+
/** The address the scheduler pod's `hostAliases` maps {@link hostGatewayHostname} to, when the cluster cannot resolve it. */
|
|
103
|
+
hostGatewayAliasIp?: string;
|
|
97
104
|
/**
|
|
98
105
|
* The `wildo.ai/net-<segment>` pod labels of a FRAMEWORK workload (a backing service or a platform service), as an
|
|
99
106
|
* indented YAML block for the pod template's `labels:` mapping. Derived from `resolveFrameworkWorkloadNetworks`; the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-manifest.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-manifest.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qDAAqD,CAAC;AAMxG,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE;QAAE,GAAG,EAAE,MAAM,CAA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