@wildo-ai/platform-config-lib 1.1.11 → 1.1.12
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/soft-warn.d.ts +24 -49
- package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -1
- package/dist/esm/_unimplemented/soft-warn.js +24 -49
- package/dist/esm/_unimplemented/soft-warn.js.map +1 -1
- package/dist/esm/blueprint/anchored-region.d.ts.map +1 -1
- package/dist/esm/blueprint/anchored-region.js.map +1 -1
- package/dist/esm/blueprint/blueprint.schemas.d.ts +0 -89
- package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -1
- package/dist/esm/blueprint/blueprint.schemas.js.map +1 -1
- package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +8 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +15 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +10 -2
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +10 -2
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts +21 -0
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.js +25 -0
- package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -1
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts +80 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js +81 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js.map +1 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +41 -9
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.js +77 -28
- package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.d.ts +117 -12
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.js +222 -23
- package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.d.ts +31 -4
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.js +43 -2
- package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
- package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +40 -2
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.js +66 -3
- package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-response-integrity.js +3 -3
- package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -1
- package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
- package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -1
- package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts.map +1 -1
- package/dist/esm/config-authoring.entry.js.map +1 -1
- package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
- package/dist/esm/credentials/credential-generator.service.js.map +1 -1
- package/dist/esm/index.d.ts +5 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts +119 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.js +109 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.js.map +1 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts +182 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.js +145 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.js.map +1 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.d.ts +156 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.js +617 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.js.map +1 -0
- package/dist/esm/key-management/approval-seal-verifier.d.ts +101 -39
- package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -1
- package/dist/esm/key-management/approval-seal-verifier.js +134 -12
- package/dist/esm/key-management/approval-seal-verifier.js.map +1 -1
- package/dist/esm/key-management/approval-seal.contracts.d.ts +12 -15
- package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/approval-seal.contracts.js +20 -0
- package/dist/esm/key-management/approval-seal.contracts.js.map +1 -1
- package/dist/esm/key-management/data-key.contracts.d.ts +0 -2
- package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/data-key.contracts.js.map +1 -1
- package/dist/esm/key-management/es256-jws.d.ts.map +1 -1
- package/dist/esm/key-management/es256-jws.js.map +1 -1
- package/dist/esm/key-management/key-provider.spi.d.ts +8 -1
- package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -1
- package/dist/esm/key-management/key-provider.spi.js.map +1 -1
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts +2 -12
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/keyring-rotation.contracts.js +3 -3
- package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -1
- package/dist/esm/key-management/keyring-status.contracts.d.ts +0 -7
- package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/keyring-status.contracts.js.map +1 -1
- package/dist/esm/key-management/pdf-incremental-update.d.ts +158 -0
- package/dist/esm/key-management/pdf-incremental-update.d.ts.map +1 -0
- package/dist/esm/key-management/pdf-incremental-update.js +730 -0
- package/dist/esm/key-management/pdf-incremental-update.js.map +1 -0
- package/dist/esm/key-management/pdf-truetype-font.d.ts +35 -0
- package/dist/esm/key-management/pdf-truetype-font.d.ts.map +1 -0
- package/dist/esm/key-management/pdf-truetype-font.js +152 -0
- package/dist/esm/key-management/pdf-truetype-font.js.map +1 -0
- package/dist/esm/key-management/qr-code.d.ts +38 -0
- package/dist/esm/key-management/qr-code.d.ts.map +1 -0
- package/dist/esm/key-management/qr-code.js +325 -0
- package/dist/esm/key-management/qr-code.js.map +1 -0
- package/dist/esm/key-management/signature-request.contracts.d.ts +0 -4
- package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/signature-request.contracts.js.map +1 -1
- package/dist/esm/key-management/signing-log-export.contracts.d.ts +0 -1
- package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -1
- package/dist/esm/key-management/vault-custody.contracts.d.ts +43 -0
- package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -1
- package/dist/esm/key-management/vault-custody.contracts.js +66 -0
- package/dist/esm/key-management/vault-custody.contracts.js.map +1 -1
- package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -1
- package/dist/esm/lockfile/build-parallelism.js.map +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts.map +1 -1
- package/dist/esm/lockfile/canonical-json.js +1 -1
- package/dist/esm/lockfile/canonical-json.js.map +1 -1
- package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
- package/dist/esm/lockfile/file-lock-hold.js +2 -1
- package/dist/esm/lockfile/file-lock-hold.js.map +1 -1
- package/dist/esm/lockfile/lockfile-io.d.ts +6 -8
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
- package/dist/esm/lockfile/lockfile-io.js +6 -8
- package/dist/esm/lockfile/lockfile-io.js.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts +5 -6
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.js +4 -5
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +1 -247
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
- package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts +146 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts.map +1 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.js +573 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.js.map +1 -0
- 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 +15 -3
- 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.map +1 -1
- package/dist/esm/project-config/application-served-public-documents.loader.js +16 -8
- package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -1
- package/dist/esm/project-config/backend-compliance-section.reader.d.ts +35 -0
- package/dist/esm/project-config/backend-compliance-section.reader.d.ts.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.reader.js +123 -0
- package/dist/esm/project-config/backend-compliance-section.reader.js.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.worker.d.ts +20 -0
- package/dist/esm/project-config/backend-compliance-section.worker.d.ts.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.worker.js +78 -0
- package/dist/esm/project-config/backend-compliance-section.worker.js.map +1 -0
- package/dist/esm/project-config/config-module-resolution.d.ts +32 -0
- package/dist/esm/project-config/config-module-resolution.d.ts.map +1 -0
- package/dist/esm/project-config/config-module-resolution.js +33 -0
- package/dist/esm/project-config/config-module-resolution.js.map +1 -0
- package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-framework-config.js.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +109 -55
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js +108 -70
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/define-minion-config.d.ts +26 -36
- package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-minion-config.js +64 -25
- package/dist/esm/project-config/define-minion-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +41 -437
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +102 -94
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/define-worker-config.d.ts +10 -20
- package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-worker-config.js +10 -12
- package/dist/esm/project-config/define-worker-config.js.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 +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/index.d.ts +2 -0
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +2 -0
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader-instances-zod.d.ts +19 -0
- package/dist/esm/project-config/loader-instances-zod.d.ts.map +1 -0
- package/dist/esm/project-config/loader-instances-zod.js +40 -0
- package/dist/esm/project-config/loader-instances-zod.js.map +1 -0
- package/dist/esm/project-config/loader.d.ts +131 -14
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/loader.js +226 -12
- package/dist/esm/project-config/loader.js.map +1 -1
- package/dist/esm/project-config/minion-liveness.contracts.d.ts +131 -0
- package/dist/esm/project-config/minion-liveness.contracts.d.ts.map +1 -0
- package/dist/esm/project-config/minion-liveness.contracts.js +167 -0
- package/dist/esm/project-config/minion-liveness.contracts.js.map +1 -0
- package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -1
- package/dist/esm/project-config/minion-local-provider-registration.js.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.map +1 -1
- package/dist/esm/project-config/owning-package-tsconfig.d.ts +7 -7
- package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -1
- package/dist/esm/project-config/owning-package-tsconfig.js +7 -7
- package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -1
- package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
- package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +3 -1
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +71 -46
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +150 -4
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +0 -2
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.js.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.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts +0 -17
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts +9 -10
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +13 -15
- package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.d.ts +0 -51
- package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.d.ts +34 -6
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.js +52 -8
- package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.d.ts +60 -13
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.js +77 -24
- package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.d.ts +72 -84
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js +40 -12
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.d.ts +0 -8
- package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +95 -8
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +122 -10
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +10 -4
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +20 -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 +21 -2
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
- package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -1
- package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -1
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +62 -36
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-key-management.schemas.js +105 -3
- package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +2 -2
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.js +16 -2
- package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +21 -23
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.js +4 -5
- package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +0 -18
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -1
- package/dist/esm/project-config/static-asset-import-noop.d.ts +20 -3
- package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -1
- package/dist/esm/project-config/static-asset-import-noop.js +36 -20
- package/dist/esm/project-config/static-asset-import-noop.js.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts +0 -5
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.js.map +1 -1
- package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/digest.schemas.js.map +1 -1
- package/dist/esm/registry/index.d.ts +2 -3
- package/dist/esm/registry/index.d.ts.map +1 -1
- package/dist/esm/registry/index.js +2 -3
- package/dist/esm/registry/index.js.map +1 -1
- package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
- package/dist/esm/registry/local-checkout-source.js.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +1 -98
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.js +1 -2
- package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.d.ts +17 -17
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.d.ts +151 -219
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.js +145 -13
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
- package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-search.schemas.js.map +1 -1
- package/dist/esm/registry/registry-config.schemas.d.ts +0 -18
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-config.schemas.js.map +1 -1
- package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-defaults.constants.js.map +1 -1
- package/dist/esm/registry/registry-errors.d.ts +81 -3
- package/dist/esm/registry/registry-errors.d.ts.map +1 -1
- package/dist/esm/registry/registry-errors.js +185 -4
- 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-keys.schemas.js.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -1
- package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -1
- package/dist/esm/registry/registry-url-resolution.js.map +1 -1
- package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.js.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts +0 -7
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.d.ts +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts +2 -2
- package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
- package/dist/esm/workspace-scope/index.d.ts.map +1 -1
- package/dist/esm/workspace-scope/index.js.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/dist/esm/_unimplemented/index.d.ts +0 -3
- package/dist/esm/_unimplemented/index.d.ts.map +0 -1
- package/dist/esm/_unimplemented/index.js +0 -3
- package/dist/esm/_unimplemented/index.js.map +0 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +0 -137
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +0 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.js +0 -153
- package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +0 -1
- package/dist/esm/project-config/shared/cdn.example.d.ts +0 -14
- package/dist/esm/project-config/shared/cdn.example.d.ts.map +0 -1
- package/dist/esm/project-config/shared/cdn.example.js +0 -38
- package/dist/esm/project-config/shared/cdn.example.js.map +0 -1
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts +0 -15
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +0 -1
- package/dist/esm/project-config/shared/schema-version.schemas.js +0 -40
- package/dist/esm/project-config/shared/schema-version.schemas.js.map +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -17,15 +17,19 @@ export * from './bootstrap/platform-runtime-env.contracts.js';
|
|
|
17
17
|
export * from './bootstrap/runtime-secret-env.contracts.js';
|
|
18
18
|
export * from './bootstrap/runtime-topology.contracts.js';
|
|
19
19
|
export * from './bootstrap/runtime-principal.contracts.js';
|
|
20
|
+
export * from './bootstrap/postgresql-owed-grants.contracts.js';
|
|
20
21
|
export * from './bootstrap/runtime-response-integrity.js';
|
|
21
22
|
export * from './key-management/es256-jws.js';
|
|
22
23
|
export * from './key-management/data-key.contracts.js';
|
|
23
24
|
export * from './key-management/key-provider.spi.js';
|
|
25
|
+
export * from './key-management/application-signing-key-rotation.contracts.js';
|
|
26
|
+
export * from './key-management/application-legacy-envelope-key.contracts.js';
|
|
24
27
|
export * from './key-management/keyring-rotation.contracts.js';
|
|
25
28
|
export * from './key-management/keyring-status.contracts.js';
|
|
26
29
|
export * from './key-management/signature-request.contracts.js';
|
|
27
30
|
export * from './key-management/approval-seal.contracts.js';
|
|
28
31
|
export * from './key-management/approval-seal-verifier.js';
|
|
32
|
+
export * from './key-management/approval-seal-manifested-copy.js';
|
|
29
33
|
export * from './key-management/signing-log-export.contracts.js';
|
|
30
34
|
export * from './key-management/vault-custody.contracts.js';
|
|
31
35
|
export * from './bootstrap/runtime-backing-service-access.js';
|
|
@@ -44,7 +48,7 @@ export * from './lockfile/materialize-infra-section.js';
|
|
|
44
48
|
export * from './lockfile/canonical-json.js';
|
|
45
49
|
export * from './canonical-json/rfc8785-canonical-json.js';
|
|
46
50
|
export * from './registry/index.js';
|
|
51
|
+
export * from './pnpm-settings/application-pnpm-settings.js';
|
|
47
52
|
export * from './blueprint/blueprint.schemas.js';
|
|
48
53
|
export * from './blueprint/anchored-region.js';
|
|
49
|
-
export * from './_unimplemented/index.js';
|
|
50
54
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4CAA4C,CAAC;AAE3D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,wCAAwC,CAAC;AACvD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6DAA6D,CAAC;AAC5E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qDAAqD,CAAC;AACpE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,YAAY,CAAC;AAC3B,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './project-config';\nexport * from './workspace-scope';\nexport * from './credentials/credential-generator.service';\n\nexport * from './schemas/platform-application-config.schemas';\nexport * from './schemas/platform-application-secrets.schemas';\nexport * from './schemas/platform-config.schemas';\nexport * from './schemas/framework-info.schemas';\nexport * from './schemas/framework-secrets.schemas';\nexport * from './release/framework-release.constants';\nexport * from './bootstrap/bootstrap.schemas';\nexport * from './bootstrap/bootstrap.contracts';\nexport * from './bootstrap/bootstrap-planner';\nexport * from './bootstrap/application-backend-env.contracts';\nexport * from './bootstrap/wildo-owner-organization.contracts';\nexport * from './bootstrap/application-creation-verification-env.contracts';\nexport * from './bootstrap/platform-runtime-env.contracts';\nexport * from './bootstrap/runtime-secret-env.contracts';\nexport * from './bootstrap/runtime-topology.contracts';\nexport * from './bootstrap/runtime-principal.contracts';\nexport * from './bootstrap/postgresql-owed-grants.contracts';\nexport * from './bootstrap/runtime-response-integrity';\nexport * from './key-management/es256-jws';\nexport * from './key-management/data-key.contracts';\nexport * from './key-management/key-provider.spi';\nexport * from './key-management/application-signing-key-rotation.contracts';\nexport * from './key-management/application-legacy-envelope-key.contracts';\nexport * from './key-management/keyring-rotation.contracts';\nexport * from './key-management/keyring-status.contracts';\nexport * from './key-management/signature-request.contracts';\nexport * from './key-management/approval-seal.contracts';\nexport * from './key-management/approval-seal-verifier';\nexport * from './key-management/approval-seal-manifested-copy';\nexport * from './key-management/signing-log-export.contracts';\nexport * from './key-management/vault-custody.contracts';\nexport * from './bootstrap/runtime-backing-service-access';\nexport * from './bootstrap/platform-store-preconnect';\nexport * from './bootstrap/runtime-network-topology';\nexport * from './bootstrap/runtime-network-policy';\nexport * from './bootstrap/runtime-platform-access';\nexport * from './project-config/minion-local-provider-registration';\nexport * from './project-config/shared/minion-resource-access.validation';\nexport * from './project-config/shared/object-storage-session-policy';\nexport * from './lockfile/wildo-saas-lock.shared.schemas';\nexport * from './lockfile/lockfile-io';\nexport * from './lockfile/file-lock-hold';\nexport * from './lockfile/build-parallelism';\nexport * from './lockfile/materialize-infra-section';\nexport * from './lockfile/canonical-json';\nexport * from './canonical-json/rfc8785-canonical-json';\nexport * from './registry';\nexport * from './pnpm-settings/application-pnpm-settings';\nexport * from './blueprint/blueprint.schemas';\nexport * from './blueprint/anchored-region';\n"]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* # Retiring an application's legacy envelope key (#3028)
|
|
4
|
+
*
|
|
5
|
+
* Since #2894 an application seals its stored secrets as envelope v2, under data keys its ring holds. The session
|
|
6
|
+
* encryption key (`secrets.security.session.encryptionKey`) is then only the key that opens the v1 envelopes written
|
|
7
|
+
* before, which the boot passes move to v2. At every boot the application backend counts what is still v1 (the census,
|
|
8
|
+
* logged as `V1 envelope census (#3028): …`). Once that count is zero and complete, no runtime needs the key, and this
|
|
9
|
+
* door stops delivering it: `wildo keys legacy-envelope-key`.
|
|
10
|
+
*
|
|
11
|
+
* - **Refused by default.** The key is delivered unless an operator retired it. The retirement names the census the
|
|
12
|
+
* operator read ({@link ApplicationLegacyEnvelopeKeyRetirementRequest.observedCensus}); a census that is not complete
|
|
13
|
+
* and zero is refused (409), because a key still opening something must not stop being delivered.
|
|
14
|
+
* - **Nothing is deleted.** apps-manager keeps the stored key. Retiring only stops the secrets projection from handing it
|
|
15
|
+
* to any runtime, so {@link buildAdminApplicationLegacyEnvelopeKeyRestorePath} delivers it again, unchanged, and every
|
|
16
|
+
* v1 value it sealed opens again. Restoring is the remedy if a v1 value reappears (a restored backup, a move that failed
|
|
17
|
+
* after the census): the application logs that census at ERROR, naming this door, when it finds v1 with no key.
|
|
18
|
+
* - **Audited.** Both doors are justified and recorded at HIGH (`PLATFORM_CONFIGURATION_PUBLICATION`, operations
|
|
19
|
+
* `retire_legacy_envelope_key` / `restore_legacy_envelope_key`). The shared admin secret names nobody, so the reason
|
|
20
|
+
* and the census the operator stated are what the row carries.
|
|
21
|
+
* - **The application never writes it.** The census is read by an operator from the application's boot log and stated
|
|
22
|
+
* here; the apps-to-manager channel stays read-only (#2921).
|
|
23
|
+
* - **Only an older application has one.** apps-manager no longer creates the key: an application registered since then
|
|
24
|
+
* seals with its data-key ring from its first boot and never holds a v1 value. Both doors answer it
|
|
25
|
+
* {@link ApplicationLegacyEnvelopeKeyOutcome.NOTHING_STORED}.
|
|
26
|
+
*/
|
|
27
|
+
/** What a retirement or restoration request did. */
|
|
28
|
+
export declare enum ApplicationLegacyEnvelopeKeyOutcome {
|
|
29
|
+
/** The key was being delivered and no longer is. */
|
|
30
|
+
RETIRED = "retired",
|
|
31
|
+
/** The key was already retired: nothing was written. A retry of a retirement whose answer was lost receives this. */
|
|
32
|
+
ALREADY_RETIRED = "already_retired",
|
|
33
|
+
/** The key was retired and is delivered again. */
|
|
34
|
+
RESTORED = "restored",
|
|
35
|
+
/** The key was being delivered: nothing was written. */
|
|
36
|
+
ALREADY_DELIVERED = "already_delivered",
|
|
37
|
+
/**
|
|
38
|
+
* The application holds no legacy key, so there is nothing to retire or deliver: nothing was written. Every
|
|
39
|
+
* application registered since #3028 is in this state, since apps-manager no longer creates the key.
|
|
40
|
+
*/
|
|
41
|
+
NOTHING_STORED = "nothing_stored"
|
|
42
|
+
}
|
|
43
|
+
/** The admin path of an application's legacy envelope key status. */
|
|
44
|
+
export declare function buildAdminApplicationLegacyEnvelopeKeyPath(appSlug: string): string;
|
|
45
|
+
/** The admin path that stops delivering an application's legacy envelope key. */
|
|
46
|
+
export declare function buildAdminApplicationLegacyEnvelopeKeyRetirePath(appSlug: string): string;
|
|
47
|
+
/** The admin path that delivers a retired legacy envelope key again. */
|
|
48
|
+
export declare function buildAdminApplicationLegacyEnvelopeKeyRestorePath(appSlug: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* The census the operator read in the application's boot log (`V1 envelope census (#3028): …`): how many v1 envelopes
|
|
51
|
+
* the application backend still found, and whether every store could be read. Only `{ total: 0, complete: true }` is
|
|
52
|
+
* admitted by a retirement.
|
|
53
|
+
*/
|
|
54
|
+
export declare const ApplicationLegacyEnvelopeCensusObservationSchema: z.ZodObject<{
|
|
55
|
+
total: z.ZodNumber;
|
|
56
|
+
complete: z.ZodBoolean;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export type ApplicationLegacyEnvelopeCensusObservation = z.infer<typeof ApplicationLegacyEnvelopeCensusObservationSchema>;
|
|
59
|
+
/** Whether a stated census allows the key to be retired: complete, and nothing left in v1. */
|
|
60
|
+
export declare function legacyEnvelopeCensusAllowsRetirement(census: ApplicationLegacyEnvelopeCensusObservation): boolean;
|
|
61
|
+
export declare const ApplicationLegacyEnvelopeKeyRetirementRequestSchema: z.ZodObject<{
|
|
62
|
+
justification: z.ZodString;
|
|
63
|
+
observedCensus: z.ZodObject<{
|
|
64
|
+
total: z.ZodNumber;
|
|
65
|
+
complete: z.ZodBoolean;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
}, z.core.$strict>;
|
|
68
|
+
export type ApplicationLegacyEnvelopeKeyRetirementRequest = z.input<typeof ApplicationLegacyEnvelopeKeyRetirementRequestSchema>;
|
|
69
|
+
export declare const ApplicationLegacyEnvelopeKeyRestoreRequestSchema: z.ZodObject<{
|
|
70
|
+
justification: z.ZodString;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
export type ApplicationLegacyEnvelopeKeyRestoreRequest = z.input<typeof ApplicationLegacyEnvelopeKeyRestoreRequestSchema>;
|
|
73
|
+
/**
|
|
74
|
+
* The retirement apps-manager stores beside the key it keeps (`security.legacyEnvelopeKeyRetirement` of the application's
|
|
75
|
+
* stored secrets): when, why, and the census stated. Its presence is what stops the delivery.
|
|
76
|
+
*/
|
|
77
|
+
export declare const ApplicationLegacyEnvelopeKeyRetirementRecordSchema: z.ZodObject<{
|
|
78
|
+
retiredAt: z.ZodCoercedDate<unknown>;
|
|
79
|
+
justification: z.ZodString;
|
|
80
|
+
observedCensus: z.ZodObject<{
|
|
81
|
+
total: z.ZodNumber;
|
|
82
|
+
complete: z.ZodBoolean;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
export type ApplicationLegacyEnvelopeKeyRetirementRecord = z.infer<typeof ApplicationLegacyEnvelopeKeyRetirementRecordSchema>;
|
|
86
|
+
/** The answer of `GET /admin/apps/:appSlug/legacy-envelope-key`: no key material. */
|
|
87
|
+
export declare const ApplicationLegacyEnvelopeKeyStatusSchema: z.ZodObject<{
|
|
88
|
+
appSlug: z.ZodString;
|
|
89
|
+
stored: z.ZodBoolean;
|
|
90
|
+
delivered: z.ZodBoolean;
|
|
91
|
+
retirement: z.ZodNullable<z.ZodObject<{
|
|
92
|
+
retiredAt: z.ZodISODateTime;
|
|
93
|
+
justification: z.ZodString;
|
|
94
|
+
observedCensus: z.ZodObject<{
|
|
95
|
+
total: z.ZodNumber;
|
|
96
|
+
complete: z.ZodBoolean;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
export type ApplicationLegacyEnvelopeKeyStatus = z.infer<typeof ApplicationLegacyEnvelopeKeyStatusSchema>;
|
|
101
|
+
/** The answer of a retirement or a restoration: what it did, and the state afterwards. */
|
|
102
|
+
export declare const ApplicationLegacyEnvelopeKeyResponseSchema: z.ZodObject<{
|
|
103
|
+
outcome: z.ZodEnum<typeof ApplicationLegacyEnvelopeKeyOutcome>;
|
|
104
|
+
status: z.ZodObject<{
|
|
105
|
+
appSlug: z.ZodString;
|
|
106
|
+
stored: z.ZodBoolean;
|
|
107
|
+
delivered: z.ZodBoolean;
|
|
108
|
+
retirement: z.ZodNullable<z.ZodObject<{
|
|
109
|
+
retiredAt: z.ZodISODateTime;
|
|
110
|
+
justification: z.ZodString;
|
|
111
|
+
observedCensus: z.ZodObject<{
|
|
112
|
+
total: z.ZodNumber;
|
|
113
|
+
complete: z.ZodBoolean;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
}, z.core.$strict>>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
export type ApplicationLegacyEnvelopeKeyResponse = z.infer<typeof ApplicationLegacyEnvelopeKeyResponseSchema>;
|
|
119
|
+
//# sourceMappingURL=application-legacy-envelope-key.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-legacy-envelope-key.contracts.d.ts","sourceRoot":"","sources":["../../../src/key-management/application-legacy-envelope-key.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,oDAAoD;AACpD,oBAAY,mCAAmC;IAC7C,oDAAoD;IACpD,OAAO,YAAY;IACnB,qHAAqH;IACrH,eAAe,oBAAoB;IACnC,kDAAkD;IAClD,QAAQ,aAAa;IACrB,wDAAwD;IACxD,iBAAiB,sBAAsB;IACvC;;;OAGG;IACH,cAAc,mBAAmB;CAClC;AAED,qEAAqE;AACrE,wBAAgB,0CAA0C,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAElF;AAED,iFAAiF;AACjF,wBAAgB,gDAAgD,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExF;AAED,wEAAwE;AACxE,wBAAgB,iDAAiD,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzF;AAED;;;;GAIG;AACH,eAAO,MAAM,gDAAgD;;;kBAG3D,CAAC;AACH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gDAAgD,CAAC,CAAC;AAE1H,8FAA8F;AAC9F,wBAAgB,oCAAoC,CAAC,MAAM,EAAE,0CAA0C,GAAG,OAAO,CAEhH;AAED,eAAO,MAAM,mDAAmD;;;;;;kBAK9D,CAAC;AACH,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mDAAmD,CAAC,CAAC;AAEhI,eAAO,MAAM,gDAAgD;;kBAG3D,CAAC;AACH,MAAM,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gDAAgD,CAAC,CAAC;AAE1H;;;GAGG;AACH,eAAO,MAAM,kDAAkD;;;;;;;kBAK7D,CAAC;AACH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kDAAkD,CAAC,CAAC;AAE9H,qFAAqF;AACrF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;kBAYnD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE1G,0FAA0F;AAC1F,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;kBAGrD,CAAC;AACH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { z_wireDate } from '@wildo-ai/zod-decorators';
|
|
3
|
+
/**
|
|
4
|
+
* # Retiring an application's legacy envelope key (#3028)
|
|
5
|
+
*
|
|
6
|
+
* Since #2894 an application seals its stored secrets as envelope v2, under data keys its ring holds. The session
|
|
7
|
+
* encryption key (`secrets.security.session.encryptionKey`) is then only the key that opens the v1 envelopes written
|
|
8
|
+
* before, which the boot passes move to v2. At every boot the application backend counts what is still v1 (the census,
|
|
9
|
+
* logged as `V1 envelope census (#3028): …`). Once that count is zero and complete, no runtime needs the key, and this
|
|
10
|
+
* door stops delivering it: `wildo keys legacy-envelope-key`.
|
|
11
|
+
*
|
|
12
|
+
* - **Refused by default.** The key is delivered unless an operator retired it. The retirement names the census the
|
|
13
|
+
* operator read ({@link ApplicationLegacyEnvelopeKeyRetirementRequest.observedCensus}); a census that is not complete
|
|
14
|
+
* and zero is refused (409), because a key still opening something must not stop being delivered.
|
|
15
|
+
* - **Nothing is deleted.** apps-manager keeps the stored key. Retiring only stops the secrets projection from handing it
|
|
16
|
+
* to any runtime, so {@link buildAdminApplicationLegacyEnvelopeKeyRestorePath} delivers it again, unchanged, and every
|
|
17
|
+
* v1 value it sealed opens again. Restoring is the remedy if a v1 value reappears (a restored backup, a move that failed
|
|
18
|
+
* after the census): the application logs that census at ERROR, naming this door, when it finds v1 with no key.
|
|
19
|
+
* - **Audited.** Both doors are justified and recorded at HIGH (`PLATFORM_CONFIGURATION_PUBLICATION`, operations
|
|
20
|
+
* `retire_legacy_envelope_key` / `restore_legacy_envelope_key`). The shared admin secret names nobody, so the reason
|
|
21
|
+
* and the census the operator stated are what the row carries.
|
|
22
|
+
* - **The application never writes it.** The census is read by an operator from the application's boot log and stated
|
|
23
|
+
* here; the apps-to-manager channel stays read-only (#2921).
|
|
24
|
+
* - **Only an older application has one.** apps-manager no longer creates the key: an application registered since then
|
|
25
|
+
* seals with its data-key ring from its first boot and never holds a v1 value. Both doors answer it
|
|
26
|
+
* {@link ApplicationLegacyEnvelopeKeyOutcome.NOTHING_STORED}.
|
|
27
|
+
*/
|
|
28
|
+
/** What a retirement or restoration request did. */
|
|
29
|
+
export var ApplicationLegacyEnvelopeKeyOutcome;
|
|
30
|
+
(function (ApplicationLegacyEnvelopeKeyOutcome) {
|
|
31
|
+
/** The key was being delivered and no longer is. */
|
|
32
|
+
ApplicationLegacyEnvelopeKeyOutcome["RETIRED"] = "retired";
|
|
33
|
+
/** The key was already retired: nothing was written. A retry of a retirement whose answer was lost receives this. */
|
|
34
|
+
ApplicationLegacyEnvelopeKeyOutcome["ALREADY_RETIRED"] = "already_retired";
|
|
35
|
+
/** The key was retired and is delivered again. */
|
|
36
|
+
ApplicationLegacyEnvelopeKeyOutcome["RESTORED"] = "restored";
|
|
37
|
+
/** The key was being delivered: nothing was written. */
|
|
38
|
+
ApplicationLegacyEnvelopeKeyOutcome["ALREADY_DELIVERED"] = "already_delivered";
|
|
39
|
+
/**
|
|
40
|
+
* The application holds no legacy key, so there is nothing to retire or deliver: nothing was written. Every
|
|
41
|
+
* application registered since #3028 is in this state, since apps-manager no longer creates the key.
|
|
42
|
+
*/
|
|
43
|
+
ApplicationLegacyEnvelopeKeyOutcome["NOTHING_STORED"] = "nothing_stored";
|
|
44
|
+
})(ApplicationLegacyEnvelopeKeyOutcome || (ApplicationLegacyEnvelopeKeyOutcome = {}));
|
|
45
|
+
/** The admin path of an application's legacy envelope key status. */
|
|
46
|
+
export function buildAdminApplicationLegacyEnvelopeKeyPath(appSlug) {
|
|
47
|
+
return `/admin/apps/${encodeURIComponent(appSlug)}/legacy-envelope-key`;
|
|
48
|
+
}
|
|
49
|
+
/** The admin path that stops delivering an application's legacy envelope key. */
|
|
50
|
+
export function buildAdminApplicationLegacyEnvelopeKeyRetirePath(appSlug) {
|
|
51
|
+
return `${buildAdminApplicationLegacyEnvelopeKeyPath(appSlug)}/retire`;
|
|
52
|
+
}
|
|
53
|
+
/** The admin path that delivers a retired legacy envelope key again. */
|
|
54
|
+
export function buildAdminApplicationLegacyEnvelopeKeyRestorePath(appSlug) {
|
|
55
|
+
return `${buildAdminApplicationLegacyEnvelopeKeyPath(appSlug)}/restore`;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The census the operator read in the application's boot log (`V1 envelope census (#3028): …`): how many v1 envelopes
|
|
59
|
+
* the application backend still found, and whether every store could be read. Only `{ total: 0, complete: true }` is
|
|
60
|
+
* admitted by a retirement.
|
|
61
|
+
*/
|
|
62
|
+
export const ApplicationLegacyEnvelopeCensusObservationSchema = z.strictObject({
|
|
63
|
+
total: z.number().int().min(0),
|
|
64
|
+
complete: z.boolean(),
|
|
65
|
+
});
|
|
66
|
+
/** Whether a stated census allows the key to be retired: complete, and nothing left in v1. */
|
|
67
|
+
export function legacyEnvelopeCensusAllowsRetirement(census) {
|
|
68
|
+
return census.complete && census.total === 0;
|
|
69
|
+
}
|
|
70
|
+
export const ApplicationLegacyEnvelopeKeyRetirementRequestSchema = z.strictObject({
|
|
71
|
+
/** Why, in the operator's words. Recorded on the audit row. */
|
|
72
|
+
justification: z.string().trim().min(1).max(1000),
|
|
73
|
+
/** The census the operator read (see {@link ApplicationLegacyEnvelopeCensusObservationSchema}). */
|
|
74
|
+
observedCensus: ApplicationLegacyEnvelopeCensusObservationSchema,
|
|
75
|
+
});
|
|
76
|
+
export const ApplicationLegacyEnvelopeKeyRestoreRequestSchema = z.strictObject({
|
|
77
|
+
/** Why, in the operator's words. Recorded on the audit row. */
|
|
78
|
+
justification: z.string().trim().min(1).max(1000),
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* The retirement apps-manager stores beside the key it keeps (`security.legacyEnvelopeKeyRetirement` of the application's
|
|
82
|
+
* stored secrets): when, why, and the census stated. Its presence is what stops the delivery.
|
|
83
|
+
*/
|
|
84
|
+
export const ApplicationLegacyEnvelopeKeyRetirementRecordSchema = z.strictObject({
|
|
85
|
+
// Framework-internal z_wireDate (#3480): stored inside the application's secrets, parsed raw outside the DTO builder, where a store that keeps them as JSON (PostgreSQL's wildo_platform) returns the date as its string.
|
|
86
|
+
retiredAt: z_wireDate(),
|
|
87
|
+
justification: z.string(),
|
|
88
|
+
observedCensus: ApplicationLegacyEnvelopeCensusObservationSchema,
|
|
89
|
+
});
|
|
90
|
+
/** The answer of `GET /admin/apps/:appSlug/legacy-envelope-key`: no key material. */
|
|
91
|
+
export const ApplicationLegacyEnvelopeKeyStatusSchema = z.strictObject({
|
|
92
|
+
appSlug: z.string().min(1),
|
|
93
|
+
/** Whether apps-manager holds a session encryption key for the application at all. */
|
|
94
|
+
stored: z.boolean(),
|
|
95
|
+
/** Whether the secrets projection hands it to the runtimes that read it (the backend and the minions). */
|
|
96
|
+
delivered: z.boolean(),
|
|
97
|
+
/** The retirement, when the key is retired (ISO 8601 instant). */
|
|
98
|
+
retirement: z.strictObject({
|
|
99
|
+
retiredAt: z.iso.datetime({ offset: true }),
|
|
100
|
+
justification: z.string(),
|
|
101
|
+
observedCensus: ApplicationLegacyEnvelopeCensusObservationSchema,
|
|
102
|
+
}).nullable(),
|
|
103
|
+
});
|
|
104
|
+
/** The answer of a retirement or a restoration: what it did, and the state afterwards. */
|
|
105
|
+
export const ApplicationLegacyEnvelopeKeyResponseSchema = z.strictObject({
|
|
106
|
+
outcome: z.enum(ApplicationLegacyEnvelopeKeyOutcome),
|
|
107
|
+
status: ApplicationLegacyEnvelopeKeyStatusSchema,
|
|
108
|
+
});
|
|
109
|
+
//# sourceMappingURL=application-legacy-envelope-key.contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-legacy-envelope-key.contracts.js","sourceRoot":"","sources":["../../../src/key-management/application-legacy-envelope-key.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,oDAAoD;AACpD,MAAM,CAAN,IAAY,mCAcX;AAdD,WAAY,mCAAmC;IAC7C,oDAAoD;IACpD,0DAAmB,CAAA;IACnB,qHAAqH;IACrH,0EAAmC,CAAA;IACnC,kDAAkD;IAClD,4DAAqB,CAAA;IACrB,wDAAwD;IACxD,8EAAuC,CAAA;IACvC;;;OAGG;IACH,wEAAiC,CAAA;AACnC,CAAC,EAdW,mCAAmC,KAAnC,mCAAmC,QAc9C;AAED,qEAAqE;AACrE,MAAM,UAAU,0CAA0C,CAAC,OAAe;IACxE,OAAO,eAAe,kBAAkB,CAAC,OAAO,CAAC,sBAAsB,CAAC;AAC1E,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,gDAAgD,CAAC,OAAe;IAC9E,OAAO,GAAG,0CAA0C,CAAC,OAAO,CAAC,SAAS,CAAC;AACzE,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,iDAAiD,CAAC,OAAe;IAC/E,OAAO,GAAG,0CAA0C,CAAC,OAAO,CAAC,UAAU,CAAC;AAC1E,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AAGH,8FAA8F;AAC9F,MAAM,UAAU,oCAAoC,CAAC,MAAkD;IACrG,OAAO,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,CAAC,MAAM,mDAAmD,GAAG,CAAC,CAAC,YAAY,CAAC;IAChF,+DAA+D;IAC/D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACjD,mGAAmG;IACnG,cAAc,EAAE,gDAAgD;CACjE,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gDAAgD,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7E,+DAA+D;IAC/D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CAClD,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,kDAAkD,GAAG,CAAC,CAAC,YAAY,CAAC;IAC/E,0NAA0N;IAC1N,SAAS,EAAE,UAAU,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,gDAAgD;CACjE,CAAC,CAAC;AAGH,qFAAqF;AACrF,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,CAAC,YAAY,CAAC;IACrE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,sFAAsF;IACtF,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,0GAA0G;IAC1G,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,kEAAkE;IAClE,UAAU,EAAE,CAAC,CAAC,YAAY,CAAC;QACzB,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAC3C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;QACzB,cAAc,EAAE,gDAAgD;KACjE,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC;AAGH,0FAA0F;AAC1F,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC,YAAY,CAAC;IACvE,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,mCAAmC,CAAC;IACpD,MAAM,EAAE,wCAAwC;CACjD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { z_wireDate } from '@wildo-ai/zod-decorators';\n\n/**\n * # Retiring an application's legacy envelope key (#3028)\n *\n * Since #2894 an application seals its stored secrets as envelope v2, under data keys its ring holds. The session\n * encryption key (`secrets.security.session.encryptionKey`) is then only the key that opens the v1 envelopes written\n * before, which the boot passes move to v2. At every boot the application backend counts what is still v1 (the census,\n * logged as `V1 envelope census (#3028): …`). Once that count is zero and complete, no runtime needs the key, and this\n * door stops delivering it: `wildo keys legacy-envelope-key`.\n *\n * - **Refused by default.** The key is delivered unless an operator retired it. The retirement names the census the\n * operator read ({@link ApplicationLegacyEnvelopeKeyRetirementRequest.observedCensus}); a census that is not complete\n * and zero is refused (409), because a key still opening something must not stop being delivered.\n * - **Nothing is deleted.** apps-manager keeps the stored key. Retiring only stops the secrets projection from handing it\n * to any runtime, so {@link buildAdminApplicationLegacyEnvelopeKeyRestorePath} delivers it again, unchanged, and every\n * v1 value it sealed opens again. Restoring is the remedy if a v1 value reappears (a restored backup, a move that failed\n * after the census): the application logs that census at ERROR, naming this door, when it finds v1 with no key.\n * - **Audited.** Both doors are justified and recorded at HIGH (`PLATFORM_CONFIGURATION_PUBLICATION`, operations\n * `retire_legacy_envelope_key` / `restore_legacy_envelope_key`). The shared admin secret names nobody, so the reason\n * and the census the operator stated are what the row carries.\n * - **The application never writes it.** The census is read by an operator from the application's boot log and stated\n * here; the apps-to-manager channel stays read-only (#2921).\n * - **Only an older application has one.** apps-manager no longer creates the key: an application registered since then\n * seals with its data-key ring from its first boot and never holds a v1 value. Both doors answer it\n * {@link ApplicationLegacyEnvelopeKeyOutcome.NOTHING_STORED}.\n */\n\n/** What a retirement or restoration request did. */\nexport enum ApplicationLegacyEnvelopeKeyOutcome {\n /** The key was being delivered and no longer is. */\n RETIRED = 'retired',\n /** The key was already retired: nothing was written. A retry of a retirement whose answer was lost receives this. */\n ALREADY_RETIRED = 'already_retired',\n /** The key was retired and is delivered again. */\n RESTORED = 'restored',\n /** The key was being delivered: nothing was written. */\n ALREADY_DELIVERED = 'already_delivered',\n /**\n * The application holds no legacy key, so there is nothing to retire or deliver: nothing was written. Every\n * application registered since #3028 is in this state, since apps-manager no longer creates the key.\n */\n NOTHING_STORED = 'nothing_stored',\n}\n\n/** The admin path of an application's legacy envelope key status. */\nexport function buildAdminApplicationLegacyEnvelopeKeyPath(appSlug: string): string {\n return `/admin/apps/${encodeURIComponent(appSlug)}/legacy-envelope-key`;\n}\n\n/** The admin path that stops delivering an application's legacy envelope key. */\nexport function buildAdminApplicationLegacyEnvelopeKeyRetirePath(appSlug: string): string {\n return `${buildAdminApplicationLegacyEnvelopeKeyPath(appSlug)}/retire`;\n}\n\n/** The admin path that delivers a retired legacy envelope key again. */\nexport function buildAdminApplicationLegacyEnvelopeKeyRestorePath(appSlug: string): string {\n return `${buildAdminApplicationLegacyEnvelopeKeyPath(appSlug)}/restore`;\n}\n\n/**\n * The census the operator read in the application's boot log (`V1 envelope census (#3028): …`): how many v1 envelopes\n * the application backend still found, and whether every store could be read. Only `{ total: 0, complete: true }` is\n * admitted by a retirement.\n */\nexport const ApplicationLegacyEnvelopeCensusObservationSchema = z.strictObject({\n total: z.number().int().min(0),\n complete: z.boolean(),\n});\nexport type ApplicationLegacyEnvelopeCensusObservation = z.infer<typeof ApplicationLegacyEnvelopeCensusObservationSchema>;\n\n/** Whether a stated census allows the key to be retired: complete, and nothing left in v1. */\nexport function legacyEnvelopeCensusAllowsRetirement(census: ApplicationLegacyEnvelopeCensusObservation): boolean {\n return census.complete && census.total === 0;\n}\n\nexport const ApplicationLegacyEnvelopeKeyRetirementRequestSchema = z.strictObject({\n /** Why, in the operator's words. Recorded on the audit row. */\n justification: z.string().trim().min(1).max(1000),\n /** The census the operator read (see {@link ApplicationLegacyEnvelopeCensusObservationSchema}). */\n observedCensus: ApplicationLegacyEnvelopeCensusObservationSchema,\n});\nexport type ApplicationLegacyEnvelopeKeyRetirementRequest = z.input<typeof ApplicationLegacyEnvelopeKeyRetirementRequestSchema>;\n\nexport const ApplicationLegacyEnvelopeKeyRestoreRequestSchema = z.strictObject({\n /** Why, in the operator's words. Recorded on the audit row. */\n justification: z.string().trim().min(1).max(1000),\n});\nexport type ApplicationLegacyEnvelopeKeyRestoreRequest = z.input<typeof ApplicationLegacyEnvelopeKeyRestoreRequestSchema>;\n\n/**\n * The retirement apps-manager stores beside the key it keeps (`security.legacyEnvelopeKeyRetirement` of the application's\n * stored secrets): when, why, and the census stated. Its presence is what stops the delivery.\n */\nexport const ApplicationLegacyEnvelopeKeyRetirementRecordSchema = z.strictObject({\n // Framework-internal z_wireDate (#3480): stored inside the application's secrets, parsed raw outside the DTO builder, where a store that keeps them as JSON (PostgreSQL's wildo_platform) returns the date as its string.\n retiredAt: z_wireDate(),\n justification: z.string(),\n observedCensus: ApplicationLegacyEnvelopeCensusObservationSchema,\n});\nexport type ApplicationLegacyEnvelopeKeyRetirementRecord = z.infer<typeof ApplicationLegacyEnvelopeKeyRetirementRecordSchema>;\n\n/** The answer of `GET /admin/apps/:appSlug/legacy-envelope-key`: no key material. */\nexport const ApplicationLegacyEnvelopeKeyStatusSchema = z.strictObject({\n appSlug: z.string().min(1),\n /** Whether apps-manager holds a session encryption key for the application at all. */\n stored: z.boolean(),\n /** Whether the secrets projection hands it to the runtimes that read it (the backend and the minions). */\n delivered: z.boolean(),\n /** The retirement, when the key is retired (ISO 8601 instant). */\n retirement: z.strictObject({\n retiredAt: z.iso.datetime({ offset: true }),\n justification: z.string(),\n observedCensus: ApplicationLegacyEnvelopeCensusObservationSchema,\n }).nullable(),\n});\nexport type ApplicationLegacyEnvelopeKeyStatus = z.infer<typeof ApplicationLegacyEnvelopeKeyStatusSchema>;\n\n/** The answer of a retirement or a restoration: what it did, and the state afterwards. */\nexport const ApplicationLegacyEnvelopeKeyResponseSchema = z.strictObject({\n outcome: z.enum(ApplicationLegacyEnvelopeKeyOutcome),\n status: ApplicationLegacyEnvelopeKeyStatusSchema,\n});\nexport type ApplicationLegacyEnvelopeKeyResponse = z.infer<typeof ApplicationLegacyEnvelopeKeyResponseSchema>;\n"]}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* # Rotating an application's signing keys by hand (#2895)
|
|
4
|
+
*
|
|
5
|
+
* An application's four signing keys (`APPLICATION_SIGNING_KEY_PURPOSES`: auth tokens, webhooks, platform requests,
|
|
6
|
+
* worker requests) are held in its secrets, not in the platform keyring, so `wildo keys rotate` refuses them. This is
|
|
7
|
+
* their door, behind apps-manager's admin secret: `wildo keys rotate-signing-keys`.
|
|
8
|
+
*
|
|
9
|
+
* - A rotation replaces all four pairs at once. Each replaced public key is RETIRED, not dropped: it keeps verifying what
|
|
10
|
+
* it signed until the longest token it can have signed expires (`notAfter`), so sessions, webhook signatures and
|
|
11
|
+
* in-flight requests survive it.
|
|
12
|
+
* - The request names the keys it expects to replace ({@link ApplicationSigningKeyRotationRequest.expectedKeyIds}, read
|
|
13
|
+
* from {@link buildAdminApplicationSigningKeysPath} first). That is the compare-and-set that makes the door safe to
|
|
14
|
+
* retry: a retry of a rotation that already happened finds its expected keys retired and answers
|
|
15
|
+
* {@link ApplicationSigningKeyRotationOutcome.ALREADY_ROTATED} without rotating again, and a request built on keys
|
|
16
|
+
* someone else has since replaced is refused (409) rather than applied on top.
|
|
17
|
+
* - The operator states why ({@link ApplicationSigningKeyRotationRequest.justification}); the shared admin secret names
|
|
18
|
+
* nobody, so the reason is what the audit row carries.
|
|
19
|
+
*
|
|
20
|
+
* ## Two ways to rotate
|
|
21
|
+
*
|
|
22
|
+
* - **Planned, through the key layer** (#2895): {@link buildAdminApplicationSigningKeyStagePath} mints a NEXT pair per
|
|
23
|
+
* purpose and PUBLISHES its public half (in the application's JWKS for a published purpose, to every verifier
|
|
24
|
+
* otherwise) while it signs nothing; {@link buildAdminApplicationSigningKeyPromotePath} later makes it the signing key
|
|
25
|
+
* and retires the one it replaces. The promotion is refused until the NEXT keys have been published for
|
|
26
|
+
* {@link APPLICATION_SIGNING_KEY_PUBLICATION_LEAD_SECONDS}: by then a relying party that cached the JWKS just before they
|
|
27
|
+
* appeared has fetched it again, so no token signed with them meets a verifier that does not hold them. This is the
|
|
28
|
+
* only step that asks for a fresh view: signing itself never waits for apps-manager.
|
|
29
|
+
* - **Immediate** ({@link buildAdminApplicationSigningKeyRotationPath}): new keys at once, for a key that may have leaked.
|
|
30
|
+
* Verifiers then learn the new key from its unfamiliar `kid` (each refetches, bounded), rather than ahead of time.
|
|
31
|
+
*
|
|
32
|
+
* Either way the backend adopts the new private keys at its next signing-key refresh (at most five minutes, never
|
|
33
|
+
* blocking a signature), and the replaced keys stay retired, verifying, until what they signed expires.
|
|
34
|
+
*
|
|
35
|
+
* spec-cite: OpenID Connect Core 1.0 §10.1.1 — "The JWK Set document at the jwks_uri SHOULD retain recently
|
|
36
|
+
* decommissioned signing keys for a reasonable period of time"; publishing the next key ahead is the practice of OIDC
|
|
37
|
+
* providers (Auth0's discovery document "will always include both the current key and the next key").
|
|
38
|
+
*/
|
|
39
|
+
/**
|
|
40
|
+
* How long a staged NEXT key must have been published before it may be promoted (#2895): the backend's key refresh
|
|
41
|
+
* (when its JWKS starts publishing the key) plus the JWKS cache lifetime relying parties are told they may keep, plus a
|
|
42
|
+
* margin. Derived from both, so changing either moves the lead with it. 70 minutes today.
|
|
43
|
+
*/
|
|
44
|
+
export declare const APPLICATION_SIGNING_KEY_PUBLICATION_LEAD_SECONDS: number;
|
|
45
|
+
/** What a rotation request did. */
|
|
46
|
+
export declare enum ApplicationSigningKeyRotationOutcome {
|
|
47
|
+
/** The keys named in the request were signing, and were replaced and retired. */
|
|
48
|
+
ROTATED = "rotated",
|
|
49
|
+
/**
|
|
50
|
+
* The keys named in the request were already replaced: each is retired. Nothing was written. This is what a retry of a
|
|
51
|
+
* rotation that succeeded (but whose answer was lost) receives.
|
|
52
|
+
*/
|
|
53
|
+
ALREADY_ROTATED = "already_rotated",
|
|
54
|
+
/** A NEXT key was minted and published for every purpose; nothing signs with it yet. */
|
|
55
|
+
STAGED = "staged",
|
|
56
|
+
/** NEXT keys were already staged: nothing was written. A retry of a staging whose answer was lost receives this. */
|
|
57
|
+
ALREADY_STAGED = "already_staged",
|
|
58
|
+
/** The NEXT keys named in the request now sign, and the keys they replaced are retired. */
|
|
59
|
+
PROMOTED = "promoted",
|
|
60
|
+
/** The NEXT keys named in the request already sign, and nothing is staged: nothing was written. */
|
|
61
|
+
ALREADY_PROMOTED = "already_promoted"
|
|
62
|
+
}
|
|
63
|
+
/** The admin path of an application's signing-key status. */
|
|
64
|
+
export declare function buildAdminApplicationSigningKeysPath(appSlug: string): string;
|
|
65
|
+
/** The admin path that mints and publishes an application's NEXT signing keys (#2895). */
|
|
66
|
+
export declare function buildAdminApplicationSigningKeyStagePath(appSlug: string): string;
|
|
67
|
+
/** The admin path that promotes an application's staged NEXT signing keys (#2895). */
|
|
68
|
+
export declare function buildAdminApplicationSigningKeyPromotePath(appSlug: string): string;
|
|
69
|
+
/** The admin path of an application's signing-key rotation. */
|
|
70
|
+
export declare function buildAdminApplicationSigningKeyRotationPath(appSlug: string): string;
|
|
71
|
+
/**
|
|
72
|
+
* The `kid` (RFC 7638 thumbprint) of each purpose's key, or `null` for a purpose with no usable key. Total over
|
|
73
|
+
* `APPLICATION_SIGNING_KEY_PURPOSES`, so a purpose added there is a missing member here rather than a key nobody names.
|
|
74
|
+
*/
|
|
75
|
+
export declare const ApplicationSigningKeyIdsSchema: z.ZodObject<{
|
|
76
|
+
application_auth_token: z.ZodNullable<z.ZodString>;
|
|
77
|
+
application_webhook: z.ZodNullable<z.ZodString>;
|
|
78
|
+
application_platform_request: z.ZodNullable<z.ZodString>;
|
|
79
|
+
application_worker_request: z.ZodNullable<z.ZodString>;
|
|
80
|
+
}, z.core.$strict>;
|
|
81
|
+
export type ApplicationSigningKeyIds = z.infer<typeof ApplicationSigningKeyIdsSchema>;
|
|
82
|
+
/** One purpose's keys as apps-manager holds them. */
|
|
83
|
+
export declare const ApplicationSigningKeyPurposeStatusSchema: z.ZodObject<{
|
|
84
|
+
purpose: z.ZodEnum<{
|
|
85
|
+
application_auth_token: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_AUTH_TOKEN;
|
|
86
|
+
application_webhook: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_WEBHOOK;
|
|
87
|
+
application_platform_request: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_PLATFORM_REQUEST;
|
|
88
|
+
application_worker_request: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_WORKER_REQUEST;
|
|
89
|
+
}>;
|
|
90
|
+
signingKid: z.ZodNullable<z.ZodString>;
|
|
91
|
+
publishedKid: z.ZodNullable<z.ZodString>;
|
|
92
|
+
retired: z.ZodArray<z.ZodObject<{
|
|
93
|
+
kid: z.ZodString;
|
|
94
|
+
notAfter: z.ZodNullable<z.ZodISODateTime>;
|
|
95
|
+
}, z.core.$strict>>;
|
|
96
|
+
next: z.ZodNullable<z.ZodObject<{
|
|
97
|
+
kid: z.ZodString;
|
|
98
|
+
publishedAt: z.ZodISODateTime;
|
|
99
|
+
promotableAt: z.ZodISODateTime;
|
|
100
|
+
}, z.core.$strict>>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
export type ApplicationSigningKeyPurposeStatus = z.infer<typeof ApplicationSigningKeyPurposeStatusSchema>;
|
|
103
|
+
/** The answer of `GET /admin/apps/:appSlug/signing-keys`: no key material, only `kid`s and dates. */
|
|
104
|
+
export declare const ApplicationSigningKeysStatusSchema: z.ZodObject<{
|
|
105
|
+
appSlug: z.ZodString;
|
|
106
|
+
purposes: z.ZodArray<z.ZodObject<{
|
|
107
|
+
purpose: z.ZodEnum<{
|
|
108
|
+
application_auth_token: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_AUTH_TOKEN;
|
|
109
|
+
application_webhook: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_WEBHOOK;
|
|
110
|
+
application_platform_request: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_PLATFORM_REQUEST;
|
|
111
|
+
application_worker_request: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_WORKER_REQUEST;
|
|
112
|
+
}>;
|
|
113
|
+
signingKid: z.ZodNullable<z.ZodString>;
|
|
114
|
+
publishedKid: z.ZodNullable<z.ZodString>;
|
|
115
|
+
retired: z.ZodArray<z.ZodObject<{
|
|
116
|
+
kid: z.ZodString;
|
|
117
|
+
notAfter: z.ZodNullable<z.ZodISODateTime>;
|
|
118
|
+
}, z.core.$strict>>;
|
|
119
|
+
next: z.ZodNullable<z.ZodObject<{
|
|
120
|
+
kid: z.ZodString;
|
|
121
|
+
publishedAt: z.ZodISODateTime;
|
|
122
|
+
promotableAt: z.ZodISODateTime;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
}, z.core.$strict>>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
export type ApplicationSigningKeysStatus = z.infer<typeof ApplicationSigningKeysStatusSchema>;
|
|
127
|
+
/** The `kid` of each purpose's signing key in a status: what a rotation request names as the keys it replaces. */
|
|
128
|
+
export declare function signingKeyIdsOf(status: ApplicationSigningKeysStatus): ApplicationSigningKeyIds;
|
|
129
|
+
export declare const ApplicationSigningKeyRotationRequestSchema: z.ZodObject<{
|
|
130
|
+
expectedKeyIds: z.ZodObject<{
|
|
131
|
+
application_auth_token: z.ZodNullable<z.ZodString>;
|
|
132
|
+
application_webhook: z.ZodNullable<z.ZodString>;
|
|
133
|
+
application_platform_request: z.ZodNullable<z.ZodString>;
|
|
134
|
+
application_worker_request: z.ZodNullable<z.ZodString>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
justification: z.ZodString;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
export type ApplicationSigningKeyRotationRequest = z.input<typeof ApplicationSigningKeyRotationRequestSchema>;
|
|
139
|
+
/** The `kid` of each purpose's staged NEXT key in a status: what a promotion request names. */
|
|
140
|
+
export declare function nextSigningKeyIdsOf(status: ApplicationSigningKeysStatus): ApplicationSigningKeyIds;
|
|
141
|
+
export declare const ApplicationSigningKeyStageRequestSchema: z.ZodObject<{
|
|
142
|
+
justification: z.ZodString;
|
|
143
|
+
}, z.core.$strict>;
|
|
144
|
+
export type ApplicationSigningKeyStageRequest = z.input<typeof ApplicationSigningKeyStageRequestSchema>;
|
|
145
|
+
export declare const ApplicationSigningKeyPromoteRequestSchema: z.ZodObject<{
|
|
146
|
+
expectedNextKeyIds: z.ZodObject<{
|
|
147
|
+
application_auth_token: z.ZodNullable<z.ZodString>;
|
|
148
|
+
application_webhook: z.ZodNullable<z.ZodString>;
|
|
149
|
+
application_platform_request: z.ZodNullable<z.ZodString>;
|
|
150
|
+
application_worker_request: z.ZodNullable<z.ZodString>;
|
|
151
|
+
}, z.core.$strict>;
|
|
152
|
+
justification: z.ZodString;
|
|
153
|
+
}, z.core.$strict>;
|
|
154
|
+
export type ApplicationSigningKeyPromoteRequest = z.input<typeof ApplicationSigningKeyPromoteRequestSchema>;
|
|
155
|
+
/** The answer of a rotation: what it did, and the keys afterwards. */
|
|
156
|
+
export declare const ApplicationSigningKeyRotationResponseSchema: z.ZodObject<{
|
|
157
|
+
outcome: z.ZodEnum<typeof ApplicationSigningKeyRotationOutcome>;
|
|
158
|
+
status: z.ZodObject<{
|
|
159
|
+
appSlug: z.ZodString;
|
|
160
|
+
purposes: z.ZodArray<z.ZodObject<{
|
|
161
|
+
purpose: z.ZodEnum<{
|
|
162
|
+
application_auth_token: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_AUTH_TOKEN;
|
|
163
|
+
application_webhook: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_WEBHOOK;
|
|
164
|
+
application_platform_request: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_PLATFORM_REQUEST;
|
|
165
|
+
application_worker_request: import("@wildo-ai/saas-models").CryptoKey_Purpose.APPLICATION_WORKER_REQUEST;
|
|
166
|
+
}>;
|
|
167
|
+
signingKid: z.ZodNullable<z.ZodString>;
|
|
168
|
+
publishedKid: z.ZodNullable<z.ZodString>;
|
|
169
|
+
retired: z.ZodArray<z.ZodObject<{
|
|
170
|
+
kid: z.ZodString;
|
|
171
|
+
notAfter: z.ZodNullable<z.ZodISODateTime>;
|
|
172
|
+
}, z.core.$strict>>;
|
|
173
|
+
next: z.ZodNullable<z.ZodObject<{
|
|
174
|
+
kid: z.ZodString;
|
|
175
|
+
publishedAt: z.ZodISODateTime;
|
|
176
|
+
promotableAt: z.ZodISODateTime;
|
|
177
|
+
}, z.core.$strict>>;
|
|
178
|
+
}, z.core.$strict>>;
|
|
179
|
+
}, z.core.$strict>;
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
export type ApplicationSigningKeyRotationResponse = z.infer<typeof ApplicationSigningKeyRotationResponseSchema>;
|
|
182
|
+
//# sourceMappingURL=application-signing-key-rotation.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application-signing-key-rotation.contracts.d.ts","sourceRoot":"","sources":["../../../src/key-management/application-signing-key-rotation.contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH;;;;GAIG;AACH,eAAO,MAAM,gDAAgD,EAAE,MAA2G,CAAC;AAG3K,mCAAmC;AACnC,oBAAY,oCAAoC;IAC9C,iFAAiF;IACjF,OAAO,YAAY;IACnB;;;OAGG;IACH,eAAe,oBAAoB;IACnC,wFAAwF;IACxF,MAAM,WAAW;IACjB,oHAAoH;IACpH,cAAc,mBAAmB;IACjC,2FAA2F;IAC3F,QAAQ,aAAa;IACrB,mGAAmG;IACnG,gBAAgB,qBAAqB;CACtC;AAED,6DAA6D;AAC7D,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE5E;AAED,0FAA0F;AAC1F,wBAAgB,wCAAwC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEhF;AAED,sFAAsF;AACtF,wBAAgB,0CAA0C,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAElF;AAED,+DAA+D;AAC/D,wBAAgB,2CAA2C,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEnF;AAED;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;kBAK1C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,qDAAqD;AACrD,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;kBAuBnD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE1G,qGAAqG;AACrG,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;kBAG7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,kHAAkH;AAClH,wBAAgB,eAAe,CAAC,MAAM,EAAE,4BAA4B,GAAG,wBAAwB,CAI9F;AAED,eAAO,MAAM,0CAA0C;;;;;;;;kBAKrD,CAAC;AACH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC;AAE9G,+FAA+F;AAC/F,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,4BAA4B,GAAG,wBAAwB,CAIlG;AAED,eAAO,MAAM,uCAAuC;;kBAGlD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAExG,eAAO,MAAM,yCAAyC;;;;;;;;kBAKpD,CAAC;AACH,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAE5G,sEAAsE;AACtE,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;kBAGtD,CAAC;AACH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2CAA2C,CAAC,CAAC"}
|