Skip to content

v0.6.3

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 14:59
· 9 commits to main since this release
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