Repository navigation
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.mdsection 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 isschema_invalidand 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 inactor.rolesorredaction.fieldsis
schema_invalidat decode level, and a missingredaction.fieldsor an
emptytime.occurred_at,time.read_atorpolicy.statusis
schema_invalidat step 4, as in Python and the browser verifier.
Before, Go accepted them. - Null members (
SPEC.mdsection 3.2). A member of the record other
thanpayload, and a member of a typed sub-object, must not benull,
whether it is required or optional. A null optional member oftime,
actororpolicyis nowschema_invalidat step 4 in all three
verifiers; before, all three read it as absent and accepted the record. signature.sigis exactly 86 base64url characters (SPEC.md
section 5). In the Go verifier and the Action, asigwith a carriage
return or line feed in it isschema_invalidand, 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,profileorschemavalue 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 asschema_invalid, and it took aschemavalue 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 fromgowebpki/jcsv1.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=valuenames the same flags as--name value:
an unknown name is a usage error (exit code 2), and a boolean flag takes
onlytrueorfalse. Before,verifyignored 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.