helm-ai-kernel
HELM — Fail-closed AI execution firewall with cryptographic governance proofs
About this chart
HELM Chart
This chart deploys the retained OSS kernel from source in this repository.
The chart name is helm-ai-kernel. Values remain under the .Values.helm
root for one compatibility window.
Validate
make helm-chart-smoke
helm lint deploy/helm-chart
helm template helm-ai-kernel deploy/helm-chart
make helm-chart-smoke uses scripts/ci/helm_chart_smoke.sh. Set
KUBE_HELM_CMD to an explicit Kubernetes Helm binary, or let the script use
the pinned containerized Helm runner.
Install
helm install helm-ai-kernel deploy/helm-chart \
--values ./production-network-policy.yaml \
--set image.digest="$KERNEL_IMAGE_DIGEST" \
--set helm.production=true \
--set helm.signing.key=<64-char-ed25519-seed-hex> \
--set helm.auth.adminAPIKey=<admin-api-key> \
--set helm.auth.serviceAPIKey=<service-api-key> \
--set helm.auth.tenantID=<runtime-tenant-id> \
--set helm.auth.principalID=<runtime-principal-id>
Review values.yaml before use in a real environment.
KERNEL_IMAGE_DIGEST must be the promoted release's immutable
sha256:<64-lowercase-hex> digest. helm.production=true refuses mutable tag-
only Kernel images; when a digest is set, image.tag is ignored.
production-network-policy.yaml must set networkPolicy.enabled=true and
provide explicit ingress and egress rules. Production rendering rejects empty
rules, implicit all-port peers, empty selectors, and non-host ipBlock ranges;
use /32 for an IPv4 dependency or /128 for IPv6. Prefer namespace/pod
selectors for in-cluster Control Plane, database-proxy, telemetry, and egress-
broker dependencies.
Runtime Contract
flowchart TD
cp["Control Plane or CRD policy source"] --> runtime["runtime reconciler"]
cm["ConfigMap/Secret mounted-file delivery"] --> runtime
hint["reload hints"] --> runtime
runtime --> snapshot["verified EffectivePolicySnapshot"]
snapshot --> pod["helm-ai-kernel serve pod"]
signing["signing-key Secret"] --> pod
auth["admin/service API-key Secret"] --> pod
github["optional GitHub token Secret"] --> pod
pvc["data volume"] --> pod
pod --> service["ClusterIP Service"]
service --> ingress["optional Ingress"]
service --> metrics["optional ServiceMonitor"]
Values That Matter
| Value | Default | Effect |
|---|---|---|
image.repository | ghcr.io/mindburn-labs/helm-ai-kernel | Container image repository. |
image.tag | chart appVersion | Container image tag. |
image.digest | empty | Immutable sha256 digest; required in production and takes precedence over image.tag. |
imagePullSecrets | [] | Pull secrets applied to the kernel and optional launchpad app Pods/Jobs/test Pod. |
networkPolicy.enabled | false | Renders the Kernel Pod NetworkPolicy; required in production. |
networkPolicy.ingress | [] | Explicit production ingress peers and ports. Empty or broad selectors fail production rendering. |
networkPolicy.egress | [] | Explicit production egress peers and ports. ipBlock peers must be exact /32 or /128 hosts. |
launchpadApps.hermes.mode | job | job renders the promoted single-query smoke Job; deployment renders a long-lived Hermes gateway Deployment without claiming live F2 promotion. |
launchpadApps.hermes.provider | openrouter | Provider passed to the default Hermes Job command. |
launchpadApps.hermes.model | openai/gpt-6-luna | Model passed to the default Hermes Job command. |
launchpadApps.hermes.query | ping | Single query passed to the default Hermes Job command. |
launchpadApps.hermes.commandOverride | [] | Full command array replacement for operator-specific Hermes runtime evidence. |
replicaCount | 1 | Kernel pod count. Production is single-writer until policy replay watermarks move to a distributed transactional store. |
helm.* | retained | Legacy values root retained for one compatibility window. |
helm.bindAddr | 0.0.0.0 | Required inside Kubernetes pods. |
helm.production | false | Refuses generated signing/auth material when set to true. |
helm.signing.key | empty | 64-char hex Ed25519 seed when not using an existing secret. |
helm.signing.existingSecret | empty | Existing secret containing signing-key. |
helm.auth.adminAPIKey | empty | Admin API key written to the generated auth secret. |
helm.auth.serviceAPIKey | empty | Service API key written to the generated auth secret. |
helm.auth.existingSecret | empty | Existing secret containing auth key entries. |
helm.auth.organizationRuntimeAPIKeySecretKey | HELM_ORGANIZATION_RUNTIME_API_KEY | Key in helm.auth.existingSecret rendered as HELM_ORGANIZATION_RUNTIME_API_KEY, only together with helm.auth.controlPlaneActivationPublicKey. Empty disables it. |
helm.auth.controlPlaneActivationPublicKey | "" | The Control Plane activation public key (HELM_CONTROL_PLANE_ACTIVATION_PUBLIC_KEY), 64 lowercase hex characters. Requires the organization-runtime key; the chart refuses one without the other. |
helm.tls.existingSecret | empty | kubernetes.io/tls Secret (cert-manager compatible) whose tls.crt and tls.key serve the API listener over HTTPS; re-read on rotation. Health and metrics listeners stay plain HTTP. |
helm.tls.clientAuth | empty | require or verify-if-given: verify client certificates against the Secret's ca.crt. Needs helm.tls.existingSecret. |
helm.githubEffects.existingSecret | empty | Existing Secret containing the GitHub token; non-empty activates the shipped signed-permit github.* runtime. |
helm.githubEffects.tokenSecretKey | HELM_GITHUB_TOKEN | Key inside the GitHub effects Secret. Raw tokens are not accepted in chart values. |
helm.githubEffects.apiURL | empty | Optional GitHub-compatible API base URL; requires existingSecret. Empty uses github.com. |
helm.auth.tenantID | default | Server-bound tenant for tenant-scoped runtime routes; request tenant headers must match. |
helm.auth.principalID | system-admin | Server-bound principal for tenant-scoped runtime routes; request principal headers must match. |
helm.emergencyStop.commandReplayKeyring | empty | Optional strict JSON FENCE replay-authority keyring. Use only during a deliberate command key/audience rotation. |
helm.emergencyStop.commandReplayKeyringSecretKey | empty | Optional key in helm.emergencyStop.existingSecret containing the replay keyring; choose this or the direct value, not both. |
helm.storage.type | sqlite | sqlite or postgres. |
helm.storage.postgres.existingSecret | empty | Existing secret containing DATABASE_URL; required for production Postgres. |
helm.storage.postgres.sslMode | require | PostgreSQL TLS mode. Production requires require, verify-ca, or verify-full. |
helm.storage.postgres.maxOpenConns | 25 | PostgreSQL pool open-connection ceiling. |
helm.storage.postgres.maxIdleConns | 10 | PostgreSQL pool idle-connection ceiling. |
helm.storage.postgres.connMaxLifetime | 30m | PostgreSQL pooled connection lifetime. |
helm.limits.global.rps | 60 | Process-wide per-client request rate. |
helm.limits.global.burst | 120 | Process-wide per-client burst. |
helm.limits.actor.rps | 60 | Actor/resource request rate. |
helm.limits.actor.burst | 120 | Actor/resource burst. |
helm.limits.concurrency.max | 0 | Process in-flight request cap; 0 disables. |
helm.limits.loadShed.enabled | false | Enable low-priority load shedding. |
helm.guardian.semanticThreatEscalationBP | 0 | Semantic ESCALATE threshold in basis points; 0 is advisory-only, while a positive value fails closed when assessment is unavailable or truncated. |
helm.policy.source.kind | mountedFile | controlplane, crd, or non-production mountedFile; Kubernetes delivery is not policy truth. |
helm.policy.source.controlplane.auth.mode | serviceAccountJWT | serviceAccountJWT uses a rotating projected token; bearerToken requires explicit static Secret material. |
helm.policy.source.controlplane.auth.serviceAccountJWT.audience | helm-control-plane | Audience required from the policy authority's Kubernetes TokenReview verifier. |
helm.policy.source.controlplane.auth.serviceAccountJWT.expirationSeconds | 600 | Projected token TTL, constrained to 600–3600 seconds. |
helm.policy.source.pollInterval | 10s | Runtime reconciler polling interval. Lost hints are recovered by polling. |
helm.policy.failClosed.onInvalidUpdate | keepLastKnownGood | Retain only a snapshot with a fresh successful source verification after a fault, or deny to invalidate immediately. |
helm.policy.failClosed.lastKnownGoodMaxAge | 10m | Positive maximum age since the last successful source verification after a source fault. |
helm.policy.signature.required | false | Rejects unsigned policy heads during reconciliation when enabled. |
helm.policy.signature.publicKey | empty | 64-char hex Ed25519 public key for versioned complete policy-head signatures. |
helm.policy.signature.existingSecret | empty | Existing secret containing HELM_POLICY_TRUST_PUBLIC_KEY. |
helm.policy.runtimeActions | [] | Explicit mounted-file rules compiled into the chart-managed reference pack; empty remains fail-closed. Prefer signed control-plane/CRD policy in production. |
helm.policy.reloadHints.httpWakeEndpoint | /internal/policy/reconcile | Wake-only internal endpoint for sidecars/operators. |
helm.policy.reloadHints.configReloaderSidecar.enabled | false | Optional mounted-file wake hint; disabled by default. |
persistence.enabled | true | Creates or uses a PVC for /data; required in production so policy replay watermarks survive restarts. |
ingress.enabled | false | Enables Kubernetes ingress. |
helm.metrics.enabled | false | Enables /metrics on service.metricsPort. |
helm.metrics.bearerTokenSecret.name | empty | Existing Secret holding the /metrics bearer token, rendered as HELM_METRICS_BEARER_TOKEN. Empty keeps /metrics loopback-only. |
helm.metrics.bearerTokenSecret.key | token | Key inside that Secret. |
helm.metrics.serviceMonitor.enabled | false | Emits a Prometheus Operator ServiceMonitor that scrapes with the bearer token; requires helm.metrics.bearerTokenSecret.name. |
telemetry.enabled | false | Renders the OTLP variables into the kernel container. Enable per stand, never in a chart default. |
telemetry.metricsExporter | none | Independent OTLP metric push switch. none keeps metrics on the Prometheus scrape surface only; otlp additionally pushes metric batches to telemetry.endpoint. |
telemetry.syntheticLifecycleEvents | false | Renders HELM_ENV=synthetic so the kernel publishes governed lifecycle events from a synthetic stand. Requires telemetry.enabled=true; never enable for pilot or customer namespaces. |
telemetry.endpoint | empty | OTLP gRPC target, e.g. http://telemetry-gateway.telemetry-system.svc.cluster.local:4317. Required when telemetry.enabled=true; keep the http:// prefix. |
telemetry.serviceName | empty | service.name on exported spans, rendered as OTEL_SERVICE_NAME when telemetry.enabled=true. Empty renders nothing and the kernel reports helm-sovereign-os. No leading or trailing whitespace. |
Effect gateway (gateway.*)
gateway.enabled=true adds helm-gateway serve (the Zone C effect gateway)
using the shared Kernel image by default: a Deployment with its own
ServiceAccount (no API token), a Service on 8443, a NetworkPolicy, and a
pre-install/pre-upgrade hook Job that runs helm-gateway migrate. With the
default gateway.enabled=false the chart renders exactly what it rendered
before. See Kubernetes Deployment.
For a source-owned composition that installs extension adapters into the same
Kernel runtime, set gateway.serving.image.repository, exactly one of its
tag or digest, and gateway.serving.executable together. The executable is
one absolute path, for example /app/helm-model-gateway, and must accept the
existing serve arguments and retain the Kernel admission boundary. Production
requires the serving image's own immutable digest. No shared tag or digest is
inherited. This changes only the serving container's image and executable;
the shared pull policy, arguments, identity, TLS, security, listeners and
database role stay intact. The Kernel workload and migration hook always use
the shared Kernel image and their existing commands. Selecting a composition
does not configure its adapters or activate a native profile.
| Value | Default | Contract |
|---|---|---|
gateway.enabled | false | Render the gateway objects. |
gateway.replicaCount | 1 | Gateway replicas; admission state lives in Postgres. |
gateway.serving.image.repository | empty | Serving-only image repository, without tag or digest; set with an explicit selector and executable. |
gateway.serving.image.tag / digest | empty / empty | Exactly one own selector when overriding; production requires immutable sha256 digest. |
gateway.serving.executable | empty | Serving-only absolute executable path accepting the unchanged serve arguments; empty defaults to /usr/local/bin/helm-gateway with the shared image. |
gateway.service.port | 8443 | Service port of the Connect/gRPC API. |
gateway.approvalWindow | empty | HELM_GATEWAY_APPROVAL_WINDOW (Go duration); emp |
Deploy helm-ai-kernel with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has helm-ai-kernel on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charthelm-ai-kernel is pinned at v0.12.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply