@wildo-ai/platform-config-lib 1.1.15 → 1.1.17

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.
Files changed (43) hide show
  1. package/dist/esm/index.d.ts +1 -0
  2. package/dist/esm/index.d.ts.map +1 -1
  3. package/dist/esm/index.js +1 -0
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/esm/lockfile/materialize-infra-section.js +1 -1
  6. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  7. package/dist/esm/project-config/provider-companion-discovery.d.ts +45 -0
  8. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  9. package/dist/esm/project-config/provider-companion-discovery.js +77 -6
  10. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  11. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  12. package/dist/esm/project-config/provider-runtime-artifacts.js +25 -1
  13. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  14. package/dist/esm/project-config/shared/backing-service-servability.js +1 -1
  15. package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
  16. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +5 -5
  17. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  18. package/dist/esm/project-config/shared/backing-services.schemas.js +13 -12
  19. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  20. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +7 -6
  21. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  22. package/dist/esm/project-config/shared/infra-providers.schemas.js +5 -4
  23. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  24. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +3 -1
  25. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  26. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +3 -1
  27. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  28. package/dist/esm/project-config/shared/object-storage-seaweedfs.d.ts +131 -0
  29. package/dist/esm/project-config/shared/object-storage-seaweedfs.d.ts.map +1 -0
  30. package/dist/esm/project-config/shared/object-storage-seaweedfs.js +219 -0
  31. package/dist/esm/project-config/shared/object-storage-seaweedfs.js.map +1 -0
  32. package/dist/esm/project-config/shared/platform-storage.schemas.js +4 -4
  33. package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
  34. package/dist/esm/registry/module-artifact.schemas.d.ts +1 -0
  35. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  36. package/dist/esm/registry/module-artifact.schemas.js +7 -0
  37. package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
  38. package/dist/esm/registry/module-manifest.schemas.d.ts +4 -3
  39. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  40. package/dist/esm/registry/module-manifest.schemas.js +4 -3
  41. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  42. package/dist/tsconfig.build.tsbuildinfo +1 -1
  43. package/package.json +7 -7
@@ -81,7 +81,7 @@ export const INFRA_PROVIDER_CANONICAL_DECLARATIONS = {
81
81
  [InfraProvider.POSTGRES_RENDER]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'render' },
82
82
  [InfraProvider.REDIS_SELF]: { kind: BackingServiceKind.REDIS, source: BackingServiceSource.SELF },
83
83
  [InfraProvider.RABBITMQ_SELF]: { kind: BackingServiceKind.RABBITMQ, source: BackingServiceSource.SELF },
84
- [InfraProvider.MINIO_SELF]: { kind: BackingServiceKind.S3, source: BackingServiceSource.SELF },
84
+ [InfraProvider.SEAWEEDFS_SELF]: { kind: BackingServiceKind.S3, source: BackingServiceSource.SELF },
85
85
  [InfraProvider.AWS_S3]: { kind: BackingServiceKind.S3, source: BackingServiceSource.MANAGED },
86
86
  [InfraProvider.CLAMAV_SELF]: { kind: BackingServiceKind.CLAMAV, source: BackingServiceSource.SELF },
87
87
  [InfraProvider.IMMUDB_SELF]: { kind: BackingServiceKind.IMMUDB, source: BackingServiceSource.SELF },
@@ -1 +1 @@
1
- {"version":3,"file":"backing-service-servability.js","sourceRoot":"","sources":["../../../../src/project-config/shared/backing-service-servability.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,0CAA0C;AAC1C,MAAM,CAAN,IAAY,8BAmBX;AAnBD,WAAY,8BAA8B;IACxC,4FAA4F;IAC5F,6DAA2B,CAAA;IAC3B;;;OAGG;IACH,yEAAuC,CAAA;IACvC;;;;;;;;;OASG;IACH,+EAA6C,CAAA;AAC/C,CAAC,EAnBW,8BAA8B,KAA9B,8BAA8B,QAmBzC;AAcD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAuE;IACvH,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,oBAAoB,CAAC,IAAI,EAAE;IACrG,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE;IAC5H,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,oBAAoB,CAAC,IAAI,EAAE;IACzG,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE;IAC/G,CAAC,aAAa,CAAC,gBAAgB,CAAC,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CAAC,OAAO,sBAAsB,OAAO,CAAC,IAAI,IAAI,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,GAAG,KAAK,OAAO,GAAG,CAAC;AACtI,CAAC;AAED,yFAAyF;AACzF,MAAM,OAAO,wCAAyC,SAAQ,KAAK;IACxD,QAAQ,CAAqD;IAEtE,YAAY,QAA4D;QACtE,KAAK,CACH,kGAAkG;cAChG,mDAAmD;cACnD,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,2CAA2C,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CACtG,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,0CAA0C,CAAC;QACvD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AAED,oFAAoF;AACpF,MAAM,UAAU,wCAAwC,CAAC,KAGxD;IACC,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,wCAAwC,CAAC;QACpF,OAAO,EAAE,GAAG,CAAC,OAAO;QACpB,eAAe,EAAE,GAAG,CAAC,eAAe;QACpC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;KAC3C,CAAC,CAAC,CAAC;IACJ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QAAE,MAAM,IAAI,wCAAwC,CAAC,QAAQ,CAAC,CAAC;AACxF,CAAC","sourcesContent":["import {\n BackingServiceKind,\n BackingServiceSource,\n resolveInfraProvider,\n type BackingServicesEnvConfig,\n} from './backing-services.schemas';\nimport { InfraProvider } from './infra-providers.schemas';\n\n/**\n * Is a `backingServices` declaration one the platform can actually SERVE?\n *\n * ## The defect this closes (#1693)\n *\n * A declaration used to be accepted when it merely parsed. Two classes of parseable declaration serve\n * nothing, and both passed `wildo config sync` and `wildo lock check` in silence:\n *\n * 1. **It resolves to no provider** — `redis: { source: MANAGED }`, a managed MongoDB brand other\n * than `'atlas'`. The lockfile materializer skipped the kind without a word.\n * 2. **It resolves to a provider no module can serve** — the seven managed PostgreSQL entries have no\n * module, and `AWS_S3` has one whose credential broker does not exist yet (#14). The materializer\n * fell back to hashing the authored entry, so the lockfile recorded a selection nothing executes.\n *\n * Neither \"provisions nothing\". The generators honour `source`, so a MANAGED cache gets no\n * self-hosted workload — while apps-manager, which named its modules and was never told the\n * declaration, minted the application's credential on the PLATFORM's own server. The application\n * received a credential for a server it never connects to. Since #1692 apps-manager is told, dispatches\n * on the declared provider and refuses one it cannot serve\n * ({@link findBackingServiceDeclarationsThePlatformCannotServe}); this offline check stops the same\n * declarations before they reach it.\n *\n * ## Why the servable set is an INPUT here, not computed here\n *\n * Servability is a property of the provider-module CATALOGUE (`@wildo-ai/platform-infra-providers`),\n * and that package depends on this one — never the reverse. So the catalogue derives the set\n * (`collectServableInfraProviders()`) and every caller hands it in. The check itself lives here, once,\n * so `wildo config validate`, `wildo config sync` and `wildo lock check` cannot disagree about which\n * declarations they refuse: the two lockfile projections reach it through `materializeInfraSection`,\n * which REQUIRES the set, and `config validate` calls {@link findUnservableBackingServiceDeclarations}\n * directly.\n *\n * ## No opt-out, deliberately\n *\n * An earlier design offered `acceptUnresolved: true`. It was dropped: it makes a known-broken\n * configuration representable, which is exactly a setting that looks like a control and does\n * nothing. A kind becomes declarable as `MANAGED` in the same change that adds the module serving it.\n */\n\n/** Why a declaration cannot be served. */\nexport enum BackingServiceUnservableReason {\n /** The `(kind, source, provider)` tuple names no `InfraProvider` catalogue entry at all. */\n NO_PROVIDER = 'no-provider',\n /**\n * It names a catalogue entry, but no provider module serves that entry — either none exists, or the\n * one that exists declares `unservableReason`.\n */\n NO_SERVING_MODULE = 'no-serving-module',\n /**\n * A module serves the entry, but THIS platform holds no administrative credentials for it — an Atlas\n * declaration on a platform with no Atlas API key, a self-hosted PostgreSQL declaration on a platform with\n * no PostgreSQL admin (#1692).\n *\n * Only apps-manager can know this: which admin clients a platform holds is platform configuration, and one\n * platform hosts many applications. The offline checks (`config validate` / `config sync` / `lock check`)\n * never produce it. apps-manager refuses the registration rather than minting on another provider — a\n * substitution would hand the application a credential for a server it does not connect to.\n */\n NOT_HELD_BY_PLATFORM = 'not-held-by-platform',\n}\n\n/** The authored half of a backing-service entry that decides which provider it names. */\nexport interface BackingServiceProviderSelection {\n source: BackingServiceSource;\n /** The brand, when the kind distinguishes several. See `resolveInfraProvider` for the vocabulary. */\n provider?: string;\n}\n\n/** The simplest authored declaration that selects one catalogue entry. */\nexport interface InfraProviderCanonicalDeclaration extends BackingServiceProviderSelection {\n kind: BackingServiceKind;\n}\n\n/**\n * For every `InfraProvider`, the SIMPLEST declaration that selects it — the inverse of\n * `resolveInfraProvider`, used to tell an author what they may write instead.\n *\n * Total over `InfraProvider` (a `Record`), so a provider added to the catalogue is a compile error\n * here until someone states how it is declared. That the inverse is truthful is pinned by a test that\n * resolves every row back through `resolveInfraProvider`; it is never trusted by construction.\n */\nexport const INFRA_PROVIDER_CANONICAL_DECLARATIONS: Readonly<Record<InfraProvider, InfraProviderCanonicalDeclaration>> = {\n [InfraProvider.MONGODB_SELF]: { kind: BackingServiceKind.MONGODB, source: BackingServiceSource.SELF },\n [InfraProvider.MONGODB_ATLAS]: { kind: BackingServiceKind.MONGODB, source: BackingServiceSource.MANAGED, provider: 'atlas' },\n [InfraProvider.POSTGRES_SELF]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.SELF },\n [InfraProvider.POSTGRES_MANAGED]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED },\n [InfraProvider.POSTGRES_AWS_RDS]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'aws-rds' },\n [InfraProvider.POSTGRES_GCP_CLOUD_SQL]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'gcp-cloud-sql' },\n [InfraProvider.POSTGRES_AZURE_DATABASE]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'azure-database' },\n [InfraProvider.POSTGRES_SUPABASE]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'supabase' },\n [InfraProvider.POSTGRES_NEON]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },\n [InfraProvider.POSTGRES_RENDER]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'render' },\n [InfraProvider.REDIS_SELF]: { kind: BackingServiceKind.REDIS, source: BackingServiceSource.SELF },\n [InfraProvider.RABBITMQ_SELF]: { kind: BackingServiceKind.RABBITMQ, source: BackingServiceSource.SELF },\n [InfraProvider.MINIO_SELF]: { kind: BackingServiceKind.S3, source: BackingServiceSource.SELF },\n [InfraProvider.AWS_S3]: { kind: BackingServiceKind.S3, source: BackingServiceSource.MANAGED },\n [InfraProvider.CLAMAV_SELF]: { kind: BackingServiceKind.CLAMAV, source: BackingServiceSource.SELF },\n [InfraProvider.IMMUDB_SELF]: { kind: BackingServiceKind.IMMUDB, source: BackingServiceSource.SELF },\n};\n\n/** One declaration the platform cannot serve, with everything the refusal message needs. */\nexport interface UnservableBackingServiceDeclaration {\n envName: string;\n kind: BackingServiceKind;\n declared: BackingServiceProviderSelection;\n reason: BackingServiceUnservableReason;\n /** The catalogue entry it names, when it names one (`NO_SERVING_MODULE`). */\n resolvedProvider?: InfraProvider;\n /** The simplest servable declarations for the same kind — what the author may write instead. */\n servableAlternatives: ReadonlyArray<BackingServiceProviderSelection>;\n}\n\n/**\n * The servable declarations for one kind, one per servable provider, in catalogue order.\n *\n * Empty when nothing can serve the kind — then the only servable choice is not to declare it.\n */\nexport function servableBackingServiceDeclarations(\n kind: BackingServiceKind,\n servableProviders: ReadonlySet<InfraProvider>,\n): ReadonlyArray<BackingServiceProviderSelection> {\n const alternatives: BackingServiceProviderSelection[] = [];\n for (const provider of Object.values(InfraProvider)) {\n if (!servableProviders.has(provider)) continue;\n const declaration = INFRA_PROVIDER_CANONICAL_DECLARATIONS[provider];\n if (declaration.kind !== kind) continue;\n alternatives.push({\n source: declaration.source,\n ...(declaration.provider === undefined ? {} : { provider: declaration.provider }),\n });\n }\n return alternatives;\n}\n\n/**\n * Every declaration in one environment that the platform cannot serve. Empty means every declared\n * kind resolves to a provider in `servableProviders`.\n *\n * Pure. `servableProviders` comes from `collectServableInfraProviders()` in\n * `@wildo-ai/platform-infra-providers`; see the file header for why it is an input.\n */\nexport function findUnservableBackingServiceDeclarations(input: {\n envName: string;\n backingServices: BackingServicesEnvConfig | undefined;\n servableProviders: ReadonlySet<InfraProvider>;\n}): UnservableBackingServiceDeclaration[] {\n const findings: UnservableBackingServiceDeclaration[] = [];\n if (!input.backingServices) return findings;\n\n for (const kind of Object.values(BackingServiceKind)) {\n const entry = input.backingServices[kind];\n if (!entry) continue;\n const finding = classifyBackingServiceDeclaration({\n envName: input.envName,\n kind,\n declared: entry,\n servableProviders: input.servableProviders,\n });\n if (finding) findings.push(finding);\n }\n return findings;\n}\n\n/**\n * One kind's declaration against a servable set: `undefined` when it resolves to a provider in the set,\n * otherwise the finding. The single place the resolve-then-check rule lives, so the offline checks above and\n * apps-manager's registration check below cannot disagree about what a declaration names.\n */\nfunction classifyBackingServiceDeclaration(input: {\n envName: string;\n kind: BackingServiceKind;\n declared: BackingServiceProviderSelection;\n servableProviders: ReadonlySet<InfraProvider>;\n}): UnservableBackingServiceDeclaration | undefined {\n const declared: BackingServiceProviderSelection = {\n source: input.declared.source,\n ...(input.declared.provider === undefined ? {} : { provider: input.declared.provider }),\n };\n const resolvedProvider = resolveInfraProvider(input.kind, declared.source, declared.provider);\n if (resolvedProvider !== undefined && input.servableProviders.has(resolvedProvider)) return undefined;\n return {\n envName: input.envName,\n kind: input.kind,\n declared,\n reason: resolvedProvider === undefined\n ? BackingServiceUnservableReason.NO_PROVIDER\n : BackingServiceUnservableReason.NO_SERVING_MODULE,\n ...(resolvedProvider === undefined ? {} : { resolvedProvider }),\n servableAlternatives: servableBackingServiceDeclarations(input.kind, input.servableProviders),\n };\n}\n\n/**\n * The declarations an application REGISTERS with that THIS platform cannot serve — apps-manager's half of\n * the servability check (#1692; the offline half is {@link findUnservableBackingServiceDeclarations}, #1693).\n *\n * Two sets, because they answer different questions:\n *\n * - `catalogueServableProviders` — what the provider-module catalogue can serve at all\n * (`collectServableInfraProviders()`). Every DECLARED kind is checked against it: a declaration the\n * catalogue refuses is refused here too, even if an older CLI let it through.\n * - `platformServableProviders` — the subset this platform holds what it needs for (an admin client for a\n * provider apps-manager mints on, nothing for one it does not). Checked only for `mintedKinds`, the kinds\n * apps-manager mints a credential on for THIS application: an environment's declaration also names stores\n * only the platform uses, and refusing an application over an admin client it would never use would be a\n * refusal with nothing behind it.\n *\n * A catalogue finding keeps its catalogue reason; a provider the catalogue serves and this platform does not\n * is {@link BackingServiceUnservableReason.NOT_HELD_BY_PLATFORM}. Alternatives are always what THIS platform\n * can serve, because that is what the author can actually switch to here.\n *\n * Pure; apps-manager supplies both sets. An absent `declaredProviders` yields nothing — the previous\n * behaviour for every kind (see `ApplicationBackingServiceProviderDeclarations`).\n */\nexport function findBackingServiceDeclarationsThePlatformCannotServe(input: {\n envName: string;\n declaredProviders: Partial<Record<BackingServiceKind, BackingServiceProviderSelection>> | undefined;\n mintedKinds: ReadonlySet<BackingServiceKind>;\n catalogueServableProviders: ReadonlySet<InfraProvider>;\n platformServableProviders: ReadonlySet<InfraProvider>;\n}): UnservableBackingServiceDeclaration[] {\n const findings: UnservableBackingServiceDeclaration[] = [];\n if (!input.declaredProviders) return findings;\n const platformServable = new Set(\n [...input.platformServableProviders].filter((provider) => input.catalogueServableProviders.has(provider)),\n );\n\n for (const kind of Object.values(BackingServiceKind)) {\n const declared = input.declaredProviders[kind];\n if (!declared) continue;\n const catalogueFinding = classifyBackingServiceDeclaration({\n envName: input.envName,\n kind,\n declared,\n servableProviders: input.catalogueServableProviders,\n });\n if (catalogueFinding) {\n findings.push({ ...catalogueFinding, servableAlternatives: servableBackingServiceDeclarations(kind, platformServable) });\n continue;\n }\n if (!input.mintedKinds.has(kind)) continue;\n const platformFinding = classifyBackingServiceDeclaration({ envName: input.envName, kind, declared, servableProviders: platformServable });\n if (platformFinding) findings.push({ ...platformFinding, reason: BackingServiceUnservableReason.NOT_HELD_BY_PLATFORM });\n }\n return findings;\n}\n\nfunction describeUnservableReason(finding: UnservableBackingServiceDeclaration): string {\n switch (finding.reason) {\n case BackingServiceUnservableReason.NO_PROVIDER:\n return 'names no infrastructure provider';\n case BackingServiceUnservableReason.NO_SERVING_MODULE:\n return `names provider '${finding.resolvedProvider}', which no provider module can serve yet`;\n case BackingServiceUnservableReason.NOT_HELD_BY_PLATFORM:\n return `names provider '${finding.resolvedProvider}', for which this platform holds no administrative credentials, `\n + 'so apps-manager cannot mint on it (which admin clients a platform holds is platform configuration)';\n }\n}\n\nfunction renderSelection(selection: BackingServiceProviderSelection): string {\n return selection.provider === undefined\n ? `{ source: '${selection.source}' }`\n : `{ source: '${selection.source}', provider: '${selection.provider}' }`;\n}\n\n/**\n * One line per finding: the environment, the kind, what was declared, why it cannot be served, and\n * the declarations that ARE servable for that kind. Shared by every caller so the wording is one.\n */\nexport function describeUnservableBackingServiceDeclaration(finding: UnservableBackingServiceDeclaration): string {\n const why = describeUnservableReason(finding);\n const instead = finding.servableAlternatives.length === 0\n ? 'nothing can serve this kind today, so do not declare it'\n : `servable declarations for '${finding.kind}': ${finding.servableAlternatives.map(renderSelection).join(' | ')}`;\n return `environment '${finding.envName}': backingServices.${finding.kind} ${renderSelection(finding.declared)} ${why}; ${instead}.`;\n}\n\n/** Thrown when a declaration the platform cannot serve reaches a lockfile projection. */\nexport class UnservableBackingServiceDeclarationError extends Error {\n readonly findings: ReadonlyArray<UnservableBackingServiceDeclaration>;\n\n constructor(findings: ReadonlyArray<UnservableBackingServiceDeclaration>) {\n super(\n 'These backing-service declarations cannot be served, so the platform would hand the application '\n + 'a credential for a server it never connects to:\\n'\n + findings.map((finding) => ` - ${describeUnservableBackingServiceDeclaration(finding)}`).join('\\n'),\n );\n this.name = 'UnservableBackingServiceDeclarationError';\n this.findings = findings;\n }\n}\n\n/** Refuse, naming every unservable declaration across every environment at once. */\nexport function assertBackingServiceDeclarationsServable(input: {\n envs: ReadonlyArray<{ envName: string; backingServices: BackingServicesEnvConfig | undefined }>;\n servableProviders: ReadonlySet<InfraProvider>;\n}): void {\n const findings = input.envs.flatMap((env) => findUnservableBackingServiceDeclarations({\n envName: env.envName,\n backingServices: env.backingServices,\n servableProviders: input.servableProviders,\n }));\n if (findings.length > 0) throw new UnservableBackingServiceDeclarationError(findings);\n}\n"]}
1
+ {"version":3,"file":"backing-service-servability.js","sourceRoot":"","sources":["../../../../src/project-config/shared/backing-service-servability.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,0CAA0C;AAC1C,MAAM,CAAN,IAAY,8BAmBX;AAnBD,WAAY,8BAA8B;IACxC,4FAA4F;IAC5F,6DAA2B,CAAA;IAC3B;;;OAGG;IACH,yEAAuC,CAAA;IACvC;;;;;;;;;OASG;IACH,+EAA6C,CAAA;AAC/C,CAAC,EAnBW,8BAA8B,KAA9B,8BAA8B,QAmBzC;AAcD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAuE;IACvH,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,oBAAoB,CAAC,IAAI,EAAE;IACrG,CAAC,aAAa,CAAC,aAAa,CAAC,EAAE,EAAE,IAAI,EAAE,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE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,CAAC","sourcesContent":["import {\n BackingServiceKind,\n BackingServiceSource,\n resolveInfraProvider,\n type BackingServicesEnvConfig,\n} from './backing-services.schemas';\nimport { InfraProvider } from './infra-providers.schemas';\n\n/**\n * Is a `backingServices` declaration one the platform can actually SERVE?\n *\n * ## The defect this closes (#1693)\n *\n * A declaration used to be accepted when it merely parsed. Two classes of parseable declaration serve\n * nothing, and both passed `wildo config sync` and `wildo lock check` in silence:\n *\n * 1. **It resolves to no provider** — `redis: { source: MANAGED }`, a managed MongoDB brand other\n * than `'atlas'`. The lockfile materializer skipped the kind without a word.\n * 2. **It resolves to a provider no module can serve** — the seven managed PostgreSQL entries have no\n * module, and `AWS_S3` has one whose credential broker does not exist yet (#14). The materializer\n * fell back to hashing the authored entry, so the lockfile recorded a selection nothing executes.\n *\n * Neither \"provisions nothing\". The generators honour `source`, so a MANAGED cache gets no\n * self-hosted workload — while apps-manager, which named its modules and was never told the\n * declaration, minted the application's credential on the PLATFORM's own server. The application\n * received a credential for a server it never connects to. Since #1692 apps-manager is told, dispatches\n * on the declared provider and refuses one it cannot serve\n * ({@link findBackingServiceDeclarationsThePlatformCannotServe}); this offline check stops the same\n * declarations before they reach it.\n *\n * ## Why the servable set is an INPUT here, not computed here\n *\n * Servability is a property of the provider-module CATALOGUE (`@wildo-ai/platform-infra-providers`),\n * and that package depends on this one — never the reverse. So the catalogue derives the set\n * (`collectServableInfraProviders()`) and every caller hands it in. The check itself lives here, once,\n * so `wildo config validate`, `wildo config sync` and `wildo lock check` cannot disagree about which\n * declarations they refuse: the two lockfile projections reach it through `materializeInfraSection`,\n * which REQUIRES the set, and `config validate` calls {@link findUnservableBackingServiceDeclarations}\n * directly.\n *\n * ## No opt-out, deliberately\n *\n * An earlier design offered `acceptUnresolved: true`. It was dropped: it makes a known-broken\n * configuration representable, which is exactly a setting that looks like a control and does\n * nothing. A kind becomes declarable as `MANAGED` in the same change that adds the module serving it.\n */\n\n/** Why a declaration cannot be served. */\nexport enum BackingServiceUnservableReason {\n /** The `(kind, source, provider)` tuple names no `InfraProvider` catalogue entry at all. */\n NO_PROVIDER = 'no-provider',\n /**\n * It names a catalogue entry, but no provider module serves that entry — either none exists, or the\n * one that exists declares `unservableReason`.\n */\n NO_SERVING_MODULE = 'no-serving-module',\n /**\n * A module serves the entry, but THIS platform holds no administrative credentials for it — an Atlas\n * declaration on a platform with no Atlas API key, a self-hosted PostgreSQL declaration on a platform with\n * no PostgreSQL admin (#1692).\n *\n * Only apps-manager can know this: which admin clients a platform holds is platform configuration, and one\n * platform hosts many applications. The offline checks (`config validate` / `config sync` / `lock check`)\n * never produce it. apps-manager refuses the registration rather than minting on another provider — a\n * substitution would hand the application a credential for a server it does not connect to.\n */\n NOT_HELD_BY_PLATFORM = 'not-held-by-platform',\n}\n\n/** The authored half of a backing-service entry that decides which provider it names. */\nexport interface BackingServiceProviderSelection {\n source: BackingServiceSource;\n /** The brand, when the kind distinguishes several. See `resolveInfraProvider` for the vocabulary. */\n provider?: string;\n}\n\n/** The simplest authored declaration that selects one catalogue entry. */\nexport interface InfraProviderCanonicalDeclaration extends BackingServiceProviderSelection {\n kind: BackingServiceKind;\n}\n\n/**\n * For every `InfraProvider`, the SIMPLEST declaration that selects it — the inverse of\n * `resolveInfraProvider`, used to tell an author what they may write instead.\n *\n * Total over `InfraProvider` (a `Record`), so a provider added to the catalogue is a compile error\n * here until someone states how it is declared. That the inverse is truthful is pinned by a test that\n * resolves every row back through `resolveInfraProvider`; it is never trusted by construction.\n */\nexport const INFRA_PROVIDER_CANONICAL_DECLARATIONS: Readonly<Record<InfraProvider, InfraProviderCanonicalDeclaration>> = {\n [InfraProvider.MONGODB_SELF]: { kind: BackingServiceKind.MONGODB, source: BackingServiceSource.SELF },\n [InfraProvider.MONGODB_ATLAS]: { kind: BackingServiceKind.MONGODB, source: BackingServiceSource.MANAGED, provider: 'atlas' },\n [InfraProvider.POSTGRES_SELF]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.SELF },\n [InfraProvider.POSTGRES_MANAGED]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED },\n [InfraProvider.POSTGRES_AWS_RDS]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'aws-rds' },\n [InfraProvider.POSTGRES_GCP_CLOUD_SQL]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'gcp-cloud-sql' },\n [InfraProvider.POSTGRES_AZURE_DATABASE]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'azure-database' },\n [InfraProvider.POSTGRES_SUPABASE]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'supabase' },\n [InfraProvider.POSTGRES_NEON]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },\n [InfraProvider.POSTGRES_RENDER]: { kind: BackingServiceKind.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'render' },\n [InfraProvider.REDIS_SELF]: { kind: BackingServiceKind.REDIS, source: BackingServiceSource.SELF },\n [InfraProvider.RABBITMQ_SELF]: { kind: BackingServiceKind.RABBITMQ, source: BackingServiceSource.SELF },\n [InfraProvider.SEAWEEDFS_SELF]: { kind: BackingServiceKind.S3, source: BackingServiceSource.SELF },\n [InfraProvider.AWS_S3]: { kind: BackingServiceKind.S3, source: BackingServiceSource.MANAGED },\n [InfraProvider.CLAMAV_SELF]: { kind: BackingServiceKind.CLAMAV, source: BackingServiceSource.SELF },\n [InfraProvider.IMMUDB_SELF]: { kind: BackingServiceKind.IMMUDB, source: BackingServiceSource.SELF },\n};\n\n/** One declaration the platform cannot serve, with everything the refusal message needs. */\nexport interface UnservableBackingServiceDeclaration {\n envName: string;\n kind: BackingServiceKind;\n declared: BackingServiceProviderSelection;\n reason: BackingServiceUnservableReason;\n /** The catalogue entry it names, when it names one (`NO_SERVING_MODULE`). */\n resolvedProvider?: InfraProvider;\n /** The simplest servable declarations for the same kind — what the author may write instead. */\n servableAlternatives: ReadonlyArray<BackingServiceProviderSelection>;\n}\n\n/**\n * The servable declarations for one kind, one per servable provider, in catalogue order.\n *\n * Empty when nothing can serve the kind — then the only servable choice is not to declare it.\n */\nexport function servableBackingServiceDeclarations(\n kind: BackingServiceKind,\n servableProviders: ReadonlySet<InfraProvider>,\n): ReadonlyArray<BackingServiceProviderSelection> {\n const alternatives: BackingServiceProviderSelection[] = [];\n for (const provider of Object.values(InfraProvider)) {\n if (!servableProviders.has(provider)) continue;\n const declaration = INFRA_PROVIDER_CANONICAL_DECLARATIONS[provider];\n if (declaration.kind !== kind) continue;\n alternatives.push({\n source: declaration.source,\n ...(declaration.provider === undefined ? {} : { provider: declaration.provider }),\n });\n }\n return alternatives;\n}\n\n/**\n * Every declaration in one environment that the platform cannot serve. Empty means every declared\n * kind resolves to a provider in `servableProviders`.\n *\n * Pure. `servableProviders` comes from `collectServableInfraProviders()` in\n * `@wildo-ai/platform-infra-providers`; see the file header for why it is an input.\n */\nexport function findUnservableBackingServiceDeclarations(input: {\n envName: string;\n backingServices: BackingServicesEnvConfig | undefined;\n servableProviders: ReadonlySet<InfraProvider>;\n}): UnservableBackingServiceDeclaration[] {\n const findings: UnservableBackingServiceDeclaration[] = [];\n if (!input.backingServices) return findings;\n\n for (const kind of Object.values(BackingServiceKind)) {\n const entry = input.backingServices[kind];\n if (!entry) continue;\n const finding = classifyBackingServiceDeclaration({\n envName: input.envName,\n kind,\n declared: entry,\n servableProviders: input.servableProviders,\n });\n if (finding) findings.push(finding);\n }\n return findings;\n}\n\n/**\n * One kind's declaration against a servable set: `undefined` when it resolves to a provider in the set,\n * otherwise the finding. The single place the resolve-then-check rule lives, so the offline checks above and\n * apps-manager's registration check below cannot disagree about what a declaration names.\n */\nfunction classifyBackingServiceDeclaration(input: {\n envName: string;\n kind: BackingServiceKind;\n declared: BackingServiceProviderSelection;\n servableProviders: ReadonlySet<InfraProvider>;\n}): UnservableBackingServiceDeclaration | undefined {\n const declared: BackingServiceProviderSelection = {\n source: input.declared.source,\n ...(input.declared.provider === undefined ? {} : { provider: input.declared.provider }),\n };\n const resolvedProvider = resolveInfraProvider(input.kind, declared.source, declared.provider);\n if (resolvedProvider !== undefined && input.servableProviders.has(resolvedProvider)) return undefined;\n return {\n envName: input.envName,\n kind: input.kind,\n declared,\n reason: resolvedProvider === undefined\n ? BackingServiceUnservableReason.NO_PROVIDER\n : BackingServiceUnservableReason.NO_SERVING_MODULE,\n ...(resolvedProvider === undefined ? {} : { resolvedProvider }),\n servableAlternatives: servableBackingServiceDeclarations(input.kind, input.servableProviders),\n };\n}\n\n/**\n * The declarations an application REGISTERS with that THIS platform cannot serve — apps-manager's half of\n * the servability check (#1692; the offline half is {@link findUnservableBackingServiceDeclarations}, #1693).\n *\n * Two sets, because they answer different questions:\n *\n * - `catalogueServableProviders` — what the provider-module catalogue can serve at all\n * (`collectServableInfraProviders()`). Every DECLARED kind is checked against it: a declaration the\n * catalogue refuses is refused here too, even if an older CLI let it through.\n * - `platformServableProviders` — the subset this platform holds what it needs for (an admin client for a\n * provider apps-manager mints on, nothing for one it does not). Checked only for `mintedKinds`, the kinds\n * apps-manager mints a credential on for THIS application: an environment's declaration also names stores\n * only the platform uses, and refusing an application over an admin client it would never use would be a\n * refusal with nothing behind it.\n *\n * A catalogue finding keeps its catalogue reason; a provider the catalogue serves and this platform does not\n * is {@link BackingServiceUnservableReason.NOT_HELD_BY_PLATFORM}. Alternatives are always what THIS platform\n * can serve, because that is what the author can actually switch to here.\n *\n * Pure; apps-manager supplies both sets. An absent `declaredProviders` yields nothing — the previous\n * behaviour for every kind (see `ApplicationBackingServiceProviderDeclarations`).\n */\nexport function findBackingServiceDeclarationsThePlatformCannotServe(input: {\n envName: string;\n declaredProviders: Partial<Record<BackingServiceKind, BackingServiceProviderSelection>> | undefined;\n mintedKinds: ReadonlySet<BackingServiceKind>;\n catalogueServableProviders: ReadonlySet<InfraProvider>;\n platformServableProviders: ReadonlySet<InfraProvider>;\n}): UnservableBackingServiceDeclaration[] {\n const findings: UnservableBackingServiceDeclaration[] = [];\n if (!input.declaredProviders) return findings;\n const platformServable = new Set(\n [...input.platformServableProviders].filter((provider) => input.catalogueServableProviders.has(provider)),\n );\n\n for (const kind of Object.values(BackingServiceKind)) {\n const declared = input.declaredProviders[kind];\n if (!declared) continue;\n const catalogueFinding = classifyBackingServiceDeclaration({\n envName: input.envName,\n kind,\n declared,\n servableProviders: input.catalogueServableProviders,\n });\n if (catalogueFinding) {\n findings.push({ ...catalogueFinding, servableAlternatives: servableBackingServiceDeclarations(kind, platformServable) });\n continue;\n }\n if (!input.mintedKinds.has(kind)) continue;\n const platformFinding = classifyBackingServiceDeclaration({ envName: input.envName, kind, declared, servableProviders: platformServable });\n if (platformFinding) findings.push({ ...platformFinding, reason: BackingServiceUnservableReason.NOT_HELD_BY_PLATFORM });\n }\n return findings;\n}\n\nfunction describeUnservableReason(finding: UnservableBackingServiceDeclaration): string {\n switch (finding.reason) {\n case BackingServiceUnservableReason.NO_PROVIDER:\n return 'names no infrastructure provider';\n case BackingServiceUnservableReason.NO_SERVING_MODULE:\n return `names provider '${finding.resolvedProvider}', which no provider module can serve yet`;\n case BackingServiceUnservableReason.NOT_HELD_BY_PLATFORM:\n return `names provider '${finding.resolvedProvider}', for which this platform holds no administrative credentials, `\n + 'so apps-manager cannot mint on it (which admin clients a platform holds is platform configuration)';\n }\n}\n\nfunction renderSelection(selection: BackingServiceProviderSelection): string {\n return selection.provider === undefined\n ? `{ source: '${selection.source}' }`\n : `{ source: '${selection.source}', provider: '${selection.provider}' }`;\n}\n\n/**\n * One line per finding: the environment, the kind, what was declared, why it cannot be served, and\n * the declarations that ARE servable for that kind. Shared by every caller so the wording is one.\n */\nexport function describeUnservableBackingServiceDeclaration(finding: UnservableBackingServiceDeclaration): string {\n const why = describeUnservableReason(finding);\n const instead = finding.servableAlternatives.length === 0\n ? 'nothing can serve this kind today, so do not declare it'\n : `servable declarations for '${finding.kind}': ${finding.servableAlternatives.map(renderSelection).join(' | ')}`;\n return `environment '${finding.envName}': backingServices.${finding.kind} ${renderSelection(finding.declared)} ${why}; ${instead}.`;\n}\n\n/** Thrown when a declaration the platform cannot serve reaches a lockfile projection. */\nexport class UnservableBackingServiceDeclarationError extends Error {\n readonly findings: ReadonlyArray<UnservableBackingServiceDeclaration>;\n\n constructor(findings: ReadonlyArray<UnservableBackingServiceDeclaration>) {\n super(\n 'These backing-service declarations cannot be served, so the platform would hand the application '\n + 'a credential for a server it never connects to:\\n'\n + findings.map((finding) => ` - ${describeUnservableBackingServiceDeclaration(finding)}`).join('\\n'),\n );\n this.name = 'UnservableBackingServiceDeclarationError';\n this.findings = findings;\n }\n}\n\n/** Refuse, naming every unservable declaration across every environment at once. */\nexport function assertBackingServiceDeclarationsServable(input: {\n envs: ReadonlyArray<{ envName: string; backingServices: BackingServicesEnvConfig | undefined }>;\n servableProviders: ReadonlySet<InfraProvider>;\n}): void {\n const findings = input.envs.flatMap((env) => findUnservableBackingServiceDeclarations({\n envName: env.envName,\n backingServices: env.backingServices,\n servableProviders: input.servableProviders,\n }));\n if (findings.length > 0) throw new UnservableBackingServiceDeclarationError(findings);\n}\n"]}
@@ -39,7 +39,7 @@ export declare enum BackingServiceKind {
39
39
  *
40
40
  * - `self`: self-hosted (Docker/K8s container managed by the platform,
41
41
  * or operator-managed on-prem). Brands here are open-source
42
- * software names (e.g. MinIO for S3, vanilla Postgres / MongoDB).
42
+ * software names (e.g. SeaweedFS for S3, vanilla Postgres / MongoDB).
43
43
  * - `managed`: external vendor-managed service. Brands here are
44
44
  * vendor names (e.g. `'atlas'` for MongoDB Atlas, `'aws-rds'` for
45
45
  * AWS RDS, `'supabase'` for Supabase Postgres, `'aws'` for AWS S3).
@@ -116,7 +116,7 @@ export declare const RabbitBackingServiceSchema: z.ZodObject<{
116
116
  }, z.core.$strict>;
117
117
  export type RabbitBackingService = z.infer<typeof RabbitBackingServiceSchema>;
118
118
  /**
119
- * S3-compatible backing service (MinIO, Scaleway Object Storage, AWS).
119
+ * S3-compatible backing service (SeaweedFS, Scaleway Object Storage, AWS).
120
120
  *
121
121
  * `endpoint` is a URL (`http://localhost:9000`, `https://s3.eu-west.amazonaws.com`)
122
122
  * — the resolver parses it into host/port. `bucket` is the S3 bucket
@@ -278,9 +278,9 @@ export declare const BackingServiceKindToInfraCapability: Record<BackingServiceK
278
278
  * | `POSTGRESQL` | `MANAGED` | unset or unrecognized | `POSTGRES_MANAGED` (generic fallback) | no — no module |
279
279
  * | `REDIS` | `SELF` | (any) | `REDIS_SELF` | yes |
280
280
  * | `RABBITMQ` | `SELF` | (any) | `RABBITMQ_SELF` | yes |
281
- * | `S3` | (either) | `'minio'` | `MINIO_SELF` | yes |
281
+ * | `S3` | (either) | `'seaweedfs'` | `SEAWEEDFS_SELF` | yes |
282
282
  * | `S3` | (either) | `'aws'` | `AWS_S3` | no — no credential broker for AWS yet |
283
- * | `S3` | `SELF` | unset or unrecognized | `MINIO_SELF` | yes |
283
+ * | `S3` | `SELF` | unset or unrecognized | `SEAWEEDFS_SELF` | yes |
284
284
  * | `S3` | `MANAGED` | unset or unrecognized | `AWS_S3` | no — no credential broker for AWS yet |
285
285
  * | `CLAMAV` | `SELF` | (any) | `CLAMAV_SELF` | yes |
286
286
  * | `IMMUDB` | `SELF` | (any) | `IMMUDB_SELF` | yes — one database and one confined user minted per application (#1696) |
@@ -318,7 +318,7 @@ export declare const BackingServiceKindToInfraCapability: Record<BackingServiceK
318
318
  * **An unrecognised brand is not the same failure on every kind.** On the relational database it
319
319
  * falls back to the generic managed entry (which is not servable, so it is refused all the same). On
320
320
  * the document database, an unknown managed brand resolves to nothing. Object storage recognizes
321
- * minio/aws first, then falls back by source: SELF to MinIO, MANAGED to AWS S3, including
321
+ * seaweedfs/aws first, then falls back by source: SELF to SeaweedFS, MANAGED to AWS S3, including
322
322
  * unrecognized brands.
323
323
  *
324
324
  * **Provider resolution and workload inclusion answer different questions.** Compose and Kubernetes
@@ -1 +1 @@
1
- {"version":3,"file":"backing-services.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/backing-services.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,eAAe,EACf,aAAa,EACd,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;;;;;;;;;;;GAiBG;AACH,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,EAAE,OAAO;IACT,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB;;;;;OAKG;IACH,MAAM,WAAW;CAQlB;AAED;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,OAAO,YAAY;CACpB;AAsDD;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB;;;;;;kBAE3B,CAAC;AACZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB;;;;;;kBAE3B,CAAC;AACZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;;;;;;kBAE9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B;;;;;;kBAE5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;;;;kBAGxB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,qEAAqE;AACrE,eAAO,MAAM,0BAA0B;;;;;kBAA2B,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,0BAA0B;;;;;;kBAE5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAC/B,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,8DAA8D;AAe9D,2HAA2H;AAC3H;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,kBAAkB,EAAE,eAAe,CAQ3F,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,MAAM,GAChB,aAAa,GAAG,SAAS,CA6D3B;AACD,uEAAuE"}
1
+ {"version":3,"file":"backing-services.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/backing-services.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,eAAe,EAC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;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,0BAA0B;;;;;;kBAE5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAC/B,mBAAmB,GACnB,mBAAmB,GACnB,sBAAsB,GACtB,oBAAoB,GACpB,gBAAgB,GAChB,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,8DAA8D;AAe9D,2HAA2H;AAC3H;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,kBAAkB,EAAE,eAAe,CAQ3F,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,kBAAkB,EACxB,MAAM,EAAE,oBAAoB,EAC5B,QAAQ,CAAC,EAAE,MAAM,GAChB,aAAa,GAAG,SAAS,CA6D3B;AACD,uEAAuE"}
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { SEAWEEDFS_BACKING_SERVICE_BRAND } from './object-storage-seaweedfs.js';
2
3
  import { InfraCapability, InfraProvider, } from './infra-providers.schemas.js';
3
4
  /**
4
5
  * The backing-service authoring surface of `wildo.infra.<env>.config.ts`.
@@ -47,7 +48,7 @@ export var BackingServiceKind;
47
48
  *
48
49
  * - `self`: self-hosted (Docker/K8s container managed by the platform,
49
50
  * or operator-managed on-prem). Brands here are open-source
50
- * software names (e.g. MinIO for S3, vanilla Postgres / MongoDB).
51
+ * software names (e.g. SeaweedFS for S3, vanilla Postgres / MongoDB).
51
52
  * - `managed`: external vendor-managed service. Brands here are
52
53
  * vendor names (e.g. `'atlas'` for MongoDB Atlas, `'aws-rds'` for
53
54
  * AWS RDS, `'supabase'` for Supabase Postgres, `'aws'` for AWS S3).
@@ -84,8 +85,8 @@ const BackingServiceBaseSchema = z.object({
84
85
  * `'aws-documentdb'` / …; Postgres: `'aws-rds'` / `'gcp-cloud-sql'`
85
86
  * / `'supabase'` / `'neon'` / `'render'` / `'azure-database'`;
86
87
  * S3: `'aws'` / `'cloudflare-r2'` / …); optional when `source ===
87
- * SELF` (e.g. S3-self-hosted defaults to MinIO; `provider:
88
- * 'minio'` is allowed but redundant).
88
+ * SELF` (e.g. S3-self-hosted defaults to SeaweedFS; `provider:
89
+ * 'seaweedfs'` is allowed but redundant).
89
90
  *
90
91
  * Modeled as `z.string().optional()` rather than per-kind enum
91
92
  * unions to keep this base schema simple — the canonical brand
@@ -156,7 +157,7 @@ export const RabbitBackingServiceSchema = BackingServiceBaseSchema.extend({
156
157
  vhost: z.string().min(1).optional(),
157
158
  }).strict();
158
159
  /**
159
- * S3-compatible backing service (MinIO, Scaleway Object Storage, AWS).
160
+ * S3-compatible backing service (SeaweedFS, Scaleway Object Storage, AWS).
160
161
  *
161
162
  * `endpoint` is a URL (`http://localhost:9000`, `https://s3.eu-west.amazonaws.com`)
162
163
  * — the resolver parses it into host/port. `bucket` is the S3 bucket
@@ -271,9 +272,9 @@ export const BackingServiceKindToInfraCapability = {
271
272
  * | `POSTGRESQL` | `MANAGED` | unset or unrecognized | `POSTGRES_MANAGED` (generic fallback) | no — no module |
272
273
  * | `REDIS` | `SELF` | (any) | `REDIS_SELF` | yes |
273
274
  * | `RABBITMQ` | `SELF` | (any) | `RABBITMQ_SELF` | yes |
274
- * | `S3` | (either) | `'minio'` | `MINIO_SELF` | yes |
275
+ * | `S3` | (either) | `'seaweedfs'` | `SEAWEEDFS_SELF` | yes |
275
276
  * | `S3` | (either) | `'aws'` | `AWS_S3` | no — no credential broker for AWS yet |
276
- * | `S3` | `SELF` | unset or unrecognized | `MINIO_SELF` | yes |
277
+ * | `S3` | `SELF` | unset or unrecognized | `SEAWEEDFS_SELF` | yes |
277
278
  * | `S3` | `MANAGED` | unset or unrecognized | `AWS_S3` | no — no credential broker for AWS yet |
278
279
  * | `CLAMAV` | `SELF` | (any) | `CLAMAV_SELF` | yes |
279
280
  * | `IMMUDB` | `SELF` | (any) | `IMMUDB_SELF` | yes — one database and one confined user minted per application (#1696) |
@@ -311,7 +312,7 @@ export const BackingServiceKindToInfraCapability = {
311
312
  * **An unrecognised brand is not the same failure on every kind.** On the relational database it
312
313
  * falls back to the generic managed entry (which is not servable, so it is refused all the same). On
313
314
  * the document database, an unknown managed brand resolves to nothing. Object storage recognizes
314
- * minio/aws first, then falls back by source: SELF to MinIO, MANAGED to AWS S3, including
315
+ * seaweedfs/aws first, then falls back by source: SELF to SeaweedFS, MANAGED to AWS S3, including
315
316
  * unrecognized brands.
316
317
  *
317
318
  * **Provider resolution and workload inclusion answer different questions.** Compose and Kubernetes
@@ -369,17 +370,17 @@ export function resolveInfraProvider(kind, source, provider) {
369
370
  case BackingServiceKind.S3:
370
371
  // S3 dispatch is brand-first because the protocol is
371
372
  // standardized (S3-compatible) and the same `source` can host
372
- // multiple software stacks — `source: SELF` could be MinIO or
373
+ // multiple software stacks — `source: SELF` could be SeaweedFS or
373
374
  // a self-managed AWS S3 cluster (theoretically). The brand is
374
375
  // the canonical disambiguator.
375
- if (provider === 'minio')
376
- return InfraProvider.MINIO_SELF;
376
+ if (provider === SEAWEEDFS_BACKING_SERVICE_BRAND)
377
+ return InfraProvider.SEAWEEDFS_SELF;
377
378
  if (provider === 'aws')
378
379
  return InfraProvider.AWS_S3;
379
- // Default source-based mapping for unbranded S3 — MinIO is
380
+ // Default source-based mapping for unbranded S3 — SeaweedFS is
380
381
  // the canonical self-hosted; AWS is the canonical managed.
381
382
  if (source === BackingServiceSource.SELF)
382
- return InfraProvider.MINIO_SELF;
383
+ return InfraProvider.SEAWEEDFS_SELF;
383
384
  if (source === BackingServiceSource.MANAGED)
384
385
  return InfraProvider.AWS_S3;
385
386
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"backing-services.schemas.js","sourceRoot":"","sources":["../../../../src/project-config/shared/backing-services.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,eAAe,EACf,aAAa,GACd,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAN,IAAY,kBAqBX;AArBD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,+BAAS,CAAA;IACT,+CAAyB,CAAA;IACzB,uCAAiB,CAAA;IACjB;;;;;OAKG;IACH,uCAAiB,CAAA;IACjB;;;;;;OAMG;AACL,CAAC,EArBW,kBAAkB,KAAlB,kBAAkB,QAqB7B;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,2CAAmB,CAAA;AACrB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;IACpC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtC;;;;;;OAMG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClC;;;;OAIG;IACH,IAAI,EAAE,CAAC,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AAC,IAAI;gBAAE,OAAO,aAAa,CAAC,UAAU,CAAC;YAC1E,IAAI,MAAM,KAAK,oBAAoB,CAAC,OAAO;gBAAE,OAAO,aAAa,CAAC,MAAM,CAAC;YACzE,OAAO,SAAS,CAAC;QACnB,KAAK,kBAAkB,CAAC,MAAM;YAC5B,IAAI,MAAM,KAAK,oBAAoB,CAAC,IAAI;gBAAE,OAAO,aAAa,CAAC,WAAW,CAAC;YAC3E,OAAO,SAAS,CAAC;QACnB,KAAK,kBAAkB,CAAC,MAAM;YAC5B,IAAI,MAAM,KAAK,oBAAoB,CAAC,IAAI;gBAAE,OAAO,aAAa,CAAC,WAAW,CAAC;YAC3E,4GAA4G;YAC5G,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AACD,uEAAuE","sourcesContent":["import { z } from 'zod';\nimport {\n InfraCapability,\n InfraProvider,\n} from './infra-providers.schemas';\n\n/**\n * The backing-service authoring surface of `wildo.infra.<env>.config.ts`.\n *\n * Import from `@wildo-ai/platform-config-lib`. Everything below is what an\n * environment file may declare under `backingServices: { ... }` — the closed kind\n * vocabulary, the hosting-model axis, and the per-kind entry shape. The\n * `InfraCapability` / `InfraProvider` projections further down this file are\n * planner-internal and deliberately outside the anchor: an app author never writes\n * them.\n *\n * Declare a kind ONLY when the environment actually runs it — keys are optional so a\n * flattened app declaration stays truthful about what it enables. Omitting a kind an\n * enabled engine capability depends on is the classic silent-degradation bug: e.g.\n * `COMPLIANCE_AUDIT_TRAIL` without `immudb` leaves the tamper-evident audit store\n * unbacked, which `wildo config sync` reports as a warning per environment.\n *\n * @wildo_source:part:start platform.config.backing-services facet:layer:platform facet:family:infra\n */\nexport enum BackingServiceKind {\n MONGODB = 'mongodb',\n REDIS = 'redis',\n RABBITMQ = 'rabbitmq',\n S3 = 's3',\n POSTGRESQL = 'postgresql',\n CLAMAV = 'clamav',\n /**\n * immudb — an immutable, cryptographically-verifiable database used as a\n * tamper-evident audit-log store (fills the `AUDIT_LOG_STORAGE` capability).\n * A stateful DB: a data volume in dev, self-hosted in prod. (Codenotary no longer offers its hosted\n * immudb Vault, so there is no managed form to choose.)\n */\n IMMUDB = 'immudb',\n /*\n * `backup` was WITHDRAWN 2026-09-26 (#1693), on the #476 precedent that withdrew\n * `metrics-telemetry`: it was declarable, resolved to no provider, rendered no workload, and\n * nothing anywhere read it — a field an author could fill in that did nothing. Backup itself is\n * designed in #8, which decides what an environment declares for it. Do not re-add a kind here\n * before something can serve it: `wildo config sync` refuses a declaration no provider serves.\n */\n}\n\n/**\n * Hosting model of a backing service instance — the orthogonal axis to\n * the **brand** (which is captured by the per-kind `provider` field).\n *\n * - `self`: self-hosted (Docker/K8s container managed by the platform,\n * or operator-managed on-prem). Brands here are open-source\n * software names (e.g. MinIO for S3, vanilla Postgres / MongoDB).\n * - `managed`: external vendor-managed service. Brands here are\n * vendor names (e.g. `'atlas'` for MongoDB Atlas, `'aws-rds'` for\n * AWS RDS, `'supabase'` for Supabase Postgres, `'aws'` for AWS S3).\n *\n * There is no `ATLAS` source (removed 2026-05-07): MongoDB Atlas is\n * `source: MANAGED, provider: 'atlas'`. Any kind can be brand-aware\n * when the managed market has multiple vendors — Postgres in particular\n * (RDS / GCP Cloud SQL / Supabase / Neon / Render / Azure).\n */\nexport enum BackingServiceSource {\n SELF = 'self',\n MANAGED = 'managed',\n}\n\n/**\n * Common fields every backing-service entry shares.\n *\n * Per-kind extensions add the fields that are SEMANTICALLY meaningful\n * for that kind only. The previous shared\n * `BackingServiceEnvConfigSchema` collapsed `database` into a\n * `union(int, string)` and put `name` only on Mongo; both compromised\n * the framework-mindset rule that \"every field must carry its semantic\n * weight\". The split below means a typo like `redis: { database:\n * 'staging' }` (string on a kind that needs an integer DB index) is\n * rejected at parse time instead of crashing the runtime client at\n * connect time.\n */\nconst BackingServiceBaseSchema = z.object({\n source: z.enum(BackingServiceSource),\n /**\n * Brand of the backing service. Orthogonal to `source` (hosting\n * model). Required-in-spirit when `source === MANAGED` and the\n * managed market has multiple vendors (Mongo: `'atlas'` /\n * `'aws-documentdb'` / …; Postgres: `'aws-rds'` / `'gcp-cloud-sql'`\n * / `'supabase'` / `'neon'` / `'render'` / `'azure-database'`;\n * S3: `'aws'` / `'cloudflare-r2'` / …); optional when `source ===\n * SELF` (e.g. S3-self-hosted defaults to MinIO; `provider:\n * 'minio'` is allowed but redundant).\n *\n * Modeled as `z.string().optional()` rather than per-kind enum\n * unions to keep this base schema simple — the canonical brand\n * vocabulary lives in `resolveInfraProvider`'s dispatch table\n * (each kind documents which brand strings it recognizes; unknown\n * brands fall back to the kind's generic `<KIND>_MANAGED` /\n * `<KIND>_SELF` entry where one exists, otherwise return\n * `undefined`).\n *\n * Since 2026-05-07 this applies to every brand-aware kind, not only S3.\n */\n provider: z.string().min(1).optional(),\n /**\n * Override the catalog-derived hostname for this kind. Honored at\n * `HOST_FACING` perspective (always) and at `CONTAINER_INTERNAL` for\n * `MANAGED` sources. SELF + `CONTAINER_INTERNAL` keeps the catalog\n * container name because that is the only DNS the container network\n * can resolve.\n */\n host: z.string().min(1).optional(),\n /**\n * Override the catalog-derived listen port. Threaded into both\n * docker-compose `<authored>:<authored>` publish and the per-app\n * env-vars (`<KIND>_PORT`).\n */\n port: z.number().int().positive().optional(),\n}).strict();\n\n/**\n * MongoDB backing service. `database` is the database NAME (string).\n *\n * Mongo's connection URL has the shape `mongodb://host:port/<database>`\n * — this string corresponds to the path segment. The field was once\n * `name`; it is `database` so all\n * data-store kinds use the same property name for the same concept\n * (vs. Postgres which already used `database`).\n */\nexport const MongoBackingServiceSchema = BackingServiceBaseSchema.extend({\n database: z.string().min(1).optional(),\n}).strict();\nexport type MongoBackingService = z.infer<typeof MongoBackingServiceSchema>;\n\n/**\n * Redis backing service. `database` is the LOGICAL DB INDEX (integer).\n *\n * Redis exposes 16 logical databases (0–15) on a single connection.\n * Authoring a string here (e.g. `'staging'`) would silently parse on\n * the pre-3 union schema and crash ioredis at connect; the integer\n * constraint with `max(15)` fails loud at parse time.\n */\nexport const RedisBackingServiceSchema = BackingServiceBaseSchema.extend({\n database: z.number().int().min(0).max(15).optional(),\n}).strict();\nexport type RedisBackingService = z.infer<typeof RedisBackingServiceSchema>;\n\n/**\n * PostgreSQL backing service. `database` is the database NAME (string).\n *\n * Symmetric with `MongoBackingService.database` — both are the\n * database identifier in their respective connection URLs.\n */\nexport const PostgresBackingServiceSchema = BackingServiceBaseSchema.extend({\n database: z.string().min(1).optional(),\n}).strict();\nexport type PostgresBackingService = z.infer<typeof PostgresBackingServiceSchema>;\n\n/**\n * RabbitMQ backing service. `vhost` is the RabbitMQ virtual host.\n *\n * AMQP virtual hosts isolate exchange/queue namespaces inside a single\n * broker. NOT a database — RabbitMQ has no DB concept — so the field\n * is intentionally NOT named `database`.\n */\nexport const RabbitBackingServiceSchema = BackingServiceBaseSchema.extend({\n vhost: z.string().min(1).optional(),\n}).strict();\nexport type RabbitBackingService = z.infer<typeof RabbitBackingServiceSchema>;\n\n/**\n * S3-compatible backing service (MinIO, Scaleway Object Storage, AWS).\n *\n * `endpoint` is a URL (`http://localhost:9000`, `https://s3.eu-west.amazonaws.com`)\n * — the resolver parses it into host/port. `bucket` is the S3 bucket\n * name. NOT a database — S3 has no DB concept.\n */\nexport const S3BackingServiceSchema = BackingServiceBaseSchema.extend({\n endpoint: z.string().min(1).optional(),\n bucket: z.string().min(1).optional(),\n}).strict();\nexport type S3BackingService = z.infer<typeof S3BackingServiceSchema>;\n\n/** ClamAV anti-virus daemon. Stateless, no database/vhost/bucket. */\nexport const ClamAvBackingServiceSchema = BackingServiceBaseSchema;\nexport type ClamAvBackingService = z.infer<typeof ClamAvBackingServiceSchema>;\n\n/**\n * immudb backing service (tamper-evident audit-log store). A stateful DB.\n *\n * On `source: SELF` the credentials are MINTED, never authored (#1696): the platform\n * gives each application its OWN immudb database and its OWN user, which can write that\n * database and nothing else, and delivers both with the application's platform secrets.\n * The name is derived from the application and kept across re-registrations, so\n * `database` is not read for a self-hosted store; it names the database of a MANAGED\n * one.\n *\n * Declare this in EVERY environment where the `COMPLIANCE_AUDIT_TRAIL` engine\n * capability is enabled. `wildo config sync` warns per environment when the audit\n * capability is on but no environment declares an audit store, and the audit client\n * then has nowhere tamper-evident to write.\n *\n * You do NOT author the state-signing keypair that makes the store's\n * whole-server-substitution defense work. The framework provisions it (private half\n * mounted into a `source: SELF` immudb via `--signingKey`, public half pinned by the\n * audit client as `IMMUDB_STATE_PUBLIC_KEY`) — declaring the service is the whole job.\n *\n * @example\n * ```ts\n * backingServices: {\n * immudb: { source: BackingServiceSource.SELF },\n * }\n * ```\n */\nexport const ImmudbBackingServiceSchema = BackingServiceBaseSchema.extend({\n database: z.string().min(1).optional(),\n}).strict();\nexport type ImmudbBackingService = z.infer<typeof ImmudbBackingServiceSchema>;\n\n/**\n * Discriminated UNION over all backing-service kinds. Used by the\n * `ServiceAddressResolver` and helpers that accept any kind and read\n * only base fields (`source`, `host`, `port`). Consumers that need\n * kind-specific fields MUST narrow first (e.g. via the per-kind type\n * exports above).\n */\nexport type BackingServiceEnvConfig =\n | MongoBackingService\n | RedisBackingService\n | PostgresBackingService\n | RabbitBackingService\n | S3BackingService\n | ClamAvBackingService\n | ImmudbBackingService;\n\n/**\n * Per-environment backing services config (source for each service).\n * Used in environment-specific infra descriptors.\n *\n * Keys stay optional because an app-owned environment only needs to declare the\n * backing services it actually enables. Requiring the full enum-keyed record\n * would force disabled services (for example `postgresql`) into every env file\n * and breaks truthful flattened targeted-app declarations.\n */\nexport const BackingServicesEnvConfigSchema = z.object({\n [BackingServiceKind.MONGODB]: MongoBackingServiceSchema.optional(),\n [BackingServiceKind.REDIS]: RedisBackingServiceSchema.optional(),\n [BackingServiceKind.RABBITMQ]: RabbitBackingServiceSchema.optional(),\n [BackingServiceKind.S3]: S3BackingServiceSchema.optional(),\n [BackingServiceKind.POSTGRESQL]: PostgresBackingServiceSchema.optional(),\n [BackingServiceKind.CLAMAV]: ClamAvBackingServiceSchema.optional(),\n [BackingServiceKind.IMMUDB]: ImmudbBackingServiceSchema.optional(),\n}).strict();\nexport type BackingServicesEnvConfig = z.infer<typeof BackingServicesEnvConfigSchema>;\n/** @wildo_source:part:end platform.config.backing-services */\n\n// =============================================================================\n// BackingServiceKind ↔ InfraCapability / InfraProvider projections\n// =============================================================================\n//\n// Decided 2026-05-06: `BackingServicesEnvConfig`\n// IS the canonical per-env infra-selection authoring surface. The\n// `InfraCapability` / `InfraProvider` enums are the planner's projection\n// vocabulary (used by `InfraProviderModule.supportedCapabilities`,\n// `wildo-saas.lock.json sections.infra` keying, and any tooling that\n// walks \"what infra is selected per env\"). The mappings below are the\n// single source of truth for that projection — no other code may\n// reconstruct them locally.\n\n/** @wildo_source:part:start platform.config.infra-provider-resolution facet:layer:platform facet:audience:app-developer */\n/**\n * `BackingServiceKind` → `InfraCapability`. Every extension to `BackingServiceKind` MUST extend this\n * map in the same commit, otherwise the planner cannot project the new kind to its capability slot.\n *\n * INJECTIVE, not bijective — and the difference is a real property of the model rather than a gap.\n * A capability may be granted to a runtime without any environment declaring a backing service for\n * it; see {@link RUNTIME_GRANTED_INFRA_CAPABILITIES} for the ones that are, and why.\n */\nexport const BackingServiceKindToInfraCapability: Record<BackingServiceKind, InfraCapability> = {\n [BackingServiceKind.MONGODB]: InfraCapability.DOCUMENT_DATABASE,\n [BackingServiceKind.POSTGRESQL]: InfraCapability.RELATIONAL_DATABASE,\n [BackingServiceKind.RABBITMQ]: InfraCapability.QUEUING_SYSTEM,\n [BackingServiceKind.REDIS]: InfraCapability.CACHE_MANAGER,\n [BackingServiceKind.S3]: InfraCapability.OBJECT_STORAGE,\n [BackingServiceKind.CLAMAV]: InfraCapability.ANTIVIRUS_SCANNING,\n [BackingServiceKind.IMMUDB]: InfraCapability.AUDIT_LOG_STORAGE,\n};\n\n/**\n * Project `(BackingServiceKind, source, provider?)` → `InfraProvider`.\n *\n * The three-axis dispatch (kind × hosting-model × brand) generalizes\n * the source/brand split across all kinds (since 2026-05-07;\n * before that it was source-only, with Atlas as a special source value).\n *\n * **Brand vocabulary** per kind (`provider` field on the authored\n * `BackingService<X>Schema`):\n *\n * | Kind | source | provider | InfraProvider | Servable today |\n * |---|---|---|---|---|\n * | `MONGODB` | `SELF` | (any) | `MONGODB_SELF` | yes |\n * | `MONGODB` | `MANAGED` | `'atlas'` | `MONGODB_ATLAS` | yes |\n * | `POSTGRESQL` | `SELF` | (any) | `POSTGRES_SELF` | yes |\n * | `POSTGRESQL` | `MANAGED` | `'aws-rds'` | `POSTGRES_AWS_RDS` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'gcp-cloud-sql'` | `POSTGRES_GCP_CLOUD_SQL` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'azure-database'` | `POSTGRES_AZURE_DATABASE` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'supabase'` | `POSTGRES_SUPABASE` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'neon'` | `POSTGRES_NEON` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'render'` | `POSTGRES_RENDER` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | unset or unrecognized | `POSTGRES_MANAGED` (generic fallback) | no — no module |\n * | `REDIS` | `SELF` | (any) | `REDIS_SELF` | yes |\n * | `RABBITMQ` | `SELF` | (any) | `RABBITMQ_SELF` | yes |\n * | `S3` | (either) | `'minio'` | `MINIO_SELF` | yes |\n * | `S3` | (either) | `'aws'` | `AWS_S3` | no — no credential broker for AWS yet |\n * | `S3` | `SELF` | unset or unrecognized | `MINIO_SELF` | yes |\n * | `S3` | `MANAGED` | unset or unrecognized | `AWS_S3` | no — no credential broker for AWS yet |\n * | `CLAMAV` | `SELF` | (any) | `CLAMAV_SELF` | yes |\n * | `IMMUDB` | `SELF` | (any) | `IMMUDB_SELF` | yes — one database and one confined user minted per application (#1696) |\n *\n * Returns `undefined` for combinations not in the table: a managed cache, broker, antivirus scanner\n * or audit store, and a managed MongoDB under any brand other than `'atlas'`. PostgreSQL has a\n * generic managed fallback; S3 uses brand-first resolution, then source-based defaults.\n *\n * ## Resolving is not the same as being servable\n *\n * This function answers only \"which catalogue entry does this declaration NAME\". Whether the\n * platform can actually deliver that entry — mint the application's credential on the server the\n * application connects to — is a separate question, answered by {@link findUnservableBackingServiceDeclarations}\n * against the provider-module catalogue. A declaration that resolves to nothing, OR to an entry no\n * module can serve (the seven managed PostgreSQL entries, and `AWS_S3` until its credential broker\n * exists), is REFUSED by `wildo config validate`, `wildo config sync` and `wildo lock check`, with a\n * message naming the declarations that ARE servable for that kind.\n *\n * The same `(source, provider)` pair travels to apps-manager at every registration, and apps-manager\n * resolves it with THIS function and mints the application's credentials on the result — so the provider\n * the lockfile records and the provider a credential is minted on are one answer. It also refuses a\n * provider the platform itself holds no administrative credentials for (an Atlas declaration on a\n * platform with no Atlas API key); which providers a platform can serve is platform configuration.\n *\n * ## What this means when you author an environment\n *\n * **`MANAGED` reaches almost nothing today.** Of the managed rows in the table above, the only one\n * the platform serves is MongoDB Atlas (`{ source: MANAGED, provider: 'atlas' }`). Every other kind\n * is declared `{ source: SELF }`. The managed PostgreSQL brands and AWS S3 are catalogue entries a\n * module will serve later, not choices you can make now — a kind becomes declarable as `MANAGED` in\n * the same change that adds the module serving it, and there is deliberately no opt-out: a\n * configuration the platform cannot serve would receive a credential for a server the application\n * never connects to.\n *\n * **An unrecognised brand is not the same failure on every kind.** On the relational database it\n * falls back to the generic managed entry (which is not servable, so it is refused all the same). On\n * the document database, an unknown managed brand resolves to nothing. Object storage recognizes\n * minio/aws first, then falls back by source: SELF to MinIO, MANAGED to AWS S3, including\n * unrecognized brands.\n *\n * **Provider resolution and workload inclusion answer different questions.** Compose and Kubernetes\n * both use the same per-kind inclusion policy, separately from catalogue resolution. Cache, broker\n * and S3 default to self-hosted unless explicitly MANAGED; ClamAV and immudb require explicit SELF.\n * MongoDB and PostgreSQL also include the platform database requirement: an application-level\n * managed choice does not remove a self-hosted database still needed by the platform. Do not infer\n * workload inclusion from this provider resolver.\n */\nexport function resolveInfraProvider(\n kind: BackingServiceKind,\n source: BackingServiceSource,\n provider?: string,\n): InfraProvider | undefined {\n switch (kind) {\n case BackingServiceKind.MONGODB:\n if (source === BackingServiceSource.SELF) return InfraProvider.MONGODB_SELF;\n if (source === BackingServiceSource.MANAGED && provider === 'atlas') return InfraProvider.MONGODB_ATLAS;\n // Other Mongo managed brands (e.g., AWS DocumentDB) — extend\n // the `InfraProvider` enum + this branch in the same slice\n // that adds the first concrete consumer.\n return undefined;\n case BackingServiceKind.POSTGRESQL:\n if (source === BackingServiceSource.SELF) return InfraProvider.POSTGRES_SELF;\n if (source === BackingServiceSource.MANAGED) {\n switch (provider) {\n case 'aws-rds': return InfraProvider.POSTGRES_AWS_RDS;\n case 'gcp-cloud-sql': return InfraProvider.POSTGRES_GCP_CLOUD_SQL;\n case 'azure-database': return InfraProvider.POSTGRES_AZURE_DATABASE;\n case 'supabase': return InfraProvider.POSTGRES_SUPABASE;\n case 'neon': return InfraProvider.POSTGRES_NEON;\n case 'render': return InfraProvider.POSTGRES_RENDER;\n // Generic fallback when the operator has authored\n // `source: MANAGED` without naming a brand (or with an\n // unrecognized brand). Resolving it NAMES the generic\n // catalogue entry; it does not make it servable. No module\n // serves any managed PostgreSQL entry yet, so every one of\n // these is refused by the servability check (#1693) rather\n // than recorded in the lockfile as a selection nothing runs.\n default: return InfraProvider.POSTGRES_MANAGED;\n }\n }\n return undefined;\n case BackingServiceKind.REDIS:\n if (source === BackingServiceSource.SELF) return InfraProvider.REDIS_SELF;\n // Managed Redis brands (ElastiCache, Upstash, Redis Cloud, …)\n // — not catalogued yet; future expansion.\n return undefined;\n case BackingServiceKind.RABBITMQ:\n if (source === BackingServiceSource.SELF) return InfraProvider.RABBITMQ_SELF;\n // Managed RabbitMQ brands (CloudAMQP, AWS MQ, …) —\n // not catalogued yet; future expansion.\n return undefined;\n case BackingServiceKind.S3:\n // S3 dispatch is brand-first because the protocol is\n // standardized (S3-compatible) and the same `source` can host\n // multiple software stacks — `source: SELF` could be MinIO or\n // a self-managed AWS S3 cluster (theoretically). The brand is\n // the canonical disambiguator.\n if (provider === 'minio') return InfraProvider.MINIO_SELF;\n if (provider === 'aws') return InfraProvider.AWS_S3;\n // Default source-based mapping for unbranded S3 — MinIO is\n // the canonical self-hosted; AWS is the canonical managed.\n if (source === BackingServiceSource.SELF) return InfraProvider.MINIO_SELF;\n if (source === BackingServiceSource.MANAGED) return InfraProvider.AWS_S3;\n return undefined;\n case BackingServiceKind.CLAMAV:\n if (source === BackingServiceSource.SELF) return InfraProvider.CLAMAV_SELF;\n return undefined;\n case BackingServiceKind.IMMUDB:\n if (source === BackingServiceSource.SELF) return InfraProvider.IMMUDB_SELF;\n // No managed immudb: Codenotary no longer offers its hosted immudb Vault (re-researched 2026-11-06, #2518).\n return undefined;\n }\n}\n/** @wildo_source:part:end platform.config.infra-provider-resolution */\n"]}
1
+ {"version":3,"file":"backing-services.schemas.js","sourceRoot":"","sources":["../../../../src/project-config/shared/backing-services.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EACL,eAAe,EACf,aAAa,GACd,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAN,IAAY,kBAqBX;AArBD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,+BAAS,CAAA;IACT,+CAAyB,CAAA;IACzB,uCAAiB,CAAA;IACjB;;;;;OAKG;IACH,uCAAiB,CAAA;IACjB;;;;;;OAMG;AACL,CAAC,EArBW,kBAAkB,KAAlB,kBAAkB,QAqB7B;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,2CAAmB,CAAA;AACrB,CAAC,EAHW,oB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KAAK,oBAAoB,CAAC,IAAI;gBAAE,OAAO,aAAa,CAAC,aAAa,CAAC;YAC7E,mDAAmD;YACnD,wCAAwC;YACxC,OAAO,SAAS,CAAC;QACnB,KAAK,kBAAkB,CAAC,EAAE;YACxB,qDAAqD;YACrD,8DAA8D;YAC9D,kEAAkE;YAClE,8DAA8D;YAC9D,+BAA+B;YAC/B,IAAI,QAAQ,KAAK,+BAA+B;gBAAE,OAAO,aAAa,CAAC,cAAc,CAAC;YACtF,IAAI,QAAQ,KAAK,KAAK;gBAAE,OAAO,aAAa,CAAC,MAAM,CAAC;YACpD,+DAA+D;YAC/D,2DAA2D;YAC3D,IAAI,MAAM,KAAK,oBAAoB,CAAC,IAAI;gBAAE,OAAO,aAAa,CAAC,cAAc,CAAC;YAC9E,IAAI,MAAM,KAAK,oBAAoB,CAAC,OAAO;gBAAE,OAAO,aAAa,CAAC,MAAM,CAAC;YACzE,OAAO,SAAS,CAAC;QACnB,KAAK,kBAAkB,CAAC,MAAM;YAC5B,IAAI,MAAM,KAAK,oBAAoB,CAAC,IAAI;gBAAE,OAAO,aAAa,CAAC,WAAW,CAAC;YAC3E,OAAO,SAAS,CAAC;QACnB,KAAK,kBAAkB,CAAC,MAAM;YAC5B,IAAI,MAAM,KAAK,oBAAoB,CAAC,IAAI;gBAAE,OAAO,aAAa,CAAC,WAAW,CAAC;YAC3E,4GAA4G;YAC5G,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AACD,uEAAuE","sourcesContent":["import { z } from 'zod';\nimport { SEAWEEDFS_BACKING_SERVICE_BRAND } from './object-storage-seaweedfs';\nimport {\n InfraCapability,\n InfraProvider,\n} from './infra-providers.schemas';\n\n/**\n * The backing-service authoring surface of `wildo.infra.<env>.config.ts`.\n *\n * Import from `@wildo-ai/platform-config-lib`. Everything below is what an\n * environment file may declare under `backingServices: { ... }` — the closed kind\n * vocabulary, the hosting-model axis, and the per-kind entry shape. The\n * `InfraCapability` / `InfraProvider` projections further down this file are\n * planner-internal and deliberately outside the anchor: an app author never writes\n * them.\n *\n * Declare a kind ONLY when the environment actually runs it — keys are optional so a\n * flattened app declaration stays truthful about what it enables. Omitting a kind an\n * enabled engine capability depends on is the classic silent-degradation bug: e.g.\n * `COMPLIANCE_AUDIT_TRAIL` without `immudb` leaves the tamper-evident audit store\n * unbacked, which `wildo config sync` reports as a warning per environment.\n *\n * @wildo_source:part:start platform.config.backing-services facet:layer:platform facet:family:infra\n */\nexport enum BackingServiceKind {\n MONGODB = 'mongodb',\n REDIS = 'redis',\n RABBITMQ = 'rabbitmq',\n S3 = 's3',\n POSTGRESQL = 'postgresql',\n CLAMAV = 'clamav',\n /**\n * immudb — an immutable, cryptographically-verifiable database used as a\n * tamper-evident audit-log store (fills the `AUDIT_LOG_STORAGE` capability).\n * A stateful DB: a data volume in dev, self-hosted in prod. (Codenotary no longer offers its hosted\n * immudb Vault, so there is no managed form to choose.)\n */\n IMMUDB = 'immudb',\n /*\n * `backup` was WITHDRAWN 2026-09-26 (#1693), on the #476 precedent that withdrew\n * `metrics-telemetry`: it was declarable, resolved to no provider, rendered no workload, and\n * nothing anywhere read it — a field an author could fill in that did nothing. Backup itself is\n * designed in #8, which decides what an environment declares for it. Do not re-add a kind here\n * before something can serve it: `wildo config sync` refuses a declaration no provider serves.\n */\n}\n\n/**\n * Hosting model of a backing service instance — the orthogonal axis to\n * the **brand** (which is captured by the per-kind `provider` field).\n *\n * - `self`: self-hosted (Docker/K8s container managed by the platform,\n * or operator-managed on-prem). Brands here are open-source\n * software names (e.g. SeaweedFS for S3, vanilla Postgres / MongoDB).\n * - `managed`: external vendor-managed service. Brands here are\n * vendor names (e.g. `'atlas'` for MongoDB Atlas, `'aws-rds'` for\n * AWS RDS, `'supabase'` for Supabase Postgres, `'aws'` for AWS S3).\n *\n * There is no `ATLAS` source (removed 2026-05-07): MongoDB Atlas is\n * `source: MANAGED, provider: 'atlas'`. Any kind can be brand-aware\n * when the managed market has multiple vendors — Postgres in particular\n * (RDS / GCP Cloud SQL / Supabase / Neon / Render / Azure).\n */\nexport enum BackingServiceSource {\n SELF = 'self',\n MANAGED = 'managed',\n}\n\n/**\n * Common fields every backing-service entry shares.\n *\n * Per-kind extensions add the fields that are SEMANTICALLY meaningful\n * for that kind only. The previous shared\n * `BackingServiceEnvConfigSchema` collapsed `database` into a\n * `union(int, string)` and put `name` only on Mongo; both compromised\n * the framework-mindset rule that \"every field must carry its semantic\n * weight\". The split below means a typo like `redis: { database:\n * 'staging' }` (string on a kind that needs an integer DB index) is\n * rejected at parse time instead of crashing the runtime client at\n * connect time.\n */\nconst BackingServiceBaseSchema = z.object({\n source: z.enum(BackingServiceSource),\n /**\n * Brand of the backing service. Orthogonal to `source` (hosting\n * model). Required-in-spirit when `source === MANAGED` and the\n * managed market has multiple vendors (Mongo: `'atlas'` /\n * `'aws-documentdb'` / …; Postgres: `'aws-rds'` / `'gcp-cloud-sql'`\n * / `'supabase'` / `'neon'` / `'render'` / `'azure-database'`;\n * S3: `'aws'` / `'cloudflare-r2'` / …); optional when `source ===\n * SELF` (e.g. S3-self-hosted defaults to SeaweedFS; `provider:\n * 'seaweedfs'` is allowed but redundant).\n *\n * Modeled as `z.string().optional()` rather than per-kind enum\n * unions to keep this base schema simple — the canonical brand\n * vocabulary lives in `resolveInfraProvider`'s dispatch table\n * (each kind documents which brand strings it recognizes; unknown\n * brands fall back to the kind's generic `<KIND>_MANAGED` /\n * `<KIND>_SELF` entry where one exists, otherwise return\n * `undefined`).\n *\n * Since 2026-05-07 this applies to every brand-aware kind, not only S3.\n */\n provider: z.string().min(1).optional(),\n /**\n * Override the catalog-derived hostname for this kind. Honored at\n * `HOST_FACING` perspective (always) and at `CONTAINER_INTERNAL` for\n * `MANAGED` sources. SELF + `CONTAINER_INTERNAL` keeps the catalog\n * container name because that is the only DNS the container network\n * can resolve.\n */\n host: z.string().min(1).optional(),\n /**\n * Override the catalog-derived listen port. Threaded into both\n * docker-compose `<authored>:<authored>` publish and the per-app\n * env-vars (`<KIND>_PORT`).\n */\n port: z.number().int().positive().optional(),\n}).strict();\n\n/**\n * MongoDB backing service. `database` is the database NAME (string).\n *\n * Mongo's connection URL has the shape `mongodb://host:port/<database>`\n * — this string corresponds to the path segment. The field was once\n * `name`; it is `database` so all\n * data-store kinds use the same property name for the same concept\n * (vs. Postgres which already used `database`).\n */\nexport const MongoBackingServiceSchema = BackingServiceBaseSchema.extend({\n database: z.string().min(1).optional(),\n}).strict();\nexport type MongoBackingService = z.infer<typeof MongoBackingServiceSchema>;\n\n/**\n * Redis backing service. `database` is the LOGICAL DB INDEX (integer).\n *\n * Redis exposes 16 logical databases (0–15) on a single connection.\n * Authoring a string here (e.g. `'staging'`) would silently parse on\n * the pre-3 union schema and crash ioredis at connect; the integer\n * constraint with `max(15)` fails loud at parse time.\n */\nexport const RedisBackingServiceSchema = BackingServiceBaseSchema.extend({\n database: z.number().int().min(0).max(15).optional(),\n}).strict();\nexport type RedisBackingService = z.infer<typeof RedisBackingServiceSchema>;\n\n/**\n * PostgreSQL backing service. `database` is the database NAME (string).\n *\n * Symmetric with `MongoBackingService.database` — both are the\n * database identifier in their respective connection URLs.\n */\nexport const PostgresBackingServiceSchema = BackingServiceBaseSchema.extend({\n database: z.string().min(1).optional(),\n}).strict();\nexport type PostgresBackingService = z.infer<typeof PostgresBackingServiceSchema>;\n\n/**\n * RabbitMQ backing service. `vhost` is the RabbitMQ virtual host.\n *\n * AMQP virtual hosts isolate exchange/queue namespaces inside a single\n * broker. NOT a database — RabbitMQ has no DB concept — so the field\n * is intentionally NOT named `database`.\n */\nexport const RabbitBackingServiceSchema = BackingServiceBaseSchema.extend({\n vhost: z.string().min(1).optional(),\n}).strict();\nexport type RabbitBackingService = z.infer<typeof RabbitBackingServiceSchema>;\n\n/**\n * S3-compatible backing service (SeaweedFS, Scaleway Object Storage, AWS).\n *\n * `endpoint` is a URL (`http://localhost:9000`, `https://s3.eu-west.amazonaws.com`)\n * — the resolver parses it into host/port. `bucket` is the S3 bucket\n * name. NOT a database — S3 has no DB concept.\n */\nexport const S3BackingServiceSchema = BackingServiceBaseSchema.extend({\n endpoint: z.string().min(1).optional(),\n bucket: z.string().min(1).optional(),\n}).strict();\nexport type S3BackingService = z.infer<typeof S3BackingServiceSchema>;\n\n/** ClamAV anti-virus daemon. Stateless, no database/vhost/bucket. */\nexport const ClamAvBackingServiceSchema = BackingServiceBaseSchema;\nexport type ClamAvBackingService = z.infer<typeof ClamAvBackingServiceSchema>;\n\n/**\n * immudb backing service (tamper-evident audit-log store). A stateful DB.\n *\n * On `source: SELF` the credentials are MINTED, never authored (#1696): the platform\n * gives each application its OWN immudb database and its OWN user, which can write that\n * database and nothing else, and delivers both with the application's platform secrets.\n * The name is derived from the application and kept across re-registrations, so\n * `database` is not read for a self-hosted store; it names the database of a MANAGED\n * one.\n *\n * Declare this in EVERY environment where the `COMPLIANCE_AUDIT_TRAIL` engine\n * capability is enabled. `wildo config sync` warns per environment when the audit\n * capability is on but no environment declares an audit store, and the audit client\n * then has nowhere tamper-evident to write.\n *\n * You do NOT author the state-signing keypair that makes the store's\n * whole-server-substitution defense work. The framework provisions it (private half\n * mounted into a `source: SELF` immudb via `--signingKey`, public half pinned by the\n * audit client as `IMMUDB_STATE_PUBLIC_KEY`) — declaring the service is the whole job.\n *\n * @example\n * ```ts\n * backingServices: {\n * immudb: { source: BackingServiceSource.SELF },\n * }\n * ```\n */\nexport const ImmudbBackingServiceSchema = BackingServiceBaseSchema.extend({\n database: z.string().min(1).optional(),\n}).strict();\nexport type ImmudbBackingService = z.infer<typeof ImmudbBackingServiceSchema>;\n\n/**\n * Discriminated UNION over all backing-service kinds. Used by the\n * `ServiceAddressResolver` and helpers that accept any kind and read\n * only base fields (`source`, `host`, `port`). Consumers that need\n * kind-specific fields MUST narrow first (e.g. via the per-kind type\n * exports above).\n */\nexport type BackingServiceEnvConfig =\n | MongoBackingService\n | RedisBackingService\n | PostgresBackingService\n | RabbitBackingService\n | S3BackingService\n | ClamAvBackingService\n | ImmudbBackingService;\n\n/**\n * Per-environment backing services config (source for each service).\n * Used in environment-specific infra descriptors.\n *\n * Keys stay optional because an app-owned environment only needs to declare the\n * backing services it actually enables. Requiring the full enum-keyed record\n * would force disabled services (for example `postgresql`) into every env file\n * and breaks truthful flattened targeted-app declarations.\n */\nexport const BackingServicesEnvConfigSchema = z.object({\n [BackingServiceKind.MONGODB]: MongoBackingServiceSchema.optional(),\n [BackingServiceKind.REDIS]: RedisBackingServiceSchema.optional(),\n [BackingServiceKind.RABBITMQ]: RabbitBackingServiceSchema.optional(),\n [BackingServiceKind.S3]: S3BackingServiceSchema.optional(),\n [BackingServiceKind.POSTGRESQL]: PostgresBackingServiceSchema.optional(),\n [BackingServiceKind.CLAMAV]: ClamAvBackingServiceSchema.optional(),\n [BackingServiceKind.IMMUDB]: ImmudbBackingServiceSchema.optional(),\n}).strict();\nexport type BackingServicesEnvConfig = z.infer<typeof BackingServicesEnvConfigSchema>;\n/** @wildo_source:part:end platform.config.backing-services */\n\n// =============================================================================\n// BackingServiceKind ↔ InfraCapability / InfraProvider projections\n// =============================================================================\n//\n// Decided 2026-05-06: `BackingServicesEnvConfig`\n// IS the canonical per-env infra-selection authoring surface. The\n// `InfraCapability` / `InfraProvider` enums are the planner's projection\n// vocabulary (used by `InfraProviderModule.supportedCapabilities`,\n// `wildo-saas.lock.json sections.infra` keying, and any tooling that\n// walks \"what infra is selected per env\"). The mappings below are the\n// single source of truth for that projection — no other code may\n// reconstruct them locally.\n\n/** @wildo_source:part:start platform.config.infra-provider-resolution facet:layer:platform facet:audience:app-developer */\n/**\n * `BackingServiceKind` → `InfraCapability`. Every extension to `BackingServiceKind` MUST extend this\n * map in the same commit, otherwise the planner cannot project the new kind to its capability slot.\n *\n * INJECTIVE, not bijective — and the difference is a real property of the model rather than a gap.\n * A capability may be granted to a runtime without any environment declaring a backing service for\n * it; see {@link RUNTIME_GRANTED_INFRA_CAPABILITIES} for the ones that are, and why.\n */\nexport const BackingServiceKindToInfraCapability: Record<BackingServiceKind, InfraCapability> = {\n [BackingServiceKind.MONGODB]: InfraCapability.DOCUMENT_DATABASE,\n [BackingServiceKind.POSTGRESQL]: InfraCapability.RELATIONAL_DATABASE,\n [BackingServiceKind.RABBITMQ]: InfraCapability.QUEUING_SYSTEM,\n [BackingServiceKind.REDIS]: InfraCapability.CACHE_MANAGER,\n [BackingServiceKind.S3]: InfraCapability.OBJECT_STORAGE,\n [BackingServiceKind.CLAMAV]: InfraCapability.ANTIVIRUS_SCANNING,\n [BackingServiceKind.IMMUDB]: InfraCapability.AUDIT_LOG_STORAGE,\n};\n\n/**\n * Project `(BackingServiceKind, source, provider?)` → `InfraProvider`.\n *\n * The three-axis dispatch (kind × hosting-model × brand) generalizes\n * the source/brand split across all kinds (since 2026-05-07;\n * before that it was source-only, with Atlas as a special source value).\n *\n * **Brand vocabulary** per kind (`provider` field on the authored\n * `BackingService<X>Schema`):\n *\n * | Kind | source | provider | InfraProvider | Servable today |\n * |---|---|---|---|---|\n * | `MONGODB` | `SELF` | (any) | `MONGODB_SELF` | yes |\n * | `MONGODB` | `MANAGED` | `'atlas'` | `MONGODB_ATLAS` | yes |\n * | `POSTGRESQL` | `SELF` | (any) | `POSTGRES_SELF` | yes |\n * | `POSTGRESQL` | `MANAGED` | `'aws-rds'` | `POSTGRES_AWS_RDS` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'gcp-cloud-sql'` | `POSTGRES_GCP_CLOUD_SQL` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'azure-database'` | `POSTGRES_AZURE_DATABASE` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'supabase'` | `POSTGRES_SUPABASE` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'neon'` | `POSTGRES_NEON` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | `'render'` | `POSTGRES_RENDER` | no — no module |\n * | `POSTGRESQL` | `MANAGED` | unset or unrecognized | `POSTGRES_MANAGED` (generic fallback) | no — no module |\n * | `REDIS` | `SELF` | (any) | `REDIS_SELF` | yes |\n * | `RABBITMQ` | `SELF` | (any) | `RABBITMQ_SELF` | yes |\n * | `S3` | (either) | `'seaweedfs'` | `SEAWEEDFS_SELF` | yes |\n * | `S3` | (either) | `'aws'` | `AWS_S3` | no — no credential broker for AWS yet |\n * | `S3` | `SELF` | unset or unrecognized | `SEAWEEDFS_SELF` | yes |\n * | `S3` | `MANAGED` | unset or unrecognized | `AWS_S3` | no — no credential broker for AWS yet |\n * | `CLAMAV` | `SELF` | (any) | `CLAMAV_SELF` | yes |\n * | `IMMUDB` | `SELF` | (any) | `IMMUDB_SELF` | yes — one database and one confined user minted per application (#1696) |\n *\n * Returns `undefined` for combinations not in the table: a managed cache, broker, antivirus scanner\n * or audit store, and a managed MongoDB under any brand other than `'atlas'`. PostgreSQL has a\n * generic managed fallback; S3 uses brand-first resolution, then source-based defaults.\n *\n * ## Resolving is not the same as being servable\n *\n * This function answers only \"which catalogue entry does this declaration NAME\". Whether the\n * platform can actually deliver that entry — mint the application's credential on the server the\n * application connects to — is a separate question, answered by {@link findUnservableBackingServiceDeclarations}\n * against the provider-module catalogue. A declaration that resolves to nothing, OR to an entry no\n * module can serve (the seven managed PostgreSQL entries, and `AWS_S3` until its credential broker\n * exists), is REFUSED by `wildo config validate`, `wildo config sync` and `wildo lock check`, with a\n * message naming the declarations that ARE servable for that kind.\n *\n * The same `(source, provider)` pair travels to apps-manager at every registration, and apps-manager\n * resolves it with THIS function and mints the application's credentials on the result — so the provider\n * the lockfile records and the provider a credential is minted on are one answer. It also refuses a\n * provider the platform itself holds no administrative credentials for (an Atlas declaration on a\n * platform with no Atlas API key); which providers a platform can serve is platform configuration.\n *\n * ## What this means when you author an environment\n *\n * **`MANAGED` reaches almost nothing today.** Of the managed rows in the table above, the only one\n * the platform serves is MongoDB Atlas (`{ source: MANAGED, provider: 'atlas' }`). Every other kind\n * is declared `{ source: SELF }`. The managed PostgreSQL brands and AWS S3 are catalogue entries a\n * module will serve later, not choices you can make now — a kind becomes declarable as `MANAGED` in\n * the same change that adds the module serving it, and there is deliberately no opt-out: a\n * configuration the platform cannot serve would receive a credential for a server the application\n * never connects to.\n *\n * **An unrecognised brand is not the same failure on every kind.** On the relational database it\n * falls back to the generic managed entry (which is not servable, so it is refused all the same). On\n * the document database, an unknown managed brand resolves to nothing. Object storage recognizes\n * seaweedfs/aws first, then falls back by source: SELF to SeaweedFS, MANAGED to AWS S3, including\n * unrecognized brands.\n *\n * **Provider resolution and workload inclusion answer different questions.** Compose and Kubernetes\n * both use the same per-kind inclusion policy, separately from catalogue resolution. Cache, broker\n * and S3 default to self-hosted unless explicitly MANAGED; ClamAV and immudb require explicit SELF.\n * MongoDB and PostgreSQL also include the platform database requirement: an application-level\n * managed choice does not remove a self-hosted database still needed by the platform. Do not infer\n * workload inclusion from this provider resolver.\n */\nexport function resolveInfraProvider(\n kind: BackingServiceKind,\n source: BackingServiceSource,\n provider?: string,\n): InfraProvider | undefined {\n switch (kind) {\n case BackingServiceKind.MONGODB:\n if (source === BackingServiceSource.SELF) return InfraProvider.MONGODB_SELF;\n if (source === BackingServiceSource.MANAGED && provider === 'atlas') return InfraProvider.MONGODB_ATLAS;\n // Other Mongo managed brands (e.g., AWS DocumentDB) — extend\n // the `InfraProvider` enum + this branch in the same slice\n // that adds the first concrete consumer.\n return undefined;\n case BackingServiceKind.POSTGRESQL:\n if (source === BackingServiceSource.SELF) return InfraProvider.POSTGRES_SELF;\n if (source === BackingServiceSource.MANAGED) {\n switch (provider) {\n case 'aws-rds': return InfraProvider.POSTGRES_AWS_RDS;\n case 'gcp-cloud-sql': return InfraProvider.POSTGRES_GCP_CLOUD_SQL;\n case 'azure-database': return InfraProvider.POSTGRES_AZURE_DATABASE;\n case 'supabase': return InfraProvider.POSTGRES_SUPABASE;\n case 'neon': return InfraProvider.POSTGRES_NEON;\n case 'render': return InfraProvider.POSTGRES_RENDER;\n // Generic fallback when the operator has authored\n // `source: MANAGED` without naming a brand (or with an\n // unrecognized brand). Resolving it NAMES the generic\n // catalogue entry; it does not make it servable. No module\n // serves any managed PostgreSQL entry yet, so every one of\n // these is refused by the servability check (#1693) rather\n // than recorded in the lockfile as a selection nothing runs.\n default: return InfraProvider.POSTGRES_MANAGED;\n }\n }\n return undefined;\n case BackingServiceKind.REDIS:\n if (source === BackingServiceSource.SELF) return InfraProvider.REDIS_SELF;\n // Managed Redis brands (ElastiCache, Upstash, Redis Cloud, …)\n // — not catalogued yet; future expansion.\n return undefined;\n case BackingServiceKind.RABBITMQ:\n if (source === BackingServiceSource.SELF) return InfraProvider.RABBITMQ_SELF;\n // Managed RabbitMQ brands (CloudAMQP, AWS MQ, …) —\n // not catalogued yet; future expansion.\n return undefined;\n case BackingServiceKind.S3:\n // S3 dispatch is brand-first because the protocol is\n // standardized (S3-compatible) and the same `source` can host\n // multiple software stacks — `source: SELF` could be SeaweedFS or\n // a self-managed AWS S3 cluster (theoretically). The brand is\n // the canonical disambiguator.\n if (provider === SEAWEEDFS_BACKING_SERVICE_BRAND) return InfraProvider.SEAWEEDFS_SELF;\n if (provider === 'aws') return InfraProvider.AWS_S3;\n // Default source-based mapping for unbranded S3 — SeaweedFS is\n // the canonical self-hosted; AWS is the canonical managed.\n if (source === BackingServiceSource.SELF) return InfraProvider.SEAWEEDFS_SELF;\n if (source === BackingServiceSource.MANAGED) return InfraProvider.AWS_S3;\n return undefined;\n case BackingServiceKind.CLAMAV:\n if (source === BackingServiceSource.SELF) return InfraProvider.CLAMAV_SELF;\n return undefined;\n case BackingServiceKind.IMMUDB:\n if (source === BackingServiceSource.SELF) return InfraProvider.IMMUDB_SELF;\n // No managed immudb: Codenotary no longer offers its hosted immudb Vault (re-researched 2026-11-06, #2518).\n return undefined;\n }\n}\n/** @wildo_source:part:end platform.config.infra-provider-resolution */\n"]}
@@ -64,7 +64,7 @@ export declare const RESERVED_INFRA_CAPABILITIES: Readonly<Partial<Record<InfraC
64
64
  *
65
65
  * **Naming convention**: `<KIND>_<BRAND>` — `BRAND` is either a
66
66
  * vendor (Atlas / AWS_RDS / Supabase / …) for managed services, or
67
- * an open-source software name (MinIO / vanilla self-hosted) for
67
+ * an open-source software name (SeaweedFS / vanilla self-hosted) for
68
68
  * self-hosted. `<KIND>_MANAGED` exists as a generic fallback when
69
69
  * the operator hasn't named a brand (Postgres in particular —
70
70
  * acceptable while the brand catalog is incomplete; Mongo's
@@ -107,9 +107,10 @@ export declare enum InfraProvider {
107
107
  /** Self-hosted RabbitMQ broker (in-cluster docker-compose / K8s
108
108
  * deployment). Selected via `source: SELF`. */
109
109
  RABBITMQ_SELF = "rabbitmq-self",
110
- /** MinIO (self-hosted S3-compatible). brand: `'minio'` (or unset on
111
- * source=self — MinIO is the canonical default). */
112
- MINIO_SELF = "minio-self",
110
+ /** SeaweedFS (self-hosted S3-compatible, with STS). brand: `'seaweedfs'`
111
+ * (or unset on source=self — SeaweedFS is the canonical default, #2170).
112
+ * Its identity and IAM contract: `object-storage-seaweedfs.ts`. */
113
+ SEAWEEDFS_SELF = "seaweedfs-self",
113
114
  /** AWS S3 (managed). brand: `'aws'`. */
114
115
  AWS_S3 = "aws-s3",
115
116
  /** Self-hosted ClamAV antivirus scanning service. Stateless (no
@@ -908,7 +909,7 @@ export interface InfraProviderModule {
908
909
  *
909
910
  * The module's `plan()` is correct and useful: it formalizes the env contract an operator will set
910
911
  * and gives the lockfile a stable digest. What is missing is elsewhere (for `AWS_S3`, the credential
911
- * broker that speaks only MinIO's AssumeRole, #14). Removing the module would lose the correct half
912
+ * broker's admission of an AWS store, #14). Removing the module would lose the correct half
912
913
  * to express the missing one.
913
914
  *
914
915
  * ## What it does
@@ -932,7 +933,7 @@ export interface InfraProviderModule {
932
933
  * means `readWrite` + `dbAdmin` on the whole database.
933
934
  *
934
935
  * Empty for a provider with no per-app credentials — shared-bucket object storage
935
- * (`MINIO_SELF`, `AWS_S3`) and stateless infra (`CLAMAV_SELF`). Empty is a
936
+ * (`SEAWEEDFS_SELF`, `AWS_S3`) and stateless infra (`CLAMAV_SELF`). Empty is a
936
937
  * real answer, not a missing one, which is why the field is required rather than optional: a
937
938
  * module that mints per-principal material must not be able to omit it and be silently read as
938
939
  * "nothing to confine".
@@ -1 +1 @@
1
- {"version":3,"file":"infra-providers.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/infra-providers.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;;;;GAMG;AACH,oBAAY,eAAe;IACzB,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B;;;OAGG;IACH,iBAAiB,sBAAsB;IACvC;;;OAGG;IACH,cAAc,mBAAmB;CAClC;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAkBjG,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAS1F,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,oBAAY,aAAa;IAEvB;;;oCAGgC;IAChC,YAAY,iBAAiB;IAC7B,uDAAuD;IACvD,aAAa,kBAAkB;IAG/B;wDACoD;IACpD,aAAa,kBAAkB;IAC/B;yEACqE;IACrE,gBAAgB,qBA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sCAAsC,GAAG,IAAI,CAAC,CAAC;CAC3D"}
1
+ {"version":3,"file":"infra-providers.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/infra-providers.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACtG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;;;;GAMG;AACH,oBAAY,eAAe;IACzB,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B;;;OAGG;IACH,iBAAiB,sBAAsB;IACvC;;;OAGG;IACH,cAAc,mBAAmB;CAClC;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAkBjG,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAS1F,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,oBAAY,aAAa;IAEvB;;;oCAGgC;IAChC,YAAY,iBAAiB;IAC7B,uDAAuD;IACvD,aAAa,kBAAkB;IAG/B;wDACoD;IACpD,aAAa,kBAAkB;IAC/B;yEACqE;IACrE,gBAAgB,qBAAqB;IACrC,kDAAkD;IAClD,gBAAgB,qBAAqB;IACrC,iEAAiE;IACjE,sBAAsB,2BA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_INFRA_CAPABILITIES = {
86
86
  *
87
87
  * **Naming convention**: `<KIND>_<BRAND>` — `BRAND` is either a
88
88
  * vendor (Atlas / AWS_RDS / Supabase / …) for managed services, or
89
- * an open-source software name (MinIO / vanilla self-hosted) for
89
+ * an open-source software name (SeaweedFS / vanilla self-hosted) for
90
90
  * self-hosted. `<KIND>_MANAGED` exists as a generic fallback when
91
91
  * the operator hasn't named a brand (Postgres in particular —
92
92
  * acceptable while the brand catalog is incomplete; Mongo's
@@ -135,9 +135,10 @@ export var InfraProvider;
135
135
  * deployment). Selected via `source: SELF`. */
136
136
  InfraProvider["RABBITMQ_SELF"] = "rabbitmq-self";
137
137
  // === Object storage ===
138
- /** MinIO (self-hosted S3-compatible). brand: `'minio'` (or unset on
139
- * source=self — MinIO is the canonical default). */
140
- InfraProvider["MINIO_SELF"] = "minio-self";
138
+ /** SeaweedFS (self-hosted S3-compatible, with STS). brand: `'seaweedfs'`
139
+ * (or unset on source=self — SeaweedFS is the canonical default, #2170).
140
+ * Its identity and IAM contract: `object-storage-seaweedfs.ts`. */
141
+ InfraProvider["SEAWEEDFS_SELF"] = "seaweedfs-self";
141
142
  /** AWS S3 (managed). brand: `'aws'`. */
142
143
  InfraProvider["AWS_S3"] = "aws-s3";
143
144
  // === Stateless infra ===