Enable Runtime Controls
These steps turn on kernel-level observation of AI workloads in a cluster you operate, and show you how to read the result. For what Runtime Controls is, what it can and cannot see, and how to interpret its headline number, read Runtime Controls first — the table is easy to over-read without it.
Workload Trust is available only in private, self-managed AIControls installations, on premises or in a cloud cluster that you run. It needs a dedicated cluster that you run, with Kyverno, Kyverno Runtime, and cluster OIDC and RBAC access in place. Nirmata-hosted (SaaS) workspaces don't include it. See Feature availability.
Runtime Controls cannot run on a Nirmata-hosted (SaaS) tenant. Your AIControls control plane must be running inside the cluster you want to observe. See Step 1.
Step 1 — Confirm your deployment is eligible
Runtime Controls reads Report objects from an API server and authors observation policy in a cluster. Both have to be your cluster.
Confirm you are self-hosted. AIControls must be installed in your own Kubernetes cluster via the Helm chart. On a Nirmata-hosted tenant the control plane runs in Nirmata's cluster — there is no API server of yours for it to read, and no cluster of yours for it to author policy in — so the feature refuses to start regardless of configuration. The chart declares a self-managed installation with
deployment.mode: selfManaged, its default; leave it set.Check that nodes mount bpffs if you want file and exec evidence. The
network,protocol, anddnsbehaviors don't need it. Theopen(file) andexec(binary) behaviors need the open/exec hooks, which need bpffs mounted at/sys/fs/bpfon each node. Most distributions mount it by default; kind and some minimal node images don't. Check withmount | grep /sys/fs/bpf. This is not a blocker — the bypassed-destination headline is built entirely fromnetworkanddnsevidence — but on nodes without the hooks file and exec findings cannot be produced at all, and the Coverage section will say so per node.Give AI workloads their own ServiceAccounts if you have not already. Gateway-recorded calls are joined to workloads by name (workload name, ServiceAccount name, or generated pod-name pattern). Several workloads sharing
defaultcannot be told apart, which degrades the N column and the governed-overlap annotation. It does not affect the bypassed-destination count, which comes from kernel evidence alone.
Step 2 — Install AIControls
The Kyverno runtime sensor — Nirmata Runtime, a per-node eBPF DaemonSet with one cluster-scoped RuntimePolicy CRD — ships as an optional subchart of the AIControls Helm chart, installed by default alongside AIControls itself. A single helm install gives you both:
helm install aicontrols \
oci://ghcr.io/nirmata/charts/aicontrols \
--namespace aicontrols --create-namespace \
--set admin.email=you@example.com
Runtime Controls' own integration (runtimeControls, Step 3) also defaults to on, so this one command is the entire install flow — you do not need to install a separate chart, configure a push target, or copy a certificate between releases. The sensor's DaemonSet lands in the same namespace as AIControls, and AIControls re-probes for its RuntimePolicy CRD every five minutes, so a sensor that takes a moment longer to become ready needs no restart.
Manage the sensor yourself instead
If your organization already runs Nirmata Runtime as its own release — a separate namespace, its own upgrade cadence, RBAC reviewed independently of AIControls — opt out of the bundled subchart and keep your existing install:
kyverno-runtime:
enabled: false
With this flag set, AIControls' own runtimeControls integration (Step 3) stays on, but the chart requests none of the sensor's cluster permissions and renders none of its resources. Point your separately-managed sensor at AIControls the same way you always have — the chart's helm install/helm upgrade output (NOTES) prints the exact push.target and push.tls.secretName values and the certificate-copy command for this case.
Runtime Controls depends on the sensor's behaviors/dns schema (runtime.nirmata.io/v1alpha1). If the bundled subchart's published version predates it, build the sensor from source following the instructions in the nirmata/runtime repository, and set kyverno-runtime.enabled: false to manage that build as your own release instead. The admin console shows the current install command inline when it detects the CRD is absent.
Whichever path you use, the sensor must end up with:
- its DaemonSet running on every node you want observed, and
- the
runtime.nirmata.ioRuntimePolicyCRD served by the API server.
Step 3 — Confirm runtimeControls is enabled
runtimeControls.enabled defaults to true, so a default install already has Runtime Controls' own integration running — there is nothing to add to values.yaml for the common case. Setting it to false disables both the AIControls-side integration and the bundled sensor subchart together (they share one flag, Step 2):
# Self-hosted Kubernetes only. Ignored (with a logged reason) when not
# running in Kubernetes or on a Nirmata-hosted tenant.
runtimeControls:
enabled: false
The flag does two things. It starts the integration in the process, and it renders a declinable ClusterRole and ClusterRoleBinding for the chart's ServiceAccount. When the flag is false, the chart never even requests those cluster permissions — so a cluster that has opted out has no AIControls ClusterRole to audit.
The role grants, all cluster-scoped:
| API group | Resources | Verbs | Why |
|---|---|---|---|
runtime.nirmata.io | runtimepolicies | full CRUD | AIControls authors the capability-probe and observation policies |
runtime.nirmata.io | runtimepolicies/status | read | Per-node applied state, used for capability detection |
openreports.io | reports, clusterreports | read | The sensor's findings |
| core | pods, services, endpoints, nodes, namespaces | read | Attributing evidence to workloads; deriving in-cluster addresses from the API server rather than guessing them |
apps | deployments, statefulsets, daemonsets, replicasets | read | Owner-reference walk from pod to workload |
batch | jobs, cronjobs | read | Same walk for Job-backed workloads |
discovery.k8s.io | endpointslices | read | Resolving cluster destination identity |
apiextensions.k8s.io | customresourcedefinitions | read | Detecting whether the sensor's CRDs are installed at all |
| core | events | list, watch | The Pod-scheduled event watch that attributes a new Pod within seconds. Rendered only when runtimeControls.podEvents.enabled is true (the default). See How new Pods are attributed |
Every rule is probed with a SelfSubjectAccessReview at startup. If your cluster's admission or policy stack strips any of them, the missing grant appears as a structured gap on Health → Runtime rather than as a log line nobody reads.
What appears in your cluster
Once enabled, AIControls authors its own RuntimePolicy objects — a capability probe, plus one observation policy per signal: dns (names resolved), network (destinations connected to), open (files opened), and exec (binaries executed). They cover every namespace except kube-system and kube-public.
Policy names say what each policy governs:
| Policy | Name |
|---|---|
| Cluster-wide observation | aic-obs-cluster-<signal>, for example aic-obs-cluster-dns |
| A registered workload's enforceable policy | aic-enf-<namespace>-<workload>-<hash>, for example aic-enf-runtime-global-runtime-probe-1a2b3c4d |
| A registered workload's agent-exec observation | aic-obs-<namespace>-<workload>-<hash> |
| A registered workload's other observations | aic-obs-<namespace>-<workload>-<signal>-<hash>, for example aic-obs-runtime-global-runtime-probe-dns-5e6f7a8b |
| Capability probe, kill switch | aic-capability-probe-<hash>, aic-killswitch-<hash> |
The workload is the Deployment's name. For any other kind, the kind is part of the name too, for example aic-enf-agents-statefulset-worker-<hash>. The 8-character hash comes from the cluster, namespace, kind, and workload name, so two workloads never share a policy, even when their readable parts match. When a name would exceed 63 characters, AIControls shortens the readable part and keeps the hash. When you upgrade from a release that used aic-observe-<hash> and aic-restrict-<hash>, AIControls creates each policy under its new name and then removes the old one.
kubectl get runtimepolicies -l app.kubernetes.io/managed-by=aicontrols
Every one of these observes and reports. None of them denies anything — a network policy from AIControls will not block a connection, and an open or exec policy will not stop a process. Enabling Runtime Controls cannot break a running workload.
A second open policy — credential-open — watches for a broader set of infrastructure credential files being opened: ~/.aws/credentials, ~/.aws/config, .env, ~/.kube/config, ~/.ssh/id_rsa, ~/.ssh/id_ed25519, ~/.docker/config.json, ~/.npmrc, ~/.pypirc, and ~/.git-credentials by default. It is toggled independently with runtimeControls.categories.credentialFiles (default true), and the path list itself is overridable with runtimeControls.credentialFilePaths. Like every authored policy it is monitor-only, and like the rest of the open family it needs the open/exec hooks, which need bpffs mounted at /sys/fs/bpf — on nodes without them, this evidence class cannot be produced at all, not merely observed as clean.
The network policy carries no allow list. That is deliberate: allow-listing provider destinations would hide exactly the traffic the feature exists to surface. Uninteresting destinations are removed afterwards by suppression rules that record their reason, so they stay visible to you in the expanded row.
Scope the network observation away from a noisy namespace
Carrying no allow list is what makes the network observation trustworthy, and it is also what makes it expensive. The sensor writes one report object per namespace and node, capped at 500 results, and once that cap is reached later findings for that namespace and node are dropped permanently. All four observations share that one budget — and three of them narrow what they report: dns by its in-cluster allow list, open and exec by their detection filters. network does not, so it reports one series per pod and destination, in-cluster service-to-service traffic included. In a large or chatty namespace that volume can crowd the namespace's own dns findings out of the report, which costs you a signal that was there before connection evidence existed.
The cap belongs to the sensor and AIControls cannot raise it. Your lever is to scope the network observation away from the namespace producing the volume:
runtimeControls:
enabled: true
# Scopes the `network` observation only. kube-system and kube-public are
# always excluded from every observation and do not need to be listed.
networkObserveExcludeNamespaces:
- batch-jobs
- mesh-system
Only network is scoped. The dns, open, and exec observations continue to cover the listed namespaces unchanged, and excluding a namespace hands its report budget back to those three.
The cost is real, so do not set this preemptively. An excluded namespace produces no connection evidence: its rows go back to being DNS-only, with every weakness that carries — a resolution proves a name was looked up, not that traffic followed, and encrypted DNS, a cached answer, or a hardcoded IP produce nothing there at all. The symptom that justifies the trade is a persistent ingest-lag figure; see Troubleshooting.
Each entry must be a valid namespace name (a DNS-1123 label). A malformed entry fails policy rendering loudly at startup rather than quietly mis-scoping a security control.
Record your workload labels on findings
To route, filter, and report runtime findings by your own application identity, list the pod label keys to record:
runtimeControls:
enabled: true
findingLabels:
- ebay-app-id
AIControls reads the labels from the Kubernetes API when it ingests each finding; the sensor's payload never supplies them. After you upgrade, open a runtime event in Security → Activity → Security and check Workload labels, or type ebay-app-id=checkout in the Workload label box. See Workload labels on findings for the rules.