Repository navigation
Releases
v0.2.3
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.
v0.2.2
Try it: go install github.com/RainerGewalt/trail-evidence/go/cmd/trail-evidence@v0.2.2, 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.2
(uploaded to PyPI by the same release workflow through trusted
publishing). GitHub Action: RainerGewalt/trail-evidence@v0.2.2.
Changes in 0.2.2, from CHANGELOG.md:
Fixes to how the verifiers read a journal and what they report. No hash
changes: a journal whose lines keep the reading rules below verifies as
before, and the journals of the TrailSource demo and interop runs give the
same verdicts as with 0.2.1. Releases 0.2.0 and 0.2.1 are affected by the
fixed behaviour in all three verifiers and in the GitHub Action.
Fixed
- Reading rules (
SPEC.mdsection 2). A record line is one JSON object:
valid UTF-8, no member name twice in one object at any depth (compared
after decoding escapes), no unpaired surrogate escape, at most 64 levels
of nesting, and nothing but JSON white space around it; only JSON white
space makes a line blank, and lines end at a line feed only. A line that
breaks a rule isschema_invalid. Before, the Go, Python and JavaScript
verifiers read such lines differently and could reach different verdicts
on the same file, and some lines passed as valid. The Python CLI and the
browser page now read journals as bytes and decode each line on its own,
so a line that is not UTF-8 is one invalid record instead of an
exception or a silently replaced character. - Empty journal. A journal without a record (an empty file, or only
blank lines) isincompleteand fails with exit code 3, also with
--allow-incomplete. Before, it wasvalidwith exit code 0. - Read errors. A journal that cannot be read to its end (a directory, a
missing or unreadable file, an error while reading) gets no verdict and no
report: exit code 2 and one message. Before, the Go verifier and the
Action reported a directory as a valid journal. Go:Report.Err. - Python no longer ends with a traceback on bytes that are not UTF-8 or
on deep nesting. - Browser page: Enter on the example links loads the examples (it
opened the file chooser); the "What this verdict covers" block is correct
for an empty file, lines that are not a record, a single record and in
singular and plural; the previous result is hidden when a check cannot
run; the static text points to section 6.6 instead of 6.3 and no longer
says that no record was removed.
Changed
- The summary lines of the three verifiers say what was not checked:
signatures not checked (no key),no record is signed, the number of
verified signatures whenever a key was given, unsigned records, and
with unknown profile (payload not checked). The JSON report is
unchanged. - The Action's job summary has a column "Signatures verified" ("not checked
(no key)" withoutpubkey) and a line that says what the verdict does
not cover. SPEC.mdsection 6.6 names records cut off at the end of a journal, the
members that are not hashed (redactionamong them), signatures removed
withoutrequire signatures, and duplicate member names; README and the
page say the same.- Conformance:
testdata/streams/has fixtures for every reading rule, for
empty journals and for the documented limits;scripts/conformance.sh
checks that a journal that cannot be read gets exit code 2 and no report
(SPEC.mdsection 10, item 4);scripts/crosscheck.shcompares the
summary lines of the three verifiers word for word. web/test/browser.mjschecks the page in headless Chrome (keyboard, file
input, edge cases) and renews the README screenshots, which now show the
coverage block.- Release: the release page starts with a command to try and carries the
CHANGELOG.md section of the tag as its notes (scripts/release-notes.sh,
which fails when the section is missing); the stale sentence about PyPI
"once it is set up" is gone.release.ymlgivescontents: writeonly to
the jobs that create the release and push the module tag. - CI tests Python 3.10 and 3.11 as well, the versions the package
classifiers name.
Since 0.2.1, already on main
- The browser page says what a verdict covers and what it does not (#8).
- README leads with the question and the browser verifier (#6).
- CI runs the Python matrix on ubuntu-24.04, so that Python 3.9 stays
testable (#7). - An evaluation report form, an honest support statement and a private
security path inSECURITY.md(#4).
Security advisory: GHSA-55rh-j682-vgvp (moderate).
v0.2.1
Trail Evidence Record verifier v0.2.1. Binaries for Linux, macOS and
Windows (amd64, arm64); each archive contains LICENSE and SPEC.md,
checksums.txt holds the SHA-256 of every archive.
Other ways to install: go install github.com/RainerGewalt/trail-evidence/go/cmd/trail-evidence@v0.2.1
(needs the module tag go/v0.2.1, which the release workflow pushes),
pip install trail-evidence (uploaded by the release workflow through
PyPI trusted publishing once it is set up, see docs/RELEASING.md),
or the GitHub Action RainerGewalt/trail-evidence@v0.2.1.
v0.2.0
Trail Evidence Record verifier v0.2.0. Binaries for Linux, macOS and
Windows (amd64, arm64); each archive contains LICENSE and SPEC.md,
checksums.txt holds the SHA-256 of every archive.
Other ways to install: go install github.com/RainerGewalt/trail-evidence/go/cmd/trail-evidence@v0.2.0
(needs the module tag go/v0.2.0, which the release workflow pushes),
pip install trail-evidence (uploaded by the release workflow through
PyPI trusted publishing once it is set up, see docs/RELEASING.md),
or the GitHub Action RainerGewalt/trail-evidence@v0.2.0.
v0.1.0
Trail Evidence Record verifier v0.1.0. Binaries for Linux, macOS and
Windows (amd64, arm64); each archive contains LICENSE and SPEC.md,
checksums.txt holds the SHA-256 of every archive.
Other ways to install: go install github.com/RainerGewalt/trail-evidence/go/cmd/trail-evidence@v0.1.0
(needs the module tag go/v0.1.0, which the release workflow pushes),
pip install trail-evidence (uploaded manually, see docs/RELEASING.md),
or the GitHub Action RainerGewalt/trail-evidence@v0.1.0.