Skip to content

Themis v0.1.0-alpha2

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 21:30
· 12 commits to main since this release
0c6f60f

Themis is a governance engine for AI-proposed fixes to Kubernetes incidents and workloads. This second alpha makes a default install safe to try on a real cluster: nothing leaves the cluster, and nothing in it is changed, until you turn that on. It is still not ready for production.

What's new

A read-only default. A plain helm install collects evidence, runs the checks, states the facts with their evidence, and says which fix the checks support. It sends nothing outside the cluster and needs no API key. Each further step is a choice:

Step Helm values Evidence sent outside the cluster Changes to workloads
Read-only (default) None None None
Investigator investigator.enabled=true, and the model in investigator.model To the model. A model in the cluster keeps it there None
Fixes executor.enabled=true, and the namespaces it may change in executor.namespaces None, unless the investigator is on Each one after a person approves it, only in those namespaces

The Setup and Status pages show a part that is off as a choice, with the value that turns it on.

The investigator is opt-in. Every investigator setting is under investigator.*, with the model's under investigator.model.*.

Fixes are opt-in and limited. The executor, the only part that can change workloads, changes only the namespaces listed in executor.namespaces; the chart refuses to install it without them. executor.fixes can limit it further, such as to resource changes only, and the executor enforces that list itself. Every change it makes is recorded under the field manager themis.

HolmesGPT suggests any fix. Through the adapter the chart installs, HolmesGPT 0.25 or later can suggest any fix the incident offers, checked against that fix's parameters before Themis judges it. holmesgpt.fixes narrows the list.

Recommendations. When Themis can't apply a fix, because the executor is off, the namespace isn't listed, the fix isn't allowed, or Argo CD or Flux manages the workload, it recommends the fix instead. The incident page shows the exact change, the reason, and the kubectl commands that make it, with no Approve button. Themis keeps watching: a change made by hand that clears the symptom closes the incident as recovered.

Fixes. After a gap in Prometheus's data, Themis read containers' CPU use as missing or far too low, which could leave a check unknown and the investigator without a fix. It now reads current use across such gaps. An incident whose alerts stop is closed only once its checks no longer find the failure. And an alert that Alertmanager lists again after a gap is taken as firing again.

Themis no longer stores pod templates, which can hold secrets in environment values: each fix keeps only its revisions, template hashes and the values it changes, and the executor rebuilds the change from the cluster and refuses it unless its hash matches the approved one. With the investigator on, its NetworkPolicy now opens only the model's port.

Themis could refuse a justified rollback when it read a crash-looping container just after its second restart, before Kubernetes had recorded the back-off event. It now dates the first failure from whichever comes first. And when a Deployment goes back to a pod template it had before, a pod still shutting down from that template's earlier use no longer counts as a pod of the new revision.

Install

helm install themis oci://ghcr.io/hzerrad/charts/themis --version 0.1.0-alpha2 \
  --namespace themis --create-namespace --set enrolledNamespaces='{shop}'

Create the namespace you enroll first (kubectl create namespace shop): Themis gets its access there at install.

To turn on the investigator and fixes later:

helm upgrade themis oci://ghcr.io/hzerrad/charts/themis --version 0.1.0-alpha2 -n themis --reuse-values \
  --set investigator.enabled=true --set investigator.model.provider=anthropic \
  --set investigator.model.name=claude-haiku-5-5 --set investigator.model.apiKeySecret=model-key \
  --set executor.enabled=true --set executor.namespaces='{shop}'

Images are signed and published for amd64 and arm64. See the quickstart.

Measured

The investigator is unchanged since v0.1.0-alpha1, so its evaluation stands: across 91 synthetic cases, Themis's governance checks rejected all 14 harmful fixes proposed by qwen3 8B, and Claude Haiku proposed none.

Known limits

  • Deployments only.
  • Alertmanager is the only alert source.
  • Every fix needs a person's approval. Putting back what Themis changed, after a fix that made things worse, needs none unless a policy rule asks for one.
  • Traffic between Themis's components is not encrypted inside the cluster. The NetworkPolicy limits who can reach it; mutual TLS is planned.
  • A changed setting can only be put back as it was. Giving it a new value is planned.
  • The executor trusts the approval recorded in Themis's database. Verifying the approver's own signature is planned; see What protects what.

Feedback and contributing

Themis is in alpha, and it grows with the people who use it. Every report and contribution brings it closer to a governance layer SRE teams can rely on for automated fixes.