@wildo-ai/platform-config-lib 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +1 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.js +1 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +1 -1
- package/dist/esm/blueprint/anchored-region.d.ts +83 -0
- package/dist/esm/blueprint/anchored-region.d.ts.map +1 -0
- package/dist/esm/blueprint/anchored-region.js +263 -0
- package/dist/esm/blueprint/anchored-region.js.map +1 -0
- package/dist/esm/blueprint/blueprint.schemas.d.ts +689 -0
- package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -0
- package/dist/esm/blueprint/blueprint.schemas.js +638 -0
- package/dist/esm/blueprint/blueprint.schemas.js.map +1 -0
- package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts +13 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js +6 -0
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +21 -3
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +14 -3
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +121 -0
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +129 -0
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-response-integrity.d.ts +249 -0
- package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-response-integrity.js +353 -0
- package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts +32 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.js +43 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -0
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
- package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts +51 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.js +231 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -0
- package/dist/esm/config-authoring.entry.d.ts.map +1 -1
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/key-management/approval-seal-verifier.d.ts +216 -0
- package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal-verifier.js +233 -0
- package/dist/esm/key-management/approval-seal-verifier.js.map +1 -0
- package/dist/esm/key-management/approval-seal.contracts.d.ts +131 -0
- package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal.contracts.js +115 -0
- package/dist/esm/key-management/approval-seal.contracts.js.map +1 -0
- package/dist/esm/key-management/data-key.contracts.d.ts +108 -0
- package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/data-key.contracts.js +54 -0
- package/dist/esm/key-management/data-key.contracts.js.map +1 -0
- package/dist/esm/key-management/es256-jws.d.ts +60 -0
- package/dist/esm/key-management/es256-jws.d.ts.map +1 -0
- package/dist/esm/key-management/es256-jws.js +135 -0
- package/dist/esm/key-management/es256-jws.js.map +1 -0
- package/dist/esm/key-management/key-provider.spi.d.ts +151 -0
- package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -0
- package/dist/esm/key-management/key-provider.spi.js +38 -0
- package/dist/esm/key-management/key-provider.spi.js.map +1 -0
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts +93 -0
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/keyring-rotation.contracts.js +101 -0
- package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -0
- package/dist/esm/key-management/keyring-status.contracts.d.ts +66 -0
- package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/keyring-status.contracts.js +45 -0
- package/dist/esm/key-management/keyring-status.contracts.js.map +1 -0
- package/dist/esm/key-management/signature-request.contracts.d.ts +95 -0
- package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/signature-request.contracts.js +96 -0
- package/dist/esm/key-management/signature-request.contracts.js.map +1 -0
- package/dist/esm/key-management/signing-log-export.contracts.d.ts +216 -0
- package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/signing-log-export.contracts.js +268 -0
- package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -0
- package/dist/esm/key-management/vault-custody.contracts.d.ts +55 -0
- package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/vault-custody.contracts.js +88 -0
- package/dist/esm/key-management/vault-custody.contracts.js.map +1 -0
- package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
- package/dist/esm/lockfile/lockfile-io.d.ts +7 -9
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
- package/dist/esm/lockfile/lockfile-io.js +23 -22
- package/dist/esm/lockfile/lockfile-io.js.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts +17 -14
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.js +9 -9
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +26 -2
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +27 -2
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
- package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js +9 -2
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
- package/dist/esm/project-config/application-served-public-documents.loader.d.ts +26 -0
- package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -0
- package/dist/esm/project-config/application-served-public-documents.loader.js +78 -0
- package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -0
- package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +236 -15
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js +104 -91
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +133 -3
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +170 -19
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.js +3 -0
- package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/index.d.ts +3 -0
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +3 -0
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
- package/dist/esm/project-config/npm-version-range.js +39 -16
- package/dist/esm/project-config/npm-version-range.js.map +1 -1
- package/dist/esm/project-config/owning-package-tsconfig.d.ts +15 -0
- package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -0
- package/dist/esm/project-config/owning-package-tsconfig.js +29 -0
- package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -0
- package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts +4 -4
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +13 -9
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +32 -3
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +67 -13
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.d.ts +4 -5
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.js +4 -5
- package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.d.ts +1 -2
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js +1 -2
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +6 -0
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +8 -1
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +1 -0
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +3 -0
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +4 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.js +6 -2
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +250 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.js +194 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
- package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/index.d.ts +1 -0
- package/dist/esm/registry/index.d.ts.map +1 -1
- package/dist/esm/registry/index.js +1 -0
- package/dist/esm/registry/index.js.map +1 -1
- package/dist/esm/registry/local-checkout-source.d.ts +22 -2
- package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
- package/dist/esm/registry/local-checkout-source.js +66 -3
- package/dist/esm/registry/local-checkout-source.js.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +10 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.d.ts +23 -0
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.d.ts +336 -18
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.js +245 -19
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
- package/dist/esm/registry/module-search.schemas.d.ts +2 -0
- package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-search.schemas.js +14 -1
- package/dist/esm/registry/module-search.schemas.js.map +1 -1
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-errors.d.ts +22 -2
- package/dist/esm/registry/registry-errors.d.ts.map +1 -1
- package/dist/esm/registry/registry-errors.js +28 -2
- package/dist/esm/registry/registry-errors.js.map +1 -1
- package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.d.ts +5 -0
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-url-resolution.d.ts +72 -0
- package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -0
- package/dist/esm/registry/registry-url-resolution.js +157 -0
- package/dist/esm/registry/registry-url-resolution.js.map +1 -0
- package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts +55 -0
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js +53 -0
- package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
- package/dist/esm/workspace-scope/index.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-providers.schemas.d.ts","sourceRoot":"","sources":["
|
|
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,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,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IAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,2BAA2B,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAEnD,IAAI,CAAC,OAAO,EAAE,4BAA4B,GAAG,6BAA6B,CAAC;IAE3E;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAAkB,CAAC,CACjB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,0BAA0B,GAAG,IAAI,CAAC,CAAC;IAE9C;;;;;;;;;;;;;OAaG;IACH,oBAAoB,CAAC,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3E;;;;;;;;;;;;;;OAcG;IACH,8BAA8B,CAAC,CAC7B,OAAO,EAAE,uCAAuC,GAC/C,OAAO,CAAC,sCAAsC,GAAG,IAAI,CAAC,CAAC;CAC3D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-service.schemas.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"infra-service.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/infra-service.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;kBAI9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;GAEG;AACH,eAAO,MAAM,qBAAqB;;kBAEvB,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure-defaults.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/infrastructure-defaults.schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"infrastructure-defaults.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/infrastructure-defaults.schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;CA8BtB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;CAIzB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB;;;CAGzB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;CAKxB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAG,gBAAyB,CAAC;AAEjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,EAAG,gBAAyB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,sCAAsC,EAAG,UAAmB,CAAC"}
|
|
@@ -30,6 +30,9 @@ export const INFRA_DEFAULT_PORTS = {
|
|
|
30
30
|
MONGOT_GRPC: 27028,
|
|
31
31
|
MONGOT_HEALTH: 8080,
|
|
32
32
|
MONGOT_METRICS: 9946,
|
|
33
|
+
// #2933 — the self-hosted OpenBao that holds the platform's custodied keys: Vault's API port. Only apps-manager dials
|
|
34
|
+
// it; the compose lane publishes it on the host solely because a framework developer's apps-manager runs there.
|
|
35
|
+
OPENBAO: 8200,
|
|
33
36
|
};
|
|
34
37
|
export const PLATFORM_DEFAULT_PORTS = {
|
|
35
38
|
APPS_MANAGER: 5151,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infrastructure-defaults.schemas.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/infrastructure-defaults.schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,mBAAmB,EAAE,KAAK;IAC1B,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,IAAI;IAChB,oEAAoE;IACpE,mEAAmE;IACnE,yEAAyE;IACzE,MAAM,EAAE,IAAI;IACZ,oEAAoE;IACpE,4EAA4E;IAC5E,MAAM,EAAE,IAAI;IACZ,iFAAiF;IACjF,iFAAiF;IACjF,+EAA+E;IAC/E,kFAAkF;IAClF,8EAA8E;IAC9E,sEAAsE;IACtE,wEAAwE;IACxE,sDAAsD;IACtD,gFAAgF;IAChF,gFAAgF;IAChF,WAAW,EAAE,KAAK;IAClB,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"infrastructure-defaults.schemas.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/infrastructure-defaults.schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,mBAAmB,EAAE,KAAK;IAC1B,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,IAAI;IAChB,oEAAoE;IACpE,mEAAmE;IACnE,yEAAyE;IACzE,MAAM,EAAE,IAAI;IACZ,oEAAoE;IACpE,4EAA4E;IAC5E,MAAM,EAAE,IAAI;IACZ,iFAAiF;IACjF,iFAAiF;IACjF,+EAA+E;IAC/E,kFAAkF;IAClF,8EAA8E;IAC9E,sEAAsE;IACtE,wEAAwE;IACxE,sDAAsD;IACtD,gFAAgF;IAChF,gFAAgF;IAChF,WAAW,EAAE,KAAK;IAClB,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;IACpB,sHAAsH;IACtH,gHAAgH;IAChH,OAAO,EAAE,IAAI;CACL,CAAC;AAEX,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,eAAe,EAAE,IAAI;CACb,CAAC;AAEX,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,SAAS,EAAE,aAAa;IACxB,WAAW,EAAE,gBAAgB;CACrB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,SAAS,EAAE,gBAAgB;IAC3B,aAAa,EAAE,WAAW;CAClB,CAAC;AAEX,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,YAAY,EAAE,KAAK;IACnB,eAAe,EAAE,UAAU;IAC3B,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,IAAI;CACX,CAAC;AAEX,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,aAAa;IACrB,QAAQ,EAAE,OAAO;CACT,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAyB,CAAC;AAEjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAyB,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,UAAmB,CAAC","sourcesContent":["/**\n * Infrastructure default ports and constants.\n * Single source of truth — CLI catalogs, apps-manager env schemas,\n * and generated manifests all derive from these values.\n */\n\nexport const INFRA_DEFAULT_PORTS = {\n MONGODB: 27017,\n VALKEY: 6379,\n RABBITMQ: 5672,\n RABBITMQ_MANAGEMENT: 15672,\n MINIO: 9000,\n POSTGRESQL: 5432,\n // Slice 4 (4.8) — ClamAV catalog integration. 3310 is the canonical\n // clamd TCP port the official `clamav/clamav:1.4` image listens on\n // (and the port the static docker-compose.yml has been hand-publishing).\n CLAMAV: 3310,\n // Audit Phase 2 — immudb gRPC port (the canonical port the official\n // `codenotary/immudb` image listens on for the tamper-evident audit store).\n IMMUDB: 3322,\n // Issue #74 — `mongot`, the separate MongoDB Search / Vector Search process that\n // sits BESIDE mongod (never in front of it: clients only ever connect to mongod,\n // which routes `$search` / `$vectorSearch` to mongot over gRPC and lets mongot\n // read its change stream back). Three listeners, all container-internal — none is\n // ever published to the host, because nothing on the host is a mongot client.\n // - 27028 gRPC — the mongod ⇄ mongot channel (`mongotHost`).\n // - 8080 health — `GET /health` answers `{\"status\":\"SERVING\"}`.\n // - 9946 metrics — Prometheus scrape endpoint.\n // Verified 2026-08-27 against `mongodb/mongodb-community-search:1.70.3` running\n // beside `mongo:8.2` (8.2.12): index create + `$vectorSearch` query round-trip.\n MONGOT_GRPC: 27028,\n MONGOT_HEALTH: 8080,\n MONGOT_METRICS: 9946,\n // #2933 — the self-hosted OpenBao that holds the platform's custodied keys: Vault's API port. Only apps-manager dials\n // it; the compose lane publishes it on the host solely because a framework developer's apps-manager runs there.\n OPENBAO: 8200,\n} as const;\n\nexport const PLATFORM_DEFAULT_PORTS = {\n APPS_MANAGER: 5151,\n CRONTABS_BATCHES_MANAGER: 5152,\n MODULE_REGISTRY: 5154,\n} as const;\n\nexport const K8S_LOCAL_DEFAULTS = {\n NAMESPACE: 'wildo-local',\n BASE_DOMAIN: 'local.wildo.ai',\n} as const;\n\n/**\n * Write-time defaults for the runtime-agnostic top-level `publicDomain`\n * field on `WildoInfraEnvConfig`. Consumed ONLY by `wildo init` (and\n * the equivalent CLI bootstrap surface) to populate the generated\n * config file at creation time.\n *\n * There is no read-time fallback — the schema requires `publicDomain`\n * to be authored explicitly. A hand-edited config that drops the field\n * fails Zod parse with a clear error instead of silently defaulting.\n *\n * - `LOCAL_K8S` — what `wildo init` writes for a local K8s runtime.\n * - `LOCAL_COMPOSE` — what `wildo init` writes for a local Docker\n * Compose runtime (compose-without-reverse-proxy authors `'localhost'`).\n *\n * For remote envs, no default — the author must specify the apex\n * (e.g. `'wonder-todos.com'`).\n */\nexport const PUBLIC_DOMAIN_DEFAULTS = {\n LOCAL_K8S: 'local.wildo.ai',\n LOCAL_COMPOSE: 'localhost',\n} as const;\n\nexport const KIND_CLUSTER_DEFAULTS = {\n CLUSTER_NAME: 'dev',\n KUBECTL_CONTEXT: 'kind-dev',\n REGISTRY_NAME: 'kind-registry',\n REGISTRY_PORT: 5001,\n} as const;\n\nexport const STORAGE_DEFAULTS = {\n BUCKET: 'wildo-files',\n PROVIDER: 'minio',\n} as const;\n\n/**\n * Platform MongoDB database name.\n * This is the database used by apps-manager and platform services for\n * all platform-scoped collections (wildoApplication, platformApplications, etc.).\n * Aligned with PostgreSQL naming (`wildo_platform`).\n */\nexport const PLATFORM_MONGO_DATABASE = 'wildo_platform' as const;\n\n/**\n * Platform PostgreSQL database name — the PostgreSQL mirror of {@link PLATFORM_MONGO_DATABASE},\n * and it exists to keep the platform's own store SEPARATE from any application's.\n *\n * ⚠️ Do NOT derive this from `infrastructure.postgresql.database`. That field is mirrored from the\n * author's `backingServices.postgresql.database`, which names the APPLICATION's database (for\n * Wonder Todos local it is literally `wonder-todos-db`) and is also the compose container's initdb\n * database. Pointing the platform's `PG_CONNECT_URL` at it created the platform's ~94 tables —\n * `users`, `organizations`, `applications` among them — INSIDE the application's database; and\n * because every generated statement is `create table if not exists`, an application later\n * provisioning its own PostgreSQL schema there would silently ADOPT the platform's tables instead\n * of failing. Two tenancy planes, one table, no diagnostic. Found by review before the first flip.\n *\n * A dedicated name costs one `create database` — apps-manager INIT creates it through\n * `PostgreSQLConnectionManagerService.ensurePlatformDatabaseExists` using the `PG_ADMIN_*`\n * credentials, because PostgreSQL (unlike MongoDB) creates no database on connect and the compose\n * container's initdb creates only the application's. That makes the separation structural rather\n * than conventional. Full context: `.claude/plans/platform-postgresql-store-switch.md`.\n */\nexport const PLATFORM_POSTGRES_DATABASE = 'wildo_platform' as const;\n\n/**\n * The MAINTENANCE database the apps-manager admin pool connects to in order to provision OTHER\n * databases and roles — the value of `PG_ADMIN_DATABASE`.\n *\n * PostgreSQL has no \"connect to the server\" — every connection is to a database — while\n * `CREATE DATABASE` / `CREATE ROLE` are server-scoped and cannot run from inside the database being\n * created. So a provisioner needs one database that is guaranteed to exist and that it never\n * provisions: `postgres`, which `initdb` always creates alongside whatever `POSTGRES_DB` names.\n *\n * ⚠️ There are THREE PostgreSQL database names in this system and they are NOT interchangeable.\n * Conflating the first two cost a silent outage (2026-08-13):\n *\n * | Constant / field | Env key | Meaning |\n * |---|---|---|\n * | this one | `PG_ADMIN_DATABASE` | where the admin pool CONNECTS to do provisioning work |\n * | `infrastructure.postgresql.database` | `POSTGRES_ADMIN_DATABASE` | the container's `initdb` database (the APPLICATION's) |\n * | {@link PLATFORM_POSTGRES_DATABASE} | inside `PG_CONNECT_URL` | where the platform's OWN ~94 tables live |\n *\n * `PG_ADMIN_DATABASE` was emitted from `infrastructure.postgresql.database`, so the admin pool\n * dialled the APPLICATION's database (`wonder-todos-db`). That database is created by the compose\n * container's initdb — from the SEPARATE `POSTGRES_ADMIN_DATABASE` key, which defaults to\n * `wildo_platform` — so on any machine where the two disagreed it did not exist. The failure is\n * silent by construction: `3D000 database does not exist` is not a connection error, so\n * `initializeAdmin`'s retry branch is skipped, the caller records `postgresql: 'failed'` and\n * CONTINUES, and `/health/ready` still answers 200. `isPostgreSQLAvailable()` then returns false\n * for the whole process lifetime — every provisioning call a silent no-op behind a green probe.\n *\n * Pointing it at the application's database would be wrong even where that database exists: the\n * admin pool holds an open connection, and an open connection blocks `DROP DATABASE` on its own\n * target.\n *\n * A framework constant rather than an authored field on purpose — it is a property of PostgreSQL,\n * not of an environment. If a managed provider ever disallows connecting to `postgres`, this is the\n * single place to make it authorable; do not re-derive it from an application-scoped field.\n */\nexport const PLATFORM_POSTGRES_MAINTENANCE_DATABASE = 'postgres' as const;\n"]}
|
|
@@ -179,6 +179,10 @@ export declare function resolveGrantStorageNames(resourceTypes: readonly Resourc
|
|
|
179
179
|
* heartbeat and recovery update durable history, including after a restart.
|
|
180
180
|
* - **`JOB_PAYLOAD_STORAGE`, read/append.** Recovery retains completed output
|
|
181
181
|
* without granting the principal permission to rewrite or delete that output.
|
|
182
|
+
* - **`APPLICATION_DATA_KEYS`, read/maintain (#2894).** A minion opens the stored secrets the backend seals (a
|
|
183
|
+
* provider credential an agent calls with), so its data-key ring reads every WRAPPED data key at boot, and it
|
|
184
|
+
* reserves seals and issues a data key when it seals one itself. Unwrapping still needs the platform custodian,
|
|
185
|
+
* which admits only the runtimes the `sealed_secrets` purpose names; a wrapped key read here opens nothing alone.
|
|
182
186
|
*
|
|
183
187
|
* These framework operations bypass the in-process `resourceAccess` whitelist by construction —
|
|
184
188
|
* `MinionScopedServicesRegistryHandlerBackendService` decorates the minion's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minion-resource-access.validation.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"minion-resource-access.validation.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/minion-resource-access.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iCAAiC,EAEjC,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,4CAA4C,EAAE,SAAS,MAAM,EACb,CAAC;AAE9D,8EAA8E;AAC9E,MAAM,WAAW,6BAA6B;IAC5C,mGAAmG;IACnG,QAAQ,CAAC,IAAI,EAAE,iCAAiC,CAAC,IAAI,GAAG,iCAAiC,CAAC,KAAK,CAAC;IAChG,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,sEAAsE;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kCAAkC,CAAC,cAAc,EAAE;IACjE,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,S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
|
221
221
|
* heartbeat and recovery update durable history, including after a restart.
|
|
222
222
|
* - **`JOB_PAYLOAD_STORAGE`, read/append.** Recovery retains completed output
|
|
223
223
|
* without granting the principal permission to rewrite or delete that output.
|
|
224
|
+
* - **`APPLICATION_DATA_KEYS`, read/maintain (#2894).** A minion opens the stored secrets the backend seals (a
|
|
225
|
+
* provider credential an agent calls with), so its data-key ring reads every WRAPPED data key at boot, and it
|
|
226
|
+
* reserves seals and issues a data key when it seals one itself. Unwrapping still needs the platform custodian,
|
|
227
|
+
* which admits only the runtimes the `sealed_secrets` purpose names; a wrapped key read here opens nothing alone.
|
|
224
228
|
*
|
|
225
229
|
* These framework operations bypass the in-process `resourceAccess` whitelist by construction —
|
|
226
230
|
* `MinionScopedServicesRegistryHandlerBackendService` decorates the minion's
|
|
@@ -249,11 +253,11 @@ export function resolveGrantStorageNames(resourceTypes) {
|
|
|
249
253
|
* assurance-control: WILDO.AUDIT.TAMPER_RESISTANCE — a named runtime principal may add
|
|
250
254
|
* audit rows and may never modify or remove them, and may not be granted otherwise.
|
|
251
255
|
*/
|
|
252
|
-
export const MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES = [CoreResourceType.APPLICATION, CoreResourceType.JOB_EXECUTIONS, CoreResourceType.JOB_PAYLOAD_STORAGE];
|
|
256
|
+
export const MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES = [CoreResourceType.APPLICATION, CoreResourceType.JOB_EXECUTIONS, CoreResourceType.JOB_PAYLOAD_STORAGE, CoreResourceType.APPLICATION_DATA_KEYS];
|
|
253
257
|
/** @see MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES — the append-only floor. */
|
|
254
258
|
export const MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES = [CoreResourceType.AUDIT_LOGS, CoreResourceType.JOB_PAYLOAD_STORAGE];
|
|
255
259
|
/** Insert and update durable execution state, without permission to erase its history. */
|
|
256
|
-
export const MINION_ENGINE_MANDATORY_MAINTAIN_RESOURCE_TYPES = [CoreResourceType.JOB_EXECUTIONS];
|
|
260
|
+
export const MINION_ENGINE_MANDATORY_MAINTAIN_RESOURCE_TYPES = [CoreResourceType.JOB_EXECUTIONS, CoreResourceType.APPLICATION_DATA_KEYS];
|
|
257
261
|
/**
|
|
258
262
|
* Add the engine floor to an authored derivation — the ONE place database grants
|
|
259
263
|
* acquire it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minion-resource-access.validation.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/minion-resource-access.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,8CAA8C,EAC9C,iCAAiC,EACjC,sCAAsC,GAEvC,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,4CAA4C,GACvD,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;AAW9D;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,kCAAkC,CAAC,cAGlD;IACC,MAAM,UAAU,GAAoC,EAAE,CAAC;IACvD,MAAM,IAAI,GAAsE;QAC9E,CAAC,iCAAiC,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,IAAI,EAAE,CAAC;QACnE,CAAC,iCAAiC,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,IAAI,EAAE,CAAC;KACtE,CAAC;IAEF,gGAAgG;IAChG,kGAAkG;IAClG,iGAAiG;IACjG,kGAAkG;IAClG,oGAAoG;IACpG,iGAAiG;IACjG,kGAAkG;IAClG,sBAAsB;IACtB,KAAK,MAAM,YAAY,IAAI,cAAc,CAAC,KAAK,IAAI,EAAE,EAAE,CAAC;QACtD,IAAK,6CAAmE,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YAChG,UAAU,CAAC,IAAI,CAAC;gBACd,IAAI,EAAE,iCAAiC,CAAC,KAAK;gBAC7C,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AC,EAAE,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,GAAG,2CAA2C,CAAC,CAAC;QACrH,CAAC,iCAAiC,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC;QAClE,CAAC,iCAAiC,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,6CAA6C,CAAC;QACpG,kGAAkG;QAClG,sFAAsF;QACtF,CAAC,iCAAiC,CAAC,QAAQ,CAAC,EAAE,SAAS,CACrD,+CAA+C,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAC3G;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n CoreResourceType,\n RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES,\n RuntimePrincipalDatabaseGrantAxis,\n resolveSharedPersistenceCollectionName,\n type ResourceType,\n} from '@wildo-ai/saas-models';\n\n/**\n * The two safety gates that must hold BEFORE a minion's `resourceAccess` may be\n * turned into database grants (Step 3 shared prerequisites, R11 + the F1 guard).\n *\n * Both exist because of the same asymmetry: `resourceAccess` is a RESOURCE-TYPE\n * whitelist, while a database grant is a COLLECTION grant. The two only line up\n * when the mapping between them is injective over the declarable set — and the\n * alias map is exactly where it is not.\n */\n\n/**\n * Resource types a minion may never declare (D15 / R11) — every ALIASED door.\n *\n * An aliased door is a resource type whose rows live in ANOTHER resource type's\n * collection (`RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES`). It is always the\n * NARROWER of the two doors, and a database grant cannot be narrower than a\n * collection — so a grant derived from the narrow door carries the wide one.\n *\n * The alias map holds two KINDS of narrow door, and both are refused for that\n * same reason while differing in why they are narrow:\n *\n * - **self doors** (`USER_SELF`, `USER_SELF_PROFILES`, `USER_SELF_PREFERENCES`)\n * address \"MY row\". They are additionally meaningless for a minion:\n * `APPLICATION_MACHINE` carries no `userId`, so there is no row to be \"mine\".\n * Declaring `USER_SELF` would grant the whole `users` collection — every user's\n * row, through a door that promises one.\n * - **subset doors** (`APPLICATION_AUDIT_LOGS`, #317) see a different SUBSET of a\n * shared record set. The application audit door and the organization audit door\n * read one trail; a grant derived from either carries the entire trail.\n *\n * This constant was named `MINION_FORBIDDEN_SELF_DOOR_RESOURCE_TYPES` while the\n * map held only self doors, and kept that name — and a refusal message calling\n * every entry a self door — after the audit door joined it (#458). The rule was\n * never \"self doors are forbidden\"; it is \"a grant must not be wider than the\n * declaration reads\", and the name now says that.\n *\n * Removing every aliased door from the declarable set is also what makes\n * resource-type → collection INJECTIVE, so a grant derived per resource type means\n * exactly what the author wrote. Relaxing it for convenience silently restores\n * the coarser floor.\n *\n * Derived from the alias map rather than listed, so an alias added there is\n * forbidden here on the same commit instead of quietly becoming declarable — and\n * the pin in `minion-resource-access.validation.test.ts` forces that addition to\n * be reviewed rather than absorbed.\n */\nexport const MINION_FORBIDDEN_ALIASED_DOOR_RESOURCE_TYPES: readonly string[] =\n Object.keys(RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES);\n\n/** One reason a `resourceAccess` declaration cannot be turned into grants. */\nexport interface MinionResourceAccessViolation {\n /** The AUTHORED axis the offending entry was declared on — `resourceAccess` has only these two. */\n readonly axis: RuntimePrincipalDatabaseGrantAxis.READ | RuntimePrincipalDatabaseGrantAxis.WRITE;\n readonly resourceType: string;\n /** Operator-facing explanation naming the consequence and the fix. */\n readonly message: string;\n}\n\n/**\n * Reject aliased-door types, and refuse any declaration whose types collapse onto\n * one collection.\n *\n * Returns every violation rather than throwing on the first: an author fixing a\n * config wants the whole list, and a caller that wants to fail closed can do so\n * on a non-empty result.\n *\n * ## The injectivity check is NOT redundant with the aliased-door rejection\n *\n * It is tempting to think removing the aliased doors makes collisions impossible —\n * that is true of TODAY's alias map and is exactly why this must be checked\n * rather than assumed. The alias map is data: a future entry that aliases two\n * types a minion MAY declare onto one collection would reintroduce the collapse,\n * and the grant derived for one type would silently carry the other's rows.\n * Failing closed here makes that a build failure instead of a containment that\n * quietly widened.\n */\nexport function findMinionResourceAccessViolations(resourceAccess: {\n read?: readonly string[] | undefined;\n write?: readonly string[] | undefined;\n}): MinionResourceAccessViolation[] {\n const violations: MinionResourceAccessViolation[] = [];\n const axes: Array<[MinionResourceAccessViolation['axis'], readonly string[]]> = [\n [RuntimePrincipalDatabaseGrantAxis.READ, resourceAccess.read ?? []],\n [RuntimePrincipalDatabaseGrantAxis.WRITE, resourceAccess.write ?? []],\n ];\n\n // An APPEND-ONLY floor entry may not be widened to WRITE by declaration. Refused here, at parse\n // time, rather than honoured downstream: the write axis carries DELETE, so `write: ['auditLogs']`\n // is not a broader version of the audit floor — it is the one grant that lets a principal remove\n // the evidence of what it did. This used to be permitted as \"an explicit, reviewed decision\", and\n // the grant derivation kept the declared axis; but a declaration nobody is forced to justify is not\n // a review, and the property the append axis exists for held only until somebody typed one word.\n // Derived from the floor itself, so a type added to the append floor tomorrow is refused on write\n // on the same commit.\n for (const resourceType of resourceAccess.write ?? []) {\n if ((MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES as readonly string[]).includes(resourceType)) {\n violations.push({\n axis: RuntimePrincipalDatabaseGrantAxis.WRITE,\n resourceType,\n message:\n `'${resourceType}' cannot be declared on a minion's write axis: the engine already grants it APPEND-only `\n + '(insert, never update or delete), and a write grant would let this minion modify or remove rows it '\n + 'appended — for the audit trail, the evidence of its own actions. Remove it from `write`; appending '\n + 'needs no declaration.',\n });\n }\n }\n\n for (const [axis, declared] of axes) {\n for (const resourceType of declared) {\n if (MINION_FORBIDDEN_ALIASED_DOOR_RESOURCE_TYPES.includes(resourceType)) {\n // The message names only what is true of EVERY aliased door: the collection\n // it shares and the wider type that owns it. An earlier message called each\n // entry a \"SELF door … every user's row\", which was false for the audit door.\n const widerResourceType = RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES[resourceType]!;\n const collection = resolveSharedPersistenceCollectionName(resourceType as ResourceType);\n violations.push({\n axis,\n resourceType,\n message:\n `'${resourceType}' is an ALIASED door and cannot be granted to a minion (D15): its rows live in the `\n + `'${collection}' collection it shares with '${widerResourceType}'. A database grant is issued per `\n + `collection, so granting '${resourceType}' would reach every row '${widerResourceType}' addresses — `\n + `wider than the door '${resourceType}' promises. Declare '${widerResourceType}' explicitly if the `\n + 'minion genuinely needs that breadth.',\n });\n }\n }\n\n // Injectivity, per AXIS: two declared types resolving to one collection make\n // the derived grant wider than either declaration reads.\n const collectionOwners = new Map<string, string>();\n for (const resourceType of declared) {\n const collection = resolveSharedPersistenceCollectionName(resourceType as ResourceType);\n const existing = collectionOwners.get(collection);\n if (existing !== undefined && existing !== resourceType) {\n violations.push({\n axis,\n resourceType,\n message:\n `'${resourceType}' and '${existing}' both resolve to the '${collection}' collection, `\n + 'so a grant derived from either carries the other\\'s rows. Refusing to derive grants '\n + 'from a declaration whose types are not injective over collections (F1 guard) — '\n + 'declare exactly one of them.',\n });\n continue;\n }\n collectionOwners.set(collection, resourceType);\n }\n }\n\n return violations;\n}\n\n/**\n * What a minion may touch, per axis — expressed in RESOURCE TYPES, the\n * vocabulary the rest of the platform speaks.\n *\n * ## Why not collection names\n *\n * An earlier revision returned collection names, which quietly made storage the\n * API of a security decision. `resourceAccess` is AUTHORED in resource types,\n * `ResourceType` is what every other Wildo surface passes around, and a\n * collection is one adapter's rendering of where those rows happen to live —\n * MongoDB calls it a collection, PostgreSQL a table, and a future adapter will\n * call it something else again. Naming the security contract after one of them\n * would force every reader to translate back, and would make the grant set look\n * different depending on which database an application chose.\n *\n * The translation therefore happens at the ADAPTER boundary — see\n * {@link resolveGrantStorageNames} — which is the only place that legitimately\n * knows about storage, exactly as external protocol literals are confined to the\n * thin adapter that speaks them.\n *\n * `null` means **no access was declared at all**, which is NOT the same as an\n * empty declaration and must not be flattened into one. Absent ⇒ no authored business-data access. The database credential owner\n * separately supplies the mandatory runtime floor; object storage must not receive\n * that floor. Declared-but-empty remains an explicit author decision. One \"empty list\" for both would\n * make \"I forgot\" indistinguishable from \"I meant none\".\n */\nexport interface MinionResourceGrants {\n readonly read: readonly ResourceType[];\n readonly write: readonly ResourceType[];\n}\n\n/**\n * Derive a minion's grants from an authored `resourceAccess`.\n *\n * ## `write` does NOT imply `read`, deliberately\n *\n * It is tempting to add read wherever write is granted — most write paths in the\n * backend pipeline do read first (validation, FK resolution, read-modify-write),\n * so a `write: ['todos']` minion will often need `read: ['todos']` too.\n *\n * It is still refused, for the reason this entire workstream exists: a grant the\n * author did not write is a grant nobody reviewed. An insert-only minion is a\n * real shape, and silently widening every writer to a reader would make the\n * declaration stop describing the outcome — the precise property that made\n * `resourceAccess` non-binding before it produced real credentials.\n *\n * The cost is stated rather than hidden: a minion that writes without declaring\n * read will fail at RUNTIME on its first read, with the database naming the\n * action it lacked. A loud, local failure with an obvious fix (declare the read)\n * is the trade this prefers over a silent widening.\n *\n * ## The F2 transitive read path is the CALLER's to supply\n *\n * A declared type can pull in others through nested reads — the closure rule is\n * *declared ∪ child-direction targets declaring nested `onRead`, transitively*.\n * Computing it needs the resource graph, which this layer does not have, so it\n * arrives as `transitiveReadResourceTypes`. Omitting it is correct ONLY when the\n * application declares no nested `onRead` (true of Wonder Todos, measured\n * 2026-08-05); omitting it elsewhere yields a credential that is denied on a\n * path which works today.\n */\nexport function deriveMinionResourceGrants(\n resourceAccess: { read?: readonly string[] | undefined; write?: readonly string[] | undefined } | undefined,\n transitiveReadResourceTypes: readonly string[] = [],\n): MinionResourceGrants | null {\n if (!resourceAccess) return null;\n\n const violations = findMinionResourceAccessViolations(resourceAccess);\n if (violations.length > 0) {\n // Fail closed. Reaching here means the parse-time gate was bypassed (a\n // hand-built object, a future caller); deriving anyway would issue exactly\n // the over-broad grant those gates exist to refuse.\n throw new Error(\n `Refusing to derive minion resource grants from an invalid resourceAccess: `\n + violations.map((violation) => `[${violation.axis}] ${violation.message}`).join(' '),\n );\n }\n\n // Deduped and ordered so a grant set is stable between syncs — an unstable\n // one reads as a change and would re-issue credentials for nothing.\n const normalize = (resourceTypes: readonly string[]): ResourceType[] =>\n [...new Set(resourceTypes)].sort() as ResourceType[];\n\n return {\n read: normalize([...(resourceAccess.read ?? []), ...transitiveReadResourceTypes]),\n write: normalize(resourceAccess.write ?? []),\n };\n}\n\n/**\n * Translate a grant axis into the STORAGE names one adapter will grant on.\n *\n * The single, explicitly-named boundary between the platform vocabulary and a\n * database dialect. A Mongo module builds collection privileges from it; a\n * PostgreSQL module builds table grants; both call the same function so the two\n * cannot disagree about which rows a resource type addresses.\n *\n * Safe to collapse duplicates here ONLY because the F1 guard already refused any\n * declaration whose types share a collection — see\n * {@link findMinionResourceAccessViolations}. Without that guarantee this\n * function would silently merge two declarations into one grant.\n */\nexport function resolveGrantStorageNames(resourceTypes: readonly ResourceType[]): string[] {\n return [...new Set(resourceTypes.map((resourceType) => resolveSharedPersistenceCollectionName(resourceType)))].sort();\n}\n\n/**\n * What the ENGINE reads and writes for every runtime principal, whatever that\n * principal declared — the floor a database role must hold before any authored\n * `resourceAccess` is considered at all.\n *\n * ## Why this is not declarable, and must not become so\n *\n * `resourceAccess` answers \"what application data may this minion touch\". These\n * entries answer a different question: \"what does the framework itself touch\n * in order to run a repository operation at all\". No author decides them, no\n * author can opt out of them, and asking one to write them down would be asking\n * a human for an answer the mechanism already knows — the exact shape\n * `.claude/rules/derive-before-you-ask.md` refuses. They are derived here, once,\n * from the engine paths that actually perform them:\n *\n * - **`APPLICATION`, read.** `ExecutionContextCreatorBackendService.getApplicationId`\n * resolves the singleton APPLICATION row for EVERY `ResourcePrimaryScope.APPLICATION`\n * operation, through `repositoriesRegistry` directly. That read is structural:\n * a minion declaring `read: ['todos']` is declaring an APPLICATION-scoped read,\n * so it triggers this one before it ever reaches `todos`.\n * - **`AUDIT_LOGS`, append.** `AuditLogsBackendService` writes one row per audited\n * operation, including the `system_context_read` it emits for the read above.\n * - **`JOB_EXECUTIONS`, read/maintain.** Scheduled receipt, atomic admission,\n * heartbeat and recovery update durable history, including after a restart.\n * - **`JOB_PAYLOAD_STORAGE`, read/append.** Recovery retains completed output\n * without granting the principal permission to rewrite or delete that output.\n *\n * These framework operations bypass the in-process `resourceAccess` whitelist by construction —\n * `MinionScopedServicesRegistryHandlerBackendService` decorates the minion's\n * SERVICES registry, and these go through the repositories registry — so the\n * database grant was the only gate they ever met, and it refused them. That\n * asymmetry is the defect: the in-process policy already permits these reads,\n * and the credential did not.\n *\n * ## Why AUDIT_LOGS is APPEND and not WRITE\n *\n * The `write` axis grants `INSERT, UPDATE, DELETE`. Putting the audit table there\n * would let every minion rewrite or delete the evidence of its own actions, which\n * is not a smaller version of the right answer — it is the opposite of one. An\n * audit trail a principal can delete is not an audit trail. The append axis exists\n * so this floor can be satisfied without handing out that capability.\n *\n * ## What this does NOT cover\n *\n * Named runtime principals only. The APPLICATION BACKEND is issued a database-owning\n * credential on every adapter (PostgreSQL `ALL PRIVILEGES`, MongoDB `readWrite` +\n * `dbAdmin`, Atlas `readWrite`), so nothing at the database layer stops the backend's\n * own credential from amending an audit row; for the backend, audit immutability is\n * the application layer's — `AUDIT_LOGS` exposes no update or delete operation. And\n * only the SELF-MANAGED adapters issue a per-principal credential at all.\n *\n * assurance-control: WILDO.AUDIT.TAMPER_RESISTANCE — a named runtime principal may add\n * audit rows and may never modify or remove them, and may not be granted otherwise.\n */\nexport const MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES: readonly ResourceType[] =\n [CoreResourceType.APPLICATION, CoreResourceType.JOB_EXECUTIONS, CoreResourceType.JOB_PAYLOAD_STORAGE] as unknown as readonly ResourceType[];\n\n/** @see MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES — the append-only floor. */\nexport const MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES: readonly ResourceType[] =\n [CoreResourceType.AUDIT_LOGS, CoreResourceType.JOB_PAYLOAD_STORAGE] as unknown as readonly ResourceType[];\n\n/** Insert and update durable execution state, without permission to erase its history. */\nexport const MINION_ENGINE_MANDATORY_MAINTAIN_RESOURCE_TYPES: readonly ResourceType[] =\n [CoreResourceType.JOB_EXECUTIONS] as unknown as readonly ResourceType[];\n\n/**\n * A minion's grants as a DATABASE role must hold them: what the author declared,\n * plus the engine floor above — one resource-type list per\n * {@link RuntimePrincipalDatabaseGrantAxis}, whose members document each axis's verbs.\n *\n * Mapped over the axis vocabulary rather than spelled out, so an axis added there is a compile error\n * at every site that builds or consumes one of these until it is handled.\n *\n * Separate append and maintain axes keep the floor honest — see\n * {@link MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES}.\n */\nexport type MinionDatabaseGrants = {\n readonly [Axis in RuntimePrincipalDatabaseGrantAxis]: readonly ResourceType[];\n};\n\n/**\n * Add the engine floor to an authored derivation — the ONE place database grants\n * acquire it.\n *\n * ## Why here and not in {@link deriveMinionResourceGrants}\n *\n * That function answers \"what did the author declare\", and it has a THIRD\n * consumer that must not receive this floor: the object-storage credential path\n * turns the same grants into blob key prefixes. Widening it there would confine a\n * minion's storage credential to an `applications/` prefix nobody asked for and\n * nothing writes. The floor is a property of holding a DATABASE role, so it is\n * applied at the boundary where a database role is minted — and both database\n * adapters call this one function, so they cannot drift apart the way the mint\n * and revoke halves of those adapters already have once\n * (`.claude/rules/invariant-call-site-enumeration.md` #18).\n *\n * Idempotent: a floor entry the author also declared appears once.\n */\nexport function deriveMinionDatabaseGrants(grants: MinionResourceGrants): MinionDatabaseGrants {\n const normalize = (resourceTypes: readonly ResourceType[]): ResourceType[] =>\n [...new Set(resourceTypes)].sort();\n\n const declaredWrite = new Set<string>(grants.write);\n\n // Fail closed on an append-only floor entry that arrived on the write axis. The parse-time gate in\n // `findMinionResourceAccessViolations` refuses the declaration; reaching here with one means that\n // gate was bypassed (a hand-built grant object), and honouring it would mint the one credential the\n // append axis exists to withhold.\n const widenedAppendFloor = MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES.filter((resourceType) => declaredWrite.has(resourceType));\n if (widenedAppendFloor.length > 0) {\n throw new Error(\n `Refusing to derive minion database grants that put append-only resource types on the write axis: `\n + `${widenedAppendFloor.join(', ')}. A write grant carries DELETE; these are granted APPEND only.`,\n );\n }\n\n return {\n [RuntimePrincipalDatabaseGrantAxis.READ]: normalize([...grants.read, ...MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES]),\n [RuntimePrincipalDatabaseGrantAxis.WRITE]: normalize(grants.write),\n [RuntimePrincipalDatabaseGrantAxis.APPEND]: normalize(MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES),\n // A MAINTAIN floor entry the author also declared on write keeps the wider axis: runtime state is\n // not evidence, so the append-floor refusal above deliberately does not extend to it.\n [RuntimePrincipalDatabaseGrantAxis.MAINTAIN]: normalize(\n MINION_ENGINE_MANDATORY_MAINTAIN_RESOURCE_TYPES.filter((resourceType) => !declaredWrite.has(resourceType)),\n ),\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"minion-resource-access.validation.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/minion-resource-access.validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,8CAA8C,EAC9C,iCAAiC,EACjC,sCAAsC,GAEvC,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;GAQG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,4CAA4C,GACvD,MAAM,CAAC,IAAI,CAAC,8CAA8C,CAAC,CAAC;AAW9D;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,kCAAkC,CAAC,cAGlD;IACC,MAAM,UAAU,GAAoC,EAAE,CAAC;IACvD,MAAM,IAAI,GAAsE;QAC9E,CAAC,iCAAiC,CAAC,IAAI,EAAE,cAAc,CAAC,IAAI,IAAI,EAAE,CAAC;QACnE,CAAC,iCAAiC,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,IAAI,EAAE,CAAC;KACtE,CAAC;IAEF,gGAAgG;IAChG,kGAAkG;IAClG,iGAAiG;IACjG,kGAAkG;IAClG,oG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CAA6C,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;IACnI,IAAI,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CACb,mGAAmG;cACjG,GAAG,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,gEAAgE,CACnG,CAAC;IACJ,CAAC;IAED,OAAO;QACL,CAAC,iCAAiC,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,GAAG,2CAA2C,CAAC,CAAC;QACrH,CAAC,iCAAiC,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC;QAClE,CAAC,iCAAiC,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,6CAA6C,CAAC;QACpG,kGAAkG;QAClG,sFAAsF;QACtF,CAAC,iCAAiC,CAAC,QAAQ,CAAC,EAAE,SAAS,CACrD,+CAA+C,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAC3G;KACF,CAAC;AACJ,CAAC","sourcesContent":["import {\n CoreResourceType,\n RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES,\n RuntimePrincipalDatabaseGrantAxis,\n resolveSharedPersistenceCollectionName,\n type ResourceType,\n} from '@wildo-ai/saas-models';\n\n/**\n * The two safety gates that must hold BEFORE a minion's `resourceAccess` may be\n * turned into database grants (Step 3 shared prerequisites, R11 + the F1 guard).\n *\n * Both exist because of the same asymmetry: `resourceAccess` is a RESOURCE-TYPE\n * whitelist, while a database grant is a COLLECTION grant. The two only line up\n * when the mapping between them is injective over the declarable set — and the\n * alias map is exactly where it is not.\n */\n\n/**\n * Resource types a minion may never declare (D15 / R11) — every ALIASED door.\n *\n * An aliased door is a resource type whose rows live in ANOTHER resource type's\n * collection (`RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES`). It is always the\n * NARROWER of the two doors, and a database grant cannot be narrower than a\n * collection — so a grant derived from the narrow door carries the wide one.\n *\n * The alias map holds two KINDS of narrow door, and both are refused for that\n * same reason while differing in why they are narrow:\n *\n * - **self doors** (`USER_SELF`, `USER_SELF_PROFILES`, `USER_SELF_PREFERENCES`)\n * address \"MY row\". They are additionally meaningless for a minion:\n * `APPLICATION_MACHINE` carries no `userId`, so there is no row to be \"mine\".\n * Declaring `USER_SELF` would grant the whole `users` collection — every user's\n * row, through a door that promises one.\n * - **subset doors** (`APPLICATION_AUDIT_LOGS`, #317) see a different SUBSET of a\n * shared record set. The application audit door and the organization audit door\n * read one trail; a grant derived from either carries the entire trail.\n *\n * This constant was named `MINION_FORBIDDEN_SELF_DOOR_RESOURCE_TYPES` while the\n * map held only self doors, and kept that name — and a refusal message calling\n * every entry a self door — after the audit door joined it (#458). The rule was\n * never \"self doors are forbidden\"; it is \"a grant must not be wider than the\n * declaration reads\", and the name now says that.\n *\n * Removing every aliased door from the declarable set is also what makes\n * resource-type → collection INJECTIVE, so a grant derived per resource type means\n * exactly what the author wrote. Relaxing it for convenience silently restores\n * the coarser floor.\n *\n * Derived from the alias map rather than listed, so an alias added there is\n * forbidden here on the same commit instead of quietly becoming declarable — and\n * the pin in `minion-resource-access.validation.test.ts` forces that addition to\n * be reviewed rather than absorbed.\n */\nexport const MINION_FORBIDDEN_ALIASED_DOOR_RESOURCE_TYPES: readonly string[] =\n Object.keys(RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES);\n\n/** One reason a `resourceAccess` declaration cannot be turned into grants. */\nexport interface MinionResourceAccessViolation {\n /** The AUTHORED axis the offending entry was declared on — `resourceAccess` has only these two. */\n readonly axis: RuntimePrincipalDatabaseGrantAxis.READ | RuntimePrincipalDatabaseGrantAxis.WRITE;\n readonly resourceType: string;\n /** Operator-facing explanation naming the consequence and the fix. */\n readonly message: string;\n}\n\n/**\n * Reject aliased-door types, and refuse any declaration whose types collapse onto\n * one collection.\n *\n * Returns every violation rather than throwing on the first: an author fixing a\n * config wants the whole list, and a caller that wants to fail closed can do so\n * on a non-empty result.\n *\n * ## The injectivity check is NOT redundant with the aliased-door rejection\n *\n * It is tempting to think removing the aliased doors makes collisions impossible —\n * that is true of TODAY's alias map and is exactly why this must be checked\n * rather than assumed. The alias map is data: a future entry that aliases two\n * types a minion MAY declare onto one collection would reintroduce the collapse,\n * and the grant derived for one type would silently carry the other's rows.\n * Failing closed here makes that a build failure instead of a containment that\n * quietly widened.\n */\nexport function findMinionResourceAccessViolations(resourceAccess: {\n read?: readonly string[] | undefined;\n write?: readonly string[] | undefined;\n}): MinionResourceAccessViolation[] {\n const violations: MinionResourceAccessViolation[] = [];\n const axes: Array<[MinionResourceAccessViolation['axis'], readonly string[]]> = [\n [RuntimePrincipalDatabaseGrantAxis.READ, resourceAccess.read ?? []],\n [RuntimePrincipalDatabaseGrantAxis.WRITE, resourceAccess.write ?? []],\n ];\n\n // An APPEND-ONLY floor entry may not be widened to WRITE by declaration. Refused here, at parse\n // time, rather than honoured downstream: the write axis carries DELETE, so `write: ['auditLogs']`\n // is not a broader version of the audit floor — it is the one grant that lets a principal remove\n // the evidence of what it did. This used to be permitted as \"an explicit, reviewed decision\", and\n // the grant derivation kept the declared axis; but a declaration nobody is forced to justify is not\n // a review, and the property the append axis exists for held only until somebody typed one word.\n // Derived from the floor itself, so a type added to the append floor tomorrow is refused on write\n // on the same commit.\n for (const resourceType of resourceAccess.write ?? []) {\n if ((MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES as readonly string[]).includes(resourceType)) {\n violations.push({\n axis: RuntimePrincipalDatabaseGrantAxis.WRITE,\n resourceType,\n message:\n `'${resourceType}' cannot be declared on a minion's write axis: the engine already grants it APPEND-only `\n + '(insert, never update or delete), and a write grant would let this minion modify or remove rows it '\n + 'appended — for the audit trail, the evidence of its own actions. Remove it from `write`; appending '\n + 'needs no declaration.',\n });\n }\n }\n\n for (const [axis, declared] of axes) {\n for (const resourceType of declared) {\n if (MINION_FORBIDDEN_ALIASED_DOOR_RESOURCE_TYPES.includes(resourceType)) {\n // The message names only what is true of EVERY aliased door: the collection\n // it shares and the wider type that owns it. An earlier message called each\n // entry a \"SELF door … every user's row\", which was false for the audit door.\n const widerResourceType = RESOURCE_SHARED_PERSISTENCE_COLLECTION_ALIASES[resourceType]!;\n const collection = resolveSharedPersistenceCollectionName(resourceType as ResourceType);\n violations.push({\n axis,\n resourceType,\n message:\n `'${resourceType}' is an ALIASED door and cannot be granted to a minion (D15): its rows live in the `\n + `'${collection}' collection it shares with '${widerResourceType}'. A database grant is issued per `\n + `collection, so granting '${resourceType}' would reach every row '${widerResourceType}' addresses — `\n + `wider than the door '${resourceType}' promises. Declare '${widerResourceType}' explicitly if the `\n + 'minion genuinely needs that breadth.',\n });\n }\n }\n\n // Injectivity, per AXIS: two declared types resolving to one collection make\n // the derived grant wider than either declaration reads.\n const collectionOwners = new Map<string, string>();\n for (const resourceType of declared) {\n const collection = resolveSharedPersistenceCollectionName(resourceType as ResourceType);\n const existing = collectionOwners.get(collection);\n if (existing !== undefined && existing !== resourceType) {\n violations.push({\n axis,\n resourceType,\n message:\n `'${resourceType}' and '${existing}' both resolve to the '${collection}' collection, `\n + 'so a grant derived from either carries the other\\'s rows. Refusing to derive grants '\n + 'from a declaration whose types are not injective over collections (F1 guard) — '\n + 'declare exactly one of them.',\n });\n continue;\n }\n collectionOwners.set(collection, resourceType);\n }\n }\n\n return violations;\n}\n\n/**\n * What a minion may touch, per axis — expressed in RESOURCE TYPES, the\n * vocabulary the rest of the platform speaks.\n *\n * ## Why not collection names\n *\n * An earlier revision returned collection names, which quietly made storage the\n * API of a security decision. `resourceAccess` is AUTHORED in resource types,\n * `ResourceType` is what every other Wildo surface passes around, and a\n * collection is one adapter's rendering of where those rows happen to live —\n * MongoDB calls it a collection, PostgreSQL a table, and a future adapter will\n * call it something else again. Naming the security contract after one of them\n * would force every reader to translate back, and would make the grant set look\n * different depending on which database an application chose.\n *\n * The translation therefore happens at the ADAPTER boundary — see\n * {@link resolveGrantStorageNames} — which is the only place that legitimately\n * knows about storage, exactly as external protocol literals are confined to the\n * thin adapter that speaks them.\n *\n * `null` means **no access was declared at all**, which is NOT the same as an\n * empty declaration and must not be flattened into one. Absent ⇒ no authored business-data access. The database credential owner\n * separately supplies the mandatory runtime floor; object storage must not receive\n * that floor. Declared-but-empty remains an explicit author decision. One \"empty list\" for both would\n * make \"I forgot\" indistinguishable from \"I meant none\".\n */\nexport interface MinionResourceGrants {\n readonly read: readonly ResourceType[];\n readonly write: readonly ResourceType[];\n}\n\n/**\n * Derive a minion's grants from an authored `resourceAccess`.\n *\n * ## `write` does NOT imply `read`, deliberately\n *\n * It is tempting to add read wherever write is granted — most write paths in the\n * backend pipeline do read first (validation, FK resolution, read-modify-write),\n * so a `write: ['todos']` minion will often need `read: ['todos']` too.\n *\n * It is still refused, for the reason this entire workstream exists: a grant the\n * author did not write is a grant nobody reviewed. An insert-only minion is a\n * real shape, and silently widening every writer to a reader would make the\n * declaration stop describing the outcome — the precise property that made\n * `resourceAccess` non-binding before it produced real credentials.\n *\n * The cost is stated rather than hidden: a minion that writes without declaring\n * read will fail at RUNTIME on its first read, with the database naming the\n * action it lacked. A loud, local failure with an obvious fix (declare the read)\n * is the trade this prefers over a silent widening.\n *\n * ## The F2 transitive read path is the CALLER's to supply\n *\n * A declared type can pull in others through nested reads — the closure rule is\n * *declared ∪ child-direction targets declaring nested `onRead`, transitively*.\n * Computing it needs the resource graph, which this layer does not have, so it\n * arrives as `transitiveReadResourceTypes`. Omitting it is correct ONLY when the\n * application declares no nested `onRead` (true of Wonder Todos, measured\n * 2026-08-05); omitting it elsewhere yields a credential that is denied on a\n * path which works today.\n */\nexport function deriveMinionResourceGrants(\n resourceAccess: { read?: readonly string[] | undefined; write?: readonly string[] | undefined } | undefined,\n transitiveReadResourceTypes: readonly string[] = [],\n): MinionResourceGrants | null {\n if (!resourceAccess) return null;\n\n const violations = findMinionResourceAccessViolations(resourceAccess);\n if (violations.length > 0) {\n // Fail closed. Reaching here means the parse-time gate was bypassed (a\n // hand-built object, a future caller); deriving anyway would issue exactly\n // the over-broad grant those gates exist to refuse.\n throw new Error(\n `Refusing to derive minion resource grants from an invalid resourceAccess: `\n + violations.map((violation) => `[${violation.axis}] ${violation.message}`).join(' '),\n );\n }\n\n // Deduped and ordered so a grant set is stable between syncs — an unstable\n // one reads as a change and would re-issue credentials for nothing.\n const normalize = (resourceTypes: readonly string[]): ResourceType[] =>\n [...new Set(resourceTypes)].sort() as ResourceType[];\n\n return {\n read: normalize([...(resourceAccess.read ?? []), ...transitiveReadResourceTypes]),\n write: normalize(resourceAccess.write ?? []),\n };\n}\n\n/**\n * Translate a grant axis into the STORAGE names one adapter will grant on.\n *\n * The single, explicitly-named boundary between the platform vocabulary and a\n * database dialect. A Mongo module builds collection privileges from it; a\n * PostgreSQL module builds table grants; both call the same function so the two\n * cannot disagree about which rows a resource type addresses.\n *\n * Safe to collapse duplicates here ONLY because the F1 guard already refused any\n * declaration whose types share a collection — see\n * {@link findMinionResourceAccessViolations}. Without that guarantee this\n * function would silently merge two declarations into one grant.\n */\nexport function resolveGrantStorageNames(resourceTypes: readonly ResourceType[]): string[] {\n return [...new Set(resourceTypes.map((resourceType) => resolveSharedPersistenceCollectionName(resourceType)))].sort();\n}\n\n/**\n * What the ENGINE reads and writes for every runtime principal, whatever that\n * principal declared — the floor a database role must hold before any authored\n * `resourceAccess` is considered at all.\n *\n * ## Why this is not declarable, and must not become so\n *\n * `resourceAccess` answers \"what application data may this minion touch\". These\n * entries answer a different question: \"what does the framework itself touch\n * in order to run a repository operation at all\". No author decides them, no\n * author can opt out of them, and asking one to write them down would be asking\n * a human for an answer the mechanism already knows — the exact shape\n * `.claude/rules/derive-before-you-ask.md` refuses. They are derived here, once,\n * from the engine paths that actually perform them:\n *\n * - **`APPLICATION`, read.** `ExecutionContextCreatorBackendService.getApplicationId`\n * resolves the singleton APPLICATION row for EVERY `ResourcePrimaryScope.APPLICATION`\n * operation, through `repositoriesRegistry` directly. That read is structural:\n * a minion declaring `read: ['todos']` is declaring an APPLICATION-scoped read,\n * so it triggers this one before it ever reaches `todos`.\n * - **`AUDIT_LOGS`, append.** `AuditLogsBackendService` writes one row per audited\n * operation, including the `system_context_read` it emits for the read above.\n * - **`JOB_EXECUTIONS`, read/maintain.** Scheduled receipt, atomic admission,\n * heartbeat and recovery update durable history, including after a restart.\n * - **`JOB_PAYLOAD_STORAGE`, read/append.** Recovery retains completed output\n * without granting the principal permission to rewrite or delete that output.\n * - **`APPLICATION_DATA_KEYS`, read/maintain (#2894).** A minion opens the stored secrets the backend seals (a\n * provider credential an agent calls with), so its data-key ring reads every WRAPPED data key at boot, and it\n * reserves seals and issues a data key when it seals one itself. Unwrapping still needs the platform custodian,\n * which admits only the runtimes the `sealed_secrets` purpose names; a wrapped key read here opens nothing alone.\n *\n * These framework operations bypass the in-process `resourceAccess` whitelist by construction —\n * `MinionScopedServicesRegistryHandlerBackendService` decorates the minion's\n * SERVICES registry, and these go through the repositories registry — so the\n * database grant was the only gate they ever met, and it refused them. That\n * asymmetry is the defect: the in-process policy already permits these reads,\n * and the credential did not.\n *\n * ## Why AUDIT_LOGS is APPEND and not WRITE\n *\n * The `write` axis grants `INSERT, UPDATE, DELETE`. Putting the audit table there\n * would let every minion rewrite or delete the evidence of its own actions, which\n * is not a smaller version of the right answer — it is the opposite of one. An\n * audit trail a principal can delete is not an audit trail. The append axis exists\n * so this floor can be satisfied without handing out that capability.\n *\n * ## What this does NOT cover\n *\n * Named runtime principals only. The APPLICATION BACKEND is issued a database-owning\n * credential on every adapter (PostgreSQL `ALL PRIVILEGES`, MongoDB `readWrite` +\n * `dbAdmin`, Atlas `readWrite`), so nothing at the database layer stops the backend's\n * own credential from amending an audit row; for the backend, audit immutability is\n * the application layer's — `AUDIT_LOGS` exposes no update or delete operation. And\n * only the SELF-MANAGED adapters issue a per-principal credential at all.\n *\n * assurance-control: WILDO.AUDIT.TAMPER_RESISTANCE — a named runtime principal may add\n * audit rows and may never modify or remove them, and may not be granted otherwise.\n */\nexport const MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES: readonly ResourceType[] =\n [CoreResourceType.APPLICATION, CoreResourceType.JOB_EXECUTIONS, CoreResourceType.JOB_PAYLOAD_STORAGE, CoreResourceType.APPLICATION_DATA_KEYS] as unknown as readonly ResourceType[];\n\n/** @see MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES — the append-only floor. */\nexport const MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES: readonly ResourceType[] =\n [CoreResourceType.AUDIT_LOGS, CoreResourceType.JOB_PAYLOAD_STORAGE] as unknown as readonly ResourceType[];\n\n/** Insert and update durable execution state, without permission to erase its history. */\nexport const MINION_ENGINE_MANDATORY_MAINTAIN_RESOURCE_TYPES: readonly ResourceType[] =\n [CoreResourceType.JOB_EXECUTIONS, CoreResourceType.APPLICATION_DATA_KEYS] as unknown as readonly ResourceType[];\n\n/**\n * A minion's grants as a DATABASE role must hold them: what the author declared,\n * plus the engine floor above — one resource-type list per\n * {@link RuntimePrincipalDatabaseGrantAxis}, whose members document each axis's verbs.\n *\n * Mapped over the axis vocabulary rather than spelled out, so an axis added there is a compile error\n * at every site that builds or consumes one of these until it is handled.\n *\n * Separate append and maintain axes keep the floor honest — see\n * {@link MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES}.\n */\nexport type MinionDatabaseGrants = {\n readonly [Axis in RuntimePrincipalDatabaseGrantAxis]: readonly ResourceType[];\n};\n\n/**\n * Add the engine floor to an authored derivation — the ONE place database grants\n * acquire it.\n *\n * ## Why here and not in {@link deriveMinionResourceGrants}\n *\n * That function answers \"what did the author declare\", and it has a THIRD\n * consumer that must not receive this floor: the object-storage credential path\n * turns the same grants into blob key prefixes. Widening it there would confine a\n * minion's storage credential to an `applications/` prefix nobody asked for and\n * nothing writes. The floor is a property of holding a DATABASE role, so it is\n * applied at the boundary where a database role is minted — and both database\n * adapters call this one function, so they cannot drift apart the way the mint\n * and revoke halves of those adapters already have once\n * (`.claude/rules/invariant-call-site-enumeration.md` #18).\n *\n * Idempotent: a floor entry the author also declared appears once.\n */\nexport function deriveMinionDatabaseGrants(grants: MinionResourceGrants): MinionDatabaseGrants {\n const normalize = (resourceTypes: readonly ResourceType[]): ResourceType[] =>\n [...new Set(resourceTypes)].sort();\n\n const declaredWrite = new Set<string>(grants.write);\n\n // Fail closed on an append-only floor entry that arrived on the write axis. The parse-time gate in\n // `findMinionResourceAccessViolations` refuses the declaration; reaching here with one means that\n // gate was bypassed (a hand-built grant object), and honouring it would mint the one credential the\n // append axis exists to withhold.\n const widenedAppendFloor = MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES.filter((resourceType) => declaredWrite.has(resourceType));\n if (widenedAppendFloor.length > 0) {\n throw new Error(\n `Refusing to derive minion database grants that put append-only resource types on the write axis: `\n + `${widenedAppendFloor.join(', ')}. A write grant carries DELETE; these are granted APPEND only.`,\n );\n }\n\n return {\n [RuntimePrincipalDatabaseGrantAxis.READ]: normalize([...grants.read, ...MINION_ENGINE_MANDATORY_READ_RESOURCE_TYPES]),\n [RuntimePrincipalDatabaseGrantAxis.WRITE]: normalize(grants.write),\n [RuntimePrincipalDatabaseGrantAxis.APPEND]: normalize(MINION_ENGINE_MANDATORY_APPEND_RESOURCE_TYPES),\n // A MAINTAIN floor entry the author also declared on write keeps the wider axis: runtime state is\n // not evidence, so the append-floor refusal above deliberately does not extend to it.\n [RuntimePrincipalDatabaseGrantAxis.MAINTAIN]: normalize(\n MINION_ENGINE_MANDATORY_MAINTAIN_RESOURCE_TYPES.filter((resourceType) => !declaredWrite.has(resourceType)),\n ),\n };\n}\n"]}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BackingServiceSource } from './backing-services.schemas';
|
|
3
|
+
/** @wildo_source:part:start platform.config.platform-key-management facet:layer:platform facet:family:infra facet:audience:app-developer */
|
|
4
|
+
/**
|
|
5
|
+
* # Where the platform keeps the keys it holds for applications (#2933)
|
|
6
|
+
*
|
|
7
|
+
* apps-manager is the custodian of every platform-held key (approval seals, signature requests, and the wrapping keys
|
|
8
|
+
* of an application's sealed secrets, #2894). Without this block it
|
|
9
|
+
* seals them under its own key-encryption root (the LOCAL provider). With it, apps-manager also serves the
|
|
10
|
+
* `vault-transit` and `vault-kv` key providers, and an application's key binding may name one of them.
|
|
11
|
+
*
|
|
12
|
+
* This is a PLATFORM-tier declaration, like `platformStorage`: one apps-manager holds one Vault, whatever application
|
|
13
|
+
* an environment file belongs to. It is deliberately not a `backingServices` kind. A backing service is something an
|
|
14
|
+
* application runtime dials, with credentials minted per application; no application runtime ever reaches this Vault,
|
|
15
|
+
* and nothing is minted per application in it.
|
|
16
|
+
*
|
|
17
|
+
* - `{ vault: { source: 'self' } }` — the CLI renders a single-node OpenBao (the MPL-licensed Vault fork, API
|
|
18
|
+
* compatible for everything used) beside apps-manager, in docker compose and in Kubernetes. It unseals itself from a
|
|
19
|
+
* framework-managed key and configures itself on its first start: the Transit and KV mounts, the two least-privilege
|
|
20
|
+
* policies, and the two tokens apps-manager speaks with. Good for development and for a small self-hosted platform;
|
|
21
|
+
* its protection is SOFTWARE, as every Vault's is. Its self-initialization runs only on EMPTY storage, so an OpenBao
|
|
22
|
+
* first started before a policy changed keeps the older policy: one started before #2894 cannot wrap data keys
|
|
23
|
+
* (`transit/encrypt` and `transit/decrypt` answer 403) until the signer policy is written again (`bao policy write`
|
|
24
|
+
* with `vaultSignerPolicy`) or its storage is recreated.
|
|
25
|
+
* - `{ vault: { source: 'managed', address, … } }` — the operator's own Vault or OpenBao. The operator configures the
|
|
26
|
+
* mounts and policies (`vaultSignerPolicy` / `vaultOperatorPolicy` in the key-management contracts) and puts the two
|
|
27
|
+
* tokens in `secrets.json` under `platformKeyVaultManaged`.
|
|
28
|
+
*
|
|
29
|
+
* Absent, apps-manager serves no Vault provider, and a binding that names one is refused PROVIDER_UNAVAILABLE.
|
|
30
|
+
*
|
|
31
|
+
* ## Cloud KMS (#2896)
|
|
32
|
+
*
|
|
33
|
+
* `awsKms`, `googleCloudKms` and `azureKeyVault` make apps-manager serve the `aws-kms`, `google-cloud-kms` and
|
|
34
|
+
* `azure-key-vault` providers: the key is generated inside the vendor's HSM, never leaves it, and the vendor signs. They
|
|
35
|
+
* are always the operator's own account, so they carry no `source`. apps-manager authenticates with its WORKLOAD
|
|
36
|
+
* identity (an IAM role for its service account, GKE workload identity, an Azure managed identity): nothing here is a
|
|
37
|
+
* secret, and `secrets.json` holds nothing for them.
|
|
38
|
+
*
|
|
39
|
+
* Each provider acts as two identities, as Vault does with two tokens. The SIGNER may only read keys, sign, and wrap and
|
|
40
|
+
* unwrap data keys under a wrapping key (#2894); the OPERATOR creates, disables and destroys keys and may never sign, wrap
|
|
41
|
+
* or unwrap. Every wrap is authenticated encryption under a key only the vendor holds. Neither vendor's broad built-in role keeps to that, so
|
|
42
|
+
* grant, per vendor:
|
|
43
|
+
* - AWS: apps-manager's identity may only `sts:AssumeRole` the two roles. Every key apps-manager creates carries the tag
|
|
44
|
+
* `wildo:key-ref`, and the policies are scoped by it:
|
|
45
|
+
* - Signer, on `arn:aws:kms:<region>:<account>:key/*`: `kms:Sign`, `kms:Encrypt` and `kms:Decrypt` only where
|
|
46
|
+
* `aws:ResourceTag/wildo:key-ref` is present (`"Null": { … "false" }`), so it cannot sign with, or decrypt under,
|
|
47
|
+
* another key in the account; `kms:GetPublicKey` and `kms:DescribeKey` unconditioned (both read-only).
|
|
48
|
+
* - Operator: `kms:CreateKey` and `kms:TagResource` on `"Resource": "*"` (CreateKey names no key yet), only where
|
|
49
|
+
* `aws:RequestTag/wildo:key-ref` is present and `aws:TagKeys` is exactly `["wildo:key-ref"]`; on `key/*`,
|
|
50
|
+
* `kms:DisableKey` and `kms:ScheduleKeyDeletion` only where `aws:ResourceTag/wildo:key-ref` is present, and
|
|
51
|
+
* `kms:DescribeKey`; never `kms:Sign`, `kms:Encrypt`, `kms:Decrypt` nor `kms:UntagResource`.
|
|
52
|
+
* - The tag is what admits a key to the signer, so whoever may tag may admit: the operator's `kms:TagResource` lets it
|
|
53
|
+
* put `wildo:key-ref` on ANY key in the account, which the signer could then sign with. AWS warns of exactly this
|
|
54
|
+
* ("Be cautious about giving principals the `kms:TagResource` … permissions"). Keep the operator role to apps-manager
|
|
55
|
+
* alone, and consider a permissions boundary or SCP denying `kms:TagResource` on keys outside the custodian's.
|
|
56
|
+
* - KMS applies a tag to authorization up to five minutes after it is set, so a NEW version may be refused `kms:Sign`
|
|
57
|
+
* for those minutes: the first ACTIVE version of every new keyring (made at its first signature request), and one
|
|
58
|
+
* made by an emergency rotation. The signature fails as a provider fault and the caller retries it; so does the first
|
|
59
|
+
* wrap under a new wrapping key, which the application's data-key ring asks for again on its own retry.
|
|
60
|
+
* - Google: apps-manager's identity holds `roles/iam.serviceAccountTokenCreator` on the two service accounts only.
|
|
61
|
+
* Signer: `roles/cloudkms.signer`, `roles/cloudkms.cryptoKeyEncrypterDecrypter`, `roles/cloudkms.publicKeyViewer` and
|
|
62
|
+
* `roles/cloudkms.viewer` on the key ring (sign, wrap and unwrap data keys, read the public key, read a version's state). Operator: `roles/cloudkms.admin` on the key ring, which contains no
|
|
63
|
+
* cryptographic operation.
|
|
64
|
+
* - Azure Key Vault (a vault in the Azure RBAC permission model): two user-assigned managed identities on apps-manager,
|
|
65
|
+
* each with a CUSTOM role on the vault. The built-in roles do not fit: "Key Vault Crypto User" can update and back up a
|
|
66
|
+
* key, and "Key Vault Crypto Officer" holds `vaults/keys/*`, signing included.
|
|
67
|
+
* - Signer: `Microsoft.KeyVault/vaults/keys/read`, `…/keys/versions/read`, `…/keys/sign/action`,
|
|
68
|
+
* `…/keys/encrypt/action`, `…/keys/decrypt/action` (a data key is wrapped with A256GCM under an `oct-HSM` key, which
|
|
69
|
+
* a Premium vault offers in preview; a Standard vault cannot hold one and serves signing only).
|
|
70
|
+
* - Operator: `…/keys/read`, `…/keys/versions/read`, `…/keys/create/action`, `…/keys/update/action` (disable),
|
|
71
|
+
* `…/keys/delete`, `…/keys/purge/action`.
|
|
72
|
+
* The vault's recovery level decides whether a destroyed key is purged at once or kept until retention ends.
|
|
73
|
+
* - Azure Managed HSM (`*.managedhsm.azure.net`): the same two identities, with custom roles in the HSM's LOCAL RBAC
|
|
74
|
+
* (the built-in "Managed HSM Crypto User" can sign and back up, and cannot purge). Signer:
|
|
75
|
+
* `Microsoft.KeyVault/managedHsm/keys/read/action`, `…/keys/sign/action`, `…/keys/encrypt/action`, `…/keys/decrypt/action`.
|
|
76
|
+
* Operator: `…/keys/read/action`,
|
|
77
|
+
* `…/keys/create`, `…/keys/write/action`, `…/keys/delete`, `…/keys/deletedKeys/read/action`,
|
|
78
|
+
* `…/keys/deletedKeys/delete` (purge).
|
|
79
|
+
*
|
|
80
|
+
* spec-cite: AWS KMS developer guide, "Use tags to control access to KMS keys" (`aws:ResourceTag`, the five-minute
|
|
81
|
+
* delay, limiting `kms:TagResource` with `aws:RequestTag` / `aws:TagKeys`),
|
|
82
|
+
* https://docs.aws.amazon.com/kms/latest/developerguide/tag-authorization.html; AWS KMS permissions reference
|
|
83
|
+
* (`CreateKey`'s resource is `*`), https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html; Azure built-in roles, Security (Key
|
|
84
|
+
* Vault Crypto Officer DataActions `Microsoft.KeyVault/vaults/keys/*`) and Azure permissions, Microsoft.KeyVault (the
|
|
85
|
+
* `vaults/keys/*` data actions), https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/security;
|
|
86
|
+
* Managed HSM local RBAC built-in roles (the data-action table),
|
|
87
|
+
* https://learn.microsoft.com/en-us/azure/key-vault/managed-hsm/built-in-roles.
|
|
88
|
+
*
|
|
89
|
+
* When a provider registers at startup, apps-manager logs the vendor's quota and per-request cost. It also holds its own
|
|
90
|
+
* signing under 80% of the vendor's per-second quota, per process.
|
|
91
|
+
*
|
|
92
|
+
* ## Corroboration
|
|
93
|
+
*
|
|
94
|
+
* Every ten minutes, apps-manager compares, per key version and closed hour, the signatures its signing log records with
|
|
95
|
+
* the ones the vendor's own audit log records, and writes one audit row per provider and hour:
|
|
96
|
+
* - UNACCOUNTED (CRITICAL) the moment the vendor shows more signatures than apps-manager can account for: a key was used
|
|
97
|
+
* outside the custodian, or a signature went unrecorded;
|
|
98
|
+
* - otherwise, once the hour is six hours old (vendor logs arrive late): UNCORROBORATED (the vendor recorded fewer, or its
|
|
99
|
+
* log could not be read) or CORROBORATED.
|
|
100
|
+
* It reads as the OPERATOR identity, which therefore also needs:
|
|
101
|
+
* - AWS: `cloudtrail:LookupEvents` (KMS `Sign` is a CloudTrail management event; nothing to enable).
|
|
102
|
+
* - Google: `roles/logging.privateLogViewer` on the project, and Cloud KMS Data Access audit logs ENABLED (they are off by
|
|
103
|
+
* default, and until they are on, every hour is uncorroborated).
|
|
104
|
+
* - Azure: Log Analytics Reader on the workspace named by `logAnalyticsWorkspaceId`, which the vault's diagnostic setting
|
|
105
|
+
* sends `AuditEvent` to.
|
|
106
|
+
*/
|
|
107
|
+
export declare const PlatformKeyVaultSelfHostedSchema: z.ZodObject<{
|
|
108
|
+
source: z.ZodLiteral<BackingServiceSource.SELF>;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
/** The operator's own Vault or OpenBao. Mounts and prefix default to the provider defaults (`transit`, `secret`, `wildo-`). */
|
|
111
|
+
export declare const PlatformKeyVaultManagedSchema: z.ZodObject<{
|
|
112
|
+
source: z.ZodLiteral<BackingServiceSource.MANAGED>;
|
|
113
|
+
/** The Vault API address apps-manager dials, e.g. `https://vault.internal:8200`. */
|
|
114
|
+
address: z.ZodURL;
|
|
115
|
+
/** Vault Enterprise namespace (`team/keys/`); absent on open-source Vault and OpenBao's root namespace. */
|
|
116
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
117
|
+
transitMount: z.ZodOptional<z.ZodString>;
|
|
118
|
+
kvMount: z.ZodOptional<z.ZodString>;
|
|
119
|
+
keyNamePrefix: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strict>;
|
|
121
|
+
export declare const PlatformKeyVaultConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
|
+
source: z.ZodLiteral<BackingServiceSource.SELF>;
|
|
123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
124
|
+
source: z.ZodLiteral<BackingServiceSource.MANAGED>;
|
|
125
|
+
/** The Vault API address apps-manager dials, e.g. `https://vault.internal:8200`. */
|
|
126
|
+
address: z.ZodURL;
|
|
127
|
+
/** Vault Enterprise namespace (`team/keys/`); absent on open-source Vault and OpenBao's root namespace. */
|
|
128
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
129
|
+
transitMount: z.ZodOptional<z.ZodString>;
|
|
130
|
+
kvMount: z.ZodOptional<z.ZodString>;
|
|
131
|
+
keyNamePrefix: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strict>], "source">;
|
|
133
|
+
export type PlatformKeyVaultConfig = z.infer<typeof PlatformKeyVaultConfigSchema>;
|
|
134
|
+
/** The protection level apps-manager creates Google Cloud KMS keys at. */
|
|
135
|
+
export declare enum PlatformGoogleKmsKeyProtection {
|
|
136
|
+
/** In Cloud HSM (FIPS 140-2 Level 3): the key's attestation is HARDWARE. */
|
|
137
|
+
HSM = "HSM",
|
|
138
|
+
/** In Cloud KMS software: the key's attestation is SOFTWARE, and a HARDWARE floor refuses it. */
|
|
139
|
+
SOFTWARE = "SOFTWARE"
|
|
140
|
+
}
|
|
141
|
+
/** AWS KMS in the operator's account. */
|
|
142
|
+
export declare const PlatformKeyAwsKmsConfigSchema: z.ZodObject<{
|
|
143
|
+
region: z.ZodString;
|
|
144
|
+
/** The role apps-manager assumes to read keys and sign. */
|
|
145
|
+
signerRoleArn: z.ZodString;
|
|
146
|
+
/** The role apps-manager assumes to create, disable and schedule the deletion of keys. */
|
|
147
|
+
operatorRoleArn: z.ZodString;
|
|
148
|
+
/** A KMS endpoint other than the region's public one (a VPC interface endpoint). */
|
|
149
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
/** Google Cloud KMS in the operator's project. */
|
|
152
|
+
export declare const PlatformKeyGoogleCloudKmsConfigSchema: z.ZodObject<{
|
|
153
|
+
/** `projects/<project>/locations/<location>/keyRings/<ring>`; created by the operator, since a key ring cannot be deleted. */
|
|
154
|
+
keyRing: z.ZodString;
|
|
155
|
+
signerServiceAccount: z.ZodEmail;
|
|
156
|
+
operatorServiceAccount: z.ZodEmail;
|
|
157
|
+
protectionLevel: z.ZodDefault<z.ZodEnum<typeof PlatformGoogleKmsKeyProtection>>;
|
|
158
|
+
}, z.core.$strict>;
|
|
159
|
+
/** Azure Key Vault (Premium) or Managed HSM in the operator's subscription. */
|
|
160
|
+
export declare const PlatformKeyAzureKeyVaultConfigSchema: z.ZodObject<{
|
|
161
|
+
/** `https://<vault>.vault.azure.net` or `https://<hsm>.managedhsm.azure.net`. */
|
|
162
|
+
vaultUrl: z.ZodURL;
|
|
163
|
+
/** The client id of the signer's user-assigned managed identity. */
|
|
164
|
+
signerClientId: z.ZodUUID;
|
|
165
|
+
/** The client id of the operator's user-assigned managed identity. */
|
|
166
|
+
operatorClientId: z.ZodUUID;
|
|
167
|
+
/** HSM-protected keys (`EC-HSM`, a Premium vault or Managed HSM); `false` makes software `EC` keys. */
|
|
168
|
+
hsm: z.ZodDefault<z.ZodBoolean>;
|
|
169
|
+
/**
|
|
170
|
+
* The Log Analytics workspace (its GUID) the vault's diagnostic setting sends `AuditEvent` to, in the `AzureDiagnostics`
|
|
171
|
+
* destination mode. apps-manager reads it hourly to corroborate its signatures; absent, no Azure hour is compared.
|
|
172
|
+
*/
|
|
173
|
+
logAnalyticsWorkspaceId: z.ZodOptional<z.ZodUUID>;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
/**
|
|
176
|
+
* A dedicated HSM reached over PKCS#11 (#2934): Thales Luna, Entrust nShield, AWS CloudHSM, Azure Cloud HSM, an
|
|
177
|
+
* on-premises appliance, or SoftHSM2. apps-manager loads the vendor's PKCS#11 module, logs in to one token with a user PIN
|
|
178
|
+
* (operator-typed in `secrets.json` under `platformKeyPkcs11: { pin }`, never here) and serves the `pkcs11` provider.
|
|
179
|
+
*
|
|
180
|
+
* Protection is read from the token, not declared: a key counts as HARDWARE only when the slot reports a hardware slot
|
|
181
|
+
* AND the token's model is listed in `hardwareTokenModels`, which is your statement that this model is the hardware you
|
|
182
|
+
* run. SoftHSM2 is always SOFTWARE. The binding (`pkcs11js`) is compiled by `pnpm setup:pkcs11`; an apps-manager that
|
|
183
|
+
* cannot load it says so at boot and refuses every signature on this provider.
|
|
184
|
+
*/
|
|
185
|
+
export declare const PlatformKeyPkcs11ConfigSchema: z.ZodObject<{
|
|
186
|
+
/** The vendor's PKCS#11 module, as an absolute path in apps-manager's filesystem (e.g. `/usr/lib/softhsm/libsofthsm2.so`). */
|
|
187
|
+
modulePath: z.ZodString;
|
|
188
|
+
/** The token's label, as the module reports it. */
|
|
189
|
+
tokenLabel: z.ZodString;
|
|
190
|
+
/** Token models (`CK_TOKEN_INFO.model`) you state are hardware. Empty: every key reports SOFTWARE. */
|
|
191
|
+
hardwareTokenModels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
export declare const WildoPlatformKeyManagementConfigSchema: z.ZodObject<{
|
|
194
|
+
vault: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
195
|
+
source: z.ZodLiteral<BackingServiceSource.SELF>;
|
|
196
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
+
source: z.ZodLiteral<BackingServiceSource.MANAGED>;
|
|
198
|
+
/** The Vault API address apps-manager dials, e.g. `https://vault.internal:8200`. */
|
|
199
|
+
address: z.ZodURL;
|
|
200
|
+
/** Vault Enterprise namespace (`team/keys/`); absent on open-source Vault and OpenBao's root namespace. */
|
|
201
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
202
|
+
transitMount: z.ZodOptional<z.ZodString>;
|
|
203
|
+
kvMount: z.ZodOptional<z.ZodString>;
|
|
204
|
+
keyNamePrefix: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strict>], "source">>;
|
|
206
|
+
awsKms: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
region: z.ZodString;
|
|
208
|
+
/** The role apps-manager assumes to read keys and sign. */
|
|
209
|
+
signerRoleArn: z.ZodString;
|
|
210
|
+
/** The role apps-manager assumes to create, disable and schedule the deletion of keys. */
|
|
211
|
+
operatorRoleArn: z.ZodString;
|
|
212
|
+
/** A KMS endpoint other than the region's public one (a VPC interface endpoint). */
|
|
213
|
+
endpoint: z.ZodOptional<z.ZodURL>;
|
|
214
|
+
}, z.core.$strict>>;
|
|
215
|
+
googleCloudKms: z.ZodOptional<z.ZodObject<{
|
|
216
|
+
/** `projects/<project>/locations/<location>/keyRings/<ring>`; created by the operator, since a key ring cannot be deleted. */
|
|
217
|
+
keyRing: z.ZodString;
|
|
218
|
+
signerServiceAccount: z.ZodEmail;
|
|
219
|
+
operatorServiceAccount: z.ZodEmail;
|
|
220
|
+
protectionLevel: z.ZodDefault<z.ZodEnum<typeof PlatformGoogleKmsKeyProtection>>;
|
|
221
|
+
}, z.core.$strict>>;
|
|
222
|
+
azureKeyVault: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
/** `https://<vault>.vault.azure.net` or `https://<hsm>.managedhsm.azure.net`. */
|
|
224
|
+
vaultUrl: z.ZodURL;
|
|
225
|
+
/** The client id of the signer's user-assigned managed identity. */
|
|
226
|
+
signerClientId: z.ZodUUID;
|
|
227
|
+
/** The client id of the operator's user-assigned managed identity. */
|
|
228
|
+
operatorClientId: z.ZodUUID;
|
|
229
|
+
/** HSM-protected keys (`EC-HSM`, a Premium vault or Managed HSM); `false` makes software `EC` keys. */
|
|
230
|
+
hsm: z.ZodDefault<z.ZodBoolean>;
|
|
231
|
+
/**
|
|
232
|
+
* The Log Analytics workspace (its GUID) the vault's diagnostic setting sends `AuditEvent` to, in the `AzureDiagnostics`
|
|
233
|
+
* destination mode. apps-manager reads it hourly to corroborate its signatures; absent, no Azure hour is compared.
|
|
234
|
+
*/
|
|
235
|
+
logAnalyticsWorkspaceId: z.ZodOptional<z.ZodUUID>;
|
|
236
|
+
}, z.core.$strict>>;
|
|
237
|
+
pkcs11: z.ZodOptional<z.ZodObject<{
|
|
238
|
+
/** The vendor's PKCS#11 module, as an absolute path in apps-manager's filesystem (e.g. `/usr/lib/softhsm/libsofthsm2.so`). */
|
|
239
|
+
modulePath: z.ZodString;
|
|
240
|
+
/** The token's label, as the module reports it. */
|
|
241
|
+
tokenLabel: z.ZodString;
|
|
242
|
+
/** Token models (`CK_TOKEN_INFO.model`) you state are hardware. Empty: every key reports SOFTWARE. */
|
|
243
|
+
hardwareTokenModels: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
}, z.core.$strict>;
|
|
246
|
+
export type WildoPlatformKeyManagementConfig = z.infer<typeof WildoPlatformKeyManagementConfigSchema>;
|
|
247
|
+
/** @wildo_source:part:end platform.config.platform-key-management */
|
|
248
|
+
/** Whether the platform runs its own Vault (OpenBao) in this environment: the one predicate both lanes render from. */
|
|
249
|
+
export declare function selfHostsPlatformKeyVault(platformKeyManagement: WildoPlatformKeyManagementConfig | undefined): boolean;
|
|
250
|
+
//# sourceMappingURL=platform-key-management.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-key-management.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/platform-key-management.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC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