@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.schemas.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-manifest.schemas.ts"],"names":[],"mappings":"AA2PA,+EAA+E;AAC/E,kCAAkC;AAClC,+EAA+E;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAoC;IAC3E,OAAO;QACL,QAAQ,EAAE,EAAE,GAAG,EAAE,0BAA0B,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,kBAAkB,IAAI,EAAE;QACpG,MAAM,EAAE,EAAE,GAAG,EAAE,0BAA0B,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,gBAAgB,IAAI,EAAE;K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AO,EAAE;QAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;KACxC;IACD,iEAAiE;IACjE,iEAAiE;IACjE,yDAAyD;IACzD,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE;QACxC,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;KACxC;IACD,wEAAwE;IACxE,wEAAwE;IACxE,uEAAuE;IACvE,gEAAgE;IAChE,wEAAwE;IACxE,2EAA2E;IAC3E,6EAA6E;IAC7E,yEAAyE;IACzE,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;QAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;KACxC;IACD,uFAAuF;IACvF,uFAAuF;IACvF,sFAAsF;IACtF,uFAAuF;IACvF,iGAAiG;IACjG,yBAAyB;IACzB,wFAAwF;IACxF,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;QAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;KACxC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAmB;IACxD,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;IAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;CACxC,CAAC","sourcesContent":["import type { PlatformServiceMemoryProfile } from '~wildo-cli/services/catalog/service-catalog.schemas';\n\n// ============================================================================\n// Resource Configuration\n// ============================================================================\n\nexport interface ResourceConfig {\n requests: { cpu: string; memory: string };\n limits: { cpu: string; memory: string };\n}\n\n// ============================================================================\n// Template Variables — context for .yaml.hbs rendering\n// ============================================================================\n\n/**\n * Comprehensive context passed to Handlebars K8s templates.\n * Every field used by the local-deployment `.yaml.hbs` templates is represented here.\n * Optional fields use the Handlebars `{{default x fallback}}` helper.\n *\n * Remote TLS variables (`acmeEmail`, `issuerName`, `perIngressTls`) are wired\n * for the HTTP-01 per-ingress strategy. The\n * Traefik-Helm-install variables (`traefikReplicas`, `loadBalancerAnnotations`,\n * `proxyProtocol`, `pdbEnabled`, provider LB annotations) are consumed only by\n * `traefik/values.yaml.hbs` at Helm-install time and are sourced by the Traefik\n * values builder, not this manifest context.\n */\nexport interface TemplateVariables {\n // --- Core ---\n namespace: string;\n /**\n * Public domain (`WildoInfraEnvConfig.publicDomain`) — the\n * runtime-agnostic external hostname browsers and reverse proxies\n * resolve. Templates render `{{publicDomain}}` for ingress hosts,\n * TLS secret names, and CORS allowlists.\n */\n publicDomain: string;\n\n // --- Image ---\n imageRegistry: string;\n imageTag: string;\n imagePullPolicy: string;\n imageName?: string;\n /**\n * The fully-composed PLATFORM image reference, resolved by the LANE (#349).\n *\n * Distinct from `imageRegistry`/`imageName`/`imageTag`, which describe the APPLICATION's own\n * images — built from the app's source and pushed to the operator's registry. The platform image\n * is the framework's and lives on the framework's registry, so it cannot be composed from this\n * environment at all. Set only by `buildForPlatformService`; read only by the three platform\n * deployment templates.\n */\n platformImageRef?: string;\n imagePullSecretName?: string;\n\n // --- Environment ---\n nodeEnv: string;\n applicationEnv: string;\n appsManagerMode?: string;\n\n // --- Ingress ---\n ingressClass?: string;\n tlsSecretName?: string;\n tlsEnabled?: boolean;\n\n // --- Remote TLS (HTTP-01 per-ingress strategy) ---\n /**\n * ACME registration email rendered into the Let's Encrypt `ClusterIssuer`\n * (`cluster-issuer.yaml.hbs`). Sourced from `remoteProvider.acmeEmail`.\n * Remote envs only; unset for local (self-signed).\n */\n acmeEmail?: string;\n /**\n * cert-manager `ClusterIssuer` name the app ingress annotation\n * (`cert-manager.io/cluster-issuer`) points at. Sourced from\n * `remoteProvider.tlsIssuer` (defaults to `letsencrypt-prod` downstream).\n */\n issuerName?: string;\n /**\n * When `true`, TLS is terminated per-ingress: each ingress owns an explicit\n * host list + its own `<name>-tls` secret issued via HTTP-01, and the shared\n * wildcard `TLSStore` default in `tls-config.yaml.hbs` is NOT rendered (no\n * wildcard secret exists to back it). `false`/unset preserves the local\n * self-signed wildcard behavior.\n */\n perIngressTls?: boolean;\n\n // --- Resources ---\n resources: ResourceConfig;\n /**\n * A platform service's V8 heap ceiling (`--max-old-space-size`), from its measured\n * `PlatformServiceMemoryProfile` (#1592). Rendered in every mode: without it V8 sizes the heap on\n * its own, which is how a platform container ran out of memory at a size it legitimately needs.\n */\n heapCeilingMb?: number;\n replicas?: number;\n\n // --- apps-manager's HSM client (#3019) ---\n /**\n * The HSM vendor's PKCS#11 client files, each a read-only `hostPath` volume mounted at its container path, from\n * `platformKeyManagement.pkcs11.clientFiles`. Set by `buildForPlatformService` for apps-manager only; the paths are\n * YAML double-quoted scalars.\n */\n pkcs11ClientFiles?: Array<{ volumeName: string; hostPathYaml: string; containerPathYaml: string }>;\n /** The vendor client's own variables (`platformKeyManagement.pkcs11.environment`), apps-manager only; values YAML-quoted. */\n pkcs11Environment?: Array<{ name: string; valueYaml: string }>;\n\n // --- Network segmentation (#3372) ---\n /**\n * The `wildo.ai/net-<segment>` pod labels of a FRAMEWORK workload (a backing service or a platform service), as an\n * indented YAML block for the pod template's `labels:` mapping. Derived from `resolveFrameworkWorkloadNetworks`; the\n * namespace's `NetworkPolicy` default-deny isolates any pod rendered without it.\n */\n podNetworkLabelsYaml?: string;\n /** The same block for the `mongodb-init` Job's pod, which `internal/mongodb/deployment.yaml.hbs` renders beside mongod. */\n mongodbInitPodNetworkLabelsYaml?: string;\n\n // --- Mode ---\n /**\n * Local Kind. Decides the `NODE_ENV`, the generous dev resource profile and the dev probe cadence (with a lenient\n * liveness probe). It mounts nothing from the host: the dev-mode `hostPath` dist overlay of the platform deployments\n * was removed with #2989, so local Kind runs the published platform image as released, like every other cluster.\n */\n isDevMode: boolean;\n\n // --- Service ---\n port?: number;\n nodeOptionsHeapSize?: number;\n\n // --- Storage (internal services) ---\n useStaticPV?: boolean;\n storageClassName?: string;\n storageSize?: string;\n\n /**\n * Name of the K8s Secret the immudb StatefulSet reads its admin password\n * from (`IMMUDB_ADMIN_PASSWORD` via `secretKeyRef`, `optional: true`). Set\n * only for the self-hosted immudb service (`immudb-secret`); other internal\n * services ignore it. The secret itself is emitted by `generateK8sSecrets`\n * (§3) from the platform's framework-managed `credentials.immudb.adminPassword`\n * (#1696) — the sysadmin password apps-manager logs in with to mint each\n * application's own database and user; no application holds it. Absent → the\n * StatefulSet renders no credential env.\n */\n immudbAdminPasswordSecretName?: string;\n\n /**\n * Name of the K8s Secret the immudb StatefulSet mounts its state-signing PRIVATE key from\n * (`IMMUDB_STATE_SIGNING_KEY`, projected to a file, passed to `--signingKey`). Set only for the\n * self-hosted immudb service (`immudb-secret`, same secret as the admin password). When set, the\n * StatefulSet signs its `ImmutableState` so the audit client's pinned public key\n * (`IMMUDB_STATE_PUBLIC_KEY`) can cryptographically reject a substituted/unsigned server. The\n * key is emitted by `generateK8sSecrets` (§3) from `credentials.immudb.stateSigningPrivateKey`\n * (provisioned from the `FRAMEWORK_MANAGED_SECRET_MATERIALS` registry — always present for a\n * file-backed env). Absent → immudb runs UNSIGNED and the client warns once; that path now only\n * survives for a CI-reconstructed secrets.json, which publishes no immudb material.\n */\n immudbStateSigningKeySecretName?: string;\n\n /**\n * In-container mount path + `IMMUDB_STATE_DIR` value for the APP BACKEND's durable immudb audit\n * trust anchor. Set (to {@link IMMUDB_AUDIT_STATE_CONTAINER_DIR}) by {@link buildForApplication}\n * only when the env has an immudb audit backing service configured — the app-backend deployment\n * then renders the `IMMUDB_STATE_DIR` env + a `volumeMount` + a `persistentVolumeClaim` volume, and\n * {@link renderApplicationForTarget} emits the matching PVC. Undefined ⇒ no anchor env/volume/PVC\n * (an app that does not use the immudb audit sink). Distinct from the immudb SERVER's own data PVC.\n */\n immudbAuditStateDir?: string;\n\n /**\n * Optional StorageClass for the app-backend audit-anchor PVC. Omitted ⇒ the cluster's DEFAULT\n * dynamic StorageClass provisions it — the same posture as the self-hosted immudb StatefulSet's\n * data PVC in prod/staging (app-backend k8s manifests render for REMOTE only, never the local static PV).\n */\n immudbAuditStateStorageClassName?: string;\n\n /** Optional size for the audit-anchor PVC (default 1Gi; the anchor is a tiny JSON file). */\n immudbAuditStateStorageSize?: string;\n\n // --- Conditional service inclusion (Slice 4 K8s parity) ---\n // Drives `{{#if}}` guards in the storage PV template (and any\n // future cross-service templates) so PVs are only emitted for\n // services the env will actually deploy. Mirrors the per-env\n // resolver in the generator (see `getDeployableInfraServicesForK8s`).\n includeLocalMongoDB?: boolean;\n /**\n * #2303 — whether the mongot search sidecar runs beside the self-hosted mongod: false when the service profile omits\n * it. Gates mongod's `--setParameter mongotHost=…` routing. `includeLocalMongotVolume` is the same answer for a LOCAL\n * environment, gating the mongot PersistentVolume.\n */\n includeMongotSidecar?: boolean;\n includeLocalMongotVolume?: boolean;\n includeLocalValkey?: boolean;\n includeLocalRabbitMQ?: boolean;\n includeLocalMinIO?: boolean;\n includePostgreSQL?: boolean;\n includeLocalClamAV?: boolean;\n includeLocalImmudb?: boolean;\n /** #2933 — the self-hosted OpenBao (`platformKeyManagement.vault.source === SELF`), local PV gate. */\n includeLocalPlatformKeyVault?: boolean;\n\n // --- #2933: the self-hosted OpenBao's own render (present only for it; built from secrets.json) ---\n openbaoImage?: string;\n openbaoPort?: number;\n openbaoSecretName?: string;\n openbaoConfigDir?: string;\n openbaoConfigFileName?: string;\n openbaoConfigFilePath?: string;\n openbaoDataPath?: string;\n openbaoEnv?: { unsealKey: string; signerToken: string; operatorToken: string; recoveryToken: string; previousUnsealKey: string };\n openbaoSecretKeys?: { unsealKey: string; signerToken: string; operatorToken: string; recoveryToken: string; previousUnsealKey: string };\n /** #3006 — true only between the two steps of `wildo keys vault-rotate-unseal-key`: the StatefulSet reads the previous key. */\n openbaoHasPreviousUnsealKey?: boolean;\n /** The server configuration (no secret: key IDS only), indented for the ConfigMap's block scalar. */\n openbaoServerConfigIndented?: string;\n\n // --- Internal service images (overridable) ---\n mongodbImage?: string;\n valkeyImage?: string;\n postgresImage?: string;\n minioImage?: string;\n rabbitmqImage?: string;\n clamavImage?: string;\n immudbImage?: string;\n /**\n * Issue #74 — the `mongot` (MongoDB Search / Vector Search) sidecar image. Overridable\n * like every other internal-service image; the template's `default` carries the pinned\n * tag so an operator who never sets this gets the version the framework verified.\n */\n mongotImage?: string;\n\n // --- mongot wiring (issue #74) ---\n // mongot rides `includeLocalMongoDB` (an attachment to a self-hosted mongod rather than an independently sourced\n // service) AND the service profile (`includeMongotSidecar`, #2303).\n // These carry its addresses and identity into BOTH the mongot templates and the mongod\n // StatefulSet (whose `--setParameter mongotHost=` must name the same gRPC port) — one\n // source, two workloads, which is the whole reason they are context values rather than\n // literals repeated per template.\n mongotGrpcPort?: number;\n mongotHealthPort?: number;\n mongotMetricsPort?: number;\n mongotSyncSourceUsername?: string;\n mongotSyncSourceAuthSource?: string;\n mongotPasswordFilePath?: string;\n mongotConfigFilePath?: string;\n mongotDataPath?: string;\n\n // --- Application-specific ---\n enabledServices?: string;\n}\n\n// ============================================================================\n// Default Resource Configurations\n// ============================================================================\n\n/**\n * The Kubernetes resources a platform service gets outside local development: CPU from the generic\n * platform default, memory from the service's MEASURED profile (#1592). Every platform service used to\n * get `DEFAULT_PLATFORM_RESOURCES`' `1Gi` limit, below what apps-manager measurably uses (1,586 MiB\n * peak RSS), so a production pod was OOM-killed at a size it legitimately needs.\n */\nexport function platformServiceResources(memory: PlatformServiceMemoryProfile): ResourceConfig {\n return {\n requests: { cpu: DEFAULT_PLATFORM_RESOURCES.requests.cpu, memory: `${memory.containerRequestMb}Mi` },\n limits: { cpu: DEFAULT_PLATFORM_RESOURCES.limits.cpu, memory: `${memory.containerLimitMb}Mi` },\n };\n}\n\n/**\n * The generic fallback for a service with no profile of its own (an internal service missing from\n * `DEFAULT_INTERNAL_RESOURCES`). Platform services still take their CPU from it, but no longer their\n * MEMORY: its `1Gi` limit is below what those Node processes measurably use (#1592); see\n * `platformServiceResources`.\n */\nexport const DEFAULT_PLATFORM_RESOURCES: ResourceConfig = {\n requests: { cpu: '200m', memory: '256Mi' },\n limits: { cpu: '1000m', memory: '1Gi' },\n};\n\nexport const DEFAULT_PLATFORM_DEV_RESOURCES: ResourceConfig = {\n requests: { cpu: '500m', memory: '512Mi' },\n limits: { cpu: '2000m', memory: '4Gi' },\n};\n\nexport const DEFAULT_INTERNAL_RESOURCES: Record<string, ResourceConfig> = {\n mongodb: {\n requests: { cpu: '200m', memory: '512Mi' },\n limits: { cpu: '1000m', memory: '1Gi' },\n },\n valkey: {\n requests: { cpu: '100m', memory: '128Mi' },\n limits: { cpu: '500m', memory: '512Mi' },\n },\n rabbitmq: {\n requests: { cpu: '100m', memory: '256Mi' },\n limits: { cpu: '500m', memory: '512Mi' },\n },\n minio: {\n requests: { cpu: '200m', memory: '256Mi' },\n limits: { cpu: '500m', memory: '512Mi' },\n },\n postgresql: {\n requests: { cpu: '200m', memory: '256Mi' },\n limits: { cpu: '1000m', memory: '1Gi' },\n },\n // ClamAV's clamd resident set is ~700MB once the signature DB is\n // loaded; bump memory to 1Gi requested so the OOM-killer doesn't\n // sweep it during a freshclam refresh + concurrent scan.\n clamav: {\n requests: { cpu: '100m', memory: '1Gi' },\n limits: { cpu: '1000m', memory: '2Gi' },\n },\n // immudb — tamper-evident, append-only audit store (Audit Phase 2). The\n // Merkle-tree DB keeps its working set + write buffers in memory; 256Mi\n // requested / 1Gi limit tracks the postgresql profile (both persist an\n // ever-growing on-disk history). Applies to BOTH local Kind and\n // self-hosted prod/staging — before this entry, immudb fell back to the\n // generic `DEFAULT_PLATFORM_RESOURCES` (a service-agnostic default, not an\n // audit-store profile). Managed/external immudb never renders a StatefulSet,\n // so these bounds only govern the self-hosted (`source: SELF`) workload.\n immudb: {\n requests: { cpu: '100m', memory: '256Mi' },\n limits: { cpu: '1000m', memory: '1Gi' },\n },\n // mongot — the MongoDB Search / Vector Search sidecar (issue #74). A JVM (Adoptium 21)\n // holding Lucene index structures resident, so its floor is a JVM's floor, not a small\n // daemon's: 512Mi requested / 2Gi limit, above the mongodb profile it accompanies. An\n // entry exists at all so it does not silently inherit `DEFAULT_PLATFORM_RESOURCES` — a\n // service-agnostic default (too small even for the Node platform services, #1592) — which is the\n // trap immudb fell into.\n // The compose lane's `mem_limit: 2048m` is the same number in the other lane's dialect.\n mongot: {\n requests: { cpu: '200m', memory: '512Mi' },\n limits: { cpu: '2000m', memory: '2Gi' },\n },\n};\n\nexport const DEFAULT_APP_PROD_RESOURCES: ResourceConfig = {\n requests: { cpu: '200m', memory: '512Mi' },\n limits: { cpu: '2000m', memory: '2Gi' },\n};\n"]}
|
|
1
|
+
{"version":3,"file":"k8s-manifest.schemas.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-manifest.schemas.ts"],"names":[],"mappings":"AAoQA,+EAA+E;AAC/E,kCAAkC;AAClC,+EAA+E;AAE/E;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAoC;IAC3E,OAAO;QACL,QAAQ,EAAE,EAAE,GAAG,EAAE,0BAA0B,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,kBAAkB,IAAI,EAAE;QACpG,MAAM,EAAE,EAAE,GAAG,EAAE,0BAA0B,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,gBAAgB,IAAI,EAAE;KAC/F,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAmB;IACxD,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;IAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MA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EAAE,KAAK,EAAE;QACxC,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;KACxC;IACD,wEAAwE;IACxE,wEAAwE;IACxE,uEAAuE;IACvE,gEAAgE;IAChE,wEAAwE;IACxE,2EAA2E;IAC3E,6EAA6E;IAC7E,yEAAyE;IACzE,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;QAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;KACxC;IACD,uFAAuF;IACvF,uFAAuF;IACvF,sFAAsF;IACtF,uFAAuF;IACvF,iGAAiG;IACjG,yBAAyB;IACzB,wFAAwF;IACxF,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;QAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;KACxC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAmB;IACxD,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE;IAC1C,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;CACxC,CAAC","sourcesContent":["import type { PlatformServiceMemoryProfile } from '~wildo-cli/services/catalog/service-catalog.schemas';\n\n// ============================================================================\n// Resource Configuration\n// ============================================================================\n\nexport interface ResourceConfig {\n requests: { cpu: string; memory: string };\n limits: { cpu: string; memory: string };\n}\n\n// ============================================================================\n// Template Variables — context for .yaml.hbs rendering\n// ============================================================================\n\n/**\n * Comprehensive context passed to Handlebars K8s templates.\n * Every field used by the local-deployment `.yaml.hbs` templates is represented here.\n * Optional fields use the Handlebars `{{default x fallback}}` helper.\n *\n * Remote TLS variables (`acmeEmail`, `issuerName`, `perIngressTls`) are wired\n * for the HTTP-01 per-ingress strategy. The\n * Traefik-Helm-install variables (`traefikReplicas`, `loadBalancerAnnotations`,\n * `proxyProtocol`, `pdbEnabled`, provider LB annotations) are consumed only by\n * `traefik/values.yaml.hbs` at Helm-install time and are sourced by the Traefik\n * values builder, not this manifest context.\n */\nexport interface TemplateVariables {\n // --- Core ---\n namespace: string;\n /**\n * Public domain (`WildoInfraEnvConfig.publicDomain`) — the\n * runtime-agnostic external hostname browsers and reverse proxies\n * resolve. Templates render `{{publicDomain}}` for ingress hosts,\n * TLS secret names, and CORS allowlists.\n */\n publicDomain: string;\n\n // --- Image ---\n imageRegistry: string;\n imageTag: string;\n imagePullPolicy: string;\n imageName?: string;\n /**\n * The fully-composed PLATFORM image reference, resolved by the LANE (#349).\n *\n * Distinct from `imageRegistry`/`imageName`/`imageTag`, which describe the APPLICATION's own\n * images — built from the app's source and pushed to the operator's registry. The platform image\n * is the framework's and lives on the framework's registry, so it cannot be composed from this\n * environment at all. Set only by `buildForPlatformService`; read only by the three platform\n * deployment templates.\n */\n platformImageRef?: string;\n imagePullSecretName?: string;\n\n // --- Environment ---\n nodeEnv: string;\n applicationEnv: string;\n appsManagerMode?: string;\n\n // --- Ingress ---\n ingressClass?: string;\n tlsSecretName?: string;\n tlsEnabled?: boolean;\n\n // --- Remote TLS (HTTP-01 per-ingress strategy) ---\n /**\n * ACME registration email rendered into the Let's Encrypt `ClusterIssuer`\n * (`cluster-issuer.yaml.hbs`). Sourced from `remoteProvider.acmeEmail`.\n * Remote envs only; unset for local (self-signed).\n */\n acmeEmail?: string;\n /**\n * cert-manager `ClusterIssuer` name the app ingress annotation\n * (`cert-manager.io/cluster-issuer`) points at. Sourced from\n * `remoteProvider.tlsIssuer` (defaults to `letsencrypt-prod` downstream).\n */\n issuerName?: string;\n /**\n * When `true`, TLS is terminated per-ingress: each ingress owns an explicit\n * host list + its own `<name>-tls` secret issued via HTTP-01, and the shared\n * wildcard `TLSStore` default in `tls-config.yaml.hbs` is NOT rendered (no\n * wildcard secret exists to back it). `false`/unset preserves the local\n * self-signed wildcard behavior.\n */\n perIngressTls?: boolean;\n\n // --- Resources ---\n resources: ResourceConfig;\n /**\n * A platform service's V8 heap ceiling (`--max-old-space-size`), from its measured\n * `PlatformServiceMemoryProfile` (#1592). Rendered in every mode: without it V8 sizes the heap on\n * its own, which is how a platform container ran out of memory at a size it legitimately needs.\n */\n heapCeilingMb?: number;\n replicas?: number;\n\n // --- apps-manager's HSM client (#3019) ---\n /**\n * The HSM vendor's PKCS#11 client files, each a read-only `hostPath` volume mounted at its container path, from\n * `platformKeyManagement.pkcs11.clientFiles`. Set by `buildForPlatformService` for apps-manager only; the paths are\n * YAML double-quoted scalars.\n */\n pkcs11ClientFiles?: Array<{ volumeName: string; hostPathYaml: string; containerPathYaml: string }>;\n /** The vendor client's own variables (`platformKeyManagement.pkcs11.environment`), apps-manager only; values YAML-quoted. */\n pkcs11Environment?: Array<{ name: string; valueYaml: string }>;\n\n // --- The platform scheduler's route to the host (#3957) ---\n /**\n * The name the scheduler re-points a host-run backend's loopback delivery URL at (`PLATFORM_HOST_GATEWAY_HOSTNAME`).\n * Set by `buildForPlatformService` for the scheduler on a LOCAL environment only; see `resolveKindPodHostGateway`.\n */\n hostGatewayHostname?: string;\n /** The address the scheduler pod's `hostAliases` maps {@link hostGatewayHostname} to, when the cluster cannot resolve it. */\n hostGatewayAliasIp?: string;\n\n // --- Network segmentation (#3372) ---\n /**\n * The `wildo.ai/net-<segment>` pod labels of a FRAMEWORK workload (a backing service or a platform service), as an\n * indented YAML block for the pod template's `labels:` mapping. Derived from `resolveFrameworkWorkloadNetworks`; the\n * namespace's `NetworkPolicy` default-deny isolates any pod rendered without it.\n */\n podNetworkLabelsYaml?: string;\n /** The same block for the `mongodb-init` Job's pod, which `internal/mongodb/deployment.yaml.hbs` renders beside mongod. */\n mongodbInitPodNetworkLabelsYaml?: string;\n\n // --- Mode ---\n /**\n * Local Kind. Decides the `NODE_ENV`, the generous dev resource profile and the dev probe cadence (with a lenient\n * liveness probe). It mounts nothing from the host: the dev-mode `hostPath` dist overlay of the platform deployments\n * was removed with #2989, so local Kind runs the published platform image as released, like every other cluster.\n */\n isDevMode: boolean;\n\n // --- Service ---\n port?: number;\n nodeOptionsHeapSize?: number;\n\n // --- Storage (internal services) ---\n useStaticPV?: boolean;\n storageClassName?: string;\n storageSize?: string;\n\n /**\n * Name of the K8s Secret the immudb StatefulSet reads its admin password\n * from (`IMMUDB_ADMIN_PASSWORD` via `secretKeyRef`, `optional: true`). Set\n * only for the self-hosted immudb service (`immudb-secret`); other internal\n * services ignore it. The secret itself is emitted by `generateK8sSecrets`\n * (§3) from the platform's framework-managed `credentials.immudb.adminPassword`\n * (#1696) — the sysadmin password apps-manager logs in with to mint each\n * application's own database and user; no application holds it. Absent → the\n * StatefulSet renders no credential env.\n */\n immudbAdminPasswordSecretName?: string;\n\n /**\n * Name of the K8s Secret the immudb StatefulSet mounts its state-signing PRIVATE key from\n * (`IMMUDB_STATE_SIGNING_KEY`, projected to a file, passed to `--signingKey`). Set only for the\n * self-hosted immudb service (`immudb-secret`, same secret as the admin password). When set, the\n * StatefulSet signs its `ImmutableState` so the audit client's pinned public key\n * (`IMMUDB_STATE_PUBLIC_KEY`) can cryptographically reject a substituted/unsigned server. The\n * key is emitted by `generateK8sSecrets` (§3) from `credentials.immudb.stateSigningPrivateKey`\n * (provisioned from the `FRAMEWORK_MANAGED_SECRET_MATERIALS` registry — always present for a\n * file-backed env). Absent → immudb runs UNSIGNED and the client warns once; that path now only\n * survives for a CI-reconstructed secrets.json, which publishes no immudb material.\n */\n immudbStateSigningKeySecretName?: string;\n\n /**\n * In-container mount path + `IMMUDB_STATE_DIR` value for the APP BACKEND's durable immudb audit\n * trust anchor. Set (to {@link IMMUDB_AUDIT_STATE_CONTAINER_DIR}) by {@link buildForApplication}\n * only when the env has an immudb audit backing service configured — the app-backend deployment\n * then renders the `IMMUDB_STATE_DIR` env + a `volumeMount` + a `persistentVolumeClaim` volume, and\n * {@link renderApplicationForTarget} emits the matching PVC. Undefined ⇒ no anchor env/volume/PVC\n * (an app that does not use the immudb audit sink). Distinct from the immudb SERVER's own data PVC.\n */\n immudbAuditStateDir?: string;\n\n /**\n * Optional StorageClass for the app-backend audit-anchor PVC. Omitted ⇒ the cluster's DEFAULT\n * dynamic StorageClass provisions it — the same posture as the self-hosted immudb StatefulSet's\n * data PVC in prod/staging (app-backend k8s manifests render for REMOTE only, never the local static PV).\n */\n immudbAuditStateStorageClassName?: string;\n\n /** Optional size for the audit-anchor PVC (default 1Gi; the anchor is a tiny JSON file). */\n immudbAuditStateStorageSize?: string;\n\n // --- Conditional service inclusion (Slice 4 K8s parity) ---\n // Drives `{{#if}}` guards in the storage PV template (and any\n // future cross-service templates) so PVs are only emitted for\n // services the env will actually deploy. Mirrors the per-env\n // resolver in the generator (see `getDeployableInfraServicesForK8s`).\n includeLocalMongoDB?: boolean;\n /**\n * #2303 — whether the mongot search sidecar runs beside the self-hosted mongod: false when the service profile omits\n * it. Gates mongod's `--setParameter mongotHost=…` routing. `includeLocalMongotVolume` is the same answer for a LOCAL\n * environment, gating the mongot PersistentVolume.\n */\n includeMongotSidecar?: boolean;\n includeLocalMongotVolume?: boolean;\n includeLocalValkey?: boolean;\n includeLocalRabbitMQ?: boolean;\n includeLocalMinIO?: boolean;\n includePostgreSQL?: boolean;\n includeLocalClamAV?: boolean;\n includeLocalImmudb?: boolean;\n /** #2933 — the self-hosted OpenBao (`platformKeyManagement.vault.source === SELF`), local PV gate. */\n includeLocalPlatformKeyVault?: boolean;\n\n // --- #2933: the self-hosted OpenBao's own render (present only for it; built from secrets.json) ---\n openbaoImage?: string;\n openbaoPort?: number;\n openbaoSecretName?: string;\n openbaoConfigDir?: string;\n openbaoConfigFileName?: string;\n openbaoConfigFilePath?: string;\n openbaoDataPath?: string;\n openbaoEnv?: { unsealKey: string; signerToken: string; operatorToken: string; recoveryToken: string; previousUnsealKey: string };\n openbaoSecretKeys?: { unsealKey: string; signerToken: string; operatorToken: string; recoveryToken: string; previousUnsealKey: string };\n /** #3006 — true only between the two steps of `wildo keys vault-rotate-unseal-key`: the StatefulSet reads the previous key. */\n openbaoHasPreviousUnsealKey?: boolean;\n /** The server configuration (no secret: key IDS only), indented for the ConfigMap's block scalar. */\n openbaoServerConfigIndented?: string;\n\n // --- Internal service images (overridable) ---\n mongodbImage?: string;\n valkeyImage?: string;\n postgresImage?: string;\n minioImage?: string;\n rabbitmqImage?: string;\n clamavImage?: string;\n immudbImage?: string;\n /**\n * Issue #74 — the `mongot` (MongoDB Search / Vector Search) sidecar image. Overridable\n * like every other internal-service image; the template's `default` carries the pinned\n * tag so an operator who never sets this gets the version the framework verified.\n */\n mongotImage?: string;\n\n // --- mongot wiring (issue #74) ---\n // mongot rides `includeLocalMongoDB` (an attachment to a self-hosted mongod rather than an independently sourced\n // service) AND the service profile (`includeMongotSidecar`, #2303).\n // These carry its addresses and identity into BOTH the mongot templates and the mongod\n // StatefulSet (whose `--setParameter mongotHost=` must name the same gRPC port) — one\n // source, two workloads, which is the whole reason they are context values rather than\n // literals repeated per template.\n mongotGrpcPort?: number;\n mongotHealthPort?: number;\n mongotMetricsPort?: number;\n mongotSyncSourceUsername?: string;\n mongotSyncSourceAuthSource?: string;\n mongotPasswordFilePath?: string;\n mongotConfigFilePath?: string;\n mongotDataPath?: string;\n\n // --- Application-specific ---\n enabledServices?: string;\n}\n\n// ============================================================================\n// Default Resource Configurations\n// ============================================================================\n\n/**\n * The Kubernetes resources a platform service gets outside local development: CPU from the generic\n * platform default, memory from the service's MEASURED profile (#1592). Every platform service used to\n * get `DEFAULT_PLATFORM_RESOURCES`' `1Gi` limit, below what apps-manager measurably uses (1,586 MiB\n * peak RSS), so a production pod was OOM-killed at a size it legitimately needs.\n */\nexport function platformServiceResources(memory: PlatformServiceMemoryProfile): ResourceConfig {\n return {\n requests: { cpu: DEFAULT_PLATFORM_RESOURCES.requests.cpu, memory: `${memory.containerRequestMb}Mi` },\n limits: { cpu: DEFAULT_PLATFORM_RESOURCES.limits.cpu, memory: `${memory.containerLimitMb}Mi` },\n };\n}\n\n/**\n * The generic fallback for a service with no profile of its own (an internal service missing from\n * `DEFAULT_INTERNAL_RESOURCES`). Platform services still take their CPU from it, but no longer their\n * MEMORY: its `1Gi` limit is below what those Node processes measurably use (#1592); see\n * `platformServiceResources`.\n */\nexport const DEFAULT_PLATFORM_RESOURCES: ResourceConfig = {\n requests: { cpu: '200m', memory: '256Mi' },\n limits: { cpu: '1000m', memory: '1Gi' },\n};\n\nexport const DEFAULT_PLATFORM_DEV_RESOURCES: ResourceConfig = {\n requests: { cpu: '500m', memory: '512Mi' },\n limits: { cpu: '2000m', memory: '4Gi' },\n};\n\nexport const DEFAULT_INTERNAL_RESOURCES: Record<string, ResourceConfig> = {\n mongodb: {\n requests: { cpu: '200m', memory: '512Mi' },\n limits: { cpu: '1000m', memory: '1Gi' },\n },\n valkey: {\n requests: { cpu: '100m', memory: '128Mi' },\n limits: { cpu: '500m', memory: '512Mi' },\n },\n rabbitmq: {\n requests: { cpu: '100m', memory: '256Mi' },\n limits: { cpu: '500m', memory: '512Mi' },\n },\n minio: {\n requests: { cpu: '200m', memory: '256Mi' },\n limits: { cpu: '500m', memory: '512Mi' },\n },\n postgresql: {\n requests: { cpu: '200m', memory: '256Mi' },\n limits: { cpu: '1000m', memory: '1Gi' },\n },\n // ClamAV's clamd resident set is ~700MB once the signature DB is\n // loaded; bump memory to 1Gi requested so the OOM-killer doesn't\n // sweep it during a freshclam refresh + concurrent scan.\n clamav: {\n requests: { cpu: '100m', memory: '1Gi' },\n limits: { cpu: '1000m', memory: '2Gi' },\n },\n // immudb — tamper-evident, append-only audit store (Audit Phase 2). The\n // Merkle-tree DB keeps its working set + write buffers in memory; 256Mi\n // requested / 1Gi limit tracks the postgresql profile (both persist an\n // ever-growing on-disk history). Applies to BOTH local Kind and\n // self-hosted prod/staging — before this entry, immudb fell back to the\n // generic `DEFAULT_PLATFORM_RESOURCES` (a service-agnostic default, not an\n // audit-store profile). Managed/external immudb never renders a StatefulSet,\n // so these bounds only govern the self-hosted (`source: SELF`) workload.\n immudb: {\n requests: { cpu: '100m', memory: '256Mi' },\n limits: { cpu: '1000m', memory: '1Gi' },\n },\n // mongot — the MongoDB Search / Vector Search sidecar (issue #74). A JVM (Adoptium 21)\n // holding Lucene index structures resident, so its floor is a JVM's floor, not a small\n // daemon's: 512Mi requested / 2Gi limit, above the mongodb profile it accompanies. An\n // entry exists at all so it does not silently inherit `DEFAULT_PLATFORM_RESOURCES` — a\n // service-agnostic default (too small even for the Node platform services, #1592) — which is the\n // trap immudb fell into.\n // The compose lane's `mem_limit: 2048m` is the same number in the other lane's dialect.\n mongot: {\n requests: { cpu: '200m', memory: '512Mi' },\n limits: { cpu: '2000m', memory: '2Gi' },\n },\n};\n\nexport const DEFAULT_APP_PROD_RESOURCES: ResourceConfig = {\n requests: { cpu: '200m', memory: '512Mi' },\n limits: { cpu: '2000m', memory: '2Gi' },\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-secrets-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-secrets-generator.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAQ5G,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,qEAAqE,CAAC;AA4H7E;;;;;;;;;;;;GAYG;AACH,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,mBAAmB,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,gCAAgC,EACrC,WAAW,EAAE,sBAAsB,EACnC,OAAO,GAAE;IACP,mBAAmB,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACpD;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAClD,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAClD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAC3B,GACL,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"k8s-secrets-generator.service.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-secrets-generator.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAQ5G,OAAO,KAAK,EACV,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,qEAAqE,CAAC;AA4H7E;;;;;;;;;;;;GAYG;AACH,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,mBAAmB,CAAC;CAC/B;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,gCAAgC,EACrC,WAAW,EAAE,sBAAsB,EACnC,OAAO,GAAE;IACP,mBAAmB,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACpD;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAClD,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,CAAC;IAClD,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,qBAAqB,CAAC;CAC3B,GACL,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAkdtC"}
|
|
@@ -206,12 +206,16 @@ export function generateK8sSecrets(env, credentials, options = {}) {
|
|
|
206
206
|
[VALKEY_CREDENTIAL_ENV_KEYS.PASSWORD]: credentials.valkey.adminPassword,
|
|
207
207
|
})), K8sResourceCategory.INFRASTRUCTURE);
|
|
208
208
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
209
|
+
// The broker's own secret, only when the environment self-hosts one (#2303 slice D: none under a profile whose queue
|
|
210
|
+
// lives in the application's database). The same predicate renders the StatefulSet and its PersistentVolume.
|
|
211
|
+
if (EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.RABBITMQ)) {
|
|
212
|
+
const rabbitmqSecret = k8sServiceSecretName('rabbitmq');
|
|
213
|
+
emit(rabbitmqSecret, toYaml(makeSecret(rabbitmqSecret, namespace, {
|
|
214
|
+
[RABBITMQ_CREDENTIAL_ENV_KEYS.DEFAULT_USER]: credentials.rabbitmq.adminUsername,
|
|
215
|
+
[RABBITMQ_CREDENTIAL_ENV_KEYS.DEFAULT_PASS]: credentials.rabbitmq.adminPassword,
|
|
216
|
+
[RABBITMQ_CREDENTIAL_ENV_KEYS.ERLANG_COOKIE]: credentials.rabbitmq.erlangCookie,
|
|
217
|
+
})), K8sResourceCategory.INFRASTRUCTURE);
|
|
218
|
+
}
|
|
215
219
|
if (config.infrastructure.storage.provider === 'minio') {
|
|
216
220
|
const minioSecret = k8sServiceSecretName('minio');
|
|
217
221
|
emit(minioSecret, toYaml(makeSecret(minioSecret, namespace, {
|
|
@@ -516,11 +520,13 @@ export function generateK8sSecrets(env, credentials, options = {}) {
|
|
|
516
520
|
// - LOCAL (kind, Docker Desktop's cluster): the backend runs on the host (`wildo dev start`), and so do the minions
|
|
517
521
|
// and workers. Their targets carry no `appName` (REMOTE deploy context, `AppBootstrapService.build*Targets`), so
|
|
518
522
|
// the loops below skip them and no pod is rendered. If a lane ever renders one, its `localhost` endpoints would
|
|
519
|
-
// name the pod itself, and
|
|
520
|
-
//
|
|
523
|
+
// name the pod itself, and the refusal is what that lane would meet first.
|
|
524
|
+
// kind documents no pod-to-host route, but one was MEASURED for the platform scheduler, the one pod that does
|
|
525
|
+
// dial a host-run backend (#3957, `resolveKindPodHostGateway`). Rendering a runtime pod on a LOCAL target would
|
|
526
|
+
// reuse that derivation here rather than this refusal; until a lane does, nothing needs it.
|
|
521
527
|
// spec-cite: kind docs, "Known Issues" (https://kind.sigs.k8s.io/docs/user/known-issues/), § "Docker Desktop for
|
|
522
528
|
// macOS and Windows": that section covers host-to-cluster reachability only. The page documents no pod-to-host
|
|
523
|
-
// route, and never names `host.docker.internal` or `host-gateway
|
|
529
|
+
// route, and never names `host.docker.internal` or `host-gateway`.
|
|
524
530
|
const runtimeEnvironmentContext = { credentials, addresses, config, environment: env, hostGatewayHostname: null };
|
|
525
531
|
for (const minion of options.applicationMinions ?? []) {
|
|
526
532
|
if (!minion.appName)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"k8s-secrets-generator.service.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-secrets-generator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAC1H,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,mEAAmE,CAAC;AAC/G,OAAO,EAAE,kBAAkB,EAAE,MAAM,6D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AS,EAAE,UAAU,CAAC,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACjH,CAAC;AACH,CAAC","sourcesContent":["import { stringify } from 'yaml';\nimport type { PlatformEnvConfigJson, PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { SENSITIVE_ENV_KEYS } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport { ServiceAddressResolver, AddressPerspective } from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { PlatformEnvVarsBuilder } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { includesMongoSearchSidecar } from '~wildo-cli/services/environment/environment-service-profile.utils';\nimport { InfrastructureHost } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport type {\n ApplicationBackendEnvTarget,\n ApplicationMinionEnvTarget,\n ApplicationWorkerEnvTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { loadInfraHydratedConfig } from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { shouldDeployPlatformServicesInRuntime } from '~wildo-cli/services/deployment/platform-runtime-policy.service';\nimport { BackingServiceKind, BackingServiceSource, BOOTSTRAP_PLATFORM_SERVICES, DatabaseEngine, K8S_LOCAL_DEFAULTS, PlatformWildoServices, WildoLocationType, k8sServiceSecretName, k8sServiceConfigMapName, k8sAppBackendSecretName, k8sRuntimeProvidersSecretName, k8sRuntimeEnvSecretName, selfHostsPlatformKeyVault } from '@wildo-ai/platform-config-lib';\nimport { PLATFORM_KEY_VAULT_SERVER } from '~wildo-cli/services/data-services/platform-key-vault.server-config';\nimport { INFRA_SERVICE_CATALOG } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { buildMinionServiceName, buildWorkerServiceName } from '@wildo-ai/platform-core-shared';\nimport { buildContainerisedMinionEnvironment, buildContainerisedWorkerEnvironment } from '~wildo-cli/services/deployment/application-runtime-environment';\nimport {\n MONGODB_CREDENTIAL_ENV_KEYS,\n VALKEY_CREDENTIAL_ENV_KEYS,\n RABBITMQ_CREDENTIAL_ENV_KEYS,\n MINIO_CREDENTIAL_ENV_KEYS,\n POSTGRESQL_CREDENTIAL_ENV_KEYS,\n IMMUDB_CREDENTIAL_ENV_KEYS,\n PlatformDataServices,\n} from '~wildo-cli/services/data-services/data-services.schemas';\nimport {\n K8S_LABELS,\n} from '~wildo-cli/services/deployment/k8s/k8s.schemas';\n// ============================================================================\n// Types\n// ============================================================================\n\ninterface K8sResource {\n apiVersion: 'v1';\n kind: 'Secret' | 'ConfigMap';\n metadata: {\n name: string;\n namespace: string;\n labels: Record<string, string>;\n };\n type?: 'Opaque';\n data: Record<string, string>;\n}\n\n// ============================================================================\n// Helpers\n// ============================================================================\n\nfunction toBase64(value: string): string {\n return Buffer.from(value, 'utf-8').toString('base64');\n}\n\nfunction toYaml(resource: K8sResource): string {\n return stringify(resource, { lineWidth: 0, defaultKeyType: 'PLAIN' });\n}\n\nfunction defaultLabels(): Record<string, string> {\n return {\n [K8S_LABELS.keys.PART_OF]: K8S_LABELS.values.WILDO_PLATFORM,\n [K8S_LABELS.keys.MANAGED_BY]: K8S_LABELS.values.WILDO_CLI,\n };\n}\n\nfunction makeSecret(name: string, namespace: string, rawData: Record<string, string>): K8sResource {\n const encoded: Record<string, string> = {};\n for (const [key, value] of Object.entries(rawData)) {\n encoded[key] = toBase64(value);\n }\n return {\n apiVersion: 'v1',\n kind: 'Secret',\n metadata: { name, namespace, labels: defaultLabels() },\n type: 'Opaque',\n data: encoded,\n };\n}\n\nfunction makeConfigMap(name: string, namespace: string, data: Record<string, string>): K8sResource {\n return {\n apiVersion: 'v1',\n kind: 'ConfigMap',\n metadata: { name, namespace, labels: defaultLabels() },\n data,\n };\n}\n\n/**\n * Split a flat env var record into sensitive (→ Secret) and non-sensitive\n * (→ ConfigMap).\n *\n * Sensitivity is determined exclusively by the `SENSITIVE_ENV_KEYS` set (which already includes\n * provider-key names via `PROVIDER_SENSITIVE_ENV_KEYS`).\n *\n * That set is LIVE, not static — it recomputes from the composed provider catalogue on every read\n * (#329). It was a module-load snapshot until then, which was silently wrong for any provider\n * shipped as its own package: discovery necessarily runs after the credential layer is imported,\n * so a snapshot could not contain such a provider's keys, and they were classified non-sensitive\n * and written into a `ConfigMap`. Nothing here changes as a result — `.has()` is the whole\n * contract — but do not reintroduce a local copy of the set, which would restore the snapshot.\n *\n * Used only by the platform-service emit path (apps-manager + bootstrap\n * services) which actually benefits from the Secret/ConfigMap split. The\n * application-backend path (§5 of `generateK8sSecrets`) intentionally puts\n * everything into a single Secret per app — see the \"one Secret per app\"\n * rationale in §5.\n */\nfunction splitEnv(\n env: Record<string, string>,\n): { secret: Record<string, string>; config: Record<string, string> } {\n const secret: Record<string, string> = {};\n const config: Record<string, string> = {};\n for (const [key, value] of Object.entries(env)) {\n if (SENSITIVE_ENV_KEYS.has(key)) {\n secret[key] = value;\n } else {\n config[key] = value;\n }\n }\n return { secret, config };\n}\n\nfunction setIfDefined(target: Record<string, string>, key: string, value: string | undefined | null): void {\n if (value != null) {\n target[key] = value;\n }\n}\n\n\n// ============================================================================\n// Generator\n// ============================================================================\n\n/**\n * Which workload a generated Kubernetes resource belongs to — and so which directory it is written to and who may\n * apply it.\n *\n * - `PLATFORM`: a Wildo platform service (apps-manager, module registry, …). Written under `secrets/platform/`, and\n * emitted only when the runtime deploys platform services.\n * - `INFRASTRUCTURE`: a backing service's own Secret (MongoDB, RabbitMQ, immudb, …), shared by every application on\n * the environment. Written flat under `secrets/`.\n * - `APPLICATION`: one application's runtimes — backend, minion and worker env and provider Secrets. Written under\n * `secrets/applications/`.\n *\n * A HOSTED environment emits only `APPLICATION`: the other two are its infrastructure host's to apply.\n */\nexport enum K8sResourceCategory {\n PLATFORM = 'platform',\n INFRASTRUCTURE = 'infrastructure',\n APPLICATION = 'application',\n}\n\nexport interface K8sGeneratedResource {\n yaml: string;\n category: K8sResourceCategory;\n}\n\n/**\n * Generates K8s Secret + ConfigMap YAML for all platform, infra, and app services.\n *\n * Uses ServiceAddressResolver (CONTAINER_INTERNAL / K8s perspective) and\n * PlatformEnvVarsBuilder for env var construction, then splits into\n * sensitive (Secret, base64) and non-sensitive (ConfigMap, plain-text).\n *\n * Returns a map of resource-name → { yaml, category } for directory routing.\n */\nexport function generateK8sSecrets(\n env: PlatformEnvironmentConfiguration,\n credentials: PlatformEnvSecretsJson,\n options: {\n applicationBackends?: ApplicationBackendEnvTarget[];\n /**\n * The app's declared minions and workers. Each owns a provider Secret scoped to its own\n * `providers.scopes.{minions,workers}.<name>` (#369). Omitting them is not a silent \"no\n * providers\" — it emits no Secret, and the pod's `optional: true` mount then finds nothing, so\n * a caller that renders minion/worker Deployments MUST pass them here too or those runtimes\n * boot with no provider credentials at all.\n */\n applicationMinions?: ApplicationMinionEnvTarget[];\n applicationWorkers?: ApplicationWorkerEnvTarget[];\n isFrameworkDeveloper?: boolean;\n config?: PlatformEnvConfigJson;\n } = {},\n): Record<string, K8sGeneratedResource> {\n // Single load+hydrate seam — the k8s ConfigMaps this generator emits must carry the infra posture\n // (OTEL_*/LOG_LEVEL/provider-selection) the setup config.json omits; takes `options.config` when a\n // caller (CI) already holds one.\n const config = loadInfraHydratedConfig(env, options.config);\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const addressCtx = ServiceAddressResolver.fromEnvironment(env, AddressPerspective.CONTAINER_INTERNAL);\n const addresses = ServiceAddressResolver.resolve(addressCtx);\n const output: Record<string, K8sGeneratedResource> = {};\n const includePlatformResources = shouldDeployPlatformServicesInRuntime(\n env,\n options.isFrameworkDeveloper ?? false,\n );\n\n /*\n * A HOSTED environment emits only APPLICATION resources. The platform and infrastructure Secrets carry\n * its host's credentials for its host's workloads, and they are the host's to apply. Filtered at the one\n * emit rather than at each section, so a section added tomorrow is covered by its category alone.\n */\n const hostedBy = InfrastructureHost.resolve(env);\n function emit(name: string, yaml: string, category: K8sResourceCategory): void {\n if (hostedBy !== null && category !== K8sResourceCategory.APPLICATION) return;\n output[name] = { yaml, category };\n }\n\n // ========================================================================\n // 1. Apps-Manager (Secret + ConfigMap)\n // ========================================================================\n\n if (includePlatformResources) {\n const appsManagerEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n config,\n env,\n {\n includeBootstrapAdminCredentials: false,\n },\n );\n emitPlatformService(emit, PlatformWildoServices.APPS_MANAGER, appsManagerEnv, namespace, credentials, config);\n }\n\n // ========================================================================\n // 2. Bootstrap services (Secret + ConfigMap each)\n // ========================================================================\n\n if (includePlatformResources) {\n for (const service of BOOTSTRAP_PLATFORM_SERVICES) {\n const serviceEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(service, credentials, addresses, config, env);\n emitPlatformService(emit, service, serviceEnv, namespace, credentials, config);\n }\n }\n\n // ========================================================================\n // 3. Infra service secrets (for infra container startup)\n // ========================================================================\n\n // Slice 4 (4.7) — emit `mongodb-secret` only for envs that actually\n // self-deploy a local mongod. Atlas / managed envs use `apps-manager`\n // env vars to reach the external cluster instead, so a local secret\n // would be unused at best, misleading at worst.\n // Keys MUST match the env names the `mongo:8.2` entrypoint reads\n // (MONGO_INITDB_ROOT_USERNAME / MONGO_INITDB_ROOT_PASSWORD) — the\n // K8s StatefulSet binds them directly via secretKeyRef. Re-verified on 8.2\n // (issue #74): its `docker-entrypoint.sh` still reads exactly these two.\n if (EnvironmentUtils.needsLocalMongoDB(env) && credentials.mongodb) {\n const mongoSecret = k8sServiceSecretName('mongodb');\n emit(mongoSecret, toYaml(makeSecret(mongoSecret, namespace, {\n [MONGODB_CREDENTIAL_ENV_KEYS.ROOT_USER]: credentials.mongodb.rootUser,\n [MONGODB_CREDENTIAL_ENV_KEYS.ROOT_PASSWORD]: credentials.mongodb.rootPassword,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n // Issue #74 — `mongot-secret`, the SCRAM password the MongoDB Search / Vector Search\n // sidecar authenticates to mongod with. TWO workloads read this one key, which is the\n // reason it is a framework-managed material rather than something either lane mints:\n //\n // - the `mongodb-init` Job, as an OPTIONAL env var, to create/update the\n // `searchCoordinator`-roled user;\n // - the `mongot` StatefulSet, projected as a FILE at `MONGOT_SYNC_SOURCE.PASSWORD_FILE_PATH`\n // with `defaultMode: 0400` — mongot reads a `passwordFile` path and refuses anything\n // more permissive.\n //\n // Same gate as the mongod secret: mongot is an attachment to a self-hosted mongod. Emitted\n // only when the material exists, so a CI-reconstructed secrets.json (which publishes no\n // mongot material) renders no secret, the mongot workload's volume has nothing to bind, and\n // the init Job's optional ref simply skips the user creation — degraded consistently rather\n // than half-wired.\n // #2303 — and on the service profile: an environment whose profile omits mongot gets no mongot-secret, so the init\n // Job's optional ref creates no sync-source user for a sidecar that does not run.\n if (credentials.mongot?.syncSourcePassword && includesMongoSearchSidecar(env)) {\n const mongotSecret = k8sServiceSecretName('mongot');\n emit(mongotSecret, toYaml(makeSecret(mongotSecret, namespace, {\n MONGOT_SYNC_SOURCE_PASSWORD: credentials.mongot.syncSourcePassword,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n if (credentials.valkey) {\n const valkeySecret = k8sServiceSecretName('valkey');\n emit(valkeySecret, toYaml(makeSecret(valkeySecret, namespace, {\n [VALKEY_CREDENTIAL_ENV_KEYS.PASSWORD]: credentials.valkey.adminPassword,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n const rabbitmqSecret = k8sServiceSecretName('rabbitmq');\n emit(rabbitmqSecret, toYaml(makeSecret(rabbitmqSecret, namespace, {\n [RABBITMQ_CREDENTIAL_ENV_KEYS.DEFAULT_USER]: credentials.rabbitmq.adminUsername,\n [RABBITMQ_CREDENTIAL_ENV_KEYS.DEFAULT_PASS]: credentials.rabbitmq.adminPassword,\n [RABBITMQ_CREDENTIAL_ENV_KEYS.ERLANG_COOKIE]: credentials.rabbitmq.erlangCookie,\n })), K8sResourceCategory.INFRASTRUCTURE);\n\n if (config.infrastructure.storage.provider === 'minio') {\n const minioSecret = k8sServiceSecretName('minio');\n emit(minioSecret, toYaml(makeSecret(minioSecret, namespace, {\n [MINIO_CREDENTIAL_ENV_KEYS.ROOT_USER]: credentials.storage.accessKey,\n [MINIO_CREDENTIAL_ENV_KEYS.ROOT_PASSWORD]: credentials.storage.secretKey,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n // The PAIRED site of the PostgreSQL emission gate (`invariant-call-site-enumeration.md`): the\n // StatefulSet's `POSTGRES_USER` / `POSTGRES_PASSWORD` / `POSTGRES_DB` are REQUIRED `secretKeyRef`s,\n // so a workload emitted without this Secret cannot start at all. `database.engine` alone is the\n // narrower half — `needsLocalPostgreSQL` also covers an env that declares\n // `backingServices.postgresql: { source: SELF }` on a Mongo-engined platform, which is exactly the\n // \"PostgreSQL for the application's resources\" shape the Compose lane already provisions through\n // `shouldProvisionPostgreSQL`'s identical union. `credentials.postgresql` is REQUIRED by\n // `PlatformEnvSecretsJson_Schema`, so the widened branch can always be satisfied.\n if (config.database.engine === DatabaseEngine.POSTGRESQL || EnvironmentUtils.needsLocalPostgreSQL(env)) {\n const pgSecret = k8sServiceSecretName('postgresql');\n emit(pgSecret, toYaml(makeSecret(pgSecret, namespace, {\n [POSTGRESQL_CREDENTIAL_ENV_KEYS.ADMIN_USER]: credentials.postgresql.adminUser,\n [POSTGRESQL_CREDENTIAL_ENV_KEYS.ADMIN_PASSWORD]: credentials.postgresql.adminPassword,\n [POSTGRESQL_CREDENTIAL_ENV_KEYS.ADMIN_DATABASE]: config.infrastructure.postgresql.database,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n // immudb self-hosted audit store (Audit Phase 2). Emit an `immudb-secret` when this env\n // self-deploys immudb (`backingServices.immudb.source === SELF`). It carries up to two keys,\n // both consumed by the StatefulSet as OPTIONAL refs:\n //\n // - `IMMUDB_STATE_SIGNING_KEY` — the SEC1 \"EC PRIVATE KEY\" PEM immudb signs its `ImmutableState`\n // with (`--signingKey`), turning the whole-server-substitution defense ON. Provisioned from the\n // `FRAMEWORK_MANAGED_SECRET_MATERIALS` registry (`credentials.immudb.stateSigningPrivateKey`) at\n // setup AND by the idempotent self-heal, so it is present for any file-backed env. The\n // StatefulSet mounts it\n // as a FILE (immudb reads a path, not an env var). SERVER-side ONLY — the private key never\n // reaches an app pod; the matching PUBLIC key is pinned by the audit client via\n // `IMMUDB_STATE_PUBLIC_KEY` (a `providerEnv` entry → `providers-secret`, §4).\n // - `IMMUDB_ADMIN_PASSWORD` — the built-in `immudb` SYSADMIN's initial password: the platform's\n // framework-managed `credentials.immudb.adminPassword` (#1696), the value apps-manager logs in with to\n // mint each application's own database and user. It is NOT the operator's `IMMUDB_PASSWORD` provider\n // secret any more — that copy made the sysadmin an application credential — and the compose lane reads\n // the same material. Optional: absent (a CI-reconstructed secrets.json) ⇒ the key is not emitted.\n //\n // Mirrors the mongodb-secret shape (a dedicated infra Secret whose keys are exactly what the\n // container reads). Managed/external immudb (`source !== SELF`) self-deploys nothing, so no secret\n // is emitted; the provider still reaches the external host via its own `IMMUDB_HOST`.\n if (env.backingServices?.[BackingServiceKind.IMMUDB]?.source === BackingServiceSource.SELF) {\n const immudbSecretData: Record<string, string> = {};\n const immudbSigningKey = credentials.immudb?.stateSigningPrivateKey;\n if (immudbSigningKey) {\n immudbSecretData[IMMUDB_CREDENTIAL_ENV_KEYS.SERVER.STATE_SIGNING_KEY] = immudbSigningKey;\n }\n const immudbAdminPassword = credentials.immudb?.adminPassword;\n if (immudbAdminPassword) {\n immudbSecretData[IMMUDB_CREDENTIAL_ENV_KEYS.SERVER.ADMIN_PASSWORD] = immudbAdminPassword;\n }\n if (Object.keys(immudbSecretData).length > 0) {\n const immudbSecret = k8sServiceSecretName('immudb');\n emit(immudbSecret, toYaml(makeSecret(immudbSecret, namespace, immudbSecretData)), K8sResourceCategory.INFRASTRUCTURE);\n }\n }\n\n // #2933 — the self-hosted OpenBao (`platformKeyManagement.vault.source === SELF`): its static unseal key and the ids\n // of apps-manager's two tokens, which it creates at its first start. Required by the StatefulSet (no `optional`):\n // a server without them cannot unseal, or would issue tokens apps-manager does not hold. apps-manager receives the\n // two token ids again through its own secret (`PLATFORM_KEY_VAULT_*`, §2), never this one; no application does.\n if (selfHostsPlatformKeyVault(env.platformKeyManagement)) {\n const material = credentials.platformKeyVault;\n if (material?.unsealKey && material.signerToken && material.operatorToken && material.recoveryToken) {\n const openbaoSecret = k8sServiceSecretName(INFRA_SERVICE_CATALOG[PlatformDataServices.OPENBAO].containerName);\n emit(openbaoSecret, toYaml(makeSecret(openbaoSecret, namespace, {\n [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.UNSEAL_KEY]: material.unsealKey,\n [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.SIGNER_TOKEN]: material.signerToken,\n [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.OPERATOR_TOKEN]: material.operatorToken,\n // #3006 — the break-glass recovery token (read at the first start only), and the previous unseal key while an\n // unseal-key rotation is between its two steps.\n [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.RECOVERY_TOKEN]: material.recoveryToken,\n ...(material.previousUnsealKey ? { [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.PREVIOUS_UNSEAL_KEY]: material.previousUnsealKey } : {}),\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n }\n\n // ========================================================================\n // 4. Provider secrets — ONE SECRET PER RUNTIME (issue #369)\n //\n // Provider credentials are APP-data, not platform-service-data, and each application runtime\n // receives exactly the providers its `providers.scopes.<runtime>` declares — the same boundary\n // the generated `.env` lane enforces (#329), now enforced in this lane too.\n //\n // ## What this replaced, because the shape is the whole defect\n //\n // There used to be ONE cluster-wide `providers-secret` holding the application's entire\n // `providerEnv`, `envFrom`-mounted by the backend, every minion AND every worker. `envFrom`\n // MERGES, so a provider key the per-app Secret withheld arrived from that second reference: on\n // Kubernetes a worker authoring `providers: {}` received every provider key the application had,\n // in its process environment, which is exactly what LLM-driven minion code reads. Measured by\n // generating manifests: `providers-secret` carried `STRIPE_SECRET_KEY` and `OPENAI_API_KEY` for a\n // runtime scoped to neither. The confinement held in the compose lane and did not exist here at\n // all — one contract, two deployment lanes, one swept\n // (`.claude/rules/invariant-call-site-enumeration.md` #23).\n //\n // ## Three properties worth not re-deriving\n //\n // - **Emit-name == mount-name, from one function.** Both sides call\n // {@link k8sRuntimeProvidersSecretName}, and the templates receive the resolved name as\n // `{{providersSecretName}}` rather than composing it. This file already carries the scar from\n // the other direction: an emit keyed on the backend `serviceName` produced a Secret no template\n // mounted, and the pod failed closed at boot.\n // - **A runtime that declares no providers gets NO Secret**, not an empty one. That is the correct\n // outcome for `myRustWorker`, and it is why the mount stays `optional: true`.\n // - **Category is `APPLICATION`** (not `PLATFORM`): the writer routes by category into\n // `secrets/<category>/<name>.yaml`, and a `PLATFORM` label would couple these emits to\n // `includePlatformResources` at the writer side, where the platform output dir only exists when\n // platform services are emitted. These land beside the per-app Secrets that consume them.\n // ========================================================================\n\n /**\n * Emit one runtime's provider Secret and return the keys it carries, so the caller can keep them\n * out of that runtime's other Secret rather than shipping the same credential twice.\n */\n function emitRuntimeProvidersSecret(\n runtimeServiceName: string,\n scopedProviderRefs: readonly string[],\n ): ReadonlySet<string> {\n const providerEnv = PlatformEnvVarsBuilder.buildScopedProviderEnv(\n credentials,\n declaredProviderScope(scopedProviderRefs),\n );\n const providerData: Record<string, string> = {};\n for (const [envVarName, value] of Object.entries(providerEnv)) {\n setIfDefined(providerData, envVarName, value);\n }\n if (Object.keys(providerData).length === 0) return new Set();\n\n const secretName = k8sRuntimeProvidersSecretName(runtimeServiceName);\n emit(secretName, toYaml(makeSecret(secretName, namespace, providerData)), K8sResourceCategory.APPLICATION);\n const keys = new Set(Object.keys(providerData));\n // Recorded so § 6 can strip exactly these from the same runtime's ENV Secret — a provider key\n // must have one sink per pod, and deriving the strip from the emitted Secret keeps that a\n // single decision rather than two rules to keep in agreement.\n providerKeysByRuntime.set(runtimeServiceName, keys);\n return keys;\n }\n\n // Minions and workers own no other Secret in this lane, so their provider Secret is emitted\n // directly here; the backend's is emitted inside § 5, where the per-target scope also decides\n // what its app Secret must NOT repeat.\n const emittedRuntimeProviderSecrets = new Set<string>();\n /** runtime service name → the provider keys its provider Secret carries (read by § 6). */\n const providerKeysByRuntime = new Map<string, ReadonlySet<string>>();\n for (const minion of options.applicationMinions ?? []) {\n if (!minion.appName) continue;\n const runtimeServiceName = buildMinionServiceName(minion.appName, minion.minionName);\n if (emittedRuntimeProviderSecrets.has(runtimeServiceName)) continue;\n emittedRuntimeProviderSecrets.add(runtimeServiceName);\n emitRuntimeProvidersSecret(runtimeServiceName, minion.scopedProviderRefs);\n }\n for (const worker of options.applicationWorkers ?? []) {\n if (!worker.appName) continue;\n const runtimeServiceName = buildWorkerServiceName(worker.appName, worker.workerName);\n if (emittedRuntimeProviderSecrets.has(runtimeServiceName)) continue;\n emittedRuntimeProviderSecrets.add(runtimeServiceName);\n emitRuntimeProvidersSecret(runtimeServiceName, worker.scopedProviderRefs);\n }\n\n // ========================================================================\n // 5. Application backend services (one Secret per app)\n //\n // Application backends emit a single per-app Secret carrying every env var\n // the pod needs at boot — sensitive AND non-sensitive together. The\n // application backend deployment template\n // (`wildo-ai-application/backend.deployment.yaml.hbs`) mounts the per-app\n // Secret via `envFrom: secretRef`, so all entries surface\n // as `process.env.*` regardless of K8s resource type. Splitting into Secret +\n // ConfigMap added zero runtime value for app backends (the ConfigMap was\n // emitted but never mounted by the template) and fragmented the canonical\n // sink.\n //\n // Tradeoff: stuffing non-sensitive vars (`MONGODB_HOST`, `REDIS_PORT`,\n // `STORAGE_BUCKET`, ...) into a `kind: Secret` loses the RBAC granularity\n // that operators sometimes use to scope read access (configmaps vs\n // secrets), and means drift detectors that diff ConfigMap content openly\n // can't see these vars. Accepted because the previous \"split\" never\n // actually delivered that granularity in practice — the per-app ConfigMap\n // was orphan, so no operator ever read non-sensitive app vars from it.\n //\n // Provider env vars are emitted to this runtime's OWN provider Secret (§4 above, one per\n // runtime since #369 — there is no shared `providers-secret` any more) and consumed by the pod\n // via a separate `envFrom` block in the deployment template. Strip them from the per-app env so\n // each provider key has exactly one K8s sink.\n // ========================================================================\n\n // One canonical `{appSlug}-secret` per app (NOT per backend service): the k8s app deploy is\n // single-pod-per-app, so the app Deployment `envFrom`-mounts it. Minions and workers used to\n // mount this SAME Secret and no longer do — each has its own, emitted in § 6 (#377). Keying on\n // the app SLUG (`target.appName`) keeps\n // emit-name == mount-name; keying on the backend `serviceName` (the historical\n // bug) produced `{serviceName}-secret`, which no template mounts → fail-closed\n // boot. Dedup so multiple backend targets sharing one app don't collide.\n const emittedAppSecrets = new Set<string>();\n if (options.applicationBackends) {\n for (const target of options.applicationBackends) {\n const appEnvFull = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n target.bootstrapCredentials,\n target.serviceName,\n credentials,\n addresses,\n config,\n env.name,\n // REMOTE lane, same declared scope as the local `.env`. This site had NO scope until the\n // parameter became required — so the k8s `{appSlug}-secret` carried every provider secret\n // before the filter existed, and would have carried none after it, in the one lane where\n // no dev watcher is around to notice the application failing to resolve its providers.\n declaredProviderScope(target.scopedProviderRefs),\n {\n appDatabaseName: target.appDatabaseName,\n redisKeyPrefix: target.redisKeyPrefix,\n storageBucketPrefix: target.storageBucketPrefix,\n deploymentLocationType: env.locationType,\n mongodbDirectConnection: env.locationType === WildoLocationType.LOCAL,\n // Serialized into APPLICATION_RUNTIME_ENDPOINTS so the remote app\n // backend can reconstruct `runtime.endPoints` (serviceHosts-driven\n // public URLs + cluster-DNS internal URLs). Omitting this left the\n // remote app with NO runtime topology — CORS/frontend-URL lookups\n // (`lookupFrontendPublicUrl`, X-Frontend-Service-Name) failed. The\n // target's endpoints were built by `buildK8sApplicationRuntimeEndpoints`\n // and MUST match this pass's ingress hosts (the CORS invariant).\n runtimeEndpoints: target.runtimeEndpoints,\n // Backend→worker dispatch URLs (G-8 / MW4): emit `WILDO_WORKER_<NAME>_URL`\n // into the `{appSlug}-secret` the backend pod mounts, so the backend can\n // call each declared worker's per-app ClusterIP Service.\n workerUrls: target.workerUrls,\n },\n );\n // The backend's OWN provider Secret, scoped exactly as its env was (#369). Emitted here\n // rather than in § 4 because the same scope decides what the app Secret must NOT repeat.\n const backendRuntimeServiceName = target.appName ?? target.serviceName;\n const backendProviderKeys = emittedRuntimeProviderSecrets.has(backendRuntimeServiceName)\n ? new Set<string>()\n : emitRuntimeProvidersSecret(backendRuntimeServiceName, target.scopedProviderRefs);\n emittedRuntimeProviderSecrets.add(backendRuntimeServiceName);\n\n // Provider keys live in the provider Secret and NOWHERE ELSE, so the app Secret drops\n // exactly the keys that Secret carries.\n //\n // This used to drop every key present in `credentials.providerEnv` — the UNSCOPED bag. On\n // the OPERATOR-AUTHORED keys the two rules agree exactly, and that is provable rather than\n // hopeful: `appEnvFull`'s provider keys are fanned out by `resolveRuntimeProviderEnv` under\n // this same scope, and `backendProviderKeys` is that same function under that same scope, so\n // neither rule can strip a key the other keeps.\n //\n // They differ on ONE key, and it is the reason to prefer this one. `IMMUDB_STATE_PUBLIC_KEY`\n // is FRAMEWORK-INJECTED by `resolveRuntimeProviderEnv` and is absent from\n // `credentials.providerEnv`, so the old rule did not strip it and it rode in the app Secret —\n // which, at the time, every minion and worker also mounted. It now travels in the backend's provider\n // Secret instead: same delivery to the backend, and withheld from a runtime not scoped to\n // immudb, which is what the confinement is for.\n //\n // Deriving the strip from the emitted Secret's own keys also makes the two sides one decision\n // rather than two rules that must be kept in agreement by hand.\n const appEnv: Record<string, string> = {};\n for (const [key, value] of Object.entries(appEnvFull)) {\n if (!backendProviderKeys.has(key)) {\n appEnv[key] = value;\n }\n }\n\n // Canonical name = `{appSlug}-secret` (`target.appName` is the app slug,\n // populated for REMOTE — the only lane that emits k8s manifests). Fall\n // back to the backend serviceName only if a caller ever omits appName.\n const secretName = k8sAppBackendSecretName(target.appName ?? target.serviceName);\n if (!emittedAppSecrets.has(secretName) && Object.keys(appEnv).length > 0) {\n emittedAppSecrets.add(secretName);\n emit(secretName, toYaml(makeSecret(secretName, namespace, appEnv)), K8sResourceCategory.APPLICATION);\n }\n }\n }\n\n // ========================================================================\n // 6. Per-minion and per-worker environment Secrets (issue #377)\n //\n // Every minion and worker pod used to `envFrom`-mount the BACKEND's `{appSlug}-secret`, so each\n // received the backend's whole environment: the platform bootstrap contract, MongoDB /\n // PostgreSQL / Redis / RabbitMQ topology, storage configuration — and, once #360 composed it,\n // the backend's `OTEL_EXPORTER_OTLP_HEADERS` carrying the telemetry token. The per-runtime\n // confinement #329/#360/#369 established was therefore defeated one level up: a minion scoped\n // to `openai` alone got no telemetry token in its own provider Secret and received it anyway,\n // out of a different runtime's environment.\n //\n // `buildApplicationMinionEnv` / `buildApplicationWorkerEnv` already existed, already took the\n // runtime's `RuntimeProviderScope`, and already produced the correctly-scoped environment for\n // the native lane. This lane never called them. It now calls them through\n // `application-runtime-environment.ts`, the containerised derivation the local compose\n // `app-runtimes` profile mounts too (#2955), so one application runtime cannot come to mean two\n // different environments depending on how it is deployed.\n //\n // Two deliberate deviations, both inherited from the backend's own § 5 rather than introduced\n // here — stated so neither reads as an oversight:\n // - `extraEnv` is NOT merged (the native `.env` lane merges it). Not a regression: these runtimes\n // previously mounted the backend Secret, which carries none either.\n // - `serviceVersion` is NOT threaded, so `service.version` is absent from\n // `OTEL_RESOURCE_ATTRIBUTES` in this lane. Same for the backend today.\n // ========================================================================\n\n /** Emit one runtime's environment Secret, minus the keys its provider Secret already carries. */\n function emitRuntimeEnvSecret(\n runtimeServiceName: string,\n runtimeEnv: Record<string, string>,\n providerKeys: ReadonlySet<string>,\n ): void {\n const env: Record<string, string> = {};\n for (const [key, value] of Object.entries(runtimeEnv)) {\n if (!providerKeys.has(key)) env[key] = value;\n }\n if (Object.keys(env).length === 0) return;\n const secretName = k8sRuntimeEnvSecretName(runtimeServiceName);\n emit(secretName, toYaml(makeSecret(secretName, namespace, env)), K8sResourceCategory.APPLICATION);\n }\n\n // The environment itself is the one derivation the local compose `app-runtimes` lane mounts too (#2955), so a\n // runtime's identity and its own principal secret cannot differ between the two container lanes.\n //\n // No host gateway in this lane (#3390), so the shared derivation refuses a loopback runtime endpoint instead of\n // re-pointing it. Where the backend runs decides a pod's endpoints, and only one case reaches here:\n // - REMOTE: the backend runs in the cluster, and the target's endpoints already name its Service by cluster DNS\n // (`buildK8sApplicationRuntimeEndpoints`), which a pod reaches. Kept as they are.\n // - LOCAL (kind, Docker Desktop's cluster): the backend runs on the host (`wildo dev start`), and so do the minions\n // and workers. Their targets carry no `appName` (REMOTE deploy context, `AppBootstrapService.build*Targets`), so\n // the loops below skip them and no pod is rendered. If a lane ever renders one, its `localhost` endpoints would\n // name the pod itself, and kind documents no route from a pod to the host, so a host name here would be a\n // guess. The refusal is what that lane would meet first.\n // spec-cite: kind docs, \"Known Issues\" (https://kind.sigs.k8s.io/docs/user/known-issues/), § \"Docker Desktop for\n // macOS and Windows\": that section covers host-to-cluster reachability only. The page documents no pod-to-host\n // route, and never names `host.docker.internal` or `host-gateway`; the refusal rests on that absence.\n const runtimeEnvironmentContext = { credentials, addresses, config, environment: env, hostGatewayHostname: null };\n for (const minion of options.applicationMinions ?? []) {\n if (!minion.appName) continue;\n const { runtimeServiceName, env: runtimeEnv } = buildContainerisedMinionEnvironment(minion, minion.appName, runtimeEnvironmentContext);\n emitRuntimeEnvSecret(runtimeServiceName, runtimeEnv, providerKeysByRuntime.get(runtimeServiceName) ?? new Set());\n }\n\n for (const worker of options.applicationWorkers ?? []) {\n if (!worker.appName) continue;\n const { runtimeServiceName, env: runtimeEnv } = buildContainerisedWorkerEnvironment(worker, worker.appName, runtimeEnvironmentContext);\n emitRuntimeEnvSecret(runtimeServiceName, runtimeEnv, providerKeysByRuntime.get(runtimeServiceName) ?? new Set());\n }\n\n return output;\n}\n\n// ============================================================================\n// Per-service emit helper\n// ============================================================================\n\nfunction emitPlatformService(\n emit: (name: string, yaml: string, category: K8sResourceCategory) => void,\n service: PlatformWildoServices,\n env: Record<string, string>,\n namespace: string,\n credentials: PlatformEnvSecretsJson,\n config: PlatformEnvConfigJson,\n): void {\n const { secret, config: configData } = splitEnv(env);\n\n if (service === PlatformWildoServices.APPS_MANAGER) {\n if (credentials.atlas) {\n secret['WILDO_MONGO_ATLAS_API_KEY_PUBLIC'] = credentials.atlas.apiPublicKey;\n secret['WILDO_MONGO_ATLAS_API_KEY_PRIVATE'] = credentials.atlas.apiPrivateKey;\n }\n if (config.atlas) {\n configData['ATLAS_API_BASE_URL'] = config.atlas.apiBaseUrl;\n configData['ATLAS_PROJECT_ID'] = config.atlas.projectId;\n configData['MONGO_MAIN_CLUSTER_REF'] = config.atlas.clusterName;\n }\n }\n\n\n const secretName = k8sServiceSecretName(service);\n const configMapName = k8sServiceConfigMapName(service);\n\n if (Object.keys(secret).length > 0) {\n emit(secretName, toYaml(makeSecret(secretName, namespace, secret)), K8sResourceCategory.PLATFORM);\n }\n if (Object.keys(configData).length > 0) {\n emit(configMapName, toYaml(makeConfigMap(configMapName, namespace, configData)), K8sResourceCategory.PLATFORM);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"k8s-secrets-generator.service.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/k8s-secrets-generator.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAGjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,8DAA8D,CAAC;AAC1H,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAE,0BAA0B,EAAE,MAAM,mEAAmE,CAAC;AAC/G,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BAAmB,CAAC,QAAQ,CAAC,CAAC;IACpG,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,aAAa,CAAC,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACjH,CAAC;AACH,CAAC","sourcesContent":["import { stringify } from 'yaml';\nimport type { PlatformEnvConfigJson, PlatformEnvSecretsJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport { SENSITIVE_ENV_KEYS } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { declaredProviderScope } from '~wildo-cli/services/credentials/provider-env-vars.utils';\nimport { ServiceAddressResolver, AddressPerspective } from '~wildo-cli/services/catalog/service-address-resolver.service';\nimport { PlatformEnvVarsBuilder } from '~wildo-cli/services/environment/env-vars-builder.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { includesMongoSearchSidecar } from '~wildo-cli/services/environment/environment-service-profile.utils';\nimport { InfrastructureHost } from '~wildo-cli/services/environment/infrastructure-host.service';\nimport type {\n ApplicationBackendEnvTarget,\n ApplicationMinionEnvTarget,\n ApplicationWorkerEnvTarget,\n} from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { loadInfraHydratedConfig } from '~wildo-cli/services/environment/env-configuration-generator.service';\nimport { shouldDeployPlatformServicesInRuntime } from '~wildo-cli/services/deployment/platform-runtime-policy.service';\nimport { BackingServiceKind, BackingServiceSource, BOOTSTRAP_PLATFORM_SERVICES, DatabaseEngine, K8S_LOCAL_DEFAULTS, PlatformWildoServices, WildoLocationType, k8sServiceSecretName, k8sServiceConfigMapName, k8sAppBackendSecretName, k8sRuntimeProvidersSecretName, k8sRuntimeEnvSecretName, selfHostsPlatformKeyVault } from '@wildo-ai/platform-config-lib';\nimport { PLATFORM_KEY_VAULT_SERVER } from '~wildo-cli/services/data-services/platform-key-vault.server-config';\nimport { INFRA_SERVICE_CATALOG } from '~wildo-cli/services/catalog/service-catalog.schemas';\nimport { buildMinionServiceName, buildWorkerServiceName } from '@wildo-ai/platform-core-shared';\nimport { buildContainerisedMinionEnvironment, buildContainerisedWorkerEnvironment } from '~wildo-cli/services/deployment/application-runtime-environment';\nimport {\n MONGODB_CREDENTIAL_ENV_KEYS,\n VALKEY_CREDENTIAL_ENV_KEYS,\n RABBITMQ_CREDENTIAL_ENV_KEYS,\n MINIO_CREDENTIAL_ENV_KEYS,\n POSTGRESQL_CREDENTIAL_ENV_KEYS,\n IMMUDB_CREDENTIAL_ENV_KEYS,\n PlatformDataServices,\n} from '~wildo-cli/services/data-services/data-services.schemas';\nimport {\n K8S_LABELS,\n} from '~wildo-cli/services/deployment/k8s/k8s.schemas';\n// ============================================================================\n// Types\n// ============================================================================\n\ninterface K8sResource {\n apiVersion: 'v1';\n kind: 'Secret' | 'ConfigMap';\n metadata: {\n name: string;\n namespace: string;\n labels: Record<string, string>;\n };\n type?: 'Opaque';\n data: Record<string, string>;\n}\n\n// ============================================================================\n// Helpers\n// ============================================================================\n\nfunction toBase64(value: string): string {\n return Buffer.from(value, 'utf-8').toString('base64');\n}\n\nfunction toYaml(resource: K8sResource): string {\n return stringify(resource, { lineWidth: 0, defaultKeyType: 'PLAIN' });\n}\n\nfunction defaultLabels(): Record<string, string> {\n return {\n [K8S_LABELS.keys.PART_OF]: K8S_LABELS.values.WILDO_PLATFORM,\n [K8S_LABELS.keys.MANAGED_BY]: K8S_LABELS.values.WILDO_CLI,\n };\n}\n\nfunction makeSecret(name: string, namespace: string, rawData: Record<string, string>): K8sResource {\n const encoded: Record<string, string> = {};\n for (const [key, value] of Object.entries(rawData)) {\n encoded[key] = toBase64(value);\n }\n return {\n apiVersion: 'v1',\n kind: 'Secret',\n metadata: { name, namespace, labels: defaultLabels() },\n type: 'Opaque',\n data: encoded,\n };\n}\n\nfunction makeConfigMap(name: string, namespace: string, data: Record<string, string>): K8sResource {\n return {\n apiVersion: 'v1',\n kind: 'ConfigMap',\n metadata: { name, namespace, labels: defaultLabels() },\n data,\n };\n}\n\n/**\n * Split a flat env var record into sensitive (→ Secret) and non-sensitive\n * (→ ConfigMap).\n *\n * Sensitivity is determined exclusively by the `SENSITIVE_ENV_KEYS` set (which already includes\n * provider-key names via `PROVIDER_SENSITIVE_ENV_KEYS`).\n *\n * That set is LIVE, not static — it recomputes from the composed provider catalogue on every read\n * (#329). It was a module-load snapshot until then, which was silently wrong for any provider\n * shipped as its own package: discovery necessarily runs after the credential layer is imported,\n * so a snapshot could not contain such a provider's keys, and they were classified non-sensitive\n * and written into a `ConfigMap`. Nothing here changes as a result — `.has()` is the whole\n * contract — but do not reintroduce a local copy of the set, which would restore the snapshot.\n *\n * Used only by the platform-service emit path (apps-manager + bootstrap\n * services) which actually benefits from the Secret/ConfigMap split. The\n * application-backend path (§5 of `generateK8sSecrets`) intentionally puts\n * everything into a single Secret per app — see the \"one Secret per app\"\n * rationale in §5.\n */\nfunction splitEnv(\n env: Record<string, string>,\n): { secret: Record<string, string>; config: Record<string, string> } {\n const secret: Record<string, string> = {};\n const config: Record<string, string> = {};\n for (const [key, value] of Object.entries(env)) {\n if (SENSITIVE_ENV_KEYS.has(key)) {\n secret[key] = value;\n } else {\n config[key] = value;\n }\n }\n return { secret, config };\n}\n\nfunction setIfDefined(target: Record<string, string>, key: string, value: string | undefined | null): void {\n if (value != null) {\n target[key] = value;\n }\n}\n\n\n// ============================================================================\n// Generator\n// ============================================================================\n\n/**\n * Which workload a generated Kubernetes resource belongs to — and so which directory it is written to and who may\n * apply it.\n *\n * - `PLATFORM`: a Wildo platform service (apps-manager, module registry, …). Written under `secrets/platform/`, and\n * emitted only when the runtime deploys platform services.\n * - `INFRASTRUCTURE`: a backing service's own Secret (MongoDB, RabbitMQ, immudb, …), shared by every application on\n * the environment. Written flat under `secrets/`.\n * - `APPLICATION`: one application's runtimes — backend, minion and worker env and provider Secrets. Written under\n * `secrets/applications/`.\n *\n * A HOSTED environment emits only `APPLICATION`: the other two are its infrastructure host's to apply.\n */\nexport enum K8sResourceCategory {\n PLATFORM = 'platform',\n INFRASTRUCTURE = 'infrastructure',\n APPLICATION = 'application',\n}\n\nexport interface K8sGeneratedResource {\n yaml: string;\n category: K8sResourceCategory;\n}\n\n/**\n * Generates K8s Secret + ConfigMap YAML for all platform, infra, and app services.\n *\n * Uses ServiceAddressResolver (CONTAINER_INTERNAL / K8s perspective) and\n * PlatformEnvVarsBuilder for env var construction, then splits into\n * sensitive (Secret, base64) and non-sensitive (ConfigMap, plain-text).\n *\n * Returns a map of resource-name → { yaml, category } for directory routing.\n */\nexport function generateK8sSecrets(\n env: PlatformEnvironmentConfiguration,\n credentials: PlatformEnvSecretsJson,\n options: {\n applicationBackends?: ApplicationBackendEnvTarget[];\n /**\n * The app's declared minions and workers. Each owns a provider Secret scoped to its own\n * `providers.scopes.{minions,workers}.<name>` (#369). Omitting them is not a silent \"no\n * providers\" — it emits no Secret, and the pod's `optional: true` mount then finds nothing, so\n * a caller that renders minion/worker Deployments MUST pass them here too or those runtimes\n * boot with no provider credentials at all.\n */\n applicationMinions?: ApplicationMinionEnvTarget[];\n applicationWorkers?: ApplicationWorkerEnvTarget[];\n isFrameworkDeveloper?: boolean;\n config?: PlatformEnvConfigJson;\n } = {},\n): Record<string, K8sGeneratedResource> {\n // Single load+hydrate seam — the k8s ConfigMaps this generator emits must carry the infra posture\n // (OTEL_*/LOG_LEVEL/provider-selection) the setup config.json omits; takes `options.config` when a\n // caller (CI) already holds one.\n const config = loadInfraHydratedConfig(env, options.config);\n\n const namespace = env.kubernetes?.namespace ?? K8S_LOCAL_DEFAULTS.NAMESPACE;\n const addressCtx = ServiceAddressResolver.fromEnvironment(env, AddressPerspective.CONTAINER_INTERNAL);\n const addresses = ServiceAddressResolver.resolve(addressCtx);\n const output: Record<string, K8sGeneratedResource> = {};\n const includePlatformResources = shouldDeployPlatformServicesInRuntime(\n env,\n options.isFrameworkDeveloper ?? false,\n );\n\n /*\n * A HOSTED environment emits only APPLICATION resources. The platform and infrastructure Secrets carry\n * its host's credentials for its host's workloads, and they are the host's to apply. Filtered at the one\n * emit rather than at each section, so a section added tomorrow is covered by its category alone.\n */\n const hostedBy = InfrastructureHost.resolve(env);\n function emit(name: string, yaml: string, category: K8sResourceCategory): void {\n if (hostedBy !== null && category !== K8sResourceCategory.APPLICATION) return;\n output[name] = { yaml, category };\n }\n\n // ========================================================================\n // 1. Apps-Manager (Secret + ConfigMap)\n // ========================================================================\n\n if (includePlatformResources) {\n const appsManagerEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(\n credentials,\n addresses,\n config,\n env,\n {\n includeBootstrapAdminCredentials: false,\n },\n );\n emitPlatformService(emit, PlatformWildoServices.APPS_MANAGER, appsManagerEnv, namespace, credentials, config);\n }\n\n // ========================================================================\n // 2. Bootstrap services (Secret + ConfigMap each)\n // ========================================================================\n\n if (includePlatformResources) {\n for (const service of BOOTSTRAP_PLATFORM_SERVICES) {\n const serviceEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(service, credentials, addresses, config, env);\n emitPlatformService(emit, service, serviceEnv, namespace, credentials, config);\n }\n }\n\n // ========================================================================\n // 3. Infra service secrets (for infra container startup)\n // ========================================================================\n\n // Slice 4 (4.7) — emit `mongodb-secret` only for envs that actually\n // self-deploy a local mongod. Atlas / managed envs use `apps-manager`\n // env vars to reach the external cluster instead, so a local secret\n // would be unused at best, misleading at worst.\n // Keys MUST match the env names the `mongo:8.2` entrypoint reads\n // (MONGO_INITDB_ROOT_USERNAME / MONGO_INITDB_ROOT_PASSWORD) — the\n // K8s StatefulSet binds them directly via secretKeyRef. Re-verified on 8.2\n // (issue #74): its `docker-entrypoint.sh` still reads exactly these two.\n if (EnvironmentUtils.needsLocalMongoDB(env) && credentials.mongodb) {\n const mongoSecret = k8sServiceSecretName('mongodb');\n emit(mongoSecret, toYaml(makeSecret(mongoSecret, namespace, {\n [MONGODB_CREDENTIAL_ENV_KEYS.ROOT_USER]: credentials.mongodb.rootUser,\n [MONGODB_CREDENTIAL_ENV_KEYS.ROOT_PASSWORD]: credentials.mongodb.rootPassword,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n // Issue #74 — `mongot-secret`, the SCRAM password the MongoDB Search / Vector Search\n // sidecar authenticates to mongod with. TWO workloads read this one key, which is the\n // reason it is a framework-managed material rather than something either lane mints:\n //\n // - the `mongodb-init` Job, as an OPTIONAL env var, to create/update the\n // `searchCoordinator`-roled user;\n // - the `mongot` StatefulSet, projected as a FILE at `MONGOT_SYNC_SOURCE.PASSWORD_FILE_PATH`\n // with `defaultMode: 0400` — mongot reads a `passwordFile` path and refuses anything\n // more permissive.\n //\n // Same gate as the mongod secret: mongot is an attachment to a self-hosted mongod. Emitted\n // only when the material exists, so a CI-reconstructed secrets.json (which publishes no\n // mongot material) renders no secret, the mongot workload's volume has nothing to bind, and\n // the init Job's optional ref simply skips the user creation — degraded consistently rather\n // than half-wired.\n // #2303 — and on the service profile: an environment whose profile omits mongot gets no mongot-secret, so the init\n // Job's optional ref creates no sync-source user for a sidecar that does not run.\n if (credentials.mongot?.syncSourcePassword && includesMongoSearchSidecar(env)) {\n const mongotSecret = k8sServiceSecretName('mongot');\n emit(mongotSecret, toYaml(makeSecret(mongotSecret, namespace, {\n MONGOT_SYNC_SOURCE_PASSWORD: credentials.mongot.syncSourcePassword,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n if (credentials.valkey) {\n const valkeySecret = k8sServiceSecretName('valkey');\n emit(valkeySecret, toYaml(makeSecret(valkeySecret, namespace, {\n [VALKEY_CREDENTIAL_ENV_KEYS.PASSWORD]: credentials.valkey.adminPassword,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n // The broker's own secret, only when the environment self-hosts one (#2303 slice D: none under a profile whose queue\n // lives in the application's database). The same predicate renders the StatefulSet and its PersistentVolume.\n if (EnvironmentUtils.selfHostsBackingService(env, BackingServiceKind.RABBITMQ)) {\n const rabbitmqSecret = k8sServiceSecretName('rabbitmq');\n emit(rabbitmqSecret, toYaml(makeSecret(rabbitmqSecret, namespace, {\n [RABBITMQ_CREDENTIAL_ENV_KEYS.DEFAULT_USER]: credentials.rabbitmq.adminUsername,\n [RABBITMQ_CREDENTIAL_ENV_KEYS.DEFAULT_PASS]: credentials.rabbitmq.adminPassword,\n [RABBITMQ_CREDENTIAL_ENV_KEYS.ERLANG_COOKIE]: credentials.rabbitmq.erlangCookie,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n if (config.infrastructure.storage.provider === 'minio') {\n const minioSecret = k8sServiceSecretName('minio');\n emit(minioSecret, toYaml(makeSecret(minioSecret, namespace, {\n [MINIO_CREDENTIAL_ENV_KEYS.ROOT_USER]: credentials.storage.accessKey,\n [MINIO_CREDENTIAL_ENV_KEYS.ROOT_PASSWORD]: credentials.storage.secretKey,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n // The PAIRED site of the PostgreSQL emission gate (`invariant-call-site-enumeration.md`): the\n // StatefulSet's `POSTGRES_USER` / `POSTGRES_PASSWORD` / `POSTGRES_DB` are REQUIRED `secretKeyRef`s,\n // so a workload emitted without this Secret cannot start at all. `database.engine` alone is the\n // narrower half — `needsLocalPostgreSQL` also covers an env that declares\n // `backingServices.postgresql: { source: SELF }` on a Mongo-engined platform, which is exactly the\n // \"PostgreSQL for the application's resources\" shape the Compose lane already provisions through\n // `shouldProvisionPostgreSQL`'s identical union. `credentials.postgresql` is REQUIRED by\n // `PlatformEnvSecretsJson_Schema`, so the widened branch can always be satisfied.\n if (config.database.engine === DatabaseEngine.POSTGRESQL || EnvironmentUtils.needsLocalPostgreSQL(env)) {\n const pgSecret = k8sServiceSecretName('postgresql');\n emit(pgSecret, toYaml(makeSecret(pgSecret, namespace, {\n [POSTGRESQL_CREDENTIAL_ENV_KEYS.ADMIN_USER]: credentials.postgresql.adminUser,\n [POSTGRESQL_CREDENTIAL_ENV_KEYS.ADMIN_PASSWORD]: credentials.postgresql.adminPassword,\n [POSTGRESQL_CREDENTIAL_ENV_KEYS.ADMIN_DATABASE]: config.infrastructure.postgresql.database,\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n\n // immudb self-hosted audit store (Audit Phase 2). Emit an `immudb-secret` when this env\n // self-deploys immudb (`backingServices.immudb.source === SELF`). It carries up to two keys,\n // both consumed by the StatefulSet as OPTIONAL refs:\n //\n // - `IMMUDB_STATE_SIGNING_KEY` — the SEC1 \"EC PRIVATE KEY\" PEM immudb signs its `ImmutableState`\n // with (`--signingKey`), turning the whole-server-substitution defense ON. Provisioned from the\n // `FRAMEWORK_MANAGED_SECRET_MATERIALS` registry (`credentials.immudb.stateSigningPrivateKey`) at\n // setup AND by the idempotent self-heal, so it is present for any file-backed env. The\n // StatefulSet mounts it\n // as a FILE (immudb reads a path, not an env var). SERVER-side ONLY — the private key never\n // reaches an app pod; the matching PUBLIC key is pinned by the audit client via\n // `IMMUDB_STATE_PUBLIC_KEY` (a `providerEnv` entry → `providers-secret`, §4).\n // - `IMMUDB_ADMIN_PASSWORD` — the built-in `immudb` SYSADMIN's initial password: the platform's\n // framework-managed `credentials.immudb.adminPassword` (#1696), the value apps-manager logs in with to\n // mint each application's own database and user. It is NOT the operator's `IMMUDB_PASSWORD` provider\n // secret any more — that copy made the sysadmin an application credential — and the compose lane reads\n // the same material. Optional: absent (a CI-reconstructed secrets.json) ⇒ the key is not emitted.\n //\n // Mirrors the mongodb-secret shape (a dedicated infra Secret whose keys are exactly what the\n // container reads). Managed/external immudb (`source !== SELF`) self-deploys nothing, so no secret\n // is emitted; the provider still reaches the external host via its own `IMMUDB_HOST`.\n if (env.backingServices?.[BackingServiceKind.IMMUDB]?.source === BackingServiceSource.SELF) {\n const immudbSecretData: Record<string, string> = {};\n const immudbSigningKey = credentials.immudb?.stateSigningPrivateKey;\n if (immudbSigningKey) {\n immudbSecretData[IMMUDB_CREDENTIAL_ENV_KEYS.SERVER.STATE_SIGNING_KEY] = immudbSigningKey;\n }\n const immudbAdminPassword = credentials.immudb?.adminPassword;\n if (immudbAdminPassword) {\n immudbSecretData[IMMUDB_CREDENTIAL_ENV_KEYS.SERVER.ADMIN_PASSWORD] = immudbAdminPassword;\n }\n if (Object.keys(immudbSecretData).length > 0) {\n const immudbSecret = k8sServiceSecretName('immudb');\n emit(immudbSecret, toYaml(makeSecret(immudbSecret, namespace, immudbSecretData)), K8sResourceCategory.INFRASTRUCTURE);\n }\n }\n\n // #2933 — the self-hosted OpenBao (`platformKeyManagement.vault.source === SELF`): its static unseal key and the ids\n // of apps-manager's two tokens, which it creates at its first start. Required by the StatefulSet (no `optional`):\n // a server without them cannot unseal, or would issue tokens apps-manager does not hold. apps-manager receives the\n // two token ids again through its own secret (`PLATFORM_KEY_VAULT_*`, §2), never this one; no application does.\n if (selfHostsPlatformKeyVault(env.platformKeyManagement)) {\n const material = credentials.platformKeyVault;\n if (material?.unsealKey && material.signerToken && material.operatorToken && material.recoveryToken) {\n const openbaoSecret = k8sServiceSecretName(INFRA_SERVICE_CATALOG[PlatformDataServices.OPENBAO].containerName);\n emit(openbaoSecret, toYaml(makeSecret(openbaoSecret, namespace, {\n [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.UNSEAL_KEY]: material.unsealKey,\n [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.SIGNER_TOKEN]: material.signerToken,\n [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.OPERATOR_TOKEN]: material.operatorToken,\n // #3006 — the break-glass recovery token (read at the first start only), and the previous unseal key while an\n // unseal-key rotation is between its two steps.\n [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.RECOVERY_TOKEN]: material.recoveryToken,\n ...(material.previousUnsealKey ? { [PLATFORM_KEY_VAULT_SERVER.SECRET_KEYS.PREVIOUS_UNSEAL_KEY]: material.previousUnsealKey } : {}),\n })), K8sResourceCategory.INFRASTRUCTURE);\n }\n }\n\n // ========================================================================\n // 4. Provider secrets — ONE SECRET PER RUNTIME (issue #369)\n //\n // Provider credentials are APP-data, not platform-service-data, and each application runtime\n // receives exactly the providers its `providers.scopes.<runtime>` declares — the same boundary\n // the generated `.env` lane enforces (#329), now enforced in this lane too.\n //\n // ## What this replaced, because the shape is the whole defect\n //\n // There used to be ONE cluster-wide `providers-secret` holding the application's entire\n // `providerEnv`, `envFrom`-mounted by the backend, every minion AND every worker. `envFrom`\n // MERGES, so a provider key the per-app Secret withheld arrived from that second reference: on\n // Kubernetes a worker authoring `providers: {}` received every provider key the application had,\n // in its process environment, which is exactly what LLM-driven minion code reads. Measured by\n // generating manifests: `providers-secret` carried `STRIPE_SECRET_KEY` and `OPENAI_API_KEY` for a\n // runtime scoped to neither. The confinement held in the compose lane and did not exist here at\n // all — one contract, two deployment lanes, one swept\n // (`.claude/rules/invariant-call-site-enumeration.md` #23).\n //\n // ## Three properties worth not re-deriving\n //\n // - **Emit-name == mount-name, from one function.** Both sides call\n // {@link k8sRuntimeProvidersSecretName}, and the templates receive the resolved name as\n // `{{providersSecretName}}` rather than composing it. This file already carries the scar from\n // the other direction: an emit keyed on the backend `serviceName` produced a Secret no template\n // mounted, and the pod failed closed at boot.\n // - **A runtime that declares no providers gets NO Secret**, not an empty one. That is the correct\n // outcome for `myRustWorker`, and it is why the mount stays `optional: true`.\n // - **Category is `APPLICATION`** (not `PLATFORM`): the writer routes by category into\n // `secrets/<category>/<name>.yaml`, and a `PLATFORM` label would couple these emits to\n // `includePlatformResources` at the writer side, where the platform output dir only exists when\n // platform services are emitted. These land beside the per-app Secrets that consume them.\n // ========================================================================\n\n /**\n * Emit one runtime's provider Secret and return the keys it carries, so the caller can keep them\n * out of that runtime's other Secret rather than shipping the same credential twice.\n */\n function emitRuntimeProvidersSecret(\n runtimeServiceName: string,\n scopedProviderRefs: readonly string[],\n ): ReadonlySet<string> {\n const providerEnv = PlatformEnvVarsBuilder.buildScopedProviderEnv(\n credentials,\n declaredProviderScope(scopedProviderRefs),\n );\n const providerData: Record<string, string> = {};\n for (const [envVarName, value] of Object.entries(providerEnv)) {\n setIfDefined(providerData, envVarName, value);\n }\n if (Object.keys(providerData).length === 0) return new Set();\n\n const secretName = k8sRuntimeProvidersSecretName(runtimeServiceName);\n emit(secretName, toYaml(makeSecret(secretName, namespace, providerData)), K8sResourceCategory.APPLICATION);\n const keys = new Set(Object.keys(providerData));\n // Recorded so § 6 can strip exactly these from the same runtime's ENV Secret — a provider key\n // must have one sink per pod, and deriving the strip from the emitted Secret keeps that a\n // single decision rather than two rules to keep in agreement.\n providerKeysByRuntime.set(runtimeServiceName, keys);\n return keys;\n }\n\n // Minions and workers own no other Secret in this lane, so their provider Secret is emitted\n // directly here; the backend's is emitted inside § 5, where the per-target scope also decides\n // what its app Secret must NOT repeat.\n const emittedRuntimeProviderSecrets = new Set<string>();\n /** runtime service name → the provider keys its provider Secret carries (read by § 6). */\n const providerKeysByRuntime = new Map<string, ReadonlySet<string>>();\n for (const minion of options.applicationMinions ?? []) {\n if (!minion.appName) continue;\n const runtimeServiceName = buildMinionServiceName(minion.appName, minion.minionName);\n if (emittedRuntimeProviderSecrets.has(runtimeServiceName)) continue;\n emittedRuntimeProviderSecrets.add(runtimeServiceName);\n emitRuntimeProvidersSecret(runtimeServiceName, minion.scopedProviderRefs);\n }\n for (const worker of options.applicationWorkers ?? []) {\n if (!worker.appName) continue;\n const runtimeServiceName = buildWorkerServiceName(worker.appName, worker.workerName);\n if (emittedRuntimeProviderSecrets.has(runtimeServiceName)) continue;\n emittedRuntimeProviderSecrets.add(runtimeServiceName);\n emitRuntimeProvidersSecret(runtimeServiceName, worker.scopedProviderRefs);\n }\n\n // ========================================================================\n // 5. Application backend services (one Secret per app)\n //\n // Application backends emit a single per-app Secret carrying every env var\n // the pod needs at boot — sensitive AND non-sensitive together. The\n // application backend deployment template\n // (`wildo-ai-application/backend.deployment.yaml.hbs`) mounts the per-app\n // Secret via `envFrom: secretRef`, so all entries surface\n // as `process.env.*` regardless of K8s resource type. Splitting into Secret +\n // ConfigMap added zero runtime value for app backends (the ConfigMap was\n // emitted but never mounted by the template) and fragmented the canonical\n // sink.\n //\n // Tradeoff: stuffing non-sensitive vars (`MONGODB_HOST`, `REDIS_PORT`,\n // `STORAGE_BUCKET`, ...) into a `kind: Secret` loses the RBAC granularity\n // that operators sometimes use to scope read access (configmaps vs\n // secrets), and means drift detectors that diff ConfigMap content openly\n // can't see these vars. Accepted because the previous \"split\" never\n // actually delivered that granularity in practice — the per-app ConfigMap\n // was orphan, so no operator ever read non-sensitive app vars from it.\n //\n // Provider env vars are emitted to this runtime's OWN provider Secret (§4 above, one per\n // runtime since #369 — there is no shared `providers-secret` any more) and consumed by the pod\n // via a separate `envFrom` block in the deployment template. Strip them from the per-app env so\n // each provider key has exactly one K8s sink.\n // ========================================================================\n\n // One canonical `{appSlug}-secret` per app (NOT per backend service): the k8s app deploy is\n // single-pod-per-app, so the app Deployment `envFrom`-mounts it. Minions and workers used to\n // mount this SAME Secret and no longer do — each has its own, emitted in § 6 (#377). Keying on\n // the app SLUG (`target.appName`) keeps\n // emit-name == mount-name; keying on the backend `serviceName` (the historical\n // bug) produced `{serviceName}-secret`, which no template mounts → fail-closed\n // boot. Dedup so multiple backend targets sharing one app don't collide.\n const emittedAppSecrets = new Set<string>();\n if (options.applicationBackends) {\n for (const target of options.applicationBackends) {\n const appEnvFull = PlatformEnvVarsBuilder.buildApplicationBackendEnv(\n target.bootstrapCredentials,\n target.serviceName,\n credentials,\n addresses,\n config,\n env.name,\n // REMOTE lane, same declared scope as the local `.env`. This site had NO scope until the\n // parameter became required — so the k8s `{appSlug}-secret` carried every provider secret\n // before the filter existed, and would have carried none after it, in the one lane where\n // no dev watcher is around to notice the application failing to resolve its providers.\n declaredProviderScope(target.scopedProviderRefs),\n {\n appDatabaseName: target.appDatabaseName,\n redisKeyPrefix: target.redisKeyPrefix,\n storageBucketPrefix: target.storageBucketPrefix,\n deploymentLocationType: env.locationType,\n mongodbDirectConnection: env.locationType === WildoLocationType.LOCAL,\n // Serialized into APPLICATION_RUNTIME_ENDPOINTS so the remote app\n // backend can reconstruct `runtime.endPoints` (serviceHosts-driven\n // public URLs + cluster-DNS internal URLs). Omitting this left the\n // remote app with NO runtime topology — CORS/frontend-URL lookups\n // (`lookupFrontendPublicUrl`, X-Frontend-Service-Name) failed. The\n // target's endpoints were built by `buildK8sApplicationRuntimeEndpoints`\n // and MUST match this pass's ingress hosts (the CORS invariant).\n runtimeEndpoints: target.runtimeEndpoints,\n // Backend→worker dispatch URLs (G-8 / MW4): emit `WILDO_WORKER_<NAME>_URL`\n // into the `{appSlug}-secret` the backend pod mounts, so the backend can\n // call each declared worker's per-app ClusterIP Service.\n workerUrls: target.workerUrls,\n },\n );\n // The backend's OWN provider Secret, scoped exactly as its env was (#369). Emitted here\n // rather than in § 4 because the same scope decides what the app Secret must NOT repeat.\n const backendRuntimeServiceName = target.appName ?? target.serviceName;\n const backendProviderKeys = emittedRuntimeProviderSecrets.has(backendRuntimeServiceName)\n ? new Set<string>()\n : emitRuntimeProvidersSecret(backendRuntimeServiceName, target.scopedProviderRefs);\n emittedRuntimeProviderSecrets.add(backendRuntimeServiceName);\n\n // Provider keys live in the provider Secret and NOWHERE ELSE, so the app Secret drops\n // exactly the keys that Secret carries.\n //\n // This used to drop every key present in `credentials.providerEnv` — the UNSCOPED bag. On\n // the OPERATOR-AUTHORED keys the two rules agree exactly, and that is provable rather than\n // hopeful: `appEnvFull`'s provider keys are fanned out by `resolveRuntimeProviderEnv` under\n // this same scope, and `backendProviderKeys` is that same function under that same scope, so\n // neither rule can strip a key the other keeps.\n //\n // They differ on ONE key, and it is the reason to prefer this one. `IMMUDB_STATE_PUBLIC_KEY`\n // is FRAMEWORK-INJECTED by `resolveRuntimeProviderEnv` and is absent from\n // `credentials.providerEnv`, so the old rule did not strip it and it rode in the app Secret —\n // which, at the time, every minion and worker also mounted. It now travels in the backend's provider\n // Secret instead: same delivery to the backend, and withheld from a runtime not scoped to\n // immudb, which is what the confinement is for.\n //\n // Deriving the strip from the emitted Secret's own keys also makes the two sides one decision\n // rather than two rules that must be kept in agreement by hand.\n const appEnv: Record<string, string> = {};\n for (const [key, value] of Object.entries(appEnvFull)) {\n if (!backendProviderKeys.has(key)) {\n appEnv[key] = value;\n }\n }\n\n // Canonical name = `{appSlug}-secret` (`target.appName` is the app slug,\n // populated for REMOTE — the only lane that emits k8s manifests). Fall\n // back to the backend serviceName only if a caller ever omits appName.\n const secretName = k8sAppBackendSecretName(target.appName ?? target.serviceName);\n if (!emittedAppSecrets.has(secretName) && Object.keys(appEnv).length > 0) {\n emittedAppSecrets.add(secretName);\n emit(secretName, toYaml(makeSecret(secretName, namespace, appEnv)), K8sResourceCategory.APPLICATION);\n }\n }\n }\n\n // ========================================================================\n // 6. Per-minion and per-worker environment Secrets (issue #377)\n //\n // Every minion and worker pod used to `envFrom`-mount the BACKEND's `{appSlug}-secret`, so each\n // received the backend's whole environment: the platform bootstrap contract, MongoDB /\n // PostgreSQL / Redis / RabbitMQ topology, storage configuration — and, once #360 composed it,\n // the backend's `OTEL_EXPORTER_OTLP_HEADERS` carrying the telemetry token. The per-runtime\n // confinement #329/#360/#369 established was therefore defeated one level up: a minion scoped\n // to `openai` alone got no telemetry token in its own provider Secret and received it anyway,\n // out of a different runtime's environment.\n //\n // `buildApplicationMinionEnv` / `buildApplicationWorkerEnv` already existed, already took the\n // runtime's `RuntimeProviderScope`, and already produced the correctly-scoped environment for\n // the native lane. This lane never called them. It now calls them through\n // `application-runtime-environment.ts`, the containerised derivation the local compose\n // `app-runtimes` profile mounts too (#2955), so one application runtime cannot come to mean two\n // different environments depending on how it is deployed.\n //\n // Two deliberate deviations, both inherited from the backend's own § 5 rather than introduced\n // here — stated so neither reads as an oversight:\n // - `extraEnv` is NOT merged (the native `.env` lane merges it). Not a regression: these runtimes\n // previously mounted the backend Secret, which carries none either.\n // - `serviceVersion` is NOT threaded, so `service.version` is absent from\n // `OTEL_RESOURCE_ATTRIBUTES` in this lane. Same for the backend today.\n // ========================================================================\n\n /** Emit one runtime's environment Secret, minus the keys its provider Secret already carries. */\n function emitRuntimeEnvSecret(\n runtimeServiceName: string,\n runtimeEnv: Record<string, string>,\n providerKeys: ReadonlySet<string>,\n ): void {\n const env: Record<string, string> = {};\n for (const [key, value] of Object.entries(runtimeEnv)) {\n if (!providerKeys.has(key)) env[key] = value;\n }\n if (Object.keys(env).length === 0) return;\n const secretName = k8sRuntimeEnvSecretName(runtimeServiceName);\n emit(secretName, toYaml(makeSecret(secretName, namespace, env)), K8sResourceCategory.APPLICATION);\n }\n\n // The environment itself is the one derivation the local compose `app-runtimes` lane mounts too (#2955), so a\n // runtime's identity and its own principal secret cannot differ between the two container lanes.\n //\n // No host gateway in this lane (#3390), so the shared derivation refuses a loopback runtime endpoint instead of\n // re-pointing it. Where the backend runs decides a pod's endpoints, and only one case reaches here:\n // - REMOTE: the backend runs in the cluster, and the target's endpoints already name its Service by cluster DNS\n // (`buildK8sApplicationRuntimeEndpoints`), which a pod reaches. Kept as they are.\n // - LOCAL (kind, Docker Desktop's cluster): the backend runs on the host (`wildo dev start`), and so do the minions\n // and workers. Their targets carry no `appName` (REMOTE deploy context, `AppBootstrapService.build*Targets`), so\n // the loops below skip them and no pod is rendered. If a lane ever renders one, its `localhost` endpoints would\n // name the pod itself, and the refusal is what that lane would meet first.\n // kind documents no pod-to-host route, but one was MEASURED for the platform scheduler, the one pod that does\n // dial a host-run backend (#3957, `resolveKindPodHostGateway`). Rendering a runtime pod on a LOCAL target would\n // reuse that derivation here rather than this refusal; until a lane does, nothing needs it.\n // spec-cite: kind docs, \"Known Issues\" (https://kind.sigs.k8s.io/docs/user/known-issues/), § \"Docker Desktop for\n // macOS and Windows\": that section covers host-to-cluster reachability only. The page documents no pod-to-host\n // route, and never names `host.docker.internal` or `host-gateway`.\n const runtimeEnvironmentContext = { credentials, addresses, config, environment: env, hostGatewayHostname: null };\n for (const minion of options.applicationMinions ?? []) {\n if (!minion.appName) continue;\n const { runtimeServiceName, env: runtimeEnv } = buildContainerisedMinionEnvironment(minion, minion.appName, runtimeEnvironmentContext);\n emitRuntimeEnvSecret(runtimeServiceName, runtimeEnv, providerKeysByRuntime.get(runtimeServiceName) ?? new Set());\n }\n\n for (const worker of options.applicationWorkers ?? []) {\n if (!worker.appName) continue;\n const { runtimeServiceName, env: runtimeEnv } = buildContainerisedWorkerEnvironment(worker, worker.appName, runtimeEnvironmentContext);\n emitRuntimeEnvSecret(runtimeServiceName, runtimeEnv, providerKeysByRuntime.get(runtimeServiceName) ?? new Set());\n }\n\n return output;\n}\n\n// ============================================================================\n// Per-service emit helper\n// ============================================================================\n\nfunction emitPlatformService(\n emit: (name: string, yaml: string, category: K8sResourceCategory) => void,\n service: PlatformWildoServices,\n env: Record<string, string>,\n namespace: string,\n credentials: PlatformEnvSecretsJson,\n config: PlatformEnvConfigJson,\n): void {\n const { secret, config: configData } = splitEnv(env);\n\n if (service === PlatformWildoServices.APPS_MANAGER) {\n if (credentials.atlas) {\n secret['WILDO_MONGO_ATLAS_API_KEY_PUBLIC'] = credentials.atlas.apiPublicKey;\n secret['WILDO_MONGO_ATLAS_API_KEY_PRIVATE'] = credentials.atlas.apiPrivateKey;\n }\n if (config.atlas) {\n configData['ATLAS_API_BASE_URL'] = config.atlas.apiBaseUrl;\n configData['ATLAS_PROJECT_ID'] = config.atlas.projectId;\n configData['MONGO_MAIN_CLUSTER_REF'] = config.atlas.clusterName;\n }\n }\n\n\n const secretName = k8sServiceSecretName(service);\n const configMapName = k8sServiceConfigMapName(service);\n\n if (Object.keys(secret).length > 0) {\n emit(secretName, toYaml(makeSecret(secretName, namespace, secret)), K8sResourceCategory.PLATFORM);\n }\n if (Object.keys(configData).length > 0) {\n emit(configMapName, toYaml(makeConfigMap(configMapName, namespace, configData)), K8sResourceCategory.PLATFORM);\n }\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { PlatformWildoServices } from '@wildo-ai/platform-config-lib';
|
|
2
|
+
import type { PlatformEnvironmentConfiguration } from '../../../services/environment/environment.schemas';
|
|
3
|
+
import { type ContainerHostGatewayProbe } from '../../../services/environment/container-host-gateway-listen-host';
|
|
4
|
+
/**
|
|
5
|
+
* How a pod of a LOCAL Kubernetes (Kind) environment reaches a process on the HOST (#3957), or `null` when it needs none.
|
|
6
|
+
*
|
|
7
|
+
* Only the platform scheduler needs it. On a LOCAL Kind environment the application backends run on the host
|
|
8
|
+
* (`wildo local dev`) and advertise a loopback delivery URL; the scheduler, in the cluster, POSTs each occurrence there
|
|
9
|
+
* (#2303 slice B), and inside a pod `localhost` is the pod. The dispatcher re-points a loopback URL at
|
|
10
|
+
* `PLATFORM_HOST_GATEWAY_HOSTNAME` (`toHostGatewayUrl`), exactly as the compose lane does, so this answers which name
|
|
11
|
+
* that is and, where the cluster cannot resolve it, which address it maps to.
|
|
12
|
+
*
|
|
13
|
+
* The name is the one the compose lane uses ({@link CONTAINER_HOST_GATEWAY_HOSTNAME}). Measured 2026-11-16 on a Kind
|
|
14
|
+
* v1.35 cluster:
|
|
15
|
+
* - **Docker Desktop (macOS):** a pod resolves `host.docker.internal` through the cluster's DNS (to `192.168.65.254`)
|
|
16
|
+
* and reaches a host process bound to `127.0.0.1`, which is how the native lane binds the backends. No alias is needed,
|
|
17
|
+
* and one would be wrong: the address behind the name is Docker Desktop's to choose.
|
|
18
|
+
* - **Docker Engine for Linux:** the name does not exist there. The host is reached at the default bridge's gateway
|
|
19
|
+
* (for example `172.17.0.1`): a pod reached a listener bound ONLY to that address (measured in Docker Desktop's Linux
|
|
20
|
+
* VM, whose network namespace is a Docker Engine host's). The backend already opens that listener (#3387,
|
|
21
|
+
* `CONTAINER_HOST_GATEWAY_LISTEN_HOST`), from the same {@link resolveContainerHostGatewayListenHost} this calls, so
|
|
22
|
+
* the scheduler is pointed at exactly the address the backend serves. A `hostAliases` entry maps the name to it, the
|
|
23
|
+
* Kubernetes form of compose's `host.docker.internal:host-gateway`.
|
|
24
|
+
* - **Rootless Docker, or a gateway not on this host:** the resolver answers nothing and no alias is rendered: there is
|
|
25
|
+
* no address of this host to point at. The send fails, and the dispatcher's retry reason names the gateway host and
|
|
26
|
+
* port it dialled (`unreachableHostGatewayHint`). Docker Desktop for Linux also gets no alias and relies on the
|
|
27
|
+
* cluster's DNS, as on macOS; that case was not measured.
|
|
28
|
+
*
|
|
29
|
+
* The scheduler belongs to the internet-egress segment (`FRAMEWORK_WORKLOAD_INTERNET_EGRESS`), whose policy admits every
|
|
30
|
+
* destination, so both addresses are reachable under the namespace's default-deny.
|
|
31
|
+
*
|
|
32
|
+
* Rejected: bringing the broker back for this lane (two delivery transports for one contract, and `small` would still
|
|
33
|
+
* have no route); the `kind` network's own gateway (on Linux an address of this host too, but not one the backend
|
|
34
|
+
* listens on, so it would need a third listener for one lane).
|
|
35
|
+
*/
|
|
36
|
+
export interface KindPodHostGateway {
|
|
37
|
+
/** The name the scheduler re-points a loopback delivery URL at (`PLATFORM_HOST_GATEWAY_HOSTNAME`). */
|
|
38
|
+
readonly hostname: string;
|
|
39
|
+
/** The address the pod's `hostAliases` maps {@link hostname} to, when the cluster's DNS cannot resolve it. */
|
|
40
|
+
readonly aliasIp?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare function resolveKindPodHostGateway(service: PlatformWildoServices, env: Pick<PlatformEnvironmentConfiguration, 'locationType'>, probe?: ContainerHostGatewayProbe): KindPodHostGateway | null;
|
|
43
|
+
//# sourceMappingURL=kind-pod-host-gateway.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kind-pod-host-gateway.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/kind-pod-host-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAqB,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAC5G,OAAO,EAIL,KAAK,yBAAyB,EAC/B,MAAM,oEAAoE,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,WAAW,kBAAkB;IACjC,sGAAsG;IACtG,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,8GAA8G;IAC9G,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,qBAAqB,EAC9B,GAAG,EAAE,IAAI,CAAC,gCAAgC,EAAE,cAAc,CAAC,EAC3D,KAAK,GAAE,yBAA+D,GACrE,kBAAkB,GAAG,IAAI,CAM3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PlatformWildoServices, WildoLocationType } from '@wildo-ai/platform-config-lib';
|
|
2
|
+
import { CONTAINER_HOST_GATEWAY_HOSTNAME, resolveContainerHostGatewayListenHost, SYSTEM_CONTAINER_HOST_GATEWAY_PROBE, } from '../../../services/environment/container-host-gateway-listen-host.js';
|
|
3
|
+
export function resolveKindPodHostGateway(service, env, probe = SYSTEM_CONTAINER_HOST_GATEWAY_PROBE) {
|
|
4
|
+
if (service !== PlatformWildoServices.CRONTABS_BATCHES_MANAGER)
|
|
5
|
+
return null;
|
|
6
|
+
// A REMOTE cluster runs the backends in the cluster; their delivery URLs name a Service, never loopback.
|
|
7
|
+
if (env.locationType !== WildoLocationType.LOCAL)
|
|
8
|
+
return null;
|
|
9
|
+
const aliasIp = resolveContainerHostGatewayListenHost(probe);
|
|
10
|
+
return aliasIp === undefined ? { hostname: CONTAINER_HOST_GATEWAY_HOSTNAME } : { hostname: CONTAINER_HOST_GATEWAY_HOSTNAME, aliasIp };
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=kind-pod-host-gateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kind-pod-host-gateway.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/kind-pod-host-gateway.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEzF,OAAO,EACL,+BAA+B,EAC/B,qCAAqC,EACrC,mCAAmC,GAEpC,MAAM,oEAAoE,CAAC;AAyC5E,MAAM,UAAU,yBAAyB,CACvC,OAA8B,EAC9B,GAA2D,EAC3D,QAAmC,mCAAmC;IAEtE,IAAI,OAAO,KAAK,qBAAqB,CAAC,wBAAwB;QAAE,OAAO,IAAI,CAAC;IAC5E,yGAAyG;IACzG,IAAI,GAAG,CAAC,YAAY,KAAK,iBAAiB,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAC9D,MAAM,OAAO,GAAG,qCAAqC,CAAC,KAAK,CAAC,CAAC;IAC7D,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,+BAA+B,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,+BAA+B,EAAE,OAAO,EAAE,CAAC;AACxI,CAAC","sourcesContent":["import { PlatformWildoServices, WildoLocationType } from '@wildo-ai/platform-config-lib';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\nimport {\n CONTAINER_HOST_GATEWAY_HOSTNAME,\n resolveContainerHostGatewayListenHost,\n SYSTEM_CONTAINER_HOST_GATEWAY_PROBE,\n type ContainerHostGatewayProbe,\n} from '~wildo-cli/services/environment/container-host-gateway-listen-host';\n\n/**\n * How a pod of a LOCAL Kubernetes (Kind) environment reaches a process on the HOST (#3957), or `null` when it needs none.\n *\n * Only the platform scheduler needs it. On a LOCAL Kind environment the application backends run on the host\n * (`wildo local dev`) and advertise a loopback delivery URL; the scheduler, in the cluster, POSTs each occurrence there\n * (#2303 slice B), and inside a pod `localhost` is the pod. The dispatcher re-points a loopback URL at\n * `PLATFORM_HOST_GATEWAY_HOSTNAME` (`toHostGatewayUrl`), exactly as the compose lane does, so this answers which name\n * that is and, where the cluster cannot resolve it, which address it maps to.\n *\n * The name is the one the compose lane uses ({@link CONTAINER_HOST_GATEWAY_HOSTNAME}). Measured 2026-11-16 on a Kind\n * v1.35 cluster:\n * - **Docker Desktop (macOS):** a pod resolves `host.docker.internal` through the cluster's DNS (to `192.168.65.254`)\n * and reaches a host process bound to `127.0.0.1`, which is how the native lane binds the backends. No alias is needed,\n * and one would be wrong: the address behind the name is Docker Desktop's to choose.\n * - **Docker Engine for Linux:** the name does not exist there. The host is reached at the default bridge's gateway\n * (for example `172.17.0.1`): a pod reached a listener bound ONLY to that address (measured in Docker Desktop's Linux\n * VM, whose network namespace is a Docker Engine host's). The backend already opens that listener (#3387,\n * `CONTAINER_HOST_GATEWAY_LISTEN_HOST`), from the same {@link resolveContainerHostGatewayListenHost} this calls, so\n * the scheduler is pointed at exactly the address the backend serves. A `hostAliases` entry maps the name to it, the\n * Kubernetes form of compose's `host.docker.internal:host-gateway`.\n * - **Rootless Docker, or a gateway not on this host:** the resolver answers nothing and no alias is rendered: there is\n * no address of this host to point at. The send fails, and the dispatcher's retry reason names the gateway host and\n * port it dialled (`unreachableHostGatewayHint`). Docker Desktop for Linux also gets no alias and relies on the\n * cluster's DNS, as on macOS; that case was not measured.\n *\n * The scheduler belongs to the internet-egress segment (`FRAMEWORK_WORKLOAD_INTERNET_EGRESS`), whose policy admits every\n * destination, so both addresses are reachable under the namespace's default-deny.\n *\n * Rejected: bringing the broker back for this lane (two delivery transports for one contract, and `small` would still\n * have no route); the `kind` network's own gateway (on Linux an address of this host too, but not one the backend\n * listens on, so it would need a third listener for one lane).\n */\nexport interface KindPodHostGateway {\n /** The name the scheduler re-points a loopback delivery URL at (`PLATFORM_HOST_GATEWAY_HOSTNAME`). */\n readonly hostname: string;\n /** The address the pod's `hostAliases` maps {@link hostname} to, when the cluster's DNS cannot resolve it. */\n readonly aliasIp?: string;\n}\n\nexport function resolveKindPodHostGateway(\n service: PlatformWildoServices,\n env: Pick<PlatformEnvironmentConfiguration, 'locationType'>,\n probe: ContainerHostGatewayProbe = SYSTEM_CONTAINER_HOST_GATEWAY_PROBE,\n): KindPodHostGateway | null {\n if (service !== PlatformWildoServices.CRONTABS_BATCHES_MANAGER) return null;\n // A REMOTE cluster runs the backends in the cluster; their delivery URLs name a Service, never loopback.\n if (env.locationType !== WildoLocationType.LOCAL) return null;\n const aliasIp = resolveContainerHostGatewayListenHost(probe);\n return aliasIp === undefined ? { hostname: CONTAINER_HOST_GATEWAY_HOSTNAME } : { hostname: CONTAINER_HOST_GATEWAY_HOSTNAME, aliasIp };\n}\n"]}
|
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
* `NETWORK_FOR_CAPABILITY` over `BackingServiceKindToInfraCapability`, the projection the runtime labels are derived
|
|
12
12
|
* from. A kind added to either vocabulary is a compile error in one of them before it can be a runtime cut off here.
|
|
13
13
|
*/
|
|
14
|
-
import { BackingServiceKind, type BackingServicesEnvConfig, type RuntimeNetworkOffClusterService } from '@wildo-ai/platform-config-lib';
|
|
14
|
+
import { BackingServiceKind, type BackingServicesEnvConfig, type EnvironmentServiceProfile, type RuntimeNetworkOffClusterService } from '@wildo-ai/platform-config-lib';
|
|
15
15
|
/** What the derivation reads of an environment. */
|
|
16
16
|
export interface OffClusterBackingServiceEnvInput {
|
|
17
17
|
readonly name: string;
|
|
18
18
|
readonly backingServices?: BackingServicesEnvConfig;
|
|
19
|
+
/** Whether the broker is used at all depends on it (#2303 slice D: none under a profile that runs no broker). */
|
|
20
|
+
readonly serviceProfile?: EnvironmentServiceProfile;
|
|
19
21
|
}
|
|
20
22
|
/**
|
|
21
23
|
* The ports a managed `kind` answers on. The authored `port` wins when the environment declares one, so a managed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"off-cluster-backing-services.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/off-cluster-backing-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,kBAAkB,EAIlB,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AAOvC,mDAAmD;AACnD,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,eAAe,CAAC,EAAE,wBAAwB,CAAC;CACrD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,gCAAgC,EAAE,IAAI,EAAE,kBAAkB,GAAG,MAAM,EAAE,CAmB3H;AAgBD;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,gCAAgC,GAAG,+BAA+B,EAAE,CAUzH"}
|
|
1
|
+
{"version":3,"file":"off-cluster-backing-services.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/off-cluster-backing-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,kBAAkB,EAIlB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,+BAA+B,EACrC,MAAM,+BAA+B,CAAC;AAOvC,mDAAmD;AACnD,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,eAAe,CAAC,EAAE,wBAAwB,CAAC;IACpD,iHAAiH;IACjH,QAAQ,CAAC,cAAc,CAAC,EAAE,yBAAyB,CAAC;CACrD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,gCAAgC,EAAE,IAAI,EAAE,kBAAkB,GAAG,MAAM,EAAE,CAmB3H;AAgBD;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,GAAG,EAAE,gCAAgC,GAAG,+BAA+B,EAAE,CAUzH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"off-cluster-backing-services.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/off-cluster-backing-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,kBAAkB,EAClB,mCAAmC,EACnC,mBAAmB,EACnB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"off-cluster-backing-services.js","sourceRoot":"","sources":["../../../../../src/services/deployment/k8s/off-cluster-backing-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EACL,kBAAkB,EAClB,mCAAmC,EACnC,mBAAmB,EACnB,sBAAsB,GAIvB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AAEvF,qHAAqH;AACrH,MAAM,UAAU,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAW,CAAC;AAUvD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,iCAAiC,CAAC,GAAqC,EAAE,IAAwB;IAC/G,MAAM,QAAQ,GAAG,GAAG,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC;IACnD,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,kBAAkB,CAAC,OAAO;YAC7B,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QACvC,KAAK,kBAAkB,CAAC,UAAU;YAChC,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC;QAC1C,KAAK,kBAAkB,CAAC,KAAK;YAC3B,OAAO,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,kBAAkB,CAAC,QAAQ;YAC9B,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;QAC5C,KAAK,kBAAkB,CAAC,EAAE;YACxB,OAAO,CAAC,gCAAgC,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;QACpG,KAAK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luster, as the namespace's NetworkPolicy set needs them (#3511).\n *\n * Under the default-deny, a runtime reaches a backing service only through the segment it shares with that service's\n * pod. A MANAGED service has no pod: on a remote environment the database is an Atlas cluster or a cloud PostgreSQL,\n * the broker a hosted RabbitMQ. So each segment whose service is served elsewhere gets an egress allow to that service's\n * ports, and nothing else (see `buildOffClusterServicePolicy` in `@wildo-ai/platform-config-lib` for the address shape).\n *\n * Derived, never listed: which kinds are off the cluster is `EnvironmentUtils.servesBackingServiceOffCluster`, the\n * complement of the predicate the lanes gate each self-hosted workload on, and which segment serves a kind is\n * `NETWORK_FOR_CAPABILITY` over `BackingServiceKindToInfraCapability`, the projection the runtime labels are derived\n * from. A kind added to either vocabulary is a compile error in one of them before it can be a runtime cut off here.\n */\nimport {\n BackingServiceKind,\n BackingServiceKindToInfraCapability,\n INFRA_DEFAULT_PORTS,\n NETWORK_FOR_CAPABILITY,\n type BackingServicesEnvConfig,\n type EnvironmentServiceProfile,\n type RuntimeNetworkOffClusterService,\n} from '@wildo-ai/platform-config-lib';\n\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\n\n/** The IANA ports of AMQP (`amqp`) and AMQP over TLS (`amqps`). A managed broker usually accepts only the second. */\nconst AMQP_PORTS = { PLAIN: 5672, TLS: 5671 } as const;\n\n/** What the derivation reads of an environment. */\nexport interface OffClusterBackingServiceEnvInput {\n readonly name: string;\n readonly backingServices?: BackingServicesEnvConfig;\n /** Whether the broker is used at all depends on it (#2303 slice D: none under a profile that runs no broker). */\n readonly serviceProfile?: EnvironmentServiceProfile;\n}\n\n/**\n * The ports a managed `kind` answers on. The authored `port` wins when the environment declares one, so a managed\n * endpoint on a non-standard port is reached by declaring it where every other consumer of that address reads it.\n * Otherwise the protocol's own port, with two kinds whose managed form commonly differs from the self-hosted one:\n *\n * - **RabbitMQ**: both `amqp` and `amqps`, since a hosted broker generally requires TLS (5671) where a self-hosted one\n * listens in clear (5672), and the connection URL that says which lives in the credentials, not in the declaration.\n * - **Object storage**: a managed S3 is an HTTPS API, so the port of the declared `endpoint` URL, or 443 when the\n * endpoint names no port or is not declared (AWS S3's regional endpoints). MinIO's 9000 is the self-hosted port only.\n *\n * A total switch with no `default`, so a kind added tomorrow fails the build here.\n */\nexport function resolveManagedBackingServicePorts(env: OffClusterBackingServiceEnvInput, kind: BackingServiceKind): number[] {\n const declared = env.backingServices?.[kind]?.port;\n if (declared !== undefined) return [declared];\n switch (kind) {\n case BackingServiceKind.MONGODB:\n return [INFRA_DEFAULT_PORTS.MONGODB];\n case BackingServiceKind.POSTGRESQL:\n return [INFRA_DEFAULT_PORTS.POSTGRESQL];\n case BackingServiceKind.REDIS:\n return [INFRA_DEFAULT_PORTS.VALKEY];\n case BackingServiceKind.RABBITMQ:\n return [AMQP_PORTS.PLAIN, AMQP_PORTS.TLS];\n case BackingServiceKind.S3:\n return [resolveObjectStorageEndpointPort(env.backingServices?.[BackingServiceKind.S3]?.endpoint)];\n case BackingServiceKind.CLAMAV:\n return [INFRA_DEFAULT_PORTS.CLAMAV];\n case BackingServiceKind.IMMUDB:\n return [INFRA_DEFAULT_PORTS.IMMUDB];\n }\n}\n\n/** The port an object-storage endpoint URL names, else its scheme's default; 443 when there is no usable URL. */\nfunction resolveObjectStorageEndpointPort(endpoint: string | undefined): number {\n if (!endpoint) return 443;\n let url: URL;\n try {\n url = new URL(endpoint);\n } catch {\n // A bare host (`s3.fr-par.scw.cloud`) is reached over HTTPS like every managed object store.\n return 443;\n }\n if (url.port) return Number(url.port);\n return url.protocol === 'http:' ? 80 : 443;\n}\n\n/**\n * The off-cluster services of an environment, one per kind it serves from elsewhere, in the kind vocabulary's order.\n * Empty when everything it uses is self-hosted (the default local environment).\n */\nexport function resolveOffClusterBackingServices(env: OffClusterBackingServiceEnvInput): RuntimeNetworkOffClusterService[] {\n const services: RuntimeNetworkOffClusterService[] = [];\n for (const kind of Object.values(BackingServiceKind)) {\n if (!EnvironmentUtils.servesBackingServiceOffCluster(env, kind)) continue;\n const network = NETWORK_FOR_CAPABILITY[BackingServiceKindToInfraCapability[kind]];\n // Every kind maps to a segment today; a capability whose network is `null` has no client segment to open.\n if (!network) continue;\n services.push({ network, ports: resolveManagedBackingServicePorts(env, kind) });\n }\n return services;\n}\n"]}
|