Repository navigation
Releases
v0.6.3
Four fixes. One is a fix of redaction: the Pod's UID could reach the model in the kubelet's
back-off message. Nothing to change in values or permissions.
Fixed
- The Pod's UID no longer reaches the model. The kubelet writes it into the back-off message of a
waiting container and into the note of itsBackOffevent
(pod=<name>_<namespace>(<uid>)), andR012let it through: the hyphens of a UUID kept its
entropy under the threshold of 4 bits per character, while the same digits without hyphens
were redacted. A run shaped as a UUID now counts as a hexadecimal run, in requests and in the
model's answer, so request ids and trace ids shaped as UUIDs in logs and event messages also
become<redacted:secret>. - A watch error whose text changes no longer loses the repeats folded of the previous text: the
pod watch error,event watch errorordeployment watch errorline of the new text is
preceded by a line of the old text with itsfoldedcount. Errors whose text carries a key,
such as k3s'setcd event received with PrevKv=nil (key=...), change text every time. /metrics,/healthzand/readyzno longer answer405to aGETthat arrives in pieces.
kausa decided on its first read of the connection, and a read through the API server's proxy
(kubectl get --raw /api/v1/namespaces/<ns>/pods/<pod>:9090/proxy/metrics) can reach the Pod
with its first byte on its own: on k3s, about one such read in 170 failed with
MethodNotAllowed. kausa now reads the request line to its end, for up to 2 seconds.- A watch that the API server ends with an error lists again instead of asking for the same
resource version until it expires. On k3s the Event watch stalled that way for up to 6 minutes
at a time, 9% of the time over 60 hours: resuming it failed withetcd event received with PrevKv=nilon every retry, and a Warning that came meanwhile reached kausa only after the next
relist. kausa now starts a new watcher after any error inside an open watch, as it did after a
403; the error is still counted inkausa_watch_errors_totaland the list in
kausa_watch_relists_total, andkausa_watch_restarts_totalstill counts refusals only. The
delay between tries goes back to its shortest once a watch brings an object, or after 2 minutes
without an error, and no longer when a list works, so a watch that fails after every list is
not listed again at the shortest delay.
Install
helm install kausa oci://ghcr.io/fedeam/charts/kausa --version 0.6.3 \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueThe same chart is attached below as kausa-0.6.3.tgz, and its URL still works:
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.6.3/kausa-0.6.3.tgz ….
A release installed from a chart URL moves to the registry with
helm upgrade kausa oci://ghcr.io/fedeam/charts/kausa --version 0.6.3 -n kausa --reuse-values.
- Image:
ghcr.io/fedeam/kausa:0.6.3(ghcr.io/fedeam/kausa@sha256:6f812c35c7514db9f56bfbc971739bf765deb30e4f876143dfb5257928176eb6); linux/amd64
ghcr.io/fedeam/kausa@sha256:84773dd68b1155883d0d1c7e7ddb7bb664bd73200a07fd7955d22ac526801ff1, linux/arm64ghcr.io/fedeam/kausa@sha256:fd04249a2618f194f5710d23e2711beed63ea9477ef59e7af557317a3909cc7e. - Chart:
oci://ghcr.io/fedeam/charts/kausa, version0.6.3
(ghcr.io/fedeam/charts/kausa@sha256:199ee1b4c3378e5eef100a6f72362e64fea7af921b3dce75da48f2f914e437b8), the same bytes askausa-0.6.3.tgz. - SBOMs (CycloneDX 1.6):
kausa-0.6.3-linux-amd64.cdx.json,kausa-0.6.3-linux-arm64.cdx.json.
Verify
With cosign v3 or later; no login needed. Verify by digest: tags can be moved.
ID=https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.6.3
ISSUER=https://token.actions.githubusercontent.com
cosign verify ghcr.io/fedeam/kausa@sha256:6f812c35c7514db9f56bfbc971739bf765deb30e4f876143dfb5257928176eb6 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/fedeam/kausa@sha256:6f812c35c7514db9f56bfbc971739bf765deb30e4f876143dfb5257928176eb6 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://cyclonedx.org/bom ghcr.io/fedeam/kausa@sha256:84773dd68b1155883d0d1c7e7ddb7bb664bd73200a07fd7955d22ac526801ff1 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://cyclonedx.org/bom ghcr.io/fedeam/kausa@sha256:fd04249a2618f194f5710d23e2711beed63ea9477ef59e7af557317a3909cc7e --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify ghcr.io/fedeam/charts/kausa@sha256:199ee1b4c3378e5eef100a6f72362e64fea7af921b3dce75da48f2f914e437b8 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/fedeam/charts/kausa@sha256:199ee1b4c3378e5eef100a6f72362e64fea7af921b3dce75da48f2f914e437b8 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/nullTo install exactly the chart you checked, compare it with the signed checksums
(on macOS, shasum -a 256 in place of sha256sum):
curl -fsSLO https://github.com/fedeam/kausa/releases/download/v0.6.3/SHA256SUMS
curl -fsSLO https://github.com/fedeam/kausa/releases/download/v0.6.3/SHA256SUMS.sigstore.json
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER"
helm pull oci://ghcr.io/fedeam/charts/kausa --version 0.6.3
sha256sum --ignore-missing -c SHA256SUMS
helm install kausa kausa-0.6.3.tgz -n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueWith the GitHub CLI, which needs gh auth login:
W=fedeam/kausa/.github/workflows/release.yml
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:6f812c35c7514db9f56bfbc971739bf765deb30e4f876143dfb5257928176eb6 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.3
gh attestation verify oci://ghcr.io/fedeam/charts/kausa@sha256:199ee1b4c3378e5eef100a6f72362e64fea7af921b3dce75da48f2f914e437b8 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.3
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:84773dd68b1155883d0d1c7e7ddb7bb664bd73200a07fd7955d22ac526801ff1 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.3 --predicate-type https://cyclonedx.org/bom
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:fd04249a2618f194f5710d23e2711beed63ea9477ef59e7af557317a3909cc7e --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.3 --predicate-type https://cyclonedx.org/bom
gh release download v0.6.3 --repo fedeam/kausa
gh attestation verify kausa-0.6.3.tgz --repo fedeam/kausa --bundle kausa-0.6.3.intoto.jsonl --signer-workflow "$W" --source-ref refs/tags/v0.6.3v0.6.2
Fixed
-
An expired resource version (
410in a watch) is no longer a watch error: it gives no
pod watch error,event watch errorordeployment watch errorline and is not counted in
kausa_watch_errors_total, since the watcher lists again andkausa_watch_relists_total
counts that. On k3s, which serves the Event watch without a watch cache, it came every few
minutes and made more than half of that counter (142 of 239 Event watch errors in a day). -
With
replicaCount: 2, thelease errorhint on a404also names the deploy tools that skip
Leases:the chart creates this Lease: run helm upgrade, or create it once if your deploy tool skips Leases (Argo CD does). Argo CD's defaultresource.exclusionsskip
coordination.k8s.io/Lease, so an Application of the chart never creates the Lease and neither
replica leads; Install with Helm gives the Lease to create
once (#79). kausa's permissions do not change: it
still never creates the Lease (0019).
Install
helm install kausa oci://ghcr.io/fedeam/charts/kausa --version 0.6.2 \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueThe same chart is attached below as kausa-0.6.2.tgz, and its URL still works:
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.6.2/kausa-0.6.2.tgz ….
A release installed from a chart URL moves to the registry with
helm upgrade kausa oci://ghcr.io/fedeam/charts/kausa --version 0.6.2 -n kausa --reuse-values.
- Image:
ghcr.io/fedeam/kausa:0.6.2(ghcr.io/fedeam/kausa@sha256:bb2329800d9e81d2d1fbfb0e9a0aa5e2efc41a1effed7aff77b19a2a14f93eef); linux/amd64
ghcr.io/fedeam/kausa@sha256:47c7c763cb360a4eea0f917377005d789aab749498254622e1e8b6cdbd597885, linux/arm64ghcr.io/fedeam/kausa@sha256:3f984d3492f6b0726ddb92eb8feabf85ad02356a5b8b411937231ae9b57d2443. - Chart:
oci://ghcr.io/fedeam/charts/kausa, version0.6.2
(ghcr.io/fedeam/charts/kausa@sha256:8fe6180ce4947b8cdaf09b847ac36bc04c67a04c1af9614dcf7ee3dd45960407), the same bytes askausa-0.6.2.tgz. - SBOMs (CycloneDX 1.6):
kausa-0.6.2-linux-amd64.cdx.json,kausa-0.6.2-linux-arm64.cdx.json.
Verify
With cosign v3 or later; no login needed. Verify by digest: tags can be moved.
ID=https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.6.2
ISSUER=https://token.actions.githubusercontent.com
cosign verify ghcr.io/fedeam/kausa@sha256:bb2329800d9e81d2d1fbfb0e9a0aa5e2efc41a1effed7aff77b19a2a14f93eef --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/fedeam/kausa@sha256:bb2329800d9e81d2d1fbfb0e9a0aa5e2efc41a1effed7aff77b19a2a14f93eef --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://cyclonedx.org/bom ghcr.io/fedeam/kausa@sha256:47c7c763cb360a4eea0f917377005d789aab749498254622e1e8b6cdbd597885 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://cyclonedx.org/bom ghcr.io/fedeam/kausa@sha256:3f984d3492f6b0726ddb92eb8feabf85ad02356a5b8b411937231ae9b57d2443 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify ghcr.io/fedeam/charts/kausa@sha256:8fe6180ce4947b8cdaf09b847ac36bc04c67a04c1af9614dcf7ee3dd45960407 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/fedeam/charts/kausa@sha256:8fe6180ce4947b8cdaf09b847ac36bc04c67a04c1af9614dcf7ee3dd45960407 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/nullTo install exactly the chart you checked, compare it with the signed checksums
(on macOS, shasum -a 256 in place of sha256sum):
curl -fsSLO https://github.com/fedeam/kausa/releases/download/v0.6.2/SHA256SUMS
curl -fsSLO https://github.com/fedeam/kausa/releases/download/v0.6.2/SHA256SUMS.sigstore.json
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER"
helm pull oci://ghcr.io/fedeam/charts/kausa --version 0.6.2
sha256sum --ignore-missing -c SHA256SUMS
helm install kausa kausa-0.6.2.tgz -n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueWith the GitHub CLI, which needs gh auth login:
W=fedeam/kausa/.github/workflows/release.yml
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:bb2329800d9e81d2d1fbfb0e9a0aa5e2efc41a1effed7aff77b19a2a14f93eef --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.2
gh attestation verify oci://ghcr.io/fedeam/charts/kausa@sha256:8fe6180ce4947b8cdaf09b847ac36bc04c67a04c1af9614dcf7ee3dd45960407 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.2
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:47c7c763cb360a4eea0f917377005d789aab749498254622e1e8b6cdbd597885 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.2 --predicate-type https://cyclonedx.org/bom
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:3f984d3492f6b0726ddb92eb8feabf85ad02356a5b8b411937231ae9b57d2443 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.2 --predicate-type https://cyclonedx.org/bom
gh release download v0.6.2 --repo fedeam/kausa
gh attestation verify kausa-0.6.2.tgz --repo fedeam/kausa --bundle kausa-0.6.2.intoto.jsonl --signer-workflow "$W" --source-ref refs/tags/v0.6.2v0.6.1
An answer that holds one of six listed destructive command shapes is withheld from every sink and
replaced by a fixed notice at low confidence (0025, measured before the release); the alert
KausaAnswerWithheld fires when that happens; and the chart is listed on Artifact Hub with a
verified publisher. Nothing to change in values or permissions.
Added
- The alert
KausaAnswerWithheld(increase(kausa_answers_withheld_total[1h]) > 0), with its
promtoolunit test and its section in Alerts: the measurement of
0025 withheld no benign answer (Destructive commands withheld,
measured). - The chart is listed on Artifact Hub:
charts/artifacthub-repo.ymlholds the repository's ID,
which the release pushes toghcr.io/fedeam/charts/kausa:artifacthub.io, so Artifact Hub shows
kausa's publisher as verified from the next release. - An answer that holds one of six listed destructive command shapes (
W001–W006:kubectl,
ocorkdeleting namespaces, projects, nodes, CRDs or everything, with--all,-A,
--forceor a grace period of 0;helm uninstall;rm -rf; prose that deletes every
namespace), in a summary, cause or step as a sink gets it after the names are mapped back, has
that text replaced by
kausa's fixed notice, which leads the Event note, the Explanation entry and the notification,
withlowconfidence (Withheld command shapes,
0025). Theexplanationlog line gainswithheldandmodel_confidence, and the new counter
kausa_answers_withheld_totalcounts these answers. No values or permissions change; the Event
staysNormalandExplained, and the Explanation and notification schemas are the same.
Install
helm install kausa oci://ghcr.io/fedeam/charts/kausa --version 0.6.1 \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueThe same chart is attached below as kausa-0.6.1.tgz, and its URL still works:
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.6.1/kausa-0.6.1.tgz ….
A release installed from a chart URL moves to the registry with
helm upgrade kausa oci://ghcr.io/fedeam/charts/kausa --version 0.6.1 -n kausa --reuse-values.
- Image:
ghcr.io/fedeam/kausa:0.6.1(ghcr.io/fedeam/kausa@sha256:5f45435d398ee0a20af0c7dbc27abd92e01373de7094faab0486ad4a19d1f784); linux/amd64
ghcr.io/fedeam/kausa@sha256:45537b66a011fd86d120778029bb3189882b489a64177eab9aec68a6c75cdd54, linux/arm64ghcr.io/fedeam/kausa@sha256:28a90fa97a4823a88e90e5e2c5c7d374a71ff202692c6009329c5b43f946971b. - Chart:
oci://ghcr.io/fedeam/charts/kausa, version0.6.1
(ghcr.io/fedeam/charts/kausa@sha256:1782aed4370101cfcb1e9b0363c08355792f5005f6d88e4fd6a545875a87178e), the same bytes askausa-0.6.1.tgz. - SBOMs (CycloneDX 1.6):
kausa-0.6.1-linux-amd64.cdx.json,kausa-0.6.1-linux-arm64.cdx.json.
Verify
With cosign v3 or later; no login needed. Verify by digest: tags can be moved.
ID=https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.6.1
ISSUER=https://token.actions.githubusercontent.com
cosign verify ghcr.io/fedeam/kausa@sha256:5f45435d398ee0a20af0c7dbc27abd92e01373de7094faab0486ad4a19d1f784 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/fedeam/kausa@sha256:5f45435d398ee0a20af0c7dbc27abd92e01373de7094faab0486ad4a19d1f784 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://cyclonedx.org/bom ghcr.io/fedeam/kausa@sha256:45537b66a011fd86d120778029bb3189882b489a64177eab9aec68a6c75cdd54 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://cyclonedx.org/bom ghcr.io/fedeam/kausa@sha256:28a90fa97a4823a88e90e5e2c5c7d374a71ff202692c6009329c5b43f946971b --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify ghcr.io/fedeam/charts/kausa@sha256:1782aed4370101cfcb1e9b0363c08355792f5005f6d88e4fd6a545875a87178e --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/fedeam/charts/kausa@sha256:1782aed4370101cfcb1e9b0363c08355792f5005f6d88e4fd6a545875a87178e --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/nullTo install exactly the chart you checked, compare it with the signed checksums
(on macOS, shasum -a 256 in place of sha256sum):
curl -fsSLO https://github.com/fedeam/kausa/releases/download/v0.6.1/SHA256SUMS
curl -fsSLO https://github.com/fedeam/kausa/releases/download/v0.6.1/SHA256SUMS.sigstore.json
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER"
helm pull oci://ghcr.io/fedeam/charts/kausa --version 0.6.1
sha256sum --ignore-missing -c SHA256SUMS
helm install kausa kausa-0.6.1.tgz -n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueWith the GitHub CLI, which needs gh auth login:
W=fedeam/kausa/.github/workflows/release.yml
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:5f45435d398ee0a20af0c7dbc27abd92e01373de7094faab0486ad4a19d1f784 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.1
gh attestation verify oci://ghcr.io/fedeam/charts/kausa@sha256:1782aed4370101cfcb1e9b0363c08355792f5005f6d88e4fd6a545875a87178e --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.1
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:45537b66a011fd86d120778029bb3189882b489a64177eab9aec68a6c75cdd54 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.1 --predicate-type https://cyclonedx.org/bom
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:28a90fa97a4823a88e90e5e2c5c7d374a71ff202692c6009329c5b43f946971b --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.1 --predicate-type https://cyclonedx.org/bom
gh release download v0.6.1 --repo fedeam/kausa
gh attestation verify kausa-0.6.1.tgz --repo fedeam/kausa --bundle kausa-0.6.1.intoto.jsonl --signer-workflow "$W" --source-ref refs/tags/v0.6.1v0.6.0
The chart is published at oci://ghcr.io/fedeam/charts/kausa as a signed OCI artifact, and each
image gets an attested CycloneDX SBOM of a binary built with cargo auditable (0023); kausa
watches itself, with alert rules that promtool checks and unit-tests and seven new metrics; an
upgrade test from the latest release and the scripts of a seven-day soak measure its reliability;
and the system message is chosen by detection, as prompt version 3, with D008 keeping version
2's (0024). Nothing to change in values or permissions. After the upgrade, the counters with a
fixed set of labels show a 0 series for each label from the start, and their unlabelled 0 line
is gone: a dashboard or query that matched it changes. A copy of the install guide's example
alert KausaDailyCallBudgetSpent, which needed a pod label, is replaced by the one in
deploy/prometheus/kausa-alerts.yaml. New Explanation entries store promptVersion "3".
Added
- Prometheus alerting rules for kausa's own metrics,
deploy/prometheus/kausa-alerts.yaml: eleven
alerts in five groups, on a failing model endpoint, failed calls, the spent daily budget, the
explanation queue, skipped incidents, failing or refused watches, the Lease of two replicas and
failed notifications. CI checks them withpromtool check rulesand unit-tests each threshold,
window andforwithpromtool test rules. Alerts explains each
alert and what to do when it fires; each alert'srunbook_urllinks its section. - Seven metrics:
kausa_build_info{version, prompt_version}(always1),
kausa_model_call_duration_seconds{outcome}(a histogram of the model calls, whose_count
equalskausa_model_calls_total),kausa_watch_relists_total{watch}and
kausa_watch_restarts_total{watch}(new watchers after a403),kausa_records{kind},
kausa_owner_cache_entriesandkausa_dedup_cache_entries
(Command line and log format). No label names a
namespace, a Pod, a model or a host. - The chart is published at
oci://ghcr.io/fedeam/charts/kausa(install with--version),
signed with cosign and with SLSA build provenance; the.tgzstays on each GitHub release. - Each release attests a CycloneDX SBOM to the image of each architecture and attaches both; the
binary is built withcargo auditable, so scanners read its crates from the image. - The chart has a README and Artifact Hub annotations.
Changed
- The counters with a fixed set of label values (
kausa_watch_errors_total,
kausa_model_calls_total,kausa_explanations_skipped_total,kausa_notifications_totaland
kausa_leadership_changes_total) show a0series for each value from the start, in the modes
that can count them, so that the first increase after a start is seen; their unlabelled0
line is gone, and a dashboard that matched it changes. - The example alert on a spent daily budget, now
KausaDailyCallBudgetSpent, matches the leader
gauge withignoring(window)instead ofon (pod), so it needs nopodlabel from the scrape. - The example alert on a flapping Lease, now
KausaLeaderFlapping, fires at 7 takeovers in an
hour (>= 7) instead of> 6, which six takeovers could cross onceincreaseextrapolates.
It andKausaNoLeaderadd up a release's Podsby (namespace, job). - Requests about a workload controller, a claim or an autoscaler (
D011toD013) and a stalled
rollout (D014) carry one of two new fixed system messages, which say that the request has no
Pod and, forD014, what its fields and events mean. The prompt version is3, so new
Explanation entries storepromptVersion"3". Requests for the other rules do not change, and
a failed Job (D008) keeps the version 2 message: the paragraph written for it failed bars B1
and B2 of the before-and-after measurement fixed by
0024, while the other two passed theirs (The
system message by detection,
measured).
Install
helm install kausa oci://ghcr.io/fedeam/charts/kausa --version 0.6.0 \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueThe same chart is attached below as kausa-0.6.0.tgz, and its URL still works:
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.6.0/kausa-0.6.0.tgz ….
A release installed from a chart URL moves to the registry with
helm upgrade kausa oci://ghcr.io/fedeam/charts/kausa --version 0.6.0 -n kausa --reuse-values.
- Image:
ghcr.io/fedeam/kausa:0.6.0(ghcr.io/fedeam/kausa@sha256:eb804398bd9ca085ba01f3600d7fd9e61b88e3abea4b5c935c20f958c87e4467); linux/amd64
ghcr.io/fedeam/kausa@sha256:32b05342266cda024db352adac3dc3f4116f9c4a31d55bfc0ef7404e2fdd28bc, linux/arm64ghcr.io/fedeam/kausa@sha256:db934367f8313311795a517fadd81cf42482e7149c575ddb8b58e9256d9051b4. - Chart:
oci://ghcr.io/fedeam/charts/kausa, version0.6.0
(ghcr.io/fedeam/charts/kausa@sha256:715fd6a3637c743b618517d04e4d9f9cc452d387cc6384302142bbb9751b232b), the same bytes askausa-0.6.0.tgz. - SBOMs (CycloneDX 1.6):
kausa-0.6.0-linux-amd64.cdx.json,kausa-0.6.0-linux-arm64.cdx.json.
Verify
With cosign v3 or later; no login needed. Verify by digest: tags can be moved.
ID=https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.6.0
ISSUER=https://token.actions.githubusercontent.com
cosign verify ghcr.io/fedeam/kausa@sha256:eb804398bd9ca085ba01f3600d7fd9e61b88e3abea4b5c935c20f958c87e4467 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/fedeam/kausa@sha256:eb804398bd9ca085ba01f3600d7fd9e61b88e3abea4b5c935c20f958c87e4467 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://cyclonedx.org/bom ghcr.io/fedeam/kausa@sha256:32b05342266cda024db352adac3dc3f4116f9c4a31d55bfc0ef7404e2fdd28bc --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://cyclonedx.org/bom ghcr.io/fedeam/kausa@sha256:db934367f8313311795a517fadd81cf42482e7149c575ddb8b58e9256d9051b4 --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify ghcr.io/fedeam/charts/kausa@sha256:715fd6a3637c743b618517d04e4d9f9cc452d387cc6384302142bbb9751b232b --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/null
cosign verify-attestation --type https://slsa.dev/provenance/v1 ghcr.io/fedeam/charts/kausa@sha256:715fd6a3637c743b618517d04e4d9f9cc452d387cc6384302142bbb9751b232b --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER" > /dev/nullTo install exactly the chart you checked, compare it with the signed checksums
(on macOS, shasum -a 256 in place of sha256sum):
curl -fsSLO https://github.com/fedeam/kausa/releases/download/v0.6.0/SHA256SUMS
curl -fsSLO https://github.com/fedeam/kausa/releases/download/v0.6.0/SHA256SUMS.sigstore.json
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json --certificate-identity "$ID" --certificate-oidc-issuer "$ISSUER"
helm pull oci://ghcr.io/fedeam/charts/kausa --version 0.6.0
sha256sum --ignore-missing -c SHA256SUMS
helm install kausa kausa-0.6.0.tgz -n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueWith the GitHub CLI, which needs gh auth login:
W=fedeam/kausa/.github/workflows/release.yml
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:eb804398bd9ca085ba01f3600d7fd9e61b88e3abea4b5c935c20f958c87e4467 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.0
gh attestation verify oci://ghcr.io/fedeam/charts/kausa@sha256:715fd6a3637c743b618517d04e4d9f9cc452d387cc6384302142bbb9751b232b --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.0
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:32b05342266cda024db352adac3dc3f4116f9c4a31d55bfc0ef7404e2fdd28bc --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.0 --predicate-type https://cyclonedx.org/bom
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:db934367f8313311795a517fadd81cf42482e7149c575ddb8b58e9256d9051b4 --repo fedeam/kausa --signer-workflow "$W" --source-ref refs/tags/v0.6.0 --predicate-type https://cyclonedx.org/bom
gh release download v0.6.0 --repo fedeam/kausa
gh attestation verify kausa-0.6.0.tgz --repo fedeam/kausa --bundle kausa-0.6.0.intoto.jsonl --signer-workflow "$W" --source-ref refs/tags/v0.6.0v0.5.2
A security fix of redaction: the name of a Secret or ConfigMap that a Pod cannot mount could
reach the request in clear. Nothing to change in values or permissions.
Security
- The name of a Secret or ConfigMap that a Pod cannot mount reached the request and kausa's log in
clear when the volume was named like a secret key (credentials,api-token,password…):
R010took the kind in the kubelet'svolume "credentials" : secret "<name>" not foundfor the
key's value, soR003no longer sawsecret "<name>". A kind followed by a quoted name is no
longer a value forR010, andR003redacts the name. Found by the known-cause corpus's
no-volumeentry; a value was never exposed, only the object's name.
Install
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.5.2/kausa-0.5.2.tgz \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueImage: ghcr.io/fedeam/kausa:0.5.2 (ghcr.io/fedeam/kausa@sha256:5b0cc3734da7709c24aafca5055d7159b447aeea817b77e1c5f2f33176b3d2fe), linux/amd64 and linux/arm64.
Verify
With cosign v3 or later and the GitHub CLI:
cosign verify ghcr.io/fedeam/kausa@sha256:5b0cc3734da7709c24aafca5055d7159b447aeea817b77e1c5f2f33176b3d2fe \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.5.2 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:5b0cc3734da7709c24aafca5055d7159b447aeea817b77e1c5f2f33176b3d2fe --repo fedeam/kausa
gh attestation verify kausa-0.5.2.tgz --repo fedeam/kausa \
--bundle kausa-0.5.2.intoto.jsonl
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.5.2 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMSv0.5.1
A fix for the endpoint check and the breaker with Google's Gemini API, which answers a wrong key
with a 400. Nothing to change in values or permissions.
Fixed
- A wrong or missing API key for Google's Gemini API is
key, a configuration error that opens
the breaker, instead ofrejected: its OpenAI-compatible endpoint answers it with a400
(INVALID_ARGUMENT) and one of three fixed messages, which kausa now compares byte for byte. The
check's hint names the key instead of--no-json-schema
(#72).
Install
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.5.1/kausa-0.5.1.tgz \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueImage: ghcr.io/fedeam/kausa:0.5.1 (ghcr.io/fedeam/kausa@sha256:9c1dc28d815b579e493817cb6ea817a4ac3bbca1ab85f7b470a2ecbf05027b91), linux/amd64 and linux/arm64.
Verify
With cosign v3 or later and the GitHub CLI:
cosign verify ghcr.io/fedeam/kausa@sha256:9c1dc28d815b579e493817cb6ea817a4ac3bbca1ab85f7b470a2ecbf05027b91 \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.5.1 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:9c1dc28d815b579e493817cb6ea817a4ac3bbca1ab85f7b470a2ecbf05027b91 --repo fedeam/kausa
gh attestation verify kausa-0.5.1.tgz --repo fedeam/kausa \
--bundle kausa-0.5.1.intoto.jsonl
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.5.1 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMSv0.5.0
The model's answer passes the pattern redaction rules before it is written anywhere (0022), the
hourly call budget refills at a steady rate, so that a restart no longer refills it (0021),
kausa check-endpoint and the chart's helm test check the endpoint, and a breaker holds calls
while it fails (0020), and D002, D004, D008 and D011 explain more failures. Upgrade the
image and the chart together, since the new chart passes --model-timeout, which older images
refuse; after the upgrade an Explanation may start a new entry once.
Added
R011redacts npm (npm_), PyPI (pypi-) and Docker (dckr_pat_,dckr_oat_) tokens and
GitLab's other token prefixes (gldt-,glrt-,glcbt-and the rest), each format taken from
its issuer's documentation (#5).- The model's answer passes the pattern redaction rules
R003–R014before it is logged, put in
an Event, stored in an Explanation or posted to the webhook: an address, a token, an email
address, a URL's query or a host outside the allowlist that the model writes, from injected
cluster text or invented, is written redacted, and kausa keeps no unredacted copy. The rules,
their order and the details that differ from the request are in Detection and redaction
rules
(0022). - The counter
kausa_answer_redactions_total{rule}and theanswer_redactionsfield of the
explanationlog line count the values replaced in the model's answers, by rule. - A prompt injection corpus (
tests/bench/injection-corpus.yaml) with its measurement script, and
seed corpora for theredactandvalidatefuzz targets. - Two gauges:
kausa_budget_calls_remaining{window}(hour: the calls the refill bucket allows
now within the 60-minute cap;day: what is left of the 24-hour cap), rendered with
--endpoint, andkausa_explanation_queue_length(at most 16), rendered with--endpointor
--dry-run. A gauge never set is not rendered. - An
explanations waitinglog line (reason,queued,next_call_in_seconds), once when
incidents start waiting for the budget, and awaiting_for_budgetfield onexplanation dropped(0021). D008also explains a Job failed by itspodFailurePolicy(PodFailurePolicy) and an indexed
Job with failed indexes (MaxFailedIndexesExceeded,FailedIndexes): every reason the Job
controller gives a failed Job.D011also explains a CronJob whose Jobs the API server refuses (a quota, an admission webhook),
from itsFailedCreateevent; the CronJob is the incident's object.D002also explainsErrImageNeverPull:imagePullPolicy: Neverand an image the node cannot
use, absent or not usable with the Pod's credentials.D004also explains a container whose process the runtime cannot start (RunContainerError,
andCrashLoopBackOffafter aStartError), such as an entrypoint missing from the image.R003redacts the container and the Pod named in the Job controller'spodFailurePolicynotes.- A known-cause corpus in
tests/bench/: a seeded failure for every detection
(seeded-failures.yaml), its cause written down before any model ran (known-causes.json), and
score.py, which replays dry-run requests against an endpoint and grades the answers with a
fixed rubric; first results in
Explanation quality of local models against known causes. kausa check-endpoint: one synthetic request to the model endpoint, on demand, with no cluster
and outside the budget, and oneendpoint checkline that names the step that failed, its cause
and a hint; exit0passed,1failed,2usage error
(0020).--model-timeoutonkausa runandkausa check-endpoint: a call's total timeout, 10 to 600
seconds, 120 by default; thestartedline shows it asmodel_timeout_seconds.- The chart's
helm test: a Pod<fullname>-endpoint-checkthat runskausa check-endpointwith
no ServiceAccount token, created only byhelm test, and, withnetworkPolicy.enabled, its own
NetworkPolicy with egress to DNS and the endpoint only. The valuesmodel.timeoutSeconds(120)
andendpointCheck.enabled(true). - Two gauges:
kausa_endpoint_state{state}(closed,half_open,open) and
kausa_model_last_success_timestamp_seconds; the skip reasonendpoint_unavailable; the log
linesendpoint unavailableandendpoint available;causeandqueuedonexplanation retried, andcauseandstatusonendpoint error.
Changed
- The hourly call budget refills at a steady rate instead of starting full: each start (and, with
--leader-lease, each takeover) allows 3 calls at once, then one every3600/Nseconds up to
N(--max-calls-per-hour), and the 60-minute and daily caps still hold. A restart no longer
brings a full hour's budget.--max-calls-per-day's help says it counts per process
(0021). - While the budget waits, incidents wait in the queue instead of being skipped, and a repeat with a
cached explanation passes them. When 16 are waiting, the oldest is skipped with an
ExplanationSkippedEvent (reasonbudget). A spent daily cap and a cap of 0 still skip at once. - A budget skip no longer reads the container log, so it may come where
context_too_largecame
before, and delayed retries no longer take the queue past 16. - A failed model call gets a cause and a class (Causes):
a quota429(insufficient_quota) and a402are no longer retried, nor a redirect, a refused
key, a missing model or an answer that is not a chat completion;Retry-Afteris honoured on
429and503, in seconds, clamped to 30-600 (0020). - After 3 transient failures in a row or 1 configuration error, kausa stops calling the endpoint
and incidents wait, one probing per hold (60 seconds, doubling up to 30 minutes); with 16
waiting, the oldest is skipped asendpoint_unavailable. A transient first failure that opens
the breaker sends its incident to the back of the queue. - A
413is skipped ascontext_too_large, with the notethe endpoint refused the request as too large for the model: lower --max-input-tokens. - A chat completion with no content (a refusal, a filter, out of output tokens) is still skipped
at once with reasonendpoint, now with a fixed note that names the kind. - A watch error that repeats with the same text is logged at most once every 5 minutes, with a
foldedfield counting the repeats in between;kausa_watch_errors_totalstill counts every
one (#7). R014also redacts the query and fragment of an HTTP request line without a scheme
(GET /orders?page=2 HTTP/1.1becomesGET /orders?<redacted:query> HTTP/1.1), with an
uppercase method; requests send less.- The help text of
kausa_redactions_totalsays that it counts the requests' redactions; its
series do not change. - After the upgrade, an Explanation may start a new entry once: a repeated incident whose
explanation now redacts differently goes in front instead of counting on the old entry, which
may push the oldest of the five out. Entries written before keep their text until
--history-daysages them out. - The Pod, Event and Deployment watches list in pages of 50 objects instead of 500, which bounds
the memory a page of large objects takes while it is decoded, for about ten times the list
requests (List pages). D004is namedcontainer cannot be created or startedandD011workload cannot create pods or jobs; the names are in requests to the model, in Events and in thedetection.nameof
notifications.- A container waiting in
CrashLoopBackOffwhose last termination isStartErrorisD004, not
D001, asOOMKilledisD003: one incident with no log read, since the container never ran. D011about a CronJob itself is an incident at once instead of waiting for the settle window,
which the CronJob controller's events would never pass. A Job of a CronJob whose Pods are
refused still waits for the window.
Fixed
- An incident whose Pods keep being replaced while it is pending no longer keeps a list of Pod
names that grows without limit: kausa keeps the first 100 names in sorted order, plus the Pods
failing when it settles (#6).
Install
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.5.0/kausa-0.5.0.tgz \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueImage: ghcr.io/fedeam/kausa:0.5.0 (ghcr.io/fedeam/kausa@sha256:23886cc958782c1b3f602db5afe9adedb4a432786a9b703e26f0de312b9e91d8), linux/amd64 and linux/arm64.
Verify
With cosign v3 or later and the GitHub CLI:
cosign verify ghcr.io/fedeam/kausa@sha256:23886cc958782c1b3f602db5afe9adedb4a432786a9b703e26f0de312b9e91d8 \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.5.0 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:23886cc958782c1b3f602db5afe9adedb4a432786a9b703e26f0de312b9e91d8 --repo fedeam/kausa
gh attestation verify kausa-0.5.0.tgz --repo fedeam/kausa \
--bundle kausa-0.5.0.intoto.jsonl
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.5.0 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMSv0.4.1
A fix for Slack notifications, which in v0.4.0 could notify a whole channel, and a stricter
redaction of URLs. Nothing to change in values or permissions.
Added
- Redaction rule
R014: the query and fragment of any URL with a scheme in event text or a log
become?<redacted:query>and#<redacted:fragment>, whatever they hold. It closes the gap
where a kubeletUnhealthynote quoted a probe URL's query as written
(#48).
Fixed
- A
slacknotification could notify a whole channel: a real post on 2026-10-30 showed that Slack
turns a plain@hereor@channelin the text into a mention, although kausa sends
"parse": "none"and nolink_names. The Slack text now carries a word joiner (U+2060) after
every@, as the Telegram text does (#45).
Install
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.4.1/kausa-0.4.1.tgz \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueImage: ghcr.io/fedeam/kausa:0.4.1 (ghcr.io/fedeam/kausa@sha256:88064762d5f21244316c2f47229f30f90600025cd67f4517145368c888e9ee8b), linux/amd64 and linux/arm64.
Verify
With cosign v3 or later and the GitHub CLI:
cosign verify ghcr.io/fedeam/kausa@sha256:88064762d5f21244316c2f47229f30f90600025cd67f4517145368c888e9ee8b \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.4.1 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:88064762d5f21244316c2f47229f30f90600025cd67f4517145368c888e9ee8b --repo fedeam/kausa
gh attestation verify kausa-0.4.1.tgz --repo fedeam/kausa \
--bundle kausa-0.4.1.intoto.jsonl
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.4.1 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMSv0.4.0
The detection rules D011 to D014 (D014, a stuck rollout, from a new Deployment watch), a
richer context for the model (0017) and an optional standby replica, off by default (0019).
Upgrade the image and the chart together, since the new image needs the chart's deployments rule
to become Ready; the fingerprints of D001 and D003 change once, and the default memory limit is
192Mi.
Added
- Detection rule
D011, workload cannot create Pods: a WarningFailedCreateevent about a
ReplicaSet, a Job, a StatefulSet or a DaemonSet (a quota, an admission webhook or Pod Security
admission refused the Pod), an incident about the Deployment, the CronJob or the controller
itself, settled likeD006andD007. - Detection rule
D012, volume claim cannot be provisioned: a WarningProvisioningFailedevent
about a PersistentVolumeClaim, an incident about the claim. A Pod that waits for that claim is
stillD005, a second incident about its workload. - Detection rule
D013, autoscaler cannot get metrics: a WarningFailedGetResourceMetric,
FailedGetContainerResourceMetric,FailedGetPodsMetric,FailedGetObjectMetric,
FailedGetExternalMetric,FailedComputeMetricsReplicasorFailedGetScaleevent about a
HorizontalPodAutoscaler, an incident about the autoscaler. - Detection rule
D014, rollout does not progress: a Deployment whoseProgressingcondition is
Falsewith reasonProgressDeadlineExceeded, not paused and observed at its current
generation, an incident about the Deployment, with one fingerprint per revision. It yields to an
explained incident of the same Deployment (a crash loop, a refused Pod), so a stall is explained
once, and the request carries only the Deployment's replica counts and deadlines (rollout)
(0018. Explain a Deployment past its progress deadline (D014) from a Deployment watch that is
on by default, and add nothing for StatefulSets or DaemonSets). kausa run --no-rolloutsturns the Deployment watch, andD014, off; thestartedline gains
rollouts, and the logdeployment watch error.- The chart's
rolloutsvalue,trueby default (a missing value means on):falsepasses
--no-rolloutsand removes thedeploymentsrule. - An optional standby replica: the chart's
replicaCountvalue,1by default (a missing value
ornullmeans1; anything but1or2is refused). With2, two Pods run with
Recreate, and the chart adds the Lease<fullname>-leader(spec: {}), a Role and
RoleBinding of that name withgetandpatchon that one Lease in the release namespace (the
same in both scopes), a PodDisruptionBudget (maxUnavailable: 1,unhealthyPodEvictionPolicy: AlwaysAllow), a preferred pod anti-affinity whileaffinityis empty, and a paragraph in
NOTES.txt. With1the chart renders as before, byte for byte (0019. Offer an optional
standby replica that takes over through a chart-created Lease, elected by kausa's own
code). kausa run --leader-lease <NAMESPACE>/<NAME>: act only while holding that Lease, as a standby
otherwise, in every mode; it needsPOD_NAME. Thestartedline gainsleader_lease, and the
logstandby,leading,leadership lost,lease released,lease release failedand
lease error.- The gauge
kausa_leader(1while the process acts, which is always without
--leader-lease;0as a standby), and the counterskausa_leadership_changes_total{to}and
kausa_lease_errors_total{call}. /readyzanswers200withstandbyon a replica that waits for the Lease.
Changed
- Requests to the model carry each container's resource requests, each probe's handler, port and
success threshold, the probe path without its query and fragment forD001andD006, the image
pull policy and the number of pull secrets forD002, and an unschedulable Pod's node selector,
affinity and toleration keys (no values butkubernetes.io/osandkubernetes.io/arch) for
D005;--dry-runshows them. Resource quantities are checked against the Kubernetes quantity
grammar. The prompt version is2, so Explanations storepromptVersion"2". No permission,
flag or chart value changes. A tight--max-input-tokensloses log bytes earlier onD001,
D003andD008(0017. Send the model resource requests, probe handlers, image pull settings
and an unschedulable Pod's scheduling keys, reduced and
redacted). R003redacts more names in event messages: the quoted name afterpod,containerand
StorageClass(every name of a list), after a resource qualified by its API group
(deployments.apps "<name>"), and the quota's name inexceeded quota: <name>. These run as a
second pass after the pattern of 0.3.0, which is unchanged, so they only add redactions.- The request names a PersistentVolumeClaim or a HorizontalPodAutoscaler that an incident is about
by its kind (persistentvolumeclaim-1,horizontalpodautoscaler-1), not asObject. - kausa reads Deployments: the chart grants
listandwatchondeployments(apps) in the
ClusterRole and in every Role, whilerolloutsis on. Noget, no write, nothing on
StatefulSets or DaemonSets. - kausa runs three watches, Pods, Warning events and Deployments, on the whole cluster or in each
listed namespace, and/readyzanswers200once all of them have listed (3, or 3 × N; 2 and
2 × N with--no-rollouts).kausa_watch_errors_totalgainswatch="deployments", and an
ended Deployment watch stops kausa withthe deployment watch ended. - Upgrade the chart and the image together: the new image without the
deploymentsrule (the
previous chart's role, RBAC made outside the chart, a read-only proxy) explains everything else
but is never Ready; add the rule or use--no-rollouts. - The chart's default memory limit is
192Mi(was128Mi): with 10,000 unschedulable Pods at the
largest scheduling record kausa peaked at 138.8 MiB (Richer context,
measured). - An Event write (its create, and on a repeat its list and series patch) gives up after 10 seconds
and logsevent write failedwithno answer within 10 seconds; it had no timeout. Each list
and delete of the history sweep is bounded to 10 seconds within the sweep's 30. Both hold with
or without--leader-lease(0019. Offer an optional standby replica that takes over through a
chart-created Lease, elected by kausa's own code).
Fixed
- The fingerprint of a crash loop (
D001) or an out-of-memory kill (D003) no longer depends on
whether kausa saw the container waiting inCrashLoopBackOffor terminated between restarts:
it hashes the container's name instead of the message. The same failure kept its Explanation and
Event names only some of the time, after a restart of kausa for example. These fingerprints
change once on upgrade, so a failure that was already explained gets one new Explanation.
Install
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.4.0/kausa-0.4.0.tgz \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueImage: ghcr.io/fedeam/kausa:0.4.0 (ghcr.io/fedeam/kausa@sha256:bc1b21a9877d8702f00bd81cdd945462cfc041c8daff2cae09abf0fbab4080d1), linux/amd64 and linux/arm64.
Verify
With cosign v3 or later and the GitHub CLI:
cosign verify ghcr.io/fedeam/kausa@sha256:bc1b21a9877d8702f00bd81cdd945462cfc041c8daff2cae09abf0fbab4080d1 \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.4.0 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:bc1b21a9877d8702f00bd81cdd945462cfc041c8daff2cae09abf0fbab4080d1 --repo fedeam/kausa
gh attestation verify kausa-0.4.0.tgz --repo fedeam/kausa \
--bundle kausa-0.4.0.intoto.jsonl
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.4.0 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMSv0.3.0
A namespaced install mode, the explanation history and notifications to one webhook, the last two
off by default. Breaking: the chart's rbac.scope is required on every install and upgrade.
Added
- A namespaced install mode (0013. Offer a namespaced install mode: one watch pair and one Role
per listed namespace, and nothing cluster-wide):
kausa run --namespace <NAME>, repeatable up to 32 times, watches only those namespaces, with
one Pod watch and one event watch each; the chart'srbac.scope=namespacedwith
rbac.namespacesgrants a Role and a RoleBinding in each listed namespace, passes the same list
as--namespace, and creates nothing cluster-scoped. Thestartedlog line names the watched
namespaces (namespaces, ornullfor the whole cluster), andpod watch errorand
event watch errorname the namespace of the failing watch (namespace). - The explanation history, off by default (0014. Keep each incident's full explanations in a
namespaced Explanation resource, off by default):
kausa run --historykeeps each explained incident's whole explanations (up to five distinct
texts, with counts and times) in an Explanation object namedkausa.<fingerprint>in its
namespace, and deletes those older than--history-days(1 to 30, default 7) or beyond 500
objects.--historyneeds--endpointand is refused with--dry-run. The chart's new
historyvalues (enabled: false,days: 7,installCRD: true,readers.aggregate: true)
install the CustomResourceDefinitionexplanations.kausa.fedeam.com
(charts/kausa/files/explanation-schema.json,v1alpha1), a reader ClusterRole aggregated to
view, and the rulelist,create,patchanddeleteonexplanations, only while kausa
writes history; turning it off or uninstalling deletes the CustomResourceDefinition and every
Explanation. New counterskausa_history_writes_total{outcome},
kausa_history_deleted_total{reason}andkausa_history_sweep_errors_total, and the log lines
history write failed,history write refused,history sweep failedandhistory swept. - Notifications, off by default (0015. Post each new explanation to one optional webhook, as
JSON, Slack or Telegram):kausa run --notify-url-file <PATH>
posts each new explanation, after its Event, to the webhook whose URL is in that file, as the
documentedjsonbody (schemakausa.fedeam.com/notification/v1), a Slack incoming webhook's
plain text or a TelegramsendMessage(--notify-format json|slack|telegram,
--notify-telegram-chat-id,--notify-token-filefor a bearer token withjson,
--notify-allow-http). Only the namespace's and the top-level owner's real names are sent;
every other name stays a placeholder, and no field holds a log line or the request (Data sent
in notifications). Needs--endpoint; refused
with--dry-run. The chart's newnotificationsvalues (enabled: false,format: json,
existingSecret,urlKey: url,tokenKey,telegramChatId,allowHttp: false) mount the
Secret that holds the URL, andnetworkPolicy.notifications(to,ports, TCP 443 by default)
adds an egress rule; no RBAC change. New counterskausa_notifications_total{outcome}and
kausa_notifications_retried_total, the log linesnotification sent,notification retried,
notification failedandnotification dropped, and anotificationsfield in thestarted
line. The Slack and Telegram formats are not yet tested against the real services.
Changed
- The chart's
rbac.scopeis required (clusterornamespaced, no default): every
helm installsets it, and so does the firsthelm upgradeof a release installed with an
earlier chart (v0.2.0 or v0.1.0),--reuse-valuesincluded, since its stored values have
none.--set rbac.scope=clusterkeeps the ClusterRole and the whole-cluster watch. Without it,
or with an invalid list, the chart refuses to render and Helm changes nothing, so a values
reset can no longer widen a namespaced install to the whole cluster. /readyzanswers200once every watch has listed: the two of the whole cluster, or the two of
each watched namespace. A watch refused with403drops the records it had brought in (its
namespace's only) and lists again once access is back.- The chart's
templates/clusterrole.yamlbecametemplates/rbac.yaml, and its rules moved to the
kausa.ruleshelper, which the ClusterRole and every Role render. /metricslists three more counters,0unless the history is on:
kausa_history_writes_total,kausa_history_deleted_totaland
kausa_history_sweep_errors_total.
Fixed
- A text of an explanation cut at its limit no longer ends in a space or in part of a
<redacted:…>marker, and cleaning a cleaned text gives the same text: a character removed
between two others can no longer leave a pair that Unicode normalization joins.
Install
helm install kausa https://github.com/fedeam/kausa/releases/download/v0.3.0/kausa-0.3.0.tgz \
-n kausa --create-namespace --set rbac.scope=cluster --set dryRun=trueImage: ghcr.io/fedeam/kausa:0.3.0 (ghcr.io/fedeam/kausa@sha256:cbdaafbef5957ba9b199cdf17665ad81a8200ce1d55240aa5f7cece8eda7f72f), linux/amd64 and linux/arm64.
Verify
With cosign v3 or later and the GitHub CLI:
cosign verify ghcr.io/fedeam/kausa@sha256:cbdaafbef5957ba9b199cdf17665ad81a8200ce1d55240aa5f7cece8eda7f72f \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.3.0 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
gh attestation verify oci://ghcr.io/fedeam/kausa@sha256:cbdaafbef5957ba9b199cdf17665ad81a8200ce1d55240aa5f7cece8eda7f72f --repo fedeam/kausa
gh attestation verify kausa-0.3.0.tgz --repo fedeam/kausa \
--bundle kausa-0.3.0.intoto.jsonl
cosign verify-blob SHA256SUMS --bundle SHA256SUMS.sigstore.json \
--certificate-identity https://github.com/fedeam/kausa/.github/workflows/release.yml@refs/tags/v0.3.0 \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
sha256sum -c SHA256SUMS