typekro 0.33.10 → 0.35.0
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/.tsbuildinfo +1 -1
- package/dist/alchemy/clickhouse-schema/executor.d.ts +25 -0
- package/dist/alchemy/clickhouse-schema/executor.d.ts.map +1 -0
- package/dist/alchemy/clickhouse-schema/executor.js +144 -0
- package/dist/alchemy/clickhouse-schema/executor.js.map +1 -0
- package/dist/alchemy/clickhouse-schema/index.d.ts +12 -0
- package/dist/alchemy/clickhouse-schema/index.d.ts.map +1 -0
- package/dist/alchemy/clickhouse-schema/index.js +11 -0
- package/dist/alchemy/clickhouse-schema/index.js.map +1 -0
- package/dist/alchemy/clickhouse-schema/resource.d.ts +54 -0
- package/dist/alchemy/clickhouse-schema/resource.d.ts.map +1 -0
- package/dist/alchemy/clickhouse-schema/resource.js +158 -0
- package/dist/alchemy/clickhouse-schema/resource.js.map +1 -0
- package/dist/alchemy/clickhouse-schema/runner.d.ts +154 -0
- package/dist/alchemy/clickhouse-schema/runner.d.ts.map +1 -0
- package/dist/alchemy/clickhouse-schema/runner.js +613 -0
- package/dist/alchemy/clickhouse-schema/runner.js.map +1 -0
- package/dist/alchemy/clickhouse-schema/sql.d.ts +109 -0
- package/dist/alchemy/clickhouse-schema/sql.d.ts.map +1 -0
- package/dist/alchemy/clickhouse-schema/sql.js +368 -0
- package/dist/alchemy/clickhouse-schema/sql.js.map +1 -0
- package/dist/alchemy/clickhouse-schema/types.d.ts +394 -0
- package/dist/alchemy/clickhouse-schema/types.d.ts.map +1 -0
- package/dist/alchemy/clickhouse-schema/types.js +370 -0
- package/dist/alchemy/clickhouse-schema/types.js.map +1 -0
- package/dist/alchemy/index.d.ts +1 -0
- package/dist/alchemy/index.d.ts.map +1 -1
- package/dist/alchemy/index.js +2 -0
- package/dist/alchemy/index.js.map +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.d.ts +0 -33
- package/dist/compositions/typekro-runtime/typekro-runtime.d.ts.map +1 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.js +63 -1
- package/dist/compositions/typekro-runtime/typekro-runtime.js.map +1 -1
- package/dist/compositions/typekro-runtime/types.d.ts +8 -0
- package/dist/compositions/typekro-runtime/types.d.ts.map +1 -1
- package/dist/compositions/typekro-runtime/types.js +1 -0
- package/dist/compositions/typekro-runtime/types.js.map +1 -1
- package/dist/core/aspects/values-merge.d.ts +17 -0
- package/dist/core/aspects/values-merge.d.ts.map +1 -1
- package/dist/core/aspects/values-merge.js +67 -8
- package/dist/core/aspects/values-merge.js.map +1 -1
- package/dist/core/deployment/direct-factory.d.ts +9 -0
- package/dist/core/deployment/direct-factory.d.ts.map +1 -1
- package/dist/core/deployment/direct-factory.js +37 -3
- package/dist/core/deployment/direct-factory.js.map +1 -1
- package/dist/core/deployment/engine.d.ts +34 -0
- package/dist/core/deployment/engine.d.ts.map +1 -1
- package/dist/core/deployment/engine.js +173 -29
- package/dist/core/deployment/engine.js.map +1 -1
- package/dist/core/deployment/index.d.ts +2 -0
- package/dist/core/deployment/index.d.ts.map +1 -1
- package/dist/core/deployment/index.js +1 -0
- package/dist/core/deployment/index.js.map +1 -1
- package/dist/core/deployment/k8s-helpers.d.ts +73 -0
- package/dist/core/deployment/k8s-helpers.d.ts.map +1 -1
- package/dist/core/deployment/k8s-helpers.js +198 -4
- package/dist/core/deployment/k8s-helpers.js.map +1 -1
- package/dist/core/deployment/kro-factory.d.ts.map +1 -1
- package/dist/core/deployment/kro-factory.js +21 -1
- package/dist/core/deployment/kro-factory.js.map +1 -1
- package/dist/core/deployment/status-leaf-resolution.d.ts +101 -0
- package/dist/core/deployment/status-leaf-resolution.d.ts.map +1 -0
- package/dist/core/deployment/status-leaf-resolution.js +232 -0
- package/dist/core/deployment/status-leaf-resolution.js.map +1 -0
- package/dist/core/deployment/strategies/base-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/base-strategy.js +31 -3
- package/dist/core/deployment/strategies/base-strategy.js.map +1 -1
- package/dist/core/deployment/strategies/kro-strategy.d.ts.map +1 -1
- package/dist/core/deployment/strategies/kro-strategy.js +8 -1
- package/dist/core/deployment/strategies/kro-strategy.js.map +1 -1
- package/dist/core/kro/index.d.ts +6 -0
- package/dist/core/kro/index.d.ts.map +1 -0
- package/dist/core/kro/index.js +6 -0
- package/dist/core/kro/index.js.map +1 -0
- package/dist/core/kro/label-guard-capability.d.ts +141 -0
- package/dist/core/kro/label-guard-capability.d.ts.map +1 -0
- package/dist/core/kro/label-guard-capability.js +257 -0
- package/dist/core/kro/label-guard-capability.js.map +1 -0
- package/dist/core/kro/labels.d.ts +56 -0
- package/dist/core/kro/labels.d.ts.map +1 -0
- package/dist/core/kro/labels.js +62 -0
- package/dist/core/kro/labels.js.map +1 -0
- package/dist/core/kubernetes/api-capability.d.ts +196 -0
- package/dist/core/kubernetes/api-capability.d.ts.map +1 -0
- package/dist/core/kubernetes/api-capability.js +301 -0
- package/dist/core/kubernetes/api-capability.js.map +1 -0
- package/dist/core/kubernetes/index.d.ts +2 -0
- package/dist/core/kubernetes/index.d.ts.map +1 -1
- package/dist/core/kubernetes/index.js +2 -0
- package/dist/core/kubernetes/index.js.map +1 -1
- package/dist/core/kubernetes/naming.d.ts +100 -0
- package/dist/core/kubernetes/naming.d.ts.map +1 -0
- package/dist/core/kubernetes/naming.js +93 -0
- package/dist/core/kubernetes/naming.js.map +1 -0
- package/dist/core/planning/direct-runtime-adapter.d.ts.map +1 -1
- package/dist/core/planning/direct-runtime-adapter.js +54 -17
- package/dist/core/planning/direct-runtime-adapter.js.map +1 -1
- package/dist/core/planning/planner.d.ts.map +1 -1
- package/dist/core/planning/planner.js +17 -0
- package/dist/core/planning/planner.js.map +1 -1
- package/dist/core/planning/schema.d.ts.map +1 -1
- package/dist/core/planning/schema.js +7 -3
- package/dist/core/planning/schema.js.map +1 -1
- package/dist/core/references/cel-lexical-scanner.d.ts +100 -1
- package/dist/core/references/cel-lexical-scanner.d.ts.map +1 -1
- package/dist/core/references/cel-lexical-scanner.js +196 -2
- package/dist/core/references/cel-lexical-scanner.js.map +1 -1
- package/dist/core/references/cel.d.ts +249 -1
- package/dist/core/references/cel.d.ts.map +1 -1
- package/dist/core/references/cel.js +289 -8
- package/dist/core/references/cel.js.map +1 -1
- package/dist/core/serialization/arktype-ast.d.ts +21 -0
- package/dist/core/serialization/arktype-ast.d.ts.map +1 -0
- package/dist/core/serialization/arktype-ast.js +29 -0
- package/dist/core/serialization/arktype-ast.js.map +1 -0
- package/dist/core/serialization/cel-references.d.ts +133 -32
- package/dist/core/serialization/cel-references.d.ts.map +1 -1
- package/dist/core/serialization/cel-references.js +908 -109
- package/dist/core/serialization/cel-references.js.map +1 -1
- package/dist/core/serialization/schema.d.ts +16 -2
- package/dist/core/serialization/schema.d.ts.map +1 -1
- package/dist/core/serialization/schema.js +113 -21
- package/dist/core/serialization/schema.js.map +1 -1
- package/dist/core/types/composable.d.ts +7 -1
- package/dist/core/types/composable.d.ts.map +1 -1
- package/dist/core/types/deployment.d.ts +32 -2
- package/dist/core/types/deployment.d.ts.map +1 -1
- package/dist/core/types/serialization.d.ts +37 -0
- package/dist/core/types/serialization.d.ts.map +1 -1
- package/dist/core/validation/cel-dialect.d.ts +246 -0
- package/dist/core/validation/cel-dialect.d.ts.map +1 -0
- package/dist/core/validation/cel-dialect.js +1997 -0
- package/dist/core/validation/cel-dialect.js.map +1 -0
- package/dist/core/validation/cel-validator.d.ts.map +1 -1
- package/dist/core/validation/cel-validator.js +8 -1
- package/dist/core/validation/cel-validator.js.map +1 -1
- package/dist/core/validation/literal-status.d.ts +107 -0
- package/dist/core/validation/literal-status.d.ts.map +1 -0
- package/dist/core/validation/literal-status.js +346 -0
- package/dist/core/validation/literal-status.js.map +1 -0
- package/dist/core/validation/structural-spec-dependence.d.ts +179 -0
- package/dist/core/validation/structural-spec-dependence.d.ts.map +1 -0
- package/dist/core/validation/structural-spec-dependence.js +911 -0
- package/dist/core/validation/structural-spec-dependence.js.map +1 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.d.ts.map +1 -1
- package/dist/factories/apisix/compositions/apisix-bootstrap.js +9 -0
- package/dist/factories/apisix/compositions/apisix-bootstrap.js.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-cluster.d.ts +6 -0
- package/dist/factories/clickhouse/compositions/clickhouse-cluster.d.ts.map +1 -1
- package/dist/factories/clickhouse/compositions/clickhouse-cluster.js +273 -23
- package/dist/factories/clickhouse/compositions/clickhouse-cluster.js.map +1 -1
- package/dist/factories/clickhouse/resources/index.d.ts +1 -0
- package/dist/factories/clickhouse/resources/index.d.ts.map +1 -1
- package/dist/factories/clickhouse/resources/index.js +1 -0
- package/dist/factories/clickhouse/resources/index.js.map +1 -1
- package/dist/factories/clickhouse/resources/installation.d.ts.map +1 -1
- package/dist/factories/clickhouse/resources/installation.js +31 -4
- package/dist/factories/clickhouse/resources/installation.js.map +1 -1
- package/dist/factories/clickhouse/resources/s3-backup.d.ts +215 -0
- package/dist/factories/clickhouse/resources/s3-backup.d.ts.map +1 -0
- package/dist/factories/clickhouse/resources/s3-backup.js +410 -0
- package/dist/factories/clickhouse/resources/s3-backup.js.map +1 -0
- package/dist/factories/clickhouse/types.d.ts +416 -20
- package/dist/factories/clickhouse/types.d.ts.map +1 -1
- package/dist/factories/clickhouse/types.js +235 -11
- package/dist/factories/clickhouse/types.js.map +1 -1
- package/dist/factories/clickhouse/utils/helm-values-mapper.d.ts +42 -0
- package/dist/factories/clickhouse/utils/helm-values-mapper.d.ts.map +1 -1
- package/dist/factories/clickhouse/utils/helm-values-mapper.js +48 -0
- package/dist/factories/clickhouse/utils/helm-values-mapper.js.map +1 -1
- package/dist/factories/clickhouse/utils/index.d.ts +2 -0
- package/dist/factories/clickhouse/utils/index.d.ts.map +1 -1
- package/dist/factories/clickhouse/utils/index.js +2 -0
- package/dist/factories/clickhouse/utils/index.js.map +1 -1
- package/dist/factories/clickhouse/utils/s3-storage.d.ts +503 -0
- package/dist/factories/clickhouse/utils/s3-storage.d.ts.map +1 -0
- package/dist/factories/clickhouse/utils/s3-storage.js +1139 -0
- package/dist/factories/clickhouse/utils/s3-storage.js.map +1 -0
- package/dist/factories/clickhouse/utils/validation.d.ts +103 -0
- package/dist/factories/clickhouse/utils/validation.d.ts.map +1 -1
- package/dist/factories/clickhouse/utils/validation.js +129 -0
- package/dist/factories/clickhouse/utils/validation.js.map +1 -1
- package/dist/factories/clickhouse/utils/xml.d.ts +87 -0
- package/dist/factories/clickhouse/utils/xml.d.ts.map +1 -0
- package/dist/factories/clickhouse/utils/xml.js +151 -0
- package/dist/factories/clickhouse/utils/xml.js.map +1 -0
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.d.ts +57 -0
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.d.ts.map +1 -1
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.js +266 -7
- package/dist/factories/clickstack/compositions/clickstack-bootstrap.js.map +1 -1
- package/dist/factories/clickstack/types.d.ts +205 -26
- package/dist/factories/clickstack/types.d.ts.map +1 -1
- package/dist/factories/clickstack/types.js +106 -8
- package/dist/factories/clickstack/types.js.map +1 -1
- package/dist/factories/clickstack/utils/collector-config.d.ts +104 -0
- package/dist/factories/clickstack/utils/collector-config.d.ts.map +1 -0
- package/dist/factories/clickstack/utils/collector-config.js +266 -0
- package/dist/factories/clickstack/utils/collector-config.js.map +1 -0
- package/dist/factories/clickstack/utils/helm-values-mapper.d.ts +26 -0
- package/dist/factories/clickstack/utils/helm-values-mapper.d.ts.map +1 -1
- package/dist/factories/clickstack/utils/helm-values-mapper.js +53 -12
- package/dist/factories/clickstack/utils/helm-values-mapper.js.map +1 -1
- package/dist/factories/clickstack/utils/index.d.ts +2 -0
- package/dist/factories/clickstack/utils/index.d.ts.map +1 -1
- package/dist/factories/clickstack/utils/index.js +2 -0
- package/dist/factories/clickstack/utils/index.js.map +1 -1
- package/dist/factories/clickstack/utils/storage.d.ts +449 -0
- package/dist/factories/clickstack/utils/storage.d.ts.map +1 -0
- package/dist/factories/clickstack/utils/storage.js +698 -0
- package/dist/factories/clickstack/utils/storage.js.map +1 -0
- package/dist/factories/cnpg/resources/helm.d.ts.map +1 -1
- package/dist/factories/cnpg/resources/helm.js +4 -4
- package/dist/factories/cnpg/resources/helm.js.map +1 -1
- package/dist/factories/cnpg/types.d.ts +10 -1
- package/dist/factories/cnpg/types.d.ts.map +1 -1
- package/dist/factories/cnpg/types.js.map +1 -1
- package/dist/factories/cnpg/utils/helm-values-mapper.d.ts +19 -2
- package/dist/factories/cnpg/utils/helm-values-mapper.d.ts.map +1 -1
- package/dist/factories/cnpg/utils/helm-values-mapper.js +22 -4
- package/dist/factories/cnpg/utils/helm-values-mapper.js.map +1 -1
- package/dist/factories/envoy-ai-gateway/compositions/gateway.d.ts.map +1 -1
- package/dist/factories/envoy-ai-gateway/compositions/gateway.js +16 -3
- package/dist/factories/envoy-ai-gateway/compositions/gateway.js.map +1 -1
- package/dist/factories/envoy-ai-gateway/constants.d.ts +5 -2
- package/dist/factories/envoy-ai-gateway/constants.d.ts.map +1 -1
- package/dist/factories/envoy-ai-gateway/constants.js +5 -2
- package/dist/factories/envoy-ai-gateway/constants.js.map +1 -1
- package/dist/factories/envoy-ai-gateway/resources/gateway.d.ts +12 -0
- package/dist/factories/envoy-ai-gateway/resources/gateway.d.ts.map +1 -1
- package/dist/factories/envoy-ai-gateway/resources/gateway.js +27 -104
- package/dist/factories/envoy-ai-gateway/resources/gateway.js.map +1 -1
- package/dist/factories/envoy-ai-gateway/types.d.ts +15 -47
- package/dist/factories/envoy-ai-gateway/types.d.ts.map +1 -1
- package/dist/factories/envoy-ai-gateway/types.js.map +1 -1
- package/dist/factories/gateway-api/constants.d.ts +27 -0
- package/dist/factories/gateway-api/constants.d.ts.map +1 -0
- package/dist/factories/gateway-api/constants.js +27 -0
- package/dist/factories/gateway-api/constants.js.map +1 -0
- package/dist/factories/gateway-api/index.d.ts +14 -0
- package/dist/factories/gateway-api/index.d.ts.map +1 -0
- package/dist/factories/gateway-api/index.js +14 -0
- package/dist/factories/gateway-api/index.js.map +1 -0
- package/dist/factories/gateway-api/readiness.d.ts +67 -0
- package/dist/factories/gateway-api/readiness.d.ts.map +1 -0
- package/dist/factories/gateway-api/readiness.js +213 -0
- package/dist/factories/gateway-api/readiness.js.map +1 -0
- package/dist/factories/gateway-api/resources/gateway.d.ts +91 -0
- package/dist/factories/gateway-api/resources/gateway.d.ts.map +1 -0
- package/dist/factories/gateway-api/resources/gateway.js +99 -0
- package/dist/factories/gateway-api/resources/gateway.js.map +1 -0
- package/dist/factories/gateway-api/resources/index.d.ts +2 -0
- package/dist/factories/gateway-api/resources/index.d.ts.map +1 -0
- package/dist/factories/gateway-api/resources/index.js +2 -0
- package/dist/factories/gateway-api/resources/index.js.map +1 -0
- package/dist/factories/gateway-api/types.d.ts +1269 -0
- package/dist/factories/gateway-api/types.d.ts.map +1 -0
- package/dist/factories/gateway-api/types.js +417 -0
- package/dist/factories/gateway-api/types.js.map +1 -0
- package/dist/factories/helm/readiness-evaluators.d.ts +21 -3
- package/dist/factories/helm/readiness-evaluators.d.ts.map +1 -1
- package/dist/factories/helm/readiness-evaluators.js +117 -11
- package/dist/factories/helm/readiness-evaluators.js.map +1 -1
- package/dist/factories/helm/types.d.ts +28 -0
- package/dist/factories/helm/types.d.ts.map +1 -1
- package/dist/factories/index.d.ts +2 -0
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +8 -0
- package/dist/factories/index.js.map +1 -1
- package/dist/factories/inngest/compositions/inngest-bootstrap.d.ts.map +1 -1
- package/dist/factories/inngest/compositions/inngest-bootstrap.js +10 -0
- package/dist/factories/inngest/compositions/inngest-bootstrap.js.map +1 -1
- package/dist/factories/kubernetes/admission/index.d.ts +2 -0
- package/dist/factories/kubernetes/admission/index.d.ts.map +1 -1
- package/dist/factories/kubernetes/admission/index.js +2 -0
- package/dist/factories/kubernetes/admission/index.js.map +1 -1
- package/dist/factories/kubernetes/admission/label-propagation-guard.d.ts +108 -0
- package/dist/factories/kubernetes/admission/label-propagation-guard.d.ts.map +1 -0
- package/dist/factories/kubernetes/admission/label-propagation-guard.js +247 -0
- package/dist/factories/kubernetes/admission/label-propagation-guard.js.map +1 -0
- package/dist/factories/kubernetes/admission/mutating-admission-policy.d.ts +286 -0
- package/dist/factories/kubernetes/admission/mutating-admission-policy.d.ts.map +1 -0
- package/dist/factories/kubernetes/admission/mutating-admission-policy.js +157 -0
- package/dist/factories/kubernetes/admission/mutating-admission-policy.js.map +1 -0
- package/dist/factories/opensearch/compositions/cluster.d.ts.map +1 -1
- package/dist/factories/opensearch/compositions/cluster.js +6 -1
- package/dist/factories/opensearch/compositions/cluster.js.map +1 -1
- package/dist/factories/ory/compositions/ory-identity-stack.d.ts +8 -8
- package/dist/factories/ory/types.d.ts +16 -16
- package/dist/factories/rook/compositions/object-storage-claim.d.ts +1 -1
- package/dist/factories/rook/compositions/rook-ceph-platform.js +8 -1
- package/dist/factories/rook/compositions/rook-ceph-platform.js.map +1 -1
- package/dist/factories/rook/types.d.ts +1 -1
- package/dist/factories/traefik/compositions/index.d.ts +6 -0
- package/dist/factories/traefik/compositions/index.d.ts.map +1 -0
- package/dist/factories/traefik/compositions/index.js +6 -0
- package/dist/factories/traefik/compositions/index.js.map +1 -0
- package/dist/factories/traefik/compositions/traefik-bootstrap.d.ts +185 -0
- package/dist/factories/traefik/compositions/traefik-bootstrap.d.ts.map +1 -0
- package/dist/factories/traefik/compositions/traefik-bootstrap.js +339 -0
- package/dist/factories/traefik/compositions/traefik-bootstrap.js.map +1 -0
- package/dist/factories/traefik/compositions/traefik-helm-repository.d.ts +16 -0
- package/dist/factories/traefik/compositions/traefik-helm-repository.d.ts.map +1 -0
- package/dist/factories/traefik/compositions/traefik-helm-repository.js +31 -0
- package/dist/factories/traefik/compositions/traefik-helm-repository.js.map +1 -0
- package/dist/factories/traefik/constants.d.ts +78 -0
- package/dist/factories/traefik/constants.d.ts.map +1 -0
- package/dist/factories/traefik/constants.js +104 -0
- package/dist/factories/traefik/constants.js.map +1 -0
- package/dist/factories/traefik/index.d.ts +25 -0
- package/dist/factories/traefik/index.d.ts.map +1 -0
- package/dist/factories/traefik/index.js +25 -0
- package/dist/factories/traefik/index.js.map +1 -0
- package/dist/factories/traefik/resources/common.d.ts +68 -0
- package/dist/factories/traefik/resources/common.d.ts.map +1 -0
- package/dist/factories/traefik/resources/common.js +59 -0
- package/dist/factories/traefik/resources/common.js.map +1 -0
- package/dist/factories/traefik/resources/gateway.d.ts +85 -0
- package/dist/factories/traefik/resources/gateway.d.ts.map +1 -0
- package/dist/factories/traefik/resources/gateway.js +109 -0
- package/dist/factories/traefik/resources/gateway.js.map +1 -0
- package/dist/factories/traefik/resources/helm.d.ts +56 -0
- package/dist/factories/traefik/resources/helm.d.ts.map +1 -0
- package/dist/factories/traefik/resources/helm.js +131 -0
- package/dist/factories/traefik/resources/helm.js.map +1 -0
- package/dist/factories/traefik/resources/index.d.ts +10 -0
- package/dist/factories/traefik/resources/index.d.ts.map +1 -0
- package/dist/factories/traefik/resources/index.js +10 -0
- package/dist/factories/traefik/resources/index.js.map +1 -0
- package/dist/factories/traefik/resources/middleware.d.ts +169 -0
- package/dist/factories/traefik/resources/middleware.d.ts.map +1 -0
- package/dist/factories/traefik/resources/middleware.js +225 -0
- package/dist/factories/traefik/resources/middleware.js.map +1 -0
- package/dist/factories/traefik/resources/routing.d.ts +113 -0
- package/dist/factories/traefik/resources/routing.d.ts.map +1 -0
- package/dist/factories/traefik/resources/routing.js +119 -0
- package/dist/factories/traefik/resources/routing.js.map +1 -0
- package/dist/factories/traefik/resources/tls.d.ts +85 -0
- package/dist/factories/traefik/resources/tls.d.ts.map +1 -0
- package/dist/factories/traefik/resources/tls.js +93 -0
- package/dist/factories/traefik/resources/tls.js.map +1 -0
- package/dist/factories/traefik/types.d.ts +2690 -0
- package/dist/factories/traefik/types.d.ts.map +1 -0
- package/dist/factories/traefik/types.js +1084 -0
- package/dist/factories/traefik/types.js.map +1 -0
- package/dist/factories/traefik/utils/helm-values-mapper.d.ts +198 -0
- package/dist/factories/traefik/utils/helm-values-mapper.d.ts.map +1 -0
- package/dist/factories/traefik/utils/helm-values-mapper.js +372 -0
- package/dist/factories/traefik/utils/helm-values-mapper.js.map +1 -0
- package/dist/factories/traefik/utils/index.d.ts +6 -0
- package/dist/factories/traefik/utils/index.d.ts.map +1 -0
- package/dist/factories/traefik/utils/index.js +6 -0
- package/dist/factories/traefik/utils/index.js.map +1 -0
- package/dist/factories/traefik/utils/middleware-validation.d.ts +42 -0
- package/dist/factories/traefik/utils/middleware-validation.d.ts.map +1 -0
- package/dist/factories/traefik/utils/middleware-validation.js +78 -0
- package/dist/factories/traefik/utils/middleware-validation.js.map +1 -0
- package/dist/factories/webapp/compositions/web-app-with-processing.d.ts.map +1 -1
- package/dist/factories/webapp/compositions/web-app-with-processing.js +10 -0
- package/dist/factories/webapp/compositions/web-app-with-processing.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/factories/traefik/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AASzC,OAAO,EAAE,sCAAsC,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAEjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,MAAM,uBAAuB,GAAG;IAC9B;QACE,WAAW,EAAE,qCAAqC;QAClD,KA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C7B,GAAG,EAAE,YAAY;CAClB,CAAC,CAAC;AAEH,mEAAmE;AACnE,MAAM,CAAC,MAAM,0CAA0C,GAAG,IAAI,CAAC;IAC7D,KAAK,EAAE,SAAS;CACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Traefik Helm values mapping.
|
|
3
|
+
*
|
|
4
|
+
* Turns the bootstrap composition's runtime spec into values for the official
|
|
5
|
+
* `traefik` chart 41.5.0, then applies the security pins from #172 LAST so no
|
|
6
|
+
* caller — not even the build-time `values` passthrough — can re-enable the
|
|
7
|
+
* dashboard or the insecure API.
|
|
8
|
+
*
|
|
9
|
+
* Every value produced here may be a schema reference in KRO mode. The mapping
|
|
10
|
+
* therefore never branches on a spec value; it only places values into the
|
|
11
|
+
* tree. Decisions about which configuration EXISTS live in
|
|
12
|
+
* {@link TraefikHelmValuesMapperOptions} and are concrete at build time.
|
|
13
|
+
*/
|
|
14
|
+
import type { RefOrValue } from '../../../core/types/references.js';
|
|
15
|
+
import type { TraefikBootstrapConfig, TraefikContainerSecurityContext, TraefikHelmValues, TraefikPodSecurityContext, TraefikRawHelmValues, TraefikServiceType } from '../types.js';
|
|
16
|
+
/**
|
|
17
|
+
* Pod-level security context Traefik runs with.
|
|
18
|
+
*
|
|
19
|
+
* @security Matches the chart's own hardened defaults and is re-pinned here so
|
|
20
|
+
* a values passthrough cannot drop `runAsNonRoot`.
|
|
21
|
+
*
|
|
22
|
+
* Annotated with {@link TraefikPodSecurityContext} rather than `as const`: the
|
|
23
|
+
* pin is then checked against the CLOSED managed-values type, so a chart field
|
|
24
|
+
* rename becomes a compile error instead of a silently ignored value.
|
|
25
|
+
*/
|
|
26
|
+
export declare const TRAEFIK_POD_SECURITY_CONTEXT: TraefikPodSecurityContext;
|
|
27
|
+
/**
|
|
28
|
+
* Container-level security context Traefik runs with.
|
|
29
|
+
*
|
|
30
|
+
* @security No privilege escalation, all capabilities dropped, read-only root
|
|
31
|
+
* filesystem. Traefik needs no writable root; ACME storage, when used, gets an
|
|
32
|
+
* explicit volume.
|
|
33
|
+
*/
|
|
34
|
+
export declare const TRAEFIK_CONTAINER_SECURITY_CONTEXT: TraefikContainerSecurityContext;
|
|
35
|
+
/**
|
|
36
|
+
* Values this factory pins unconditionally, applied after every other source.
|
|
37
|
+
*
|
|
38
|
+
* @security The chart ships `api.dashboard: true`. An edge that exposes the
|
|
39
|
+
* Traefik dashboard exposes its full routing table, and `api.insecure` serves
|
|
40
|
+
* the API unauthenticated over plain HTTP on the `traefik` entrypoint. Neither
|
|
41
|
+
* is switchable through this factory: the runtime spec cannot express `true`
|
|
42
|
+
* (`dashboard` is typed as the literal `false`) and these pins overwrite any
|
|
43
|
+
* build-time passthrough. Re-enabling them means not using this factory.
|
|
44
|
+
*/
|
|
45
|
+
export declare const TRAEFIK_SECURITY_PINS: {
|
|
46
|
+
api: {
|
|
47
|
+
dashboard: false;
|
|
48
|
+
insecure: false;
|
|
49
|
+
debug: false;
|
|
50
|
+
};
|
|
51
|
+
ingressRoute: {
|
|
52
|
+
dashboard: {
|
|
53
|
+
enabled: false;
|
|
54
|
+
};
|
|
55
|
+
healthcheck: {
|
|
56
|
+
enabled: false;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
podSecurityContext: TraefikPodSecurityContext;
|
|
60
|
+
securityContext: TraefikContainerSecurityContext;
|
|
61
|
+
global: {
|
|
62
|
+
checkNewVersion: false;
|
|
63
|
+
sendAnonymousUsage: false;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Values that hand ownership of the entrypoint Service to TypeKro.
|
|
68
|
+
*
|
|
69
|
+
* The chart would otherwise create the Service itself, and a composition can
|
|
70
|
+
* only project a resource's status if that resource is part of its graph.
|
|
71
|
+
* Observing the chart's Service instead made every fresh direct deployment fail
|
|
72
|
+
* before it started: the direct engine resolves external references BEFORE it
|
|
73
|
+
* applies anything, and a `404` on the not-yet-created Service is fatal.
|
|
74
|
+
*
|
|
75
|
+
* Three pins make the owned Service possible. Two are constants and live here;
|
|
76
|
+
* the third takes the release name, so {@link applyTraefikOwnershipPins} adds
|
|
77
|
+
* it.
|
|
78
|
+
*
|
|
79
|
+
* - `service.enabled: false` — the chart skips its whole Service template.
|
|
80
|
+
* - `nameOverride` — fixes the chart's `app.kubernetes.io/name` pod label.
|
|
81
|
+
* - `instanceLabelOverride` — fixes `app.kubernetes.io/instance`, which the
|
|
82
|
+
* chart otherwise derives from the Helm release name. `traefikHelmRelease`
|
|
83
|
+
* pins `spec.releaseName` to the same name, so the two agree; the pin keeps
|
|
84
|
+
* the selector exact even if a release ever arrives under another name.
|
|
85
|
+
*
|
|
86
|
+
* Together those two labels are exactly the chart's own pod selector, so the
|
|
87
|
+
* owned Service front-ends the same pods the chart's Service would have.
|
|
88
|
+
*/
|
|
89
|
+
export declare const TRAEFIK_OWNERSHIP_PINS: {
|
|
90
|
+
service: {
|
|
91
|
+
enabled: false;
|
|
92
|
+
};
|
|
93
|
+
nameOverride: string;
|
|
94
|
+
};
|
|
95
|
+
/** Build-time inputs that shape which configuration the values tree contains. */
|
|
96
|
+
export interface TraefikHelmValuesMapperOptions {
|
|
97
|
+
/**
|
|
98
|
+
* Concrete raw chart values merged BEFORE the mapped values and the security
|
|
99
|
+
* pins, both of which win. Use for chart surface this factory does not
|
|
100
|
+
* model; see `TraefikBootstrapBuildOptions.values` for why this side of the
|
|
101
|
+
* boundary is {@link TraefikRawHelmValues} rather than the managed type.
|
|
102
|
+
*/
|
|
103
|
+
readonly baseValues?: TraefikRawHelmValues;
|
|
104
|
+
/**
|
|
105
|
+
* Emit a permanent `web` → `websecure` redirect. The chart disables the
|
|
106
|
+
* redirect by omitting `ports.web.http.redirections.entryPoint`, so this is
|
|
107
|
+
* structural rather than a value. @default true
|
|
108
|
+
*/
|
|
109
|
+
readonly redirectWebToWebsecure?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Namespace Traefik is installed into.
|
|
112
|
+
*
|
|
113
|
+
* Used to name the Service whose address Traefik copies onto `Ingress`
|
|
114
|
+
* status. The chart emits that flag only when IT created the Service, so
|
|
115
|
+
* disabling the chart's Service would silently drop Ingress status hydration
|
|
116
|
+
* unless `publishedService.pathOverride` names the owned Service instead.
|
|
117
|
+
*
|
|
118
|
+
* May be a schema reference or CEL expression: it is only ever placed into
|
|
119
|
+
* the values tree, never branched on.
|
|
120
|
+
*/
|
|
121
|
+
readonly targetNamespace?: RefOrValue<string>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Overwrite the security-relevant values, whatever they were.
|
|
125
|
+
*
|
|
126
|
+
* Written as explicit spreads at known depths rather than a generic deep merge
|
|
127
|
+
* so the precedence is auditable by reading it.
|
|
128
|
+
*/
|
|
129
|
+
export declare function applyTraefikSecurityPins(values: TraefikHelmValues): TraefikHelmValues;
|
|
130
|
+
/**
|
|
131
|
+
* Overwrite the values that decide who owns the entrypoint Service.
|
|
132
|
+
*
|
|
133
|
+
* Applied after `baseValues` so a passthrough cannot hand the Service back to
|
|
134
|
+
* the chart, which would produce a second Service competing for the same name.
|
|
135
|
+
*
|
|
136
|
+
* @param values - Chart values to pin.
|
|
137
|
+
* @param instanceLabel - Value for the chart's `app.kubernetes.io/instance`
|
|
138
|
+
* pod label. Normally the release name; may be a schema reference.
|
|
139
|
+
*/
|
|
140
|
+
export declare function applyTraefikOwnershipPins(values: TraefikHelmValues, instanceLabel: RefOrValue<string>): TraefikHelmValues;
|
|
141
|
+
/**
|
|
142
|
+
* Type of the entrypoint Service this factory owns.
|
|
143
|
+
*
|
|
144
|
+
* Lives here rather than in the composition so the Service's type and the
|
|
145
|
+
* chart values it is paired with share one default. `Cel.default` rather than
|
|
146
|
+
* `??`: a schema proxy is a truthy object, so `??` would keep the reference and
|
|
147
|
+
* drop the fallback in KRO mode.
|
|
148
|
+
*
|
|
149
|
+
* @param config - The bootstrap spec. `service.type` may be a schema reference.
|
|
150
|
+
*/
|
|
151
|
+
export declare function traefikEntrypointServiceType(config: TraefikBootstrapConfig): TraefikServiceType;
|
|
152
|
+
/**
|
|
153
|
+
* Map the bootstrap runtime spec onto official-chart values.
|
|
154
|
+
*
|
|
155
|
+
* @param config - The bootstrap spec. Any field may be a schema reference.
|
|
156
|
+
* @param options - Build-time structural choices.
|
|
157
|
+
* @returns Chart values with the security pins already applied.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* const values = mapTraefikConfigToHelmValues({
|
|
162
|
+
* name: 'traefik',
|
|
163
|
+
* namespace: 'traefik',
|
|
164
|
+
* service: { type: 'LoadBalancer', annotations: { 'service.beta.kubernetes.io/aws-load-balancer-type': 'external' } },
|
|
165
|
+
* providers: { crd: true, gatewayApi: false },
|
|
166
|
+
* accessLogs: true,
|
|
167
|
+
* });
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
export declare function mapTraefikConfigToHelmValues(config: TraefikBootstrapConfig, options?: TraefikHelmValuesMapperOptions): TraefikHelmValues;
|
|
171
|
+
/** Facts about the owned entrypoint Service that the chart values no longer carry. */
|
|
172
|
+
export interface TraefikHelmValuesValidationContext {
|
|
173
|
+
/**
|
|
174
|
+
* Type of the Service this factory owns. The chart values cannot say: the
|
|
175
|
+
* entrypoint Service is a TypeKro-owned resource, not a chart value.
|
|
176
|
+
*/
|
|
177
|
+
readonly serviceType?: TraefikServiceType;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Report configuration that is legal but likely a mistake at an edge.
|
|
181
|
+
*
|
|
182
|
+
* Returns warnings rather than throwing: none of these is invalid, and a test
|
|
183
|
+
* cluster legitimately hits several of them.
|
|
184
|
+
*
|
|
185
|
+
* @param values - Chart values, normally the output of
|
|
186
|
+
* {@link mapTraefikConfigToHelmValues}.
|
|
187
|
+
* @param context - Facts about the owned entrypoint Service. Omit it and the
|
|
188
|
+
* Service-type warnings simply do not fire.
|
|
189
|
+
*/
|
|
190
|
+
export declare function validateTraefikHelmValues(values: TraefikHelmValues, context?: TraefikHelmValuesValidationContext): string[];
|
|
191
|
+
/**
|
|
192
|
+
* The chart version this factory is verified against.
|
|
193
|
+
*
|
|
194
|
+
* Re-exported from the mapper so a consumer can record the pinned version
|
|
195
|
+
* alongside the values it produced.
|
|
196
|
+
*/
|
|
197
|
+
export declare const TRAEFIK_MAPPED_CHART_VERSION = "41.5.0";
|
|
198
|
+
//# sourceMappingURL=helm-values-mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helm-values-mapper.d.ts","sourceRoot":"","sources":["../../../../src/factories/traefik/utils/helm-values-mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAWpE,OAAO,KAAK,EACV,sBAAsB,EACtB,+BAA+B,EAC/B,iBAAiB,EAEjB,yBAAyB,EAEzB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAErB;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B,EAAE,yBAK1C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kCAAkC,EAAE,+BAIhD,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;CAME,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,sBAAsB;;;;;CAGC,CAAC;AAErC,iFAAiF;AACjF,MAAM,WAAW,8BAA8B;IAC7C;;;;;OAKG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAC1C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;CAC/C;AAsCD;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,iBAAiB,GAAG,iBAAiB,CAarF;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,UAAU,CAAC,MAAM,CAAC,GAChC,iBAAiB,CAOnB;AAED;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,sBAAsB,GAAG,kBAAkB,CAE/F;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,sBAAsB,EAC9B,OAAO,GAAE,8BAAmC,GAC3C,iBAAiB,CAkJnB;AAED,sFAAsF;AACtF,MAAM,WAAW,kCAAkC;IACjD;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAC3C;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,kCAAuC,GAC/C,MAAM,EAAE,CAkDV;AAED;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,WAAgC,CAAC"}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Traefik Helm values mapping.
|
|
3
|
+
*
|
|
4
|
+
* Turns the bootstrap composition's runtime spec into values for the official
|
|
5
|
+
* `traefik` chart 41.5.0, then applies the security pins from #172 LAST so no
|
|
6
|
+
* caller — not even the build-time `values` passthrough — can re-enable the
|
|
7
|
+
* dashboard or the insecure API.
|
|
8
|
+
*
|
|
9
|
+
* Every value produced here may be a schema reference in KRO mode. The mapping
|
|
10
|
+
* therefore never branches on a spec value; it only places values into the
|
|
11
|
+
* tree. Decisions about which configuration EXISTS live in
|
|
12
|
+
* {@link TraefikHelmValuesMapperOptions} and are concrete at build time.
|
|
13
|
+
*/
|
|
14
|
+
import { Cel } from '../../../core/references/cel.js';
|
|
15
|
+
import { isCelExpression, isKubernetesRef } from '../../../utils/type-guards.js';
|
|
16
|
+
import { DEFAULT_TRAEFIK_CHART_VERSION, DEFAULT_TRAEFIK_INGRESS_CLASS, DEFAULT_TRAEFIK_NAMESPACE, DEFAULT_TRAEFIK_WEB_PORT, DEFAULT_TRAEFIK_WEBSECURE_PORT, TRAEFIK_POD_NAME_LABEL_VALUE, TRAEFIK_WEBSECURE_ENTRYPOINT, } from '../constants.js';
|
|
17
|
+
/**
|
|
18
|
+
* Pod-level security context Traefik runs with.
|
|
19
|
+
*
|
|
20
|
+
* @security Matches the chart's own hardened defaults and is re-pinned here so
|
|
21
|
+
* a values passthrough cannot drop `runAsNonRoot`.
|
|
22
|
+
*
|
|
23
|
+
* Annotated with {@link TraefikPodSecurityContext} rather than `as const`: the
|
|
24
|
+
* pin is then checked against the CLOSED managed-values type, so a chart field
|
|
25
|
+
* rename becomes a compile error instead of a silently ignored value.
|
|
26
|
+
*/
|
|
27
|
+
export const TRAEFIK_POD_SECURITY_CONTEXT = {
|
|
28
|
+
runAsNonRoot: true,
|
|
29
|
+
runAsUser: 65532,
|
|
30
|
+
runAsGroup: 65532,
|
|
31
|
+
seccompProfile: { type: 'RuntimeDefault' },
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Container-level security context Traefik runs with.
|
|
35
|
+
*
|
|
36
|
+
* @security No privilege escalation, all capabilities dropped, read-only root
|
|
37
|
+
* filesystem. Traefik needs no writable root; ACME storage, when used, gets an
|
|
38
|
+
* explicit volume.
|
|
39
|
+
*/
|
|
40
|
+
export const TRAEFIK_CONTAINER_SECURITY_CONTEXT = {
|
|
41
|
+
allowPrivilegeEscalation: false,
|
|
42
|
+
readOnlyRootFilesystem: true,
|
|
43
|
+
capabilities: { drop: ['ALL'] },
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Values this factory pins unconditionally, applied after every other source.
|
|
47
|
+
*
|
|
48
|
+
* @security The chart ships `api.dashboard: true`. An edge that exposes the
|
|
49
|
+
* Traefik dashboard exposes its full routing table, and `api.insecure` serves
|
|
50
|
+
* the API unauthenticated over plain HTTP on the `traefik` entrypoint. Neither
|
|
51
|
+
* is switchable through this factory: the runtime spec cannot express `true`
|
|
52
|
+
* (`dashboard` is typed as the literal `false`) and these pins overwrite any
|
|
53
|
+
* build-time passthrough. Re-enabling them means not using this factory.
|
|
54
|
+
*/
|
|
55
|
+
export const TRAEFIK_SECURITY_PINS = {
|
|
56
|
+
api: { dashboard: false, insecure: false, debug: false },
|
|
57
|
+
ingressRoute: { dashboard: { enabled: false }, healthcheck: { enabled: false } },
|
|
58
|
+
podSecurityContext: TRAEFIK_POD_SECURITY_CONTEXT,
|
|
59
|
+
securityContext: TRAEFIK_CONTAINER_SECURITY_CONTEXT,
|
|
60
|
+
global: { checkNewVersion: false, sendAnonymousUsage: false },
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Values that hand ownership of the entrypoint Service to TypeKro.
|
|
64
|
+
*
|
|
65
|
+
* The chart would otherwise create the Service itself, and a composition can
|
|
66
|
+
* only project a resource's status if that resource is part of its graph.
|
|
67
|
+
* Observing the chart's Service instead made every fresh direct deployment fail
|
|
68
|
+
* before it started: the direct engine resolves external references BEFORE it
|
|
69
|
+
* applies anything, and a `404` on the not-yet-created Service is fatal.
|
|
70
|
+
*
|
|
71
|
+
* Three pins make the owned Service possible. Two are constants and live here;
|
|
72
|
+
* the third takes the release name, so {@link applyTraefikOwnershipPins} adds
|
|
73
|
+
* it.
|
|
74
|
+
*
|
|
75
|
+
* - `service.enabled: false` — the chart skips its whole Service template.
|
|
76
|
+
* - `nameOverride` — fixes the chart's `app.kubernetes.io/name` pod label.
|
|
77
|
+
* - `instanceLabelOverride` — fixes `app.kubernetes.io/instance`, which the
|
|
78
|
+
* chart otherwise derives from the Helm release name. `traefikHelmRelease`
|
|
79
|
+
* pins `spec.releaseName` to the same name, so the two agree; the pin keeps
|
|
80
|
+
* the selector exact even if a release ever arrives under another name.
|
|
81
|
+
*
|
|
82
|
+
* Together those two labels are exactly the chart's own pod selector, so the
|
|
83
|
+
* owned Service front-ends the same pods the chart's Service would have.
|
|
84
|
+
*/
|
|
85
|
+
export const TRAEFIK_OWNERSHIP_PINS = {
|
|
86
|
+
service: { enabled: false },
|
|
87
|
+
nameOverride: TRAEFIK_POD_NAME_LABEL_VALUE,
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Whether a value is a graph value — a schema/resource reference or a CEL
|
|
91
|
+
* expression — rather than a concrete literal.
|
|
92
|
+
*
|
|
93
|
+
* The distinction matters wherever the mapper must ask a QUESTION about a
|
|
94
|
+
* value instead of merely placing it: a reference has to be interrogated in
|
|
95
|
+
* CEL, a literal in JavaScript.
|
|
96
|
+
*/
|
|
97
|
+
function isGraphValue(value) {
|
|
98
|
+
return isKubernetesRef(value) || isCelExpression(value);
|
|
99
|
+
}
|
|
100
|
+
function isPlainObject(value) {
|
|
101
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Merge `override` onto `base` one level deep.
|
|
105
|
+
*
|
|
106
|
+
* Only top-level sections are merged; a section present in both is replaced
|
|
107
|
+
* key-by-key rather than recursively, which keeps the merge from ever spreading
|
|
108
|
+
* a nested schema reference.
|
|
109
|
+
*/
|
|
110
|
+
function mergeSections(base, override) {
|
|
111
|
+
const merged = { ...base };
|
|
112
|
+
for (const [key, value] of Object.entries(override)) {
|
|
113
|
+
const existing = merged[key];
|
|
114
|
+
merged[key] =
|
|
115
|
+
isPlainObject(existing) && isPlainObject(value) ? { ...existing, ...value } : value;
|
|
116
|
+
}
|
|
117
|
+
return merged;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Overwrite the security-relevant values, whatever they were.
|
|
121
|
+
*
|
|
122
|
+
* Written as explicit spreads at known depths rather than a generic deep merge
|
|
123
|
+
* so the precedence is auditable by reading it.
|
|
124
|
+
*/
|
|
125
|
+
export function applyTraefikSecurityPins(values) {
|
|
126
|
+
return {
|
|
127
|
+
...values,
|
|
128
|
+
api: { ...values.api, ...TRAEFIK_SECURITY_PINS.api },
|
|
129
|
+
ingressRoute: {
|
|
130
|
+
...values.ingressRoute,
|
|
131
|
+
dashboard: { ...values.ingressRoute?.dashboard, enabled: false },
|
|
132
|
+
healthcheck: { ...values.ingressRoute?.healthcheck, enabled: false },
|
|
133
|
+
},
|
|
134
|
+
podSecurityContext: { ...values.podSecurityContext, ...TRAEFIK_POD_SECURITY_CONTEXT },
|
|
135
|
+
securityContext: { ...values.securityContext, ...TRAEFIK_CONTAINER_SECURITY_CONTEXT },
|
|
136
|
+
global: { ...values.global, ...TRAEFIK_SECURITY_PINS.global },
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Overwrite the values that decide who owns the entrypoint Service.
|
|
141
|
+
*
|
|
142
|
+
* Applied after `baseValues` so a passthrough cannot hand the Service back to
|
|
143
|
+
* the chart, which would produce a second Service competing for the same name.
|
|
144
|
+
*
|
|
145
|
+
* @param values - Chart values to pin.
|
|
146
|
+
* @param instanceLabel - Value for the chart's `app.kubernetes.io/instance`
|
|
147
|
+
* pod label. Normally the release name; may be a schema reference.
|
|
148
|
+
*/
|
|
149
|
+
export function applyTraefikOwnershipPins(values, instanceLabel) {
|
|
150
|
+
return {
|
|
151
|
+
...values,
|
|
152
|
+
service: { ...values.service, ...TRAEFIK_OWNERSHIP_PINS.service },
|
|
153
|
+
nameOverride: TRAEFIK_OWNERSHIP_PINS.nameOverride,
|
|
154
|
+
instanceLabelOverride: instanceLabel,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Type of the entrypoint Service this factory owns.
|
|
159
|
+
*
|
|
160
|
+
* Lives here rather than in the composition so the Service's type and the
|
|
161
|
+
* chart values it is paired with share one default. `Cel.default` rather than
|
|
162
|
+
* `??`: a schema proxy is a truthy object, so `??` would keep the reference and
|
|
163
|
+
* drop the fallback in KRO mode.
|
|
164
|
+
*
|
|
165
|
+
* @param config - The bootstrap spec. `service.type` may be a schema reference.
|
|
166
|
+
*/
|
|
167
|
+
export function traefikEntrypointServiceType(config) {
|
|
168
|
+
return Cel.default(config.service?.type, 'LoadBalancer');
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Map the bootstrap runtime spec onto official-chart values.
|
|
172
|
+
*
|
|
173
|
+
* @param config - The bootstrap spec. Any field may be a schema reference.
|
|
174
|
+
* @param options - Build-time structural choices.
|
|
175
|
+
* @returns Chart values with the security pins already applied.
|
|
176
|
+
*
|
|
177
|
+
* @example
|
|
178
|
+
* ```typescript
|
|
179
|
+
* const values = mapTraefikConfigToHelmValues({
|
|
180
|
+
* name: 'traefik',
|
|
181
|
+
* namespace: 'traefik',
|
|
182
|
+
* service: { type: 'LoadBalancer', annotations: { 'service.beta.kubernetes.io/aws-load-balancer-type': 'external' } },
|
|
183
|
+
* providers: { crd: true, gatewayApi: false },
|
|
184
|
+
* accessLogs: true,
|
|
185
|
+
* });
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
export function mapTraefikConfigToHelmValues(config, options = {}) {
|
|
189
|
+
// Every spec-derived default goes through `Cel.default`, never `??`: a schema
|
|
190
|
+
// proxy is a truthy object, so `??` would silently keep the reference and
|
|
191
|
+
// drop the fallback in KRO mode, leaving the chart's own default in place and
|
|
192
|
+
// making direct and KRO deployments disagree.
|
|
193
|
+
const ingressClass = Cel.default(config.ingressClass, DEFAULT_TRAEFIK_INGRESS_CLASS);
|
|
194
|
+
const redirect = options.redirectWebToWebsecure ?? true;
|
|
195
|
+
// OTLP is enabled by the PRESENCE of an endpoint. In KRO mode the endpoint is
|
|
196
|
+
// a schema reference, so the enablement has to be a CEL comparison — a
|
|
197
|
+
// JavaScript truthiness test on a proxy is always true. With a concrete spec
|
|
198
|
+
// the same question is answered in JavaScript, because CEL over a literal
|
|
199
|
+
// would have to quote the value itself.
|
|
200
|
+
const endpointInput = config.otlp?.endpoint;
|
|
201
|
+
const otlpEndpoint = Cel.default(endpointInput, '');
|
|
202
|
+
const otlpEnabled = isGraphValue(endpointInput)
|
|
203
|
+
? // Compare the GUARDED expression, not the bare reference: `schema.spec.otlp`
|
|
204
|
+
// is absent whenever the block is omitted, and unguarded field selection on
|
|
205
|
+
// an absent message is a CEL evaluation error rather than a false.
|
|
206
|
+
Cel.expr(otlpEndpoint, ' != ""')
|
|
207
|
+
: typeof endpointInput === 'string' && endpointInput.length > 0;
|
|
208
|
+
const otlpInsecure = Cel.default(config.otlp?.insecure, true);
|
|
209
|
+
const otlpServiceName = Cel.default(config.otlp?.serviceName, 'traefik');
|
|
210
|
+
// `expose` is a structural choice (whether a port EXISTS on the Service), so
|
|
211
|
+
// it is not spec-driven: the composition OWNS the entrypoint Service and
|
|
212
|
+
// always publishes both entrypoints. These chart-side values only matter if
|
|
213
|
+
// the chart's own Service is re-enabled through `baseValues`, which the
|
|
214
|
+
// ownership pins prevent — they are kept so the values tree still states the
|
|
215
|
+
// intent for anyone reading it.
|
|
216
|
+
const webPort = {
|
|
217
|
+
exposedPort: Cel.default(config.entrypoints?.web?.exposedPort, DEFAULT_TRAEFIK_WEB_PORT),
|
|
218
|
+
expose: { default: true },
|
|
219
|
+
...(redirect
|
|
220
|
+
? {
|
|
221
|
+
http: {
|
|
222
|
+
redirections: {
|
|
223
|
+
entryPoint: {
|
|
224
|
+
to: TRAEFIK_WEBSECURE_ENTRYPOINT,
|
|
225
|
+
scheme: 'https',
|
|
226
|
+
permanent: true,
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
}
|
|
231
|
+
: {}),
|
|
232
|
+
};
|
|
233
|
+
const websecurePort = {
|
|
234
|
+
exposedPort: Cel.default(config.entrypoints?.websecure?.exposedPort, DEFAULT_TRAEFIK_WEBSECURE_PORT),
|
|
235
|
+
expose: { default: true },
|
|
236
|
+
// TLS lives under `http` in chart 41.5.0 — `ports.websecure.tls` is
|
|
237
|
+
// rejected outright by the chart's values.schema.json.
|
|
238
|
+
http: { tls: { enabled: true } },
|
|
239
|
+
// An edge fronting requests longer than Traefik's 60s default must raise
|
|
240
|
+
// the responding timeouts here as well as the upstream ServersTransport.
|
|
241
|
+
transport: {
|
|
242
|
+
respondingTimeouts: {
|
|
243
|
+
readTimeout: Cel.default(config.entrypoints?.websecure?.readTimeout, '90s'),
|
|
244
|
+
writeTimeout: Cel.default(config.entrypoints?.websecure?.writeTimeout, '90s'),
|
|
245
|
+
idleTimeout: Cel.default(config.entrypoints?.websecure?.idleTimeout, '180s'),
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
};
|
|
249
|
+
const mapped = {
|
|
250
|
+
// Pin the resource-name anchor to `config.name`. The chart's fullname
|
|
251
|
+
// template would otherwise decide the name of the ServiceAccount, RBAC and
|
|
252
|
+
// Deployment — and of the Service the chart's Ingress `publishedService`
|
|
253
|
+
// path points at, which must match the Service this factory owns.
|
|
254
|
+
fullnameOverride: config.name,
|
|
255
|
+
deployment: { replicas: Cel.default(config.replicas, 2) },
|
|
256
|
+
ingressClass: {
|
|
257
|
+
enabled: true,
|
|
258
|
+
// Claiming the cluster-default IngressClass would silently capture every
|
|
259
|
+
// class-less Ingress in the cluster. Opt in through `baseValues`.
|
|
260
|
+
isDefaultClass: false,
|
|
261
|
+
name: ingressClass,
|
|
262
|
+
},
|
|
263
|
+
providers: {
|
|
264
|
+
kubernetesCRD: {
|
|
265
|
+
enabled: Cel.default(config.providers?.crd, true),
|
|
266
|
+
ingressClass,
|
|
267
|
+
},
|
|
268
|
+
kubernetesIngress: {
|
|
269
|
+
enabled: Cel.default(config.providers?.kubernetesIngress, false),
|
|
270
|
+
// The chart emits `--providers.kubernetesingress.ingressendpoint.
|
|
271
|
+
// publishedservice` only when it created the Service itself, or when a
|
|
272
|
+
// pathOverride names one. This factory owns the Service, so the
|
|
273
|
+
// override is what keeps `Ingress.status.loadBalancer` hydrating. The
|
|
274
|
+
// path is `<namespace>/<name>` — the same value the chart's own default
|
|
275
|
+
// would have produced.
|
|
276
|
+
publishedService: {
|
|
277
|
+
enabled: true,
|
|
278
|
+
pathOverride: Cel.template('%s/%s', options.targetNamespace ?? Cel.default(config.namespace, DEFAULT_TRAEFIK_NAMESPACE), config.name),
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
kubernetesGateway: {
|
|
282
|
+
enabled: Cel.default(config.providers?.gatewayApi, false),
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
log: { level: Cel.default(config.logLevel, 'INFO'), format: 'json' },
|
|
286
|
+
accessLog: {
|
|
287
|
+
enabled: Cel.default(config.accessLogs, true),
|
|
288
|
+
format: 'json',
|
|
289
|
+
// Health and metrics traffic on the internal entrypoint would otherwise
|
|
290
|
+
// dominate the access log.
|
|
291
|
+
addInternals: false,
|
|
292
|
+
},
|
|
293
|
+
metrics: {
|
|
294
|
+
otlp: {
|
|
295
|
+
enabled: otlpEnabled,
|
|
296
|
+
grpc: { enabled: otlpEnabled, endpoint: otlpEndpoint, insecure: otlpInsecure },
|
|
297
|
+
},
|
|
298
|
+
},
|
|
299
|
+
tracing: {
|
|
300
|
+
serviceName: otlpServiceName,
|
|
301
|
+
otlp: {
|
|
302
|
+
enabled: otlpEnabled,
|
|
303
|
+
grpc: { enabled: otlpEnabled, endpoint: otlpEndpoint, insecure: otlpInsecure },
|
|
304
|
+
},
|
|
305
|
+
},
|
|
306
|
+
ports: {
|
|
307
|
+
web: webPort,
|
|
308
|
+
websecure: websecurePort,
|
|
309
|
+
// @security The internal entrypoint serves /ping, metrics and the (pinned
|
|
310
|
+
// off) dashboard. It must never be published by the Service.
|
|
311
|
+
traefik: { expose: { default: false } },
|
|
312
|
+
},
|
|
313
|
+
// No `service` section: the entrypoint Service — its type, annotations and
|
|
314
|
+
// published ports — is a resource this factory owns, not a chart value.
|
|
315
|
+
resources: {
|
|
316
|
+
requests: { cpu: '100m', memory: '128Mi' },
|
|
317
|
+
limits: { cpu: '1', memory: '512Mi' },
|
|
318
|
+
},
|
|
319
|
+
};
|
|
320
|
+
const merged = mergeSections(options.baseValues ?? {}, mapped);
|
|
321
|
+
return applyTraefikSecurityPins(applyTraefikOwnershipPins(merged, config.name));
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Report configuration that is legal but likely a mistake at an edge.
|
|
325
|
+
*
|
|
326
|
+
* Returns warnings rather than throwing: none of these is invalid, and a test
|
|
327
|
+
* cluster legitimately hits several of them.
|
|
328
|
+
*
|
|
329
|
+
* @param values - Chart values, normally the output of
|
|
330
|
+
* {@link mapTraefikConfigToHelmValues}.
|
|
331
|
+
* @param context - Facts about the owned entrypoint Service. Omit it and the
|
|
332
|
+
* Service-type warnings simply do not fire.
|
|
333
|
+
*/
|
|
334
|
+
export function validateTraefikHelmValues(values, context = {}) {
|
|
335
|
+
const warnings = [];
|
|
336
|
+
if (values.api?.dashboard === true) {
|
|
337
|
+
warnings.push('Traefik dashboard is enabled. This factory pins api.dashboard to false; seeing it enabled means the pins were bypassed.');
|
|
338
|
+
}
|
|
339
|
+
if (values.api?.insecure === true) {
|
|
340
|
+
warnings.push('Traefik insecure API is enabled. This factory pins api.insecure to false; seeing it enabled means the pins were bypassed.');
|
|
341
|
+
}
|
|
342
|
+
if (values.podSecurityContext?.runAsNonRoot !== true) {
|
|
343
|
+
warnings.push('Traefik podSecurityContext.runAsNonRoot is not true. The proxy binds unprivileged container ports and does not need root.');
|
|
344
|
+
}
|
|
345
|
+
if (values.providers?.kubernetesCRD?.enabled === false) {
|
|
346
|
+
warnings.push('The Kubernetes CRD provider is disabled. IngressRoute, Middleware, TLSOption, TLSStore and TraefikService resources will not be reconciled.');
|
|
347
|
+
}
|
|
348
|
+
if (values.ingressClass?.isDefaultClass === true) {
|
|
349
|
+
warnings.push('Traefik is claiming the cluster-default IngressClass. Every Ingress without an explicit class will be routed by this installation.');
|
|
350
|
+
}
|
|
351
|
+
if (values.service?.enabled === true) {
|
|
352
|
+
warnings.push('The chart is creating its own entrypoint Service. This factory owns that Service so its address can be projected into the status contract; seeing it enabled means the ownership pins were bypassed.');
|
|
353
|
+
}
|
|
354
|
+
if (values.deployment?.replicas === 1 && context.serviceType === 'LoadBalancer') {
|
|
355
|
+
warnings.push('A single Traefik replica behind a LoadBalancer has no rolling-update headroom. Consider replicas >= 2 for a production edge.');
|
|
356
|
+
}
|
|
357
|
+
if (!values.resources?.requests) {
|
|
358
|
+
warnings.push('No resource requests specified for Traefik. Set CPU and memory requests so the edge is not evicted first under pressure.');
|
|
359
|
+
}
|
|
360
|
+
if (values.ports?.traefik?.expose?.default === true) {
|
|
361
|
+
warnings.push('The internal `traefik` entrypoint is exposed by the Service. It serves /ping and metrics and should stay cluster-internal.');
|
|
362
|
+
}
|
|
363
|
+
return warnings;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* The chart version this factory is verified against.
|
|
367
|
+
*
|
|
368
|
+
* Re-exported from the mapper so a consumer can record the pinned version
|
|
369
|
+
* alongside the values it produced.
|
|
370
|
+
*/
|
|
371
|
+
export const TRAEFIK_MAPPED_CHART_VERSION = DEFAULT_TRAEFIK_CHART_VERSION;
|
|
372
|
+
//# sourceMappingURL=helm-values-mapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helm-values-mapper.js","sourceRoot":"","sources":["../../../../src/factories/traefik/utils/helm-values-mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,yBAAyB,EACzB,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC;AAYzB;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAA8B;IACrE,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,KAAK;I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;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Traefik utilities.
|
|
3
|
+
*/
|
|
4
|
+
export { applyTraefikOwnershipPins, applyTraefikSecurityPins, mapTraefikConfigToHelmValues, TRAEFIK_CONTAINER_SECURITY_CONTEXT, TRAEFIK_MAPPED_CHART_VERSION, TRAEFIK_OWNERSHIP_PINS, TRAEFIK_POD_SECURITY_CONTEXT, TRAEFIK_SECURITY_PINS, traefikEntrypointServiceType, type TraefikHelmValuesMapperOptions, type TraefikHelmValuesValidationContext, validateTraefikHelmValues, } from './helm-values-mapper.js';
|
|
5
|
+
export { assertTraefikMiddlewareSpec, traefikMiddlewareKeys, validateTraefikMiddlewareSpec, } from './middleware-validation.js';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/factories/traefik/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,qBAAqB,EACrB,4BAA4B,EAC5B,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Traefik utilities.
|
|
3
|
+
*/
|
|
4
|
+
export { applyTraefikOwnershipPins, applyTraefikSecurityPins, mapTraefikConfigToHelmValues, TRAEFIK_CONTAINER_SECURITY_CONTEXT, TRAEFIK_MAPPED_CHART_VERSION, TRAEFIK_OWNERSHIP_PINS, TRAEFIK_POD_SECURITY_CONTEXT, TRAEFIK_SECURITY_PINS, traefikEntrypointServiceType, validateTraefikHelmValues, } from './helm-values-mapper.js';
|
|
5
|
+
export { assertTraefikMiddlewareSpec, traefikMiddlewareKeys, validateTraefikMiddlewareSpec, } from './middleware-validation.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/factories/traefik/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,qBAAqB,EACrB,4BAA4B,EAG5B,yBAAyB,GAC1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,EAC3B,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC"}
|