Skip to content

v0.2.3

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 11:00

Try it: go install github.com/RainerGewalt/trail-evidence/go/cmd/trail-evidence@v0.2.3, then trail-evidence verify journal.jsonl; or drop a journal on https://rainergewalt.github.io/trail-evidence/ (nothing is uploaded).

Binaries for Linux, macOS and Windows (amd64, arm64) are attached; each
archive contains LICENSE and SPEC.md, and checksums.txt holds the
SHA-256 of every archive. Python: pip install trail-evidence==0.2.3
(uploaded to PyPI by the same release workflow through trusted
publishing). GitHub Action: RainerGewalt/trail-evidence@v0.2.3.

Changes in 0.2.3, from CHANGELOG.md:

No hash changes: a journal whose records keep the rules below verifies as
before.

Fixed

  • Exact member names (SPEC.md section 6.3, step 3). Member names of
    the record and of its typed sub-objects are compared exactly, code point
    for code point after escapes are decoded. A name that differs from a
    defined one only in case or by Unicode folding is an unknown member: the
    record is schema_invalid and takes no part in the chain. Before, the Go
    verifier and the GitHub Action read such a name as the defined member and
    could accept a record that Python and the browser verifier reject.
  • Member types in typed sub-objects. In the Go verifier and the Action,
    a null element in actor.roles or redaction.fields is
    schema_invalid at decode level, and a missing redaction.fields or an
    empty time.occurred_at, time.read_at or policy.status is
    schema_invalid at step 4, as in Python and the browser verifier.
    Before, Go accepted them.
  • Null members (SPEC.md section 3.2). A member of the record other
    than payload, and a member of a typed sub-object, must not be null,
    whether it is required or optional. A null optional member of time,
    actor or policy is now schema_invalid at step 4 in all three
    verifiers; before, all three read it as absent and accepted the record.
  • signature.sig is exactly 86 base64url characters (SPEC.md
    section 5). In the Go verifier and the Action, a sig with a carriage
    return or line feed in it is schema_invalid and, with a key,
    signature_invalid, as in Python and the browser verifier. Before, Go
    skipped the line break and verified the signature.
  • Python: patterns cover the whole string. A seq, event_type,
    timestamp, hash, profile or schema value that ends in a line feed is
    not well-formed. Before, the Python verifier accepted one line feed at the
    end of such a value: it passed records that Go and the browser verifier
    report as schema_invalid, and it took a schema value ending in a line
    feed for the name of another format (outside_scope).
  • Go canonicalisation sorts the members of an object once
    (go/internal/jcs, derived from gowebpki/jcs v1.0.1). The output is
    byte for byte the same; the time no longer grows quadratically with the
    number of members of an object. No verdict changes.
  • Browser verifier: a record line is trimmed of JSON white space by an
    index loop instead of a regular expression, so the time no longer grows
    quadratically with a run of white space inside the line. No verdict
    changes.
  • Go CLI flags. --name=value names the same flags as --name value:
    an unknown name is a usage error (exit code 2), and a boolean flag takes
    only true or false. Before, verify ignored an unknown or misspelled
    flag written with =, and a boolean flag with any value other than
    true (--require-signatures=1) was silently off.

Security advisories

  • GHSA-5h2r-r6xm-4mr5 (Moderate): the Go verifier and the Action accepted records the Python and browser verifiers reject.
  • GHSA-64cp-9j5f-v7gw (Low): quadratic-time processing in Go canonicalisation and the browser line trim.
  • GHSA-r5q4-fq47-4mxq (Low): the CLI ignored flags written as --name=value.
  • GHSA-ggr4-5x62-rm9h (Low): the Python verifier accepted a trailing line feed in pattern-checked members.