helm-ai-kernel

by Mindburn Labs

Helm chartv0.12.0App v0.12.0Apache-2.0Verified publisher

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

ValueDefaultEffect
image.repositoryghcr.io/mindburn-labs/helm-ai-kernelContainer image repository.
image.tagchart appVersionContainer image tag.
image.digestemptyImmutable 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.enabledfalseRenders 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.modejobjob renders the promoted single-query smoke Job; deployment renders a long-lived Hermes gateway Deployment without claiming live F2 promotion.
launchpadApps.hermes.provideropenrouterProvider passed to the default Hermes Job command.
launchpadApps.hermes.modelopenai/gpt-6-lunaModel passed to the default Hermes Job command.
launchpadApps.hermes.querypingSingle query passed to the default Hermes Job command.
launchpadApps.hermes.commandOverride[]Full command array replacement for operator-specific Hermes runtime evidence.
replicaCount1Kernel pod count. Production is single-writer until policy replay watermarks move to a distributed transactional store.
helm.*retainedLegacy values root retained for one compatibility window.
helm.bindAddr0.0.0.0Required inside Kubernetes pods.
helm.productionfalseRefuses generated signing/auth material when set to true.
helm.signing.keyempty64-char hex Ed25519 seed when not using an existing secret.
helm.signing.existingSecretemptyExisting secret containing signing-key.
helm.auth.adminAPIKeyemptyAdmin API key written to the generated auth secret.
helm.auth.serviceAPIKeyemptyService API key written to the generated auth secret.
helm.auth.existingSecretemptyExisting secret containing auth key entries.
helm.auth.organizationRuntimeAPIKeySecretKeyHELM_ORGANIZATION_RUNTIME_API_KEYKey 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.existingSecretemptykubernetes.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.clientAuthemptyrequire or verify-if-given: verify client certificates against the Secret's ca.crt. Needs helm.tls.existingSecret.
helm.githubEffects.existingSecretemptyExisting Secret containing the GitHub token; non-empty activates the shipped signed-permit github.* runtime.
helm.githubEffects.tokenSecretKeyHELM_GITHUB_TOKENKey inside the GitHub effects Secret. Raw tokens are not accepted in chart values.
helm.githubEffects.apiURLemptyOptional GitHub-compatible API base URL; requires existingSecret. Empty uses github.com.
helm.auth.tenantIDdefaultServer-bound tenant for tenant-scoped runtime routes; request tenant headers must match.
helm.auth.principalIDsystem-adminServer-bound principal for tenant-scoped runtime routes; request principal headers must match.
helm.emergencyStop.commandReplayKeyringemptyOptional strict JSON FENCE replay-authority keyring. Use only during a deliberate command key/audience rotation.
helm.emergencyStop.commandReplayKeyringSecretKeyemptyOptional key in helm.emergencyStop.existingSecret containing the replay keyring; choose this or the direct value, not both.
helm.storage.typesqlitesqlite or postgres.
helm.storage.postgres.existingSecretemptyExisting secret containing DATABASE_URL; required for production Postgres.
helm.storage.postgres.sslModerequirePostgreSQL TLS mode. Production requires require, verify-ca, or verify-full.
helm.storage.postgres.maxOpenConns25PostgreSQL pool open-connection ceiling.
helm.storage.postgres.maxIdleConns10PostgreSQL pool idle-connection ceiling.
helm.storage.postgres.connMaxLifetime30mPostgreSQL pooled connection lifetime.
helm.limits.global.rps60Process-wide per-client request rate.
helm.limits.global.burst120Process-wide per-client burst.
helm.limits.actor.rps60Actor/resource request rate.
helm.limits.actor.burst120Actor/resource burst.
helm.limits.concurrency.max0Process in-flight request cap; 0 disables.
helm.limits.loadShed.enabledfalseEnable low-priority load shedding.
helm.guardian.semanticThreatEscalationBP0Semantic ESCALATE threshold in basis points; 0 is advisory-only, while a positive value fails closed when assessment is unavailable or truncated.
helm.policy.source.kindmountedFilecontrolplane, crd, or non-production mountedFile; Kubernetes delivery is not policy truth.
helm.policy.source.controlplane.auth.modeserviceAccountJWTserviceAccountJWT uses a rotating projected token; bearerToken requires explicit static Secret material.
helm.policy.source.controlplane.auth.serviceAccountJWT.audiencehelm-control-planeAudience required from the policy authority's Kubernetes TokenReview verifier.
helm.policy.source.controlplane.auth.serviceAccountJWT.expirationSeconds600Projected token TTL, constrained to 600–3600 seconds.
helm.policy.source.pollInterval10sRuntime reconciler polling interval. Lost hints are recovered by polling.
helm.policy.failClosed.onInvalidUpdatekeepLastKnownGoodRetain only a snapshot with a fresh successful source verification after a fault, or deny to invalidate immediately.
helm.policy.failClosed.lastKnownGoodMaxAge10mPositive maximum age since the last successful source verification after a source fault.
helm.policy.signature.requiredfalseRejects unsigned policy heads during reconciliation when enabled.
helm.policy.signature.publicKeyempty64-char hex Ed25519 public key for versioned complete policy-head signatures.
helm.policy.signature.existingSecretemptyExisting 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/reconcileWake-only internal endpoint for sidecars/operators.
helm.policy.reloadHints.configReloaderSidecar.enabledfalseOptional mounted-file wake hint; disabled by default.
persistence.enabledtrueCreates or uses a PVC for /data; required in production so policy replay watermarks survive restarts.
ingress.enabledfalseEnables Kubernetes ingress.
helm.metrics.enabledfalseEnables /metrics on service.metricsPort.
helm.metrics.bearerTokenSecret.nameemptyExisting Secret holding the /metrics bearer token, rendered as HELM_METRICS_BEARER_TOKEN. Empty keeps /metrics loopback-only.
helm.metrics.bearerTokenSecret.keytokenKey inside that Secret.
helm.metrics.serviceMonitor.enabledfalseEmits a Prometheus Operator ServiceMonitor that scrapes with the bearer token; requires helm.metrics.bearerTokenSecret.name.
telemetry.enabledfalseRenders the OTLP variables into the kernel container. Enable per stand, never in a chart default.
telemetry.metricsExporternoneIndependent OTLP metric push switch. none keeps metrics on the Prometheus scrape surface only; otlp additionally pushes metric batches to telemetry.endpoint.
telemetry.syntheticLifecycleEventsfalseRenders 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.endpointemptyOTLP gRPC target, e.g. http://telemetry-gateway.telemetry-system.svc.cluster.local:4317. Required when telemetry.enabled=true; keep the http:// prefix.
telemetry.serviceNameemptyservice.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.

ValueDefaultContract
gateway.enabledfalseRender the gateway objects.
gateway.replicaCount1Gateway replicas; admission state lives in Postgres.
gateway.serving.image.repositoryemptyServing-only image repository, without tag or digest; set with an explicit selector and executable.
gateway.serving.image.tag / digestempty / emptyExactly one own selector when overriding; production requires immutable sha256 digest.
gateway.serving.executableemptyServing-only absolute executable path accepting the unchanged serve arguments; empty defaults to /usr/local/bin/helm-gateway with the shared image.
gateway.service.port8443Service port of the Connect/gRPC API.
gateway.approvalWindowemptyHELM_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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthelm-ai-kernel is pinned at v0.12.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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