Skip to content

Releases

v0.6.3

Choose a tag to compare

@github-actions github-actions released this 20 Nov 14:59
bbc40ab

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 its BackOff event
    (pod=<name>_<namespace>(<uid>)), and R012 let 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 error or deployment watch error line of the new text is
    preceded by a line of the old text with its folded count. Errors whose text carries a key,
    such as k3s's etcd event received with PrevKv=nil (key=...), change text every time.
  • /metrics, /healthz and /readyz no longer answer 405 to a GET that 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 with etcd event received with PrevKv=nil on 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 in kausa_watch_errors_total and the list in
    kausa_watch_relists_total, and kausa_watch_restarts_total still 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=true

The 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/arm64 ghcr.io/fedeam/kausa@sha256:fd04249a2618f194f5710d23e2711beed63ea9477ef59e7af557317a3909cc7e.
  • Chart: oci://ghcr.io/fedeam/charts/kausa, version 0.6.3
    (ghcr.io/fedeam/charts/kausa@sha256:199ee1b4c3378e5eef100a6f72362e64fea7af921b3dce75da48f2f914e437b8), the same bytes as kausa-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/null

To 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=true

With 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.3

v0.6.2

Choose a tag to compare

@github-actions github-actions released this 09 Nov 17:15
b5fdd6b

Fixed

  • An expired resource version (410 in a watch) is no longer a watch error: it gives no
    pod watch error, event watch error or deployment watch error line and is not counted in
    kausa_watch_errors_total, since the watcher lists again and kausa_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, the lease error hint on a 404 also 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 default resource.exclusions skip
    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=true

The 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/arm64 ghcr.io/fedeam/kausa@sha256:3f984d3492f6b0726ddb92eb8feabf85ad02356a5b8b411937231ae9b57d2443.
  • Chart: oci://ghcr.io/fedeam/charts/kausa, version 0.6.2
    (ghcr.io/fedeam/charts/kausa@sha256:8fe6180ce4947b8cdaf09b847ac36bc04c67a04c1af9614dcf7ee3dd45960407), the same bytes as kausa-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/null

To 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=true

With 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.2

v0.6.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 15:10
a87d16b

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
    promtool unit 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.yml holds the repository's ID,
    which the release pushes to ghcr.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,
    oc or k deleting namespaces, projects, nodes, CRDs or everything, with --all, -A,
    --force or 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,
    with low confidence (Withheld command shapes,
    0025). The explanation log line gains withheld and model_confidence, and the new counter
    kausa_answers_withheld_total counts these answers. No values or permissions change; the Event
    stays Normal and Explained, 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=true

The 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/arm64 ghcr.io/fedeam/kausa@sha256:28a90fa97a4823a88e90e5e2c5c7d374a71ff202692c6009329c5b43f946971b.
  • Chart: oci://ghcr.io/fedeam/charts/kausa, version 0.6.1
    (ghcr.io/fedeam/charts/kausa@sha256:1782aed4370101cfcb1e9b0363c08355792f5005f6d88e4fd6a545875a87178e), the same bytes as kausa-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/null

To 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=true

With 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.1

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 21:11
299e768

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 with promtool check rules and unit-tests each threshold,
    window and for with promtool test rules. Alerts explains each
    alert and what to do when it fires; each alert's runbook_url links its section.
  • Seven metrics: kausa_build_info{version, prompt_version} (always 1),
    kausa_model_call_duration_seconds{outcome} (a histogram of the model calls, whose _count
    equals kausa_model_calls_total), kausa_watch_relists_total{watch} and
    kausa_watch_restarts_total{watch} (new watchers after a 403), kausa_records{kind},
    kausa_owner_cache_entries and kausa_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 .tgz stays on each GitHub release.
  • Each release attests a CycloneDX SBOM to the image of each architecture and attaches both; the
    binary is built with cargo 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_total and
    kausa_leadership_changes_total) show a 0 series for each value from the start, in the modes
    that can count them, so that the first increase after a start is seen; their unlabelled 0
    line is gone, and a dashboard that matched it changes.
  • The example alert on a spent daily budget, now KausaDailyCallBudgetSpent, matches the leader
    gauge with ignoring(window) instead of on (pod), so it needs no pod label 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 once increase extrapolates.
    It and KausaNoLeader add up a release's Pods by (namespace, job).
  • Requests about a workload controller, a claim or an autoscaler (D011 to D013) and a stalled
    rollout (D014) carry one of two new fixed system messages, which say that the request has no
    Pod and, for D014, what its fields and events mean. The prompt version is 3, so new
    Explanation entries store promptVersion "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=true

The 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/arm64 ghcr.io/fedeam/kausa@sha256:db934367f8313311795a517fadd81cf42482e7149c575ddb8b58e9256d9051b4.
  • Chart: oci://ghcr.io/fedeam/charts/kausa, version 0.6.0
    (ghcr.io/fedeam/charts/kausa@sha256:715fd6a3637c743b618517d04e4d9f9cc452d387cc6384302142bbb9751b232b), the same bytes as kausa-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/null

To 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=true

With 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.0

v0.5.2

Choose a tag to compare

@github-actions github-actions released this 04 Nov 18:39
9e50249

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…):
    R010 took the kind in the kubelet's volume "credentials" : secret "<name>" not found for the
    key's value, so R003 no longer saw secret "<name>". A kind followed by a quoted name is no
    longer a value for R010, and R003 redacts the name. Found by the known-cause corpus's
    no-volume entry; 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=true

Image: 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 SHA256SUMS

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 03 Nov 17:28
1cee43e

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 of rejected: its OpenAI-compatible endpoint answers it with a 400
    (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=true

Image: 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 SHA256SUMS

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 12:48
0a47dc9

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

  • R011 redacts 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–R014 before 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 the answer_redactions field of the
    explanation log 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 the redact and validate fuzz 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, and kausa_explanation_queue_length (at most 16), rendered with --endpoint or
    --dry-run. A gauge never set is not rendered.
  • An explanations waiting log line (reason, queued, next_call_in_seconds), once when
    incidents start waiting for the budget, and a waiting_for_budget field on explanation dropped (0021).
  • D008 also explains a Job failed by its podFailurePolicy (PodFailurePolicy) and an indexed
    Job with failed indexes (MaxFailedIndexesExceeded, FailedIndexes): every reason the Job
    controller gives a failed Job.
  • D011 also explains a CronJob whose Jobs the API server refuses (a quota, an admission webhook),
    from its FailedCreate event; the CronJob is the incident's object.
  • D002 also explains ErrImageNeverPull: imagePullPolicy: Never and an image the node cannot
    use, absent or not usable with the Pod's credentials.
  • D004 also explains a container whose process the runtime cannot start (RunContainerError,
    and CrashLoopBackOff after a StartError), such as an entrypoint missing from the image.
  • R003 redacts the container and the Pod named in the Job controller's podFailurePolicy notes.
  • 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 one endpoint check line that names the step that failed, its cause
    and a hint; exit 0 passed, 1 failed, 2 usage error
    (0020).
  • --model-timeout on kausa run and kausa check-endpoint: a call's total timeout, 10 to 600
    seconds, 120 by default; the started line shows it as model_timeout_seconds.
  • The chart's helm test: a Pod <fullname>-endpoint-check that runs kausa check-endpoint with
    no ServiceAccount token, created only by helm test, and, with networkPolicy.enabled, its own
    NetworkPolicy with egress to DNS and the endpoint only. The values model.timeoutSeconds (120)
    and endpointCheck.enabled (true).
  • Two gauges: kausa_endpoint_state{state} (closed, half_open, open) and
    kausa_model_last_success_timestamp_seconds; the skip reason endpoint_unavailable; the log
    lines endpoint unavailable and endpoint available; cause and queued on explanation retried, and cause and status on endpoint 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 every 3600/N seconds 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
    ExplanationSkipped Event (reason budget). 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_large came
    before, and delayed retries no longer take the queue past 16.
  • A failed model call gets a cause and a class (Causes):
    a quota 429 (insufficient_quota) and a 402 are no longer retried, nor a redirect, a refused
    key, a missing model or an answer that is not a chat completion; Retry-After is honoured on
    429 and 503, 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 as endpoint_unavailable. A transient first failure that opens
    the breaker sends its incident to the back of the queue.
  • A 413 is skipped as context_too_large, with the note the 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 reason endpoint, 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
    folded field counting the repeats in between; kausa_watch_errors_total still counts every
    one (#7).
  • R014 also redacts the query and fragment of an HTTP request line without a scheme
    (GET /orders?page=2 HTTP/1.1 becomes GET /orders?<redacted:query> HTTP/1.1), with an
    uppercase method; requests send less.
  • The help text of kausa_redactions_total says 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-days ages 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).
  • D004 is named container cannot be created or started and D011 workload cannot create pods or jobs; the names are in requests to the model, in Events and in the detection.name of
    notifications.
  • A container waiting in CrashLoopBackOff whose last termination is StartError is D004, not
    D001, as OOMKilled is D003: one incident with no log read, since the container never ran.
  • D011 about 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=true

Image: 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 SHA256SUMS

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 30 Oct 19:24
e45bb97

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 kubelet Unhealthy note quoted a probe URL's query as written
    (#48).

Fixed

  • A slack notification could notify a whole channel: a real post on 2026-10-30 showed that Slack
    turns a plain @here or @channel in the text into a mention, although kausa sends
    "parse": "none" and no link_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=true

Image: 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 SHA256SUMS

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 12:48
da2bdf2

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 Warning FailedCreate event 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 like D006 and D007.
  • Detection rule D012, volume claim cannot be provisioned: a Warning ProvisioningFailed event
    about a PersistentVolumeClaim, an incident about the claim. A Pod that waits for that claim is
    still D005, a second incident about its workload.
  • Detection rule D013, autoscaler cannot get metrics: a Warning FailedGetResourceMetric,
    FailedGetContainerResourceMetric, FailedGetPodsMetric, FailedGetObjectMetric,
    FailedGetExternalMetric, FailedComputeMetricsReplicas or FailedGetScale event about a
    HorizontalPodAutoscaler, an incident about the autoscaler.
  • Detection rule D014, rollout does not progress: a Deployment whose Progressing condition is
    False with reason ProgressDeadlineExceeded, 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-rollouts turns the Deployment watch, and D014, off; the started line gains
    rollouts, and the log deployment watch error.
  • The chart's rollouts value, true by default (a missing value means on): false passes
    --no-rollouts and removes the deployments rule.
  • An optional standby replica: the chart's replicaCount value, 1 by default (a missing value
    or null means 1; anything but 1 or 2 is refused). With 2, two Pods run with
    Recreate, and the chart adds the Lease <fullname>-leader (spec: {}), a Role and
    RoleBinding of that name with get and patch on that one Lease in the release namespace (the
    same in both scopes), a PodDisruptionBudget (maxUnavailable: 1, unhealthyPodEvictionPolicy: AlwaysAllow), a preferred pod anti-affinity while affinity is empty, and a paragraph in
    NOTES.txt. With 1 the 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 needs POD_NAME. The started line gains leader_lease, and the
    log standby, leading, leadership lost, lease released, lease release failed and
    lease error.
  • The gauge kausa_leader (1 while the process acts, which is always without
    --leader-lease; 0 as a standby), and the counters kausa_leadership_changes_total{to} and
    kausa_lease_errors_total{call}.
  • /readyz answers 200 with standby on 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 for D001 and D006, the image
    pull policy and the number of pull secrets for D002, and an unschedulable Pod's node selector,
    affinity and toleration keys (no values but kubernetes.io/os and kubernetes.io/arch) for
    D005; --dry-run shows them. Resource quantities are checked against the Kubernetes quantity
    grammar. The prompt version is 2, so Explanations store promptVersion "2". No permission,
    flag or chart value changes. A tight --max-input-tokens loses log bytes earlier on D001,
    D003 and D008 (0017. Send the model resource requests, probe handlers, image pull settings
    and an unschedulable Pod's scheduling keys, reduced and
    redacted
    ).
  • R003 redacts more names in event messages: the quoted name after pod, container and
    StorageClass (every name of a list), after a resource qualified by its API group
    (deployments.apps "<name>"), and the quota's name in exceeded 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 as Object.
  • kausa reads Deployments: the chart grants list and watch on deployments (apps) in the
    ClusterRole and in every Role, while rollouts is on. No get, 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 /readyz answers 200 once all of them have listed (3, or 3 × N; 2 and
    2 × N with --no-rollouts). kausa_watch_errors_total gains watch="deployments", and an
    ended Deployment watch stops kausa with the deployment watch ended.
  • Upgrade the chart and the image together: the new image without the deployments rule (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 (was 128Mi): 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 logs event write failed with no 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 in CrashLoopBackOff or 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=true

Image: 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 SHA256SUMS

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Oct 13:42
f61315b

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's rbac.scope=namespaced with
    rbac.namespaces grants a Role and a RoleBinding in each listed namespace, passes the same list
    as --namespace, and creates nothing cluster-scoped. The started log line names the watched
    namespaces (namespaces, or null for the whole cluster), and pod watch error and
    event watch error name 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 --history keeps each explained incident's whole explanations (up to five distinct
    texts, with counts and times) in an Explanation object named kausa.<fingerprint> in its
    namespace, and deletes those older than --history-days (1 to 30, default 7) or beyond 500
    objects. --history needs --endpoint and is refused with --dry-run. The chart's new
    history values (enabled: false, days: 7, installCRD: true, readers.aggregate: true)
    install the CustomResourceDefinition explanations.kausa.fedeam.com
    (charts/kausa/files/explanation-schema.json, v1alpha1), a reader ClusterRole aggregated to
    view, and the rule list, create, patch and delete on explanations, only while kausa
    writes history; turning it off or uninstalling deletes the CustomResourceDefinition and every
    Explanation. New counters kausa_history_writes_total{outcome},
    kausa_history_deleted_total{reason} and kausa_history_sweep_errors_total, and the log lines
    history write failed, history write refused, history sweep failed and history 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
    documented json body (schema kausa.fedeam.com/notification/v1), a Slack incoming webhook's
    plain text or a Telegram sendMessage (--notify-format json|slack|telegram,
    --notify-telegram-chat-id, --notify-token-file for a bearer token with json,
    --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 new notifications values (enabled: false, format: json,
    existingSecret, urlKey: url, tokenKey, telegramChatId, allowHttp: false) mount the
    Secret that holds the URL, and networkPolicy.notifications (to, ports, TCP 443 by default)
    adds an egress rule; no RBAC change. New counters kausa_notifications_total{outcome} and
    kausa_notifications_retried_total, the log lines notification sent, notification retried,
    notification failed and notification dropped, and a notifications field in the started
    line. The Slack and Telegram formats are not yet tested against the real services.

Changed

  • The chart's rbac.scope is required (cluster or namespaced, no default): every
    helm install sets it, and so does the first helm upgrade of a release installed with an
    earlier chart (v0.2.0 or v0.1.0), --reuse-values included, since its stored values have
    none. --set rbac.scope=cluster keeps 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.
  • /readyz answers 200 once every watch has listed: the two of the whole cluster, or the two of
    each watched namespace. A watch refused with 403 drops the records it had brought in (its
    namespace's only) and lists again once access is back.
  • The chart's templates/clusterrole.yaml became templates/rbac.yaml, and its rules moved to the
    kausa.rules helper, which the ClusterRole and every Role render.
  • /metrics lists three more counters, 0 unless the history is on:
    kausa_history_writes_total, kausa_history_deleted_total and
    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=true

Image: 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