Skip to content

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 04 Nov 21:11
· 39 commits to main since this release
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