<!--
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: 2026 ndaal Informationstechnik GmbH & Co KG, Cologne
SPDX-FileCopyrightText: Author: Pierre Gronau <Pierre.Gronau@ndaal.eu>
-->
# Changelog
All notable changes to this project are documented here. The format is based on
[Keep a Changelog](https://keepachangelog.com/) and this project adheres to
[Semantic Versioning](https://semver.org/).
## [Unreleased]
## [1.2.19] - 2026-10-26
### Added
- **Upload menu.** A new **Upload** tab, right after Dashboard as in the ndaal
sbom-auditor, sends a SARIF file from the browser (`GET`/`POST /upload`,
multipart). The file is validated against its SARIF schema and admitted
through the same path as Import (`import::admit_bytes`); success redirects
`303` to the new log, a file that is not SARIF is `422`, a malformed body is
`400`, a cross-site request is `403`. The multipart parser (`src/upload.rs`),
the `same_origin` CSRF gate and the capped body reader are ported from
sbom-auditor with their tests. The page is translated in English, German and
French; other languages show the English text until translated.
- **POST routes in the router.** `RouterBuilder::post`, body handlers that
receive the request body as bytes, an `Allow` header that lists the methods
registered for the path, and a 64 MiB body cap (`413`) shared by HTTP/1.1,
HTTP/2 and HTTP/3. The HTTP/3 request loop used to discard request bodies; it
now reads them, and a test with a real QUIC client covers it. `POST /upload`
is the first write route that checks `Origin` / `Sec-Fetch-Site`; the three
`GET` actions in arc42 risk R-3 still do not.
- **Tests for the upload path.** The router and `same_origin` unit tests;
`tests/test_upload.rs` (11 cases); `tests/test_upload_h3.rs` (a real QUIC
client); ten property tests in `tests/proptest_upload.rs` (the CSRF gate,
verbatim multipart content, a safe basename for any client file name, an
exact 413 boundary, 405 with `Allow` for any other method, and `admit_bytes`
never overwriting a log); a `proptest-state-machine` model test of
`SarifStore` (`tests/proptest_state_machine_store.rs`); the Bruno `upload/`
folder and `pages/07-upload-page.bru`; the Playwright `upload.spec.ts`.
Injected bugs in the gate, the body cap and the file-name sanitiser each fail
them.
- **Fuzz targets** `fuzz_multipart_parse`, `fuzz_same_origin`,
`fuzz_upload_request` and `fuzz_return_path`. New dev-dependency
`proptest-state-machine` 0.9; `memchr` 2.8 is now a direct dependency for the
multipart boundary search (already in the tree, so no new crate).
### Fixed
- **Two fuzz targets that no longer compiled.** `fuzz_html_render` and
`fuzz_report_html` had been broken since the language work added a `Lang`
parameter to `html::page` and `report_html`; `cargo fuzz run <target>` builds
only the target named, so it went unnoticed. Both are repaired, now fuzz
across all 46 languages and assert the translated verdict.
- The six `#[tokio::test]` router tests are skipped under Miri, which cannot
emulate the `kqueue` call tokio's I/O driver makes on macOS.
### Changed
- **Main menu order.** The navbar now reads Dashboard, Upload, Import, Export,
Validate: Upload sits right after Dashboard, and Validate moved from before
Export to right after it. Pinned by a unit test
(`main_tabs_are_ordered_dashboard_upload_import_export_validate`), a Bruno
test (`pages/06-main-menu-order.bru`) and a Playwright test
(`navigation.spec.ts`, English and German). The User Guide names the order.
- Import and Upload share one admission path, `import::admit_bytes`.
## [1.2.18] - 2026-10-26
### Security
- **Open redirect in the language switcher.** `routes::lang::return_path`
built the post-switch redirect from the `Referer` path. `http::Uri` accepts a
backslash, so a `Referer` of `https://attacker.example/\evil.example` gave
the location `/\evil.example`, which browsers read as `//evil.example`. A
backslash anywhere in the path now falls back to `/`. Found by the new
property test `return_path_never_leaves_this_origin`
(`tests/proptest_boundaries.rs`), which also covers `parse_query` and the
sidecar digests.
Advisory: ndaal-sa-2026-1104 (CWE-601, CVSS v3.1 4.7, v4.0 2.1; affects
1.1.16 and 1.2.17, fixed in 1.2.18).
### Changed
- **`sha3` 0.11 -> 0.12 (breaking).** 0.12 moved the SHAKE types into the new
`shake` crate, so `Shake256` is now imported from `shake` 0.1 (which pulls in
`sponge-cursor`). The `.shake256-512` and `.sha3-512` sidecar digests are
unchanged; the FIPS-202 known-answer tests still pass.
- **`lo_core` / `lo_writer` 0.4 -> 0.5 (breaking).** No source change was
needed: the Markdown, ODT and PDF export tests pass unchanged. The release
adds 13 transitive crates (`image`, `image-webp`, `moxcms`, `fontdb`,
`fontconfig-parser`, `memmap2`, `subsetter` and others) and moves `lo_math`,
`lo_odf` and `lo_zip` to 0.5.
- **`jsonschema` 0.48 -> 0.60 (breaking).** No source change was needed: the
`resolve-file` feature and the `validator_for` / `Validator` API we use are
unchanged, and the SARIF validation tests pass. `jsonschema-regex`,
`jsonschema-value`, `referencing`, `fancy-regex` and `fraction` move with it.
### Added
- **Boundary property tests** (`tests/proptest_boundaries.rs`): the redirect
target of the language switcher stays on this origin, `parse_query`
round-trips a percent-encoded value and never panics, and every checksum
sidecar holds the digest an independent hash crate computes.
- `tests/proptest_state_machine_store.rs`: a `proptest-state-machine` test of
`SarifStore`. A model of ids in insertion order is driven in lock-step with
the real store over 256 random sequences of up to 39 inserts, unique
inserts, removes and gets; ids come from a tiny alphabet so collisions are
constant. Two injected bugs (an insert that keeps duplicates, a unique-id
search that skips `-2`) each fail it. New dev-dependency
`proptest-state-machine` 0.9.
- Fuzz target `fuzz_return_path` for the language switcher's redirect target.
- **Five CSAF advisories.** `ndaal-sa-2026-1104` is the security advisory for
the open redirect above. `ndaal-sa-2026-1100` (`sha3`), `1101`
(`lo_writer`), `1102` (`lo_core`) and `1103` (`jsonschema`) are
informational advisories (CVSS 0.0) for the breaking bumps, generated by
`csaf/generate_dependency_bumps_1100_1103.py`; 1104 by
`csaf/generate_advisory_1104.py`.
## [1.2.17] - 2026-10-25
### Changed
- **Dependency refresh (`cargo update`).** 80 crates moved in `Cargo.lock`; there
is no `Cargo.toml` or source change. `tokio` 1.53.1 -> 1.54.1 fixes
RUSTSEC-2026-0386 (`AsyncFd::new` violates I/O safety); sarif-viewer was not
affected, because nothing in its dependency graph calls `AsyncFd`. The direct
dependencies moved are `hyper` 1.12.0, `hyper-rustls` 0.27.10, `hyper-util`
0.1.21, `rustls-native-certs` 0.8.5, `self_update` 1.3.2, `serde_json` 1.0.154,
`sha2` 0.11.1, `tokio-rustls` 0.26.6 and, as a dev-dependency, `proptest`
1.12.0. On the updated tree `cargo check`, `cargo fmt --check`, clippy with
`-D warnings`, the full test suite and the doc tests pass, and `cargo audit`
goes from two findings to one (`ttf-parser` unmaintained, RUSTSEC-2026-0192,
unchanged).
### Added
- **55 CSAF advisories** `ndaal-sa-2026-961` to `1015`, one per crate moved by
the refresh, with derive, macro, `-sys` and data siblings folded into their
parent. 54 are informational (CVSS 3.1 and 4.0 both 0.0, stated in a note);
`ndaal-sa-2026-1000` records `tokio` as a VEX with CVSS 3.1 7.0 and 4.0 7.3.
Generated by `csaf/generate_dependency_bumps_961_1015.py`; each has five
checksum sidecars and passes `csaf-validator`.
## [1.1.16] - 2026-10-25
### Added
- **The UI in 46 languages**, as sbom-auditor: a language picker in the
navigation lists each language by its endonym, the `sba_lang` cookie
(`Secure`, `HttpOnly`, `SameSite=Lax`, one year) pins the choice, and
`Accept-Language` decides when no cookie is set. `GET /lang/{code}` sets the
cookie and redirects to the referring path only, so it is not an open
redirect. The navigation, the dashboard, the import, validate and export
pages and the 404 page are translated; the Info pages and the validator's
own messages stay English. The 45 translations are machine-translated and
pending native review. Covered by route and unit tests, property tests, the
`fuzz_i18n_resolve` target, four Bruno requests and a Chromium Playwright
spec.
### Changed
- Every Bruno request's `seq` now equals its `NN-` file prefix (it was a mix of
`1`, `01`, `4` and `05`). The two Info-menu route tests select the Info
dropdown specifically, because the language picker shares its classes.
## [1.1.15] - 2026-10-22
### Fixed
- Attribute order in the export chooser, the export form and the import result
(`class` before `href`, `action` before `method`, `class id name type value`
on inputs): htmlhint's `attr-sorted` rule flagged 15 findings on those pages.
htmlhint is now clean on 22 rendered pages.
- **The mutation score reported for 1.1.14 was not a whole-crate score.** The
first whole-crate run reported 83.2 % (109 caught, 22 missed), and the 1.1.14
entry below quotes figures from it. But 594 of its 725 mutants were filed as
"unviable": on most rebuilds of a mutated tree rustc crashed under incremental
compilation (at least 309 logs say "the compiler unexpectedly panicked", a
dep-graph error), and cargo-mutants counts a failed build as unviable. So only
131 mutants were tested, and the true whole-crate score is not known. The
published 1.1.14 GitLab notes were corrected; the crate on crates.io and its
embedded CHANGELOG cannot be.
`[profile.mutants]` now sets `incremental = false`, with the reason beside it.
A full re-run (728 mutants) is the measurement to quote.
### Added
- **Description, author, Open Graph and Twitter card tags** (14 `<meta>` tags) in
the head of every full page, and **`/social-preview.png`**, the 1200 x 630 link
preview image they name, embedded in the binary (28 KB, cached for a day).
Written by one constant, `HEAD_META` in `src/html.rs`, so no page can forget
them. The URLs are fixed to `https://sarif.ndaal.eu/`. The image is drawn from
ndaal design tokens, the bundled Roboto and the bundled logo
(`src/static/img/social-preview.svg`) and needs a design review. Pinned by
four route tests and a unit test, three Bruno requests (`pages/05`, `info/13`,
`static/05`) and a Playwright spec (`head-meta.spec.ts`, 24 runs on Chromium
and Firefox). Specification: `skills/html-meta-tags-sarif` in nvulnlookup.
In the `og:` tags `content` precedes `property` because htmlhint's
`attr-sorted` rule requires that order.
- **Fifteen unit tests that kill mutants.** Twelve cover the 22 survivors of
that run; three cover survivors the first targeted re-run exposed (mutants
the crashes had hidden). Each test fails for named mutants: `PdfFont::upem`
and `scale` (2048 units per em, rounding), the wrap boundary and the running
line width, page breaking and the exact-fit margin, heading and paragraph
spacing, `run` sizes per heading level, the xref table over several pages
(every offset points at its own object), `build_nodes` (a message becomes a
paragraph, an empty one does not), `build_pdf_blocks`,
`ExportFormat::label`, `parse_sha256sums` (exactly 64 hex digits), the
update body cap, and `running_target`. Whether they reach 90 % is for the
full re-run to say.
### Changed
- `print_errors` is split into `error_lines` (pure, returns the lines) and the
printing loop, so the cap of 40 listed issues is testable without capturing
stdout. The output is unchanged.
## [1.1.14] - 2026-10-22
### Added
- **Compile-time invariants** (`tests/static_assertions_invariants.rs`, via the
`static_assertions` dev-dependency, 1.1.0): a regression in a type's
contract now fails the build instead of a runtime test or production. It
pins `Send + Sync` on everything shared across the async runtime
(`AppState`, `SarifStore`, `LoadedLog`, `SharedRouter`, `HandlerFn`); that
`SarifStore` is *not* `Clone` (a copy would fork the state, so a delete in
one handler would not reach another); the `Error + Debug + Display + Send +
Sync` contract of the three public error types; `Copy` on the small value
types; the object-safety of `self_update`'s `HttpClient`, which the updater
injects as `Arc<dyn HttpClient>`; one-byte layout of the version and format
enums; the field names the exporters and views depend on; and the 64-bit
assumption. Two controls (`Rc` is not `Send`, `RefCell` is not `Sync`) prove
the macros discriminate. Verified red: dropping `Eq` from `SarifVersion`,
which the library does not need, fails this suite and only this suite. The
skill's `assert_eq_size_val!` is deliberately not used, because it expands to
`unsafe` and the crate sets `unsafe_code = "forbid"`.
- **Property tests for the document pipeline** (`tests/proptest_pipeline.rs`,
14 properties, plus 2 in-module in `src/main.rs`), covering what sits behind
the helpers `proptest_invariants.rs` already pinned. `SarifVersion::detect`
accepts exactly `2.1.0` and `2.2*` for any JSON; `LoadedLog::from_value` is
total and agrees with its document; `load_bytes` is total on arbitrary bytes
and never touches the store, and a valid document always loads under a safe
id; `SarifStore` behaves like an ordered set of unique ids under any
sequence of inserts, removals and lookups (a model-based check, with a
returned handle surviving its own removal); `build_artifacts` produces
output **if and only if** the validator accepts the document, so nothing is
ever exported from a rejected one; one well-formed artifact per format
(SARIF round-trips losslessly, PDF/ODT carry their magic numbers); PDF
rendering is total and framed; the validation report page never reflects
document text as markup; and `write_artifacts` cannot create anything
outside its export root. In `main.rs`: the listener config follows from the
flags (the derived QUIC port saturates at 65535 instead of wrapping) and the
update action follows its precedence. All hold at 4,096 cases.
- **Verified red.** Each property was run against a deliberate production bug
and caught it with a minimal counterexample: a `remove` that always reports
success (a second removal), export without validation (`doc = Null`), `detect`
accepting any `2.x` (`"2.0.0"`), a wrapping port (`65535`), and swapped
update-action precedence. One property initially missed the wrapping port
because a uniform `u16` almost never produces `65535`; its generator is now
weighted toward the boundaries.
- `tests/scripts/test_proptest.sh [--long-sweep]` runs the whole suite with
`PROPTEST_CASES` pinned (256, or 4096 with the flag).
- **Loom model of the connection limiter** (`loom-harness/`, now 10 tests).
`server::run_tls` admits a connection with `Semaphore::try_acquire_owned`,
sheds it when the limit is reached, and moves the permit into the
connection's task. The store was already modelled; this was the one
remaining shared-state primitive. Over every interleaving (three threads,
explored exhaustively up to a preemption bound of 3): no more than the cap
is ever admitted at once, an attempt is shed only when the limiter really is
full, no slot leaks, and a connection that ends right after admission (a
failed TLS handshake) still returns its slot. It models the semaphore's
contract with a mutex-guarded counter, since tokio's `Semaphore` does not
build under `--cfg loom`. The negative control, a check-then-take split
across two lock acquisitions, is now an executable `#[should_panic]` test
rather than a comment, so the models' sensitivity is re-proved on every run.
- **CLI contract tests** (`tests/cli_contract.rs`, 12 tests, via the
`assert_cmd` 2.2.2 and `predicates` 3.1.4 dev-dependencies). For a CLI the
exit code, the stream a message goes to and the files left on disk are the
API; nothing in the suite asserted any of it. They drive the real binary:
`--version`; `validate` on a valid, a non-conformant, a malformed and a
missing file (stdout vs stderr, exit 0 or 1); an unknown flag (exit 2);
`export` writing each artifact with five checksum sidecars that match the
bytes on disk, `--no-sidecars`, refusing to replace a file unless
`--overwrite`, and writing nothing for a rejected document; and
`--self-update` refused by the flag and by `SARIF_NO_SELF_UPDATE` before any
request is made.
- **Mutation testing wired up** (`skills/rust-cargo-mutants`): the required
`[profile.mutants]`, `.cargo/mutants.toml` rewritten to the skill's template
(the old file's `^impl Debug` patterns miss fully-qualified impl paths),
`src/verification.rs` excluded because its Kani proofs sit behind
`#[cfg(kani)]` and can never register as caught, and
`tests/scripts/test_cargo_mutants.sh`, which scores with `jaq` against a
minimum (default 90%) and copies the tree into a sandbox without `skills/`,
since cargo-mutants copies it per job and that directory is gigabytes.
A first pass found seven missed mutants in `main.rs`, all in code no test
reached: the print sinks, the environment read and the `$HOME` default
export directory. The CLI tests and a new `export_dir_under` seam (the
decision split from the environment read) kill all seven, each re-verified by
replaying the mutation. A scoped run over the pure-logic modules then found
one more, `SidecarHashes::any`: no test set exactly one sidecar, so an `&&`
anywhere in its `||` chain went unnoticed; closed the same way. A whole-crate
score has not been measured; see the script header for why and how to scope
it.
- **Criterion benchmarks** (`benches/pipeline.rs`, `criterion` 0.8.2 with
`html_reports`, a dev-dependency adding 23 dev-only packages): wall-clock
timings for each stage a SARIF file passes through. Validation (single and
dual schema) and the model at three sizes (10, 200 and 2,000 results) with
byte throughput; export per format; PDF rendering at three sizes; the five
checksum digests over 1 MiB; HTML escaping of clean and hostile 64 KiB;
`safe_join` accepting and rejecting; and `SarifStore::insert_unique` into 500
colliding ids. `tests/scripts/test_cargo_criterion.sh` runs a smoke pass
(`--quick`, or `--full` for the HTML report). It deliberately does **not**
gate on the numbers: wall-clock time on a shared machine is too noisy
(`skills/rust-criterion`, rule 4). The first run was taken at a load average
of 80 to 200, so its absolute figures are inflated and prove only that the
suite runs. Two things in it are worth a look on a quiet machine: escaping
clean text ran at only about 70 MiB/s, and the 500-collision insert cost
about 2 ms, which points at quadratic growth in `unique_id_locked` for a
bulk import of same-named files.
- **Developer Guide and Troubleshooting Guide in the Info menu** (`/developer`
and `/troubleshooting`), completing the ndaal Info menu: twelve entries in the
fixed order, two dividers, nothing after Troubleshooting
(`skills/rust-info`). Both guides already existed under `documentation/` and
are now embedded like the others.
- **`src/info/`**, the shared home of the six document pages: a `DocPage`
record per document, the `DOC_PAGES` table in menu order, and one renderer.
Tests pin that every embed equals its source file on disk, that every source
is listed in `Cargo.toml`'s `include` (a missing entry compiles locally and
breaks `cargo publish`), that the pages follow the menu order once each, that
Markdown is shown verbatim and never rendered, and that the Info dropdown
agrees with the page table on route, icon and label. The skill's Askama
templates are not used, because this crate has no template engine; the shell
stays `html::page` with `html::escape`.
- **Route tests for the new menu** (`tests/test_routes.rs`): the dropdown's
twelve links in order with two dividers, decorative icons, the old guide paths
returning 404, the keyboard-reachable document region, and `lang="de"` on the
Imprint. Each was run red before the change. Two Bruno requests cover the new
pages.
- **One rule for every listen port** (`skills/rust-ip-ports`). A port is
accepted if and only if it is a canonical decimal number in 1025..=65535.
`--port`, `--quic-port`, `SARIF_PORT` and `SARIF_QUIC_PORT` all go through
`listen_port::ListenPort`, a hidden module (`#[doc(hidden)]`, so the
documented API is unchanged: `cargo semver-checks` against the published
1.1.13 passes 229 checks and requires no update) with a private field:
holding one is proof that the rule held. A default is written
`ListenPort::from_const::<8580>()`, so a
wrong one is a build error. The variables are read by a function instead of
clap's `env =`, so an error names `SARIF_PORT` and not an option nobody typed;
the flag wins over the variable, the variable over the default, and the
variables are read only when `serve` starts, so a bad value never breaks
`--help`, `--version` or `--check-update`. Measured on 1.1.13 before the
change: `--port 1024`, `08080` and `+8080` were accepted, `--port 0` bound a
port nobody configured, and `80` failed late with `Permission denied`.
Decision record: `documentation/adr/0001-listen-port-rule.md`; quality
scenarios: `documentation/arc42/en/10-quality-requirements.md`.
- **Tests for the rule, in layers.** `tests/listen_port_rules.rs` (36 named
cases), `tests/listen_port_exhaustive.rs` (every `u16`, every decimal up to
99999, every leading-zero and signed spelling), `tests/proptest_listen_port.rs`
(7 properties against a reference built from `std` alone),
`tests/listen_port_clap_kinds.rs` (15 tests pinning which clap `ErrorKind`
and exit status each kind of bad command line gets) and the five doc tests
of the module, one of them a `compile_fail` for a wrong default. 13 unit tests
in `main.rs` cover the precedence and the error text of the variables. The
contract of the real binary is `tests/cli_listen_port.rs` (16 tests: 21 refused
spellings through each of the four sources, exit status, nothing on stdout,
nothing bound, accepted ports serve and stop, a port in use exits 1). The
compile-time assertions in `tests/static_assertions_invariants.rs` now pin
that `ListenPort` has no `Default` and no infallible `From<u16>`; adding a
`Default` was verified to break the build.
- **A Kani proof and a fuzz target.** `cargo kani` proves `try_new` for every
`u16`: 1 harness, 130 checks, 0 failures, 0.52 s. `fuzz_listen_port_parse`
checks `parse` against the same `std` reference: 304,555 runs in 61 s, no
crash. 29 seed inputs are committed under `fuzz/seeds/`.
- **Golden transcripts with trycmd** (`tests/cli_transcripts.rs`,
`tests/cmd/*.trycmd`): the full `--help` texts and the port-refusal messages
with their exit status. `trycmd` 1.2.1 (MSRV 1.85) is a dev-dependency with
`default-features = false` and the two features used, `filesystem` and `diff`;
it adds no runtime dependency and no new advisory, and `cargo deny` licences,
bans and sources stay clean. Two controls show that the harness can fail: a
correct transcript passes, a drifted one makes `run` panic. The transcripts
were replayed under a hostile environment (`SARIF_BIND`, `SARIF_EXPORT_DIR`,
`SARIF_PORT=80` exported).
- **A live test with nmap, rustscan and lsof**
(`tests/scripts/test_listen_ports_live.sh`, `127.0.0.1` only): refused ports
exit 64 without binding anything or creating a file, accepted ports serve and
show up in nmap and rustscan, lsof sees exactly the expected TCP and UDP
sockets, and nothing is left after SIGTERM. Against the real binary:
122 PASS, 0 FAIL, 7 SKIP (the samples that are not scannable TCP ports, each
with its reason); the evidence of that run, every scanner output included, is
`documentation/rust/ip-ports/20261022T075949Z/`. Its first run failed 10
checks, all because the system `curl` of macOS cannot apply `--tlsv1.3`; the
probes no longer pin it, since the TLS policy has its own gate. The bats
sibling (62 tests) runs the script against a fake app with planted defects (a
port accepted, state left behind, a variable blamed on `--port`, a UDP socket
with QUIC off, a wrong `Alt-Svc` port) and requires each to be reported as a
FAIL.
- **Mutation testing of the new code.** `src/listen_port.rs`: 16 mutants, 11
caught, 5 unviable, 0 missed, score 100.0%. The new glue in `main.rs`
(`port_from`, `quic_port_for`, `resolve_serve_config`, `exit_status`,
`read_port_env`, `env_var_os`, `run_serve`): 12 mutants, 10 caught, 2
unviable, 0 missed, score 100.0%. The first pass scored 45.5% and 60.0%
because of timeouts, none of them misses: `try_new` with `<` replaced by `>`
accepts port 0, and the "must be refused" process test then waits for a server
that should never have started. `minimum_test_timeout` is now 300 s (it was
60 s), above the 180 s a process test allows one run. The Kani harness is
excluded from mutation (`proofs::`), as a mutants run never sets `cfg(kani)`.
The whole-crate score is below the 90 % floor and was not finished at release:
a run over all 725 mutants started on 2026-10-22 had decided 582 of them
(462 unviable) when 1.1.14 was cut, with 99 caught and 21 missed, so 82.5 % of
the 120 viable ones. The survivors are in `src/export_pdf.rs` (layout and
scaling arithmetic), `src/updater.rs` (`running_target`, `parse_sha256sums`),
`src/export.rs` (`build_nodes`, `build_pdf_blocks`, `ExportFormat::label`) and
`print_errors` in `src/main.rs`. 1.1.14 ships with that gap; closing it means
a test that fails for each survivor.
- **Benchmarks** for the rule (`listen_port` group in `benches/pipeline.rs`):
parse and `try_new`, accepted and refused. One `--quick` smoke pass at a load
average above 200 gave 3 to 54 ns, so the rule adds nothing a start would
notice; the figures are noisy and not a gate.
- **Spanish and Italian README mirrors**, `LEEME.md` and `LEGGIMI.md`, which
completes the five-file set `skills/readme` requires. All four mirrors were
rewritten from the current `README.md`: the German and French files were
~130-line summaries of an older README (none of their code blocks matched, no
language switcher), so "mirror" was a label rather than a fact. They now
have the same 15 headings, the same 10 code blocks byte for byte, the same
103 inline code spans, the same link targets and the same table shapes, and
every file carries the same language-switcher line. The code blocks are
copied from the README by a script rather than retyped. Comments inside
them stay English in every file (recorded in the Developer Guide). The
check is `skills/readme/scripts/check_translation_mirrors.sh`; the extra
inline-span and table comparison was run once by hand, not added as a gate.
The wording follows `skills/liesmich`, `lisezmoi`, `leeme` and `leggimi`
(impersonal register, sentence-case headings for fr/es/it, French no-break
spaces). They have been read for structure and checked by tools, not
reviewed by a native speaker.
- **A "Supported GUI languages" chapter** in all five READMEs, which
`skills/readme` makes mandatory and which was missing. It states what is
true: the interface is English only, has no language switcher, and nothing
is machine-translated; the Imprint is the one German page (`lang="de"`);
no right-to-left language is offered.
- **The arc42 architecture view is complete**: sections 1 to 9, 11 and 12 under
`documentation/arc42/en/` (only section 10 existed), four diagrams each drawn
twice, in PlantUML and in Mermaid, rendered to SVG and PNG
(`documentation/arc42/diagrams/`), and the two one-page canvases (inception
and communication) in four forms each: Markdown, draw.io, SVG and PNG. The
canvases' Markdown, draw.io and SVG were generated from one data set so they
agree; the draw.io files are well-formed XML but could not be opened or
exported here (the draw.io command line hung). Section 10 gains QS-8 to QS-13
(validation, escaping, paths, response headers, self-update, export), each
naming the tests that decide it. Section 9 records ADR-0001 and five earlier
decisions after the fact; section 11 lists seven risks and seven items of
debt, among them the state-changing `GET` routes, which were read from the
route table and not tested. Not done: German tree, PDF bundles (the helper
`markdown2pdf.sh` is not in this repository), a second reader's review.
### Changed
- Version bump to 1.1.14.
- **A refused listen port exits 64.** `--port`, `--quic-port`, `SARIF_PORT` and
`SARIF_QUIC_PORT` now refuse anything but a canonical decimal number in
1025..=65535, at start-up and before anything is loaded or bound, with the
reason on stderr (every refusal ends in `accepted: 1025-65535`), nothing on
stdout and exit status 64 (`EX_USAGE`). This is a behaviour change: `1024`,
`0`, `08080` and `+8080` stopped working, a bad number exited 2 before (and
`80` exited 1), so a script that tests `$? -eq 2` must test for 64. Every
other usage error keeps clap's status 2. One spelling still exits 2: a value
that starts with a dash given as a separate word (`--port -1`), because clap
reads it as a flag; `--port=-1` is refused as a port. `serve --help` states the
rule, the variables, the default and the status.
- **README facts brought up to date**, because five copies would otherwise
repeat them. There are 23 `cargo-fuzz` targets, not 22 (`fuzz_listen_port_parse`
was missing from the list). The "138 tests" figure is gone from the
`cargo test` comment: the suite lists 416 tests today, and a number in a
comment is wrong again at the next commit. The architecture tree gains
`listen_port.rs`, `path_security.rs`, `tls.rs`, `updater.rs` and `info/`, which
it omitted, and the test list gains the CLI and listen-port suites. Not
changed: the install examples still pin `0.1.4`, an old version.
- **`Dell` is out of the `MD044` proper-name list** in `.markdownlint.yaml` and
`.rumdl.toml`. The check is case-insensitive at a word boundary, so it flags
every Italian `dell'` ("dell'interfaccia") and `--fix` would rewrite it to
`Dell'`. `skills/leggimi` records the same defect and its removal from the
other copies of the configuration; this repository's copy was stale.
- **`REFERENCE.md` listed only the Info route `/changelog`.** It now lists
`/readme`, `/administrator`, `/user`, `/developer` and `/troubleshooting` too,
which the Info-menu work had added without updating the table.
- **`_typos.toml`** allows the British `organisational` (the arc42 canvas field
is spelled that way) and skips the rendered diagram SVGs, in which PlantUML
embeds its encoded source. `structure.md` lists `adr/` and `arc42/` and
counts 23 fuzz targets, not 22.
- **Developer Guide** gains a "README mirrors" section (what must stay
identical, the check, where the wording rules are); `structure.md` lists all
five README files.
- **The mutation floor** `minimum_test_timeout` in `.cargo/mutants.toml` is
300 s instead of 60 s (see the mutation entry above).
- **Documentation.** `REFERENCE.md` (flags, exit codes and a "Listen ports"
section), the Administrator Guide (a "Listen ports" subsection; its
configuration table was misaligned and is realigned), the Troubleshooting
Guide (a table of what you typed and why it is refused, and how to tell 64 from
2), the Developer Guide (the module, trycmd, the live test), the README and its
German and French mirrors, and `structure.md`. The evidence directory is
excluded from `typos` and from `lineguard`, as is `fuzz/seeds/` (a seed `8080`
is not the input `8080` plus a newline): see `_typos.toml` and
`.lineguardrc`.
- **The Administrator and User Guide moved** from `/administrator-guide` and
`/user-guide` to `/administrator` and `/user`, matching the ndaal Info menu.
The old paths are not redirected and now return 404; update bookmarks.
The Bruno requests were renamed to match.
- **Info pages are more accessible.** Menu and page icons are hidden from
assistive technology (the label carries the meaning), the scrollable document
region is named by its heading and takes keyboard focus so it can be scrolled
without a pointer, and the Imprint is marked `lang="de"`. The menu entry and
page heading read "System Information" instead of "System info".
- **Developer Guide and Troubleshooting Guide rewritten.** The Developer Guide
now covers the Info-menu pattern and every test layer, with the commands to
run each (compile-time invariants, property tests, Kani, Miri, Loom, mutation
testing, CLI contract tests, benchmarks, Bruno, Playwright). The
Troubleshooting Guide gains the self-update policy refusal, an unreachable
update host, advisory cross-check findings, `--no-quic`, the pre-1.1.12
HTTP/3 header gap and the moved guide paths. `structure.md` was brought up to
date.
- **The page shell's canonical link is now valid HTML.** It was
`<link rel="canonical" href="">`; htmlhint 1.9.2 rejects an empty `href` on
all 13 pages it was run over (two errors each). It is now `href="#"`, a
fragment-only reference that resolves to the current document just as the
empty value did, so a self-referential canonical is preserved. The shell
knows neither the request path nor the origin, so it cannot name a page
absolutely. htmlhint, oxlint and fta are clean on the rendered pages and the
project's JavaScript.
### Security
- **Seven RustSec advisories fixed by dependency patches** (`Cargo.lock`
only; `Cargo.toml` and the sources are unchanged). 1.1.13 and earlier ship
the vulnerable versions. `cargo audit` reported 7 vulnerabilities and a
yanked crate before, and reports none after. One CSAF document per crate:
`ndaal-sa-2026-953` to `957`.
- `rustls` 0.23.45 to 0.23.46 fixes RUSTSEC-2026-0346 to 0349. Only 0349
reaches this product: a client keeps the key-exchange group chosen by an
unauthenticated ServerHello, so a network attacker could make a later
connection to the same server skip the post-quantum hybrid group. The
self-update client is the only TLS client here and its process lives for
seconds, so the impact is low (CVSS 3.1 3.7, 4.0 6.3). The other three do
not apply: no custom `ClientSessionStore` formats session secrets (0346),
nothing enables ECH (0347), and the `brotli` feature is off (0348).
- `rustls-webpki` 0.103.15 to 0.103.16 fixes RUSTSEC-2026-0382: a certificate
path through a distrusted emSign intermediate, whose keys are public, could
validate when the trust anchors allow it. The self-update client checks
gitlab.com against the system trust store, so this applies. CVSS 3.1 7.4,
4.0 9.1 (authored here; no vector is published).
- `webpki-roots` 1.0.9 to 1.0.10 (RUSTSEC-2026-0381) and `webpki-root-certs`
1.0.9 to 1.0.10 (RUSTSEC-2026-0383) remove the `emSign ECC Root CA - G3`
root. Neither is used at run time: `self_update` links `ureq` but the
updater injects its own hyper-rustls transport with the system store, and
`webpki-root-certs` is in the lockfile only, outside the build graph.
- `yoke-derive` 0.8.3 to 0.8.4 replaces a yanked release.
- The advisories for the three that do not reach this product are CSAF VEX
documents with `known_not_affected` and a justification, because a
security advisory must list `known_affected` for every vulnerability.
- Verified before and after: all 319 tests, clippy at `-D warnings`, the
Bruno collection (36 requests, 89 tests, driving the rebuilt TLS listeners)
and a real `--check-update` against gitlab.com (driving the rebuilt TLS
client and `rustls-webpki`). `cargo audit` went from 7 vulnerabilities to
none.
- **The advisories of 1.1.12 are now in `csaf/`.** The advisory numbers
(`ndaal-sa-2026-NNN`) are one space shared by several ndaal products; the
canonical feed is `ndaal_public_csaf_information`. This directory had stopped
at 338, so the advisories for the 1.1.12 release existed only there: 629
(`rustls` 0.23.42 to 0.23.45, RUSTSEC-2026-0285, cited in the 1.1.12 entry
below), 630 (`hyper`, RUSTSEC-2026-0258), 631 to 645 (15 dependency-currency
bumps) and 647 (HTTP/3 responses served without security headers). They are
copied byte for byte, validated with `csaf-validator` and their sidecars
verified. The advisories for the patches above are numbered 953 to 957 because
the shared space ended at 951 (canonical feed) and 952 (the nvulnlookup
working tree); an earlier numbering, 339 to 343, collided with advisories
already published under those numbers and was replaced.
- **Still open: RUSTSEC-2026-0192, `ttf-parser` is unmaintained.** There is no
fixed version. It reads only the Roboto font embedded in the binary for the
PDF export, never a font supplied by a user, so an unfixed parser bug is not
reachable from input. The advisory recommends `skrifa`. Moving to it means
replacing the five calls in `src/export_pdf.rs` (parse, units per em, glyph
index, horizontal advance, the cmap walk) and re-proving the PDF output, which
is a migration with its own tests, not a bump, so it is deferred. It keeps
`cargo audit --deny unmaintained` and `cargo deny check` red, as before.
## [1.1.13] - 2026-09-17
### Changed
- **The `serve` boot decisions are now pure functions** (`src/main.rs`), so the
listener configuration and the update policy are testable without binding a
socket or invoking the updater. This is a **behaviour-preserving refactor**:
no flag, default, message or exit code changes.
`resolve_serve_config(&ServeArgs, default_export)` returns the resolved
`listen` address, the `quic_listen` address as an `Option` (`None` meaning
QUIC is off — one decision that both the Alt-Svc advertisement and the UDP
listener now read, instead of each re-deriving it), and the export
directory. `decide_early_action(&Cli, env)` returns what `main` should do —
`CheckUpdate`, `SelfUpdate`, `SelfUpdateDisabled` or `Continue` — leaving the
printing and the updater calls at the call site.
The hand-written `ServeArgs` for a bare `sarif-viewer` invocation moved into
`default_serve_args()`, with a test asserting it resolves identically to what
clap produces for `serve`; that was a silent drift risk, since changing a
`default_value` would have left the no-subcommand path behind.
Verified behaviour-preserving before committing: the whole CLI surface
(`--version`, `--help`, `serve --help`, valid/invalid/missing `validate`,
`export`) is **byte-identical** to the pre-refactor binary, and all four
listener variants resolve as before — default 8580/8581, `--no-quic`
8580/disabled, `--port 9100` 9100/9101, `--port 9300 --quic-port 9999`
9300/9999 — as does the bare invocation.
- **`self_update` requirement 1.0.0-rc.6 → 1.3.0**, per
`skills/rust-self-update` rule 3 and `skills/rust-library` step 1. The
resolved version does not change — the caret range had already resolved
1.3.0 in the lockfile since the 1.1.12 relock — but the manifest requirement
string still read as a pre-release, so anyone auditing `Cargo.toml` by eye
saw an rc pin on the shipped self-update path. 1.3.0 is the registry's
current latest stable (published 2026-09-02), resolved with the skill's
`latest_crate_version.sh` rather than written from memory. Its MSRV of 1.88
is already covered by this crate's `rust-version = "1.93"`, so no MSRV,
CI-toolchain or `rust-toolchain.toml` change was needed.
- The feature set is unchanged and was re-verified against the skill's
checklist: `default-features = false` with exactly one backend (`gitlab`),
one HTTP client (`ureq`, plus the `rustls` its TLS glue references
unconditionally), and the mandatory `checksums`. No `archive-*` /
`compression-*` features, because the release assets are raw unarchived
binaries. The updater continues to inject its own hyper-rustls transport
rather than letting `self_update` open a socket of its own, so no second TLS
stack is pulled in.
- Version bump to 1.1.13.
### Added
- **4 regression tests for the HTTP/3 response head** (273 tests total, up
from 269), pinning that the status and every header survive the hop to h3 —
see the Security entry above — plus `server.rs`'s first tests of any kind.
- **16 tests for the boot path** (269 tests total, up from 253), covering
decisions that had none: the QUIC port defaulting to the HTTPS port + 1;
`--no-quic` disabling the listener and winning over an explicit
`--quic-port`; the derived port **saturating** rather than wrapping at 65535
(wrapping would derive port 0 and bind an arbitrary free port — a silently
wrong listener); the bind address applying to both listeners; the export
directory falling back only when unset, with an explicitly empty value
honoured rather than replaced; `--check-update` taking precedence over
`--self-update` **and not being blocked by the policy opt-out**, since it is
read-only and an air-gapped site should still learn that an update exists;
the self-update refused by either the flag or the environment; the falsy
environment values (`""`, `"0"`, whitespace) not disabling, because a shell
that exports the variable unconditionally must not break it; and
`parse_formats` falling back to every format rather than exporting nothing.
Measured over two back-to-back `ripr pilot` runs: **`main.rs`'s ungripped
seams went 66 -> 0** and repo-wide ungripped 233 -> 156, the largest move on
that class in this campaign — it had shifted only 242 -> 233 across the six
preceding batches, because ungripped code is by definition code no unit test
reaches. Repo-wide actionable moved less, 833 -> 807: the boot seams changed
*class* rather than vanishing, and `main.rs` gained 29 seams of its own test
code.
- **Kani proof harnesses** (`src/verification.rs`, behind `#[cfg(kani)]` so
they cost nothing in an ordinary build; `bash tests/scripts/test_kani.sh`).
Seven harnesses state properties over *every* input in a bounded domain
rather than over a corpus: `safe_join`'s documented containment invariant
(always under `base`, never a `ParentDir`), its flat rejection of any
NUL-bearing input, agreement between `is_safe_segment` and the joiner it
guards, `html::escape`'s XSS boundary (no raw `<`, `>`, `"`, `'` survives)
and its Trojan-Source (CVE-2021-42574) neutralisation of all twelve
bidi/format controls, `html::level_bg`'s totality over its closed set of
Bootstrap classes, and the self-update policy opt-out as four directional
statements. The `sidecar` hash helpers are deliberately not proven: SHA-3
and BLAKE3 compression functions are beyond a model checker's reach, and a
bounded proof of them would assert nothing useful — they keep their
known-answer tests and fuzz targets.
`[lints.rust] unexpected_cfgs` now registers `cfg(kani)` so ordinary builds
stay warning-free.
- **`tests/scripts/test_miri.sh`** — runs the pure-logic unit tests under Miri
with `-Zmiri-strict-provenance -Zmiri-symbolic-alignment-check`: 29 tests
across `path_security`, `html`, `model`, `router`, `static_files` and
`store`, no undefined behaviour. The crate is `#![forbid(unsafe_code)]`, so
this is checking the unsafe code in the dependencies those tests execute,
not our own. The module allow-list is deliberate and measured: `schema` ran
34 minutes without completing (its tests compile both vendored OASIS
schemas) where `path_security` takes 1.2 s, so `schema`, `validation` and
`sidecar` are behind an opt-in `MIRI_SLOW=1`. Exclusion there is
interpretation cost, never a finding.
- **16 tests for the Info pages, the route table and the asset server** (253
tests total, up from 237).
`src/routes/info.rs` had **no tests across 461 lines**. All ten Info-menu
handlers are now driven table-style and must render a complete document —
doctype, title, closing tag and their own heading — not just a 200 with a
fragment. `about` reports `CARGO_PKG_VERSION` (read from the constant, so it
does not go stale on a version bump) and `system_info` is checked against
live state rather than placeholders: the configured listen address and
export directory, the real OS and architecture, and a log count that tracks
the store.
The load-bearing test there is `doc_page_html` escaping: the embedded
Markdown is dropped into a `<pre>` block, so a document that grew a
`<script>` tag — or any future page rendering an operator-supplied file —
must come out inert. Title and content are both escaped; the icon is a
caller-controlled constant and stays verbatim by design.
`src/routes/mod.rs` had one test. Added: the query-string shapes a browser
actually sends — no query and a bare `?` yielding no pairs rather than one
empty pair, a valueless flag arriving as an empty value (which is how
`overwrite` is detected with `is_some`), a value containing `=`, repeated
separators, decoding of **keys** as well as values, and `+` as a space.
`build_viewer_router` is proven to register all fourteen documented routes
(a successful build is itself the duplicate-pattern assertion), the fallback
renders a real 404 page with a way back rather than a bare status, and the
static catch-all rejects `/static/../Cargo.toml` and
`/static/css/../../etc/passwd`.
`src/static_files.rs`: the existing tests asserted status only, which cannot
catch a wrong `Content-Type` — and under `X-Content-Type-Options: nosniff` a
stylesheet served as `text/plain` simply does not apply. Every asset's real
content type and its cacheability are now pinned, along with the
css-relative font alias (`css/fonts/…`, which is how
`bootstrap-icons.min.css` requests its fonts) resolving to the same font as
the canonical path, a tolerated leading slash, and refusal of empty
segments rather than normalising them away — normalising is how a traversal
slips through.
Measured over two back-to-back `ripr pilot` runs: repo-wide actionable seams
953 -> 833 and strongly-gripped 1047 -> 1167; within the three files,
actionable 98 -> 26 and strongly-gripped 27 -> 117. Seven and a half seams
per test, against half a seam per test for the preceding leaf-function
batch — the same call-chain effect, now measured five times.
- **29 tests pinning SARIF extraction semantics, the structural floor and
the schema cache** (237 tests total, up from 207).
`src/model.rs`: the private resolvers under `runs_of` implement SARIF's
precedence rules and had no direct tests — a wrong precedence still yields a
well-formed `RunView`, so the end-to-end tests could not catch it. Now
pinned: `message_text` preferring `text` over `markdown` over empty;
`effective_level` taking the result's own level, else the **indexed** rule's
`defaultConfiguration.level`, else SARIF's `warning` default — including
that a result carrying only `ruleId` does NOT inherit its rule's default,
even though `rule_name` resolves that same id; `rule_name` resolving by
index, then by matching id, then falling back to `shortDescription.text`;
`location_string` formatting `uri:line`; `result_view` falling back from
`ruleId` through the rule name to the `—` placeholder and skipping
unresolvable locations rather than rendering blank rows; and
`SarifVersion::detect` treating an absent or non-string version as `Other`.
**Latent bug documented, not changed:** `location_string`'s
`logicalLocations` fallback is written as a `nested_str` path with `"0"` as
a key, and `serde_json`'s string index does not address array elements — so
a location carrying only `logicalLocations` resolves to `None` even though
the code reads as though it would be used. The current behaviour is pinned
by a test that says so explicitly, so it cannot change unnoticed in either
direction.
`src/validation.rs`: the hand-rolled structural floor runs before any schema
and decides validity on its own, and had no direct coverage. Now pinned: a
required string `version` (a number fails too); a missing or non-array
`runs` reporting exactly one error and stopping, since there is no spine to
walk; a missing or **empty** `tool.driver.name` per run, with the run index
in the message; and each result needing a rule reference (`ruleId` or
`ruleIndex`) and a `message`. Also `validate`'s `dual` flag — `None` cross
fields when off, the other version's schema when on — and, importantly,
that **cross-check errors never decide validity**: the cross pass is
advisory, so a document conformant to its own declared schema stays VALID
when the two schemas disagree.
`src/schema.rs`: both validators proven to be compiled once and reused
(pointer equality, not merely two successful calls — a per-call rebuild
would show up as latency on every import), 2.2 validating its own minimal
document, and the schema rejecting both a `null` optional field (what real
tool output emits, and why the repo keeps rejection fixtures) and a missing
driver name.
`src/store.rs`: `from_value` extracting version, `$schema`, runs and the
cross-run severity tally; a document with no runs still yielding a usable
value; `result_count` summing across runs; `list` preserving insertion
order, which the dashboard renders; `slugify` never producing `.`, `..` or a
path separator; and `unique_id` walking past every taken suffix, with the
base slugified **before** the walk so `../report` and `report` share one id
namespace.
Measured over two back-to-back `ripr pilot` runs: repo-wide actionable seams
969 -> 953, strongly-gripped 1031 -> 1047. About half a seam per test,
against ten to thirteen for the three previous batches — and the earlier
finding predicts exactly that: these four files were already the
best-covered in the repo, and these functions are leaves, so each test
grips its own seam and no call chain. The tests earn their place on
semantics, not on seam count.
- **15 tests for the PDF text machinery and the export action** (207 tests
total, up from 192).
`src/export_pdf.rs` had two tests, both of which render a whole PDF and
assert on its structure — which cannot catch a fault in the functions that
decide what text lands in it, because the result is still a structurally
valid PDF. Now covered directly: `normalize` substituting every codepoint
absent from the embedded font subset (no-break and narrow no-break space,
soft hyphen, lock emoji, non-breaking hyphen, bullet, and `>=` expansion),
which matters because `encode_line` silently DROPS an unmapped codepoint, so
a missing substitution loses text rather than failing; `wrap` always
returning at least one line (callers index the result, so an empty vector
would drop a paragraph), filling greedily within the width, preserving every
word in order, and keeping a word wider than the line whole instead of
splitting it mid-word; `encode_line` emitting four upper-case hex digits per
mapped glyph; the `PdfError` message; and `render` tolerating no blocks at
all as well as content carrying unbalanced parentheses and backslashes —
PDF string metacharacters that arrive from an untrusted SARIF document and
never reach the content stream as literals under Identity-H hex encoding.
`src/routes/export_page.rs` had **no tests**. The `run` action is now
covered end to end — query parsing through `ExportFormat::from_token`,
`SidecarHashes::from_tokens`, `build_artifacts`, `open_export_dir` and
`write_artifacts` to real files on disk: an unknown log reported with the
chooser offered and nothing written; an unrecognised, empty or absent
`formats` list all asking for a format; the selected formats written and
each named back in the report; exactly the requested sidecar families
written and no others; a second export refusing to clobber, surfacing
`ExportError::Exists` with its remediation advice and leaving the directory
unchanged; and `overwrite=on` / `overwrite=true` both replacing in place.
Plus `checkbox` reflecting its checked state and `page` showing the chooser
or the form depending on the `log` parameter.
Measured over two back-to-back `ripr pilot` runs: repo-wide actionable seams
1117 -> 969 and strongly-gripped 883 -> 1031; within the two files,
actionable 204 -> 126 and strongly-gripped 73 -> 176. About ten seams per
test. Strongly-gripped now exceeds actionable for the first time.
- **16 handler and dispatch tests for the router and the dashboard** (192
tests total, up from 175).
`src/router.rs` covered its decode, path-param and security-header helpers
but none of the dispatch rules its own doc comment promises. Now covered:
`build` rejecting two conflicting patterns and naming the offending one (a
start-up programming error, not a silent last-one-wins) while still
accepting a static suffix beside a parameterised segment; `HEAD` dispatched
through the `GET` tree per RFC 9110 section 9.1; `405` carrying the
`Allow: GET, HEAD` header RFC 9110 section 15.5.6 requires; an unknown path
reaching the fallback rather than being misreported as `405`; a plain `404`
when no fallback is registered; named parameters and `{*rest}` catch-all
suffixes arriving at the handler (the catch-all keeps separators, which is
why the static handler re-validates it); and the security headers wrapping
the `405` and `404` branches too, since an error page is still an attack
surface.
`src/routes/home.rs` had **no tests at all** across 386 lines. Now covered:
`truncate` counting characters rather than bytes (byte slicing would panic
mid-codepoint on `Geschäftsbereich` or `日本語テキスト`) and appending its
elision marker only when something was removed; the dashboard listing every
loaded log and aggregating the stat-card tallies; `log_view` rendering the
requested log, and falling back to a dashboard banner for an unknown id
rather than a bare 404 so the operator keeps a usable page; `log_download`
serving the raw document with a `Content-Disposition` attachment name;
`log_delete` proving the store actually changed rather than trusting its own
success banner, and a failed delete removing nothing.
Security-relevant: the log id comes from the URL path, so
`log_view` is tested with `<script>alert(1)</script>` as an id — the raw
markup must not survive into the banner, which exercises
`render_dashboard` -> `alert` -> `escape`.
Measured over two back-to-back `ripr pilot` runs: repo-wide actionable seams
1322 -> 1117 and strongly-gripped 678 -> 883; within the two files,
actionable 256 -> 70 and strongly-gripped 47 -> 266. About thirteen seams
per test, matching the twelve per test of the import/export batch and
confirming that tests traversing real call chains are the efficient path.
- **16 behavioural tests over the import and export boundaries** (175 tests
total, up from 159), closing the surfaces that owned the most untested
behaviour rather than the most seams.
`src/import.rs` had coverage for `load_bytes` only; `looks_like_sarif`,
`import_file`, `import_path` and `import_dir` — the whole filesystem entry
path used by both the CLI and the `/import` route — had none. Now covered:
the extension predicate (case-insensitive, last-extension-wins, and a bare
`.sarif` dotfile correctly rejected because it has no extension in `Path`
terms), an unreadable path naming the file in its error without touching the
store, the log id deriving from the file NAME rather than the full path (so a
directory name cannot leak into ids or export filenames), `import_dir`'s
sorted and non-recursive listing, one error per unreadable directory rather
than one per entry, a rejected file not aborting the other files in a
batch, the file-versus-directory dispatch, and a repeat import getting a
distinct id instead of silently replacing the first.
`src/export.rs` gains coverage of the write boundary, where the
capability-scoped filesystem confinement is actually enforced:
`write_artifacts` refuses any filename that is not a single safe segment
(`../escape.pdf`, `sub/dir.pdf`, `..`, `.`, empty) *before* writing
anything, refuses to clobber without `overwrite` while leaving the original
content intact, truncates correctly when `overwrite` is set (a shorter
payload must not leave the old tail on disk), and writes exactly the
requested sidecars and no others. Plus `open_export_dir` creating a missing
boundary root rather than erroring, `document_title`, and the `ExportError`
`Display` impl pinned for every variant — including that `Exists` carries
remediation advice and not just a filename.
Measured effect, two back-to-back `ripr pilot` runs: repo-wide actionable
seams 1520 -> 1322 and strongly-gripped 480 -> 678; within the two files,
actionable 219 -> 77 and strongly-gripped 71 -> 230. That is roughly twelve
seams retired per test, against roughly one per test for the earlier
exact-value batch — because a test that traverses a real call chain
(`import_file` -> `load_bytes` -> `validate` -> `insert_unique`, or
`write_artifacts` -> `is_safe_segment` -> `write_sidecars`) grips the
`call_presence` seams that dominate the population, whereas pinning a leaf
accessor's return value grips only its own.
- **20 exact-discriminator unit tests** closing the highest-ranked test-gap
seams reported by `ripr pilot` (159 tests total, up from 139).
`src/app_state.rs` had no tests at all, and its four accessors were ripr's
top three ranked seams: `export_dir` and `listen` are now pinned verbatim
(including a trailing separator, a relative path, spaces and non-ASCII, all
of which a path accessor is tempted to normalise), `store` is proven to hand
back the same store across calls, `AppState` clones are proven to share one
store and one configuration rather than deep-copying, and `uptime_secs` is
pinned at zero-at-construction and monotonic.
`src/html.rs` gains whole-string assertions for `level_badge`, `card`,
`level_count_badge` and `alert` — none of which had exact coverage, and
`level_badge`/`card` had none at all — plus a test that renders every `Nav`
variant and asserts exactly one tab carries `aria-current`, which is the
only public path to the private `nav_link` helper's two branches.
`src/store.rs` covers all three arms of `LoadedLog::title` (no runs, one
run, several) and pins that `get`/`remove` match an id **exactly** — a
prefix, suffix or case variant must not fetch or delete another log — plus
that a second `remove` of the same id reports false.
`src/model.rs` covers every `SarifVersion::label` variant and each
`LevelCounts` bucket, including that an unknown or empty level falls into
`warning` via the default arm.
Measured effect over three `ripr pilot` runs: repo-wide actionable seams
1514 → 1494, strongly-gripped 486 → 506, and `ungripped` — the class with no
related test at all — 136 → 118. The rate is close to one seam retired per
test written; note that tests themselves add seams (ripr scans test code
too), so the totals move more slowly than the test count suggests.
- **Loom models for the delete path** (`loom-harness/`, now seven models, up
from three; `bash tests/scripts/test_loom.sh`). Insertion was modelled;
`SarifStore::remove` was not — and it is the same bug class as the 1.1.11
`insert_unique` race through a different door, since ids are derived from the
store's live contents, so a concurrent delete can *free* a slug that a racing
insert then picks. The route is newly exercised end to end by the Bruno
lifecycle folder and the Playwright suite, which is what made modelling it
worthwhile. New models: two concurrent deletes of the same log report success
exactly once (one delete can never render two success banners); a delete
racing `insert_unique` never leaves duplicate ids; a `list()` snapshot never
exposes one log twice; and a handle already returned by `get()` stays
readable while another client deletes the log, so an in-flight render is not
torn down mid-flight.
Each carries a negative control, and the controls are *verified* rather than
asserted: swapping the check-then-retain shape into the exactly-once model
makes Loom find the interleaving and report `got (true, true)` — both callers
claiming the same deletion. Deliberately not asserted: that `len()` and
`list()` agree. They are separate lock acquisitions, so a mutation between
them legitimately makes them differ; that is a snapshot race, not a defect.
- **Playwright browser E2E suite** (`test/playwright/`, `bash
test/playwright/run.sh --project=chromium`) — the first JS tooling in this
repo, kept entirely under `test/playwright/`. 18 tests per engine covering
what only a real browser can show: every navbar-reachable page rendering with
**no console errors and no failed subresource requests** (the page list is
discovered from the live navbar, not hard-coded, so a new route cannot
silently escape coverage), the dashboard and log detail views, the
import → inspect → delete lifecycle driven through the actual GET form
controls, schema rejection and traversal refusal through the UI, the full
security-header set, and the light/dark toggle persisting across reload and
navigation.
The load-bearing test is CSP *enforcement*: an inline `<script>` is injected
the way stored XSS would arrive, and the browser is required to refuse to run
it. Bruno can only assert the header is sent; this proves the policy actually
holds. Engine-specific console wording is collected for diagnostics but
deliberately not asserted — requiring it failed on Firefox while the CSP was
working correctly.
`playwright.config.ts`, `global-setup.ts` and `tsconfig.json` are the
`skills/playwright` canonical configs, copied **byte-identical** (verify with
`shasum -a 256`). That config keeps certificate verification ON, which is the
stronger posture but incompatible with a viewer that mints a fresh
self-signed cert per start-up and never writes it to disk: `ignoreHTTPSErrors`
does not cover `global-setup.ts`'s Node-side `node:tls` probe. `run.sh`
therefore fetches the certificate the running server is actually serving and
supplies it as its own CA via `NODE_EXTRA_CA_CERTS` — verification stays on,
the authoritative config stays unmodified, and `NODE_TLS_REJECT_UNAUTHORIZED=0`
is never used. `BASE_URL` uses `localhost`, not `127.0.0.1`, because Node
refuses to set a TLS servername to an IP address.
Measured engine costs: chromium 18/18 in ~41 s (the default gate and
sufficient on its own), firefox 18/18 with bounded workers, webkit 17/18 —
its browser cold start alone can exceed the config's 30 s per-test ceiling.
`@playwright/test` is pinned to 1.61.1, matching the installed runner, and
`package-lock.json` is committed so `run.sh` can use `npm ci`.
- **Bruno HTTP suite is runnable again, and extended to 34 requests / 81
tests** (was 26 / 59). Two files it needs were never committed, so the
collection could not run from a clean checkout at all:
`test/bruno/collections/bruno.json` (the Bruno CLI refuses with "You can run
only at the root of a collection" without it) and
`test/bruno/collections/environments/development.bru`, which defines the
`{{base_url}}`, `{{sample_log}}` and `{{second_log}}` that every request
already referenced. `test/bruno/run.sh` now invokes the CLI at
`collections/` rather than one level above it.
New `lifecycle/` folder covering the three routes that had no HTTP test —
`/import/run`, `/validate/run` and `/logs/{id}/delete`: a valid import
(capturing the generated id, since `insert_unique` appends `-2`, `-3`, … on
a name collision), rejection of a non-conformant file, refusal of a
`../../../../etc/passwd` traversal with an assertion that no `/etc/passwd`
content is echoed back, both validate verdicts, deletion of the log the
folder itself imported — verified by its absence from the re-rendered
dashboard rather than by the success banner alone — and an unknown id
degrading to 200 rather than a 5xx. The folder deletes what it imports, so
the suite is idempotent; verified by three consecutive green runs with a
stable log count.
Also `security/04-head-request.bru`: HEAD is answered through the GET
handler, so this pins that it keeps the security-header middleware and
returns no body.
- **`tests/scripts/test_kani.sh`** — Kani runner, self-skipping when the model
checker is absent, with solver flags left to `Kani.toml` so there is one
place to change them.
- **`tests/self_update_is_mandatory.rs`** — the compile-time guard required by
`skills/rust-self-update` rule 1. Self-update is ON by default and the only
opt-out is the runtime policy flag `--no-self-update` (env:
`SARIF_NO_SELF_UPDATE`); there is deliberately no cargo feature, config key
or build profile that removes the updater. The test references
`self_update::get_target` from an always-built test target, so putting the
dependency behind `optional = true` or a `#[cfg(feature = "…")]` stops the
build rather than silently shipping a binary that cannot update itself.
### Notes
- `cargo outdated --root-deps-only` now reports only four behind entries, all
semver-incompatible and all deliberate: `jsonschema` 0.48.5 (0.56.0
available), `lo_core` 0.4.9 (0.5.5), `lo_writer` 0.4.10 (0.5.6) and `sha3`
0.11.0 (0.12.0 — held because 0.12 dropped the SHAKE/XOF variants the
`.shake256-512` sidecar needs). `self_update` no longer appears.
- Kani needs **0.68.0 or newer** on this crate: kani-compiler 0.67.0 dies with
a SIGSEGV while compiling `serde_json` 1.0.151 from this dependency graph
(0.67.0 verifies a dependency-free crate, and `serde_json` in isolation at
both 1.0.150 and 1.0.151 including our `preserve_order`/`float_roundtrip`
features, so the trigger is elsewhere in the full graph). Each harness also
overrides `Kani.toml`'s `default-unwind = 5` with its own
`#[kani::unwind]`: the bound is set by the longest byte comparison a harness
performs, because every `&str` equality lowers to a `memcmp` loop CBMC must
unwind — comparing against `"text-bg-secondary"` needs at least 18 whatever
the input length. With `extra-pointer-checks = true` and the whole crate in
the goto model, expect tens of minutes per harness.
- `cargo deny check` reports `bans ok, licenses ok, sources ok`; `advisories`
has one pre-existing finding, the unmaintained `ttf-parser` 0.25.1
(RUSTSEC-2026-0192), for which no safe upgrade exists.
## [1.1.12] - 2026-09-16
### Security
- **HTTP/3 responses were served with NO headers at all.** `src/server.rs`
built the h3 response head from the status alone, discarding every header
the router had produced — so a request answered over QUIC carried no
`Content-Security-Policy`, no `X-Frame-Options`, no
`Strict-Transport-Security`, no `X-Content-Type-Options`, none of the three
cross-origin isolation headers, and not even a `Content-Type`, while the
identical request over HTTP/1.1 or HTTP/2 carried all of them. For an h3
client the clickjacking, MIME-sniffing and XSS mitigations were simply
absent.
Confirmed against a live listener with an HTTP/3-capable client, not
inferred: **0 header lines over QUIC versus 14 over TCP** before the fix,
and 13 over QUIC after it. The head is now built by `h3_response_head`,
which copies the status and every header; four unit tests guard it,
including that repeated header values are not collapsed.
Why it went unnoticed: the Bruno collection speaks HTTP/1.1 and HTTP/2 only,
Chromium will not switch to QUIC for a direct `https://host:port`
navigation, the integration tests drive the router directly (where the
headers are still present — the loss happened in the h3 transport layer
below), and the security test asserted only that HTTP/3 was *advertised*
via `Alt-Svc`. Every layer was green while the protocol was unprotected.
RFC 9114 section 4.2 forbids connection-specific headers in an HTTP/3
message; this server emits none, which is recorded next to the copy so a
future header addition prompts a re-check.
- **`rustls` 0.23.42 → 0.23.45 — fixes
[RUSTSEC-2026-0285](https://rustsec.org/advisories/RUSTSEC-2026-0285)**
(`GHSA-2mjx-qc3c-rqvc`, CVSS v3.1 5.3 MEDIUM). rustls accepted a TLS 1.3
handshake message sent at the wrong encryption level when it followed a
key-changing message inside the same record — for example a plaintext
`EncryptedExtensions` packed into the `ServerHello` record — where RFC 8446
section 5.1 requires the connection to be terminated with an
`unexpected_message` alert. The handshake transcript stays authenticated, so
a network-position attacker can neither alter nor complete a handshake
through this flaw; the practical effect is that a peer could send handshake
messages in plaintext that should have been encrypted without rustls
rejecting the connection. This is on the primary trust boundary: rustls
terminates TLS for every request to `serve`. Advisory
`ndaal-sa-2026-629`.
- **`hyper` 1.10.1 → 1.11.1, raising `h2` 0.4.15 → 0.4.19 — fixes
[RUSTSEC-2026-0258](https://rustsec.org/advisories/RUSTSEC-2026-0258)**
(`GHSA-q83h-524g-xf6h`, CVSS v3.1 3.7 LOW, ndaal assessment — upstream
publishes no vector and rates it "Low severity"). h2 accepted and queued
empty HTTP/2 DATA frames without limit, so a peer whose streams are not
actively drained could drive unbounded memory growth, or a panic on length
overflow — a denial of service against the listener. Reachable in this
product rather than merely compiled in: `src/server.rs` builds
`hyper_util::server::conn::auto::Builder` with `http2()` configured, so
HTTP/2 is negotiated on the network-reachable surface. Advisory
`ndaal-sa-2026-630`.
- `cargo audit` now reports **0 vulnerabilities** on the resolved lockfile,
down from 2 before this release. The only remaining output is the allowed
`ttf-parser` 0.25.1 unmaintained warning (RUSTSEC-2026-0192), which this
release does not change.
### Changed
- **Full dependency relock** (`cargo update`): 125 crates change, 10 are added
and 2 removed, all within the existing manifest requirements — no
`Cargo.toml` dependency edits were needed. Direct dependencies advanced:
`anyhow` 1.0.104, `blake3` 1.8.7, `cap-std` 4.0.3, `clap` 4.6.7, `http`
1.5.0, `http-body-util` 0.1.5, `hyper` 1.11.1, `jsonschema` 0.48.5, `quinn`
0.11.12, `rcgen` 0.14.10, `rustls` 0.23.45, `self_update` 1.3.0, `serde`
1.0.229, `serde_json` 1.0.151, `time` 0.3.55, `tokio` 1.53.1,
`tokio-rustls` 0.26.5.
- **`self_update` leaves its release candidate: 1.0.0-rc.6 → 1.3.0.** The
manifest requirement string is a caret requirement, so the lockfile resolved
onto the stable 1.3.0 line with no manifest change. The shipped
`--self-update` path no longer runs a pre-release dependency.
- Notable transitive advances folded into the above: the `aws-lc-rs`
cryptographic provider 1.17.1 → 1.18.1 with `aws-lc-sys` 0.42.0 → 0.45.0,
`pem` 3.0.6 → 4.0.0 (semver-major, beneath `rcgen`), `ureq` 3.3.0 → 3.4.2
beneath `self_update`, `quinn-proto` 0.11.15 → 0.11.18 moving onto the
`rand` 0.10 line, and `num-bigint` 0.4.7 → 0.4.8, clearing a yanked-crate
warning `cargo audit` raised against the previous lockfile.
- CSAF advisories `ndaal-sa-2026-629` through `645` record this sweep, one
document per direct dependency, with machine-readable CVSS v3.1 and v4.0
metrics on each. Transitive advances are folded into the advisory for the
direct dependency that pulls them.
- Version bump to 1.1.12.
### Known issues
- The `self_update` requirement in `Cargo.toml` still literally reads
`"1.0.0-rc.6"` even though it resolves to 1.3.0. It should be tightened to
`"1.3"` so the manifest reads as the line it actually resolves to.
- `jsonschema` stays on the 0.48 line (0.56 is available), and `lo_core` /
`lo_writer` on 0.4 (0.5 available), `sha3` on 0.11 (0.12 available). All are
semver-incompatible jumps deliberately left out of a currency sweep.
## [1.1.11] - 2026-07-18
### Fixed
- **`SarifStore::unique_id` / `insert` race (lost update).** Computing a
collision-free id and inserting the log were two separate lock
acquisitions (`import::import_file`), so two concurrent `/import/run`
requests importing the same file name could both observe no existing id,
both compute the same one, and the second insert would silently overwrite
the first — one imported log vanishing without any error. Fixed by
`SarifStore::insert_unique`, which computes the id and pushes under a
single write-lock acquisition; `import_file` now uses it instead of the
separate `unique_id()` + `insert()` calls. Proven race-free under every
thread interleaving by a new Loom model (see Added).
### Added
- **`loom-harness/`** — a standalone [Loom](https://github.com/tokio-rs/loom)
permutation-testing crate (own empty `[workspace]`, per
`skills/rust-loom/SKILL.md`) modelling `SarifStore`'s `RwLock`-guarded
state: `insert_unique` never produces duplicate ids under any
interleaving (the property that was FALSE before the fix above — the
harness's `README.md` documents reproducing the pre-fix bug by swapping in
the kept-as-reference buggy shape), the `RwLock` serializes writers with
no lost update or torn read, and a smoke test for the `OnceLock`-style
settle-once pattern (`router::ALT_SVC`, `schema`'s validator caches). Gate:
`bash tests/scripts/test_loom.sh` (self-skips if the toolchain or crate is
absent).
- 3 more `proptest` properties, backfilling the "remaining proptest" gaps
found auditing every pure function against `tests/proptest_invariants.rs`
(per `skills/rust-testing`'s definition-of-done): `path_security::is_safe_segment`
now has its own direct property (previously only checked indirectly via
`slugify`'s output), `html::level_bg` (total, closed over its four known
Bootstrap classes), and `html::alert`/`card` (total, deterministic, never
re-escape or truncate their already-built inner HTML).
- Bruno coverage for the three new Info-menu pages
(`test/bruno/collections/info/08-readme.bru`,
`09-administrator-guide.bru`, `10-user-guide.bru`), and `07-changelog.bru`'s
assertion updated to match the now-live embedded `CHANGELOG.md` (it
previously asserted against the old hand-written stub's "initial release"
text).
- CSAF advisories `ndaal-sa-2026-330` through `337` for the dependency
currency sweep below (all CVSS v3.1/v4.0 `0.0`/NONE — `cargo audit`
reported zero findings for any of the eight crates before or after).
### Changed
- Version bump to 1.1.11.
- Dependency currency sweep (`cargo outdated` / `cargo update`): `bytes`
1.12.0 → 1.12.1, `clap` 4.6.1 → 4.6.2, `http-body-util` 0.1.3 → 0.1.4,
`rustls` 0.23.41 → 0.23.42, `tokio` 1.52.3 → 1.53.0, `lo_core` 0.4.8 →
0.4.9, `lo_writer` 0.4.8 → 0.4.10, `jsonschema` 0.46.9 → 0.48.1 (the one
requiring a `Cargo.toml` version-requirement raise from `"0.46"` to
`"0.48"`; no source change — `src/schema.rs`/`src/validation.rs`'s API
surface is unaffected and the full test suite passes unchanged). `sha3`
stays pinned at `"0.11"` — 0.12 dropped the `Shake256` XOF the
`.shake256-512` sidecar needs.
## [1.1.10] - 2026-07-18
### Added
- The Info-menu dropdown gains three new pages, matching the
`grundschutz-oscal-viewer` pattern: `/readme` (the embedded `README.md`),
`/administrator-guide` (`documentation/Administrator_Guide.md`) and
`/user-guide` (`documentation/User_Guide.md`), each rendered as
escaped, scrollable preformatted text (`routes::info::doc_page_html`) —
never parsed as Markdown, so the raw document can never inject live markup.
`/changelog` now renders the real embedded `CHANGELOG.md` the same way,
replacing the previous hand-written, version-1.1-stale summary.
- The navbar brand now shows the ndaal logo (`src/static/img/logo.png`,
embedded at compile time) instead of a Bootstrap-icon glyph, matching
`grundschutz-oscal-viewer`'s navbar.
- One new `proptest` property (`doc_page_html_is_total_and_escapes_everything`)
and one new `cargo-fuzz` target (`fuzz_doc_page`) covering the new
doc-page renderer's escaping and determinism invariants. Three new unit
tests assert the four embedded documents match their on-disk source, are
non-trivial, and render their full (untruncated) content.
### Changed
- Version bump to 1.1.10.
- `Cargo.toml`'s package `include` list now also ships `CHANGELOG.md`,
`documentation/Administrator_Guide.md` and `documentation/User_Guide.md`
— required for the new embeds to resolve when building from the
published crate rather than the full git checkout.
### Fixed
- All 228 `htmlhint` findings across every page (attribute ordering,
`<meta name="description">` and `<link rel="canonical">` added to the
page shell, the theme switcher moved from `<head>` to the top of
`<body>` — same before-first-paint behaviour, no more disallowed
`<script>`-in-`<head>`, the system-info table's inline `style` replaced
with a `.info-key` CSS class, and a `<label>` added to each of the three
path-input forms). All 8 `oxlint` findings in `theme.js` (`no-var`,
unused `catch` bindings). No behavioural change; verified by the full
test suite plus a manual re-crawl of all 14 pages showing zero findings.
## [1.1.9] - 2026-07-17
### Added
- Offline-first self-update: `--check-update` (read-only) and `--self-update`
(download, checksum-verify, atomically replace the running binary),
`src/updater.rs`. Fetches the target-triple release asset over the same
aws-lc-rs / TLS-1.3-only transport the server uses, verifies its SHA-256
against the release's committed `release/SHA256SUMS`, and pins the exact
GitLab release tag it checksummed so the installed binary can never diverge
from the one verified. `--no-self-update` / `SARIF_NO_SELF_UPDATE` opts a
package-managed or locked-down install out of `--self-update`;
`--check-update` stays available either way.
- 7 new `proptest` properties and 4 new `cargo-fuzz` targets
(`fuzz_updater_asset_name`, `fuzz_updater_is_newer`,
`fuzz_updater_parse_sha256sums`, `fuzz_updater_resolve_redirect`) covering
the updater's pure surfaces: asset naming, the semver no-downgrade gate, the
`SHA256SUMS` manifest parser, and the redirect resolver's scheme-downgrade
guard.
### Changed
- Version bump to 1.1.9.
- New dependencies: `self_update` (`default-features = false`, `gitlab` +
`ureq` + `rustls` + `checksums` only — no reqwest/openssl), `hyper-rustls`,
`rustls-native-certs`. `deny.toml` allows `CDLA-Permissive-2.0`
(`webpki-roots`).
## [1.1.8] - 2026-07-04
### Added
- Two more `proptest` properties (12 total): `static_serve_is_total` and
`query_pairs_accessors_are_total`, restating invariants that already had
`cargo-fuzz` coverage (`fuzz_static_serve`, `fuzz_query_pairs`) but no
shrinkable counterpart for stable-toolchain CI runs.
### Changed
- Version bump to 1.1.8.
- The sidecar-digest property now checks determinism across all five checksum
algorithms (previously only SHA-256).
- `fuzz/`'s `bytes` dependency bumped 1.11.1 → 1.12.0.
### Fixed
- Cleared 35 pre-existing
`cargo clippy --workspace --all-targets --all-features -- -D warnings` errors
across 12 files — the project's own documented gate was failing on `main`
before this release, unrelated to any functional change. No behaviour change
to the shipped binary.
## [0.1.7] - 2026-06-20
### Security
- Build `jsonschema` with `default-features = false` (keeping only
`resolve-file`), dropping its `resolve-http` feature. This removes the
compiled-in HTTP client (`reqwest`) and its CA-roots bundle
(`webpki-root-certs`, `rustls-platform-verifier`) — 34 transitive crates —
eliminating a latent outbound-HTTP / SSRF surface that has no place in an
offline, schema-embedded validator. Validation is unaffected (the bundled
OASIS schemas are self-contained; all known-answer and proptest checks pass).
Advisory `ndaal-sa-2026-106` (CVSS 3.1 = 0.0, not reachable in shipped code).
### Changed
- `deny.toml`: allow the `MIT-0` license (MIT No Attribution), used by
`borrow-or-share` in the `jsonschema` / `referencing` chain, so
`cargo deny check` passes cleanly. `CDLA-Permissive-2.0` (`webpki-root-certs`)
is no longer present after the HTTP-client removal above. Advisory
`ndaal-sa-2026-107` (CVSS 3.1 = 0.0, supply-chain policy, no security impact).
## [0.1.6] - 2026-06-20
### Security
- `html::escape` now neutralizes Unicode bidirectional and format control
characters (`U+200E`/`U+200F`/`U+061C`, `U+202A`–`U+202E`, `U+2066`–`U+2069`)
in all SARIF-derived text rendered into the web UI, rendering each as a
visible inert marker (`[U+202E]`) instead of passing the raw codepoint into
the DOM. This closes a **Trojan Source** display vector (CVE-2021-42574): a
crafted SARIF document could previously use bidirectional overrides to
visually reorder a path or message and mislead an analyst. The viewer is
local, single-user and read-only, so the impact is rated CVSS 3.1 = 0.0
(NONE); this is defence-in-depth. See advisory `ndaal-sa-2026-105`.
- Coverage: a known-answer test plus an added invariant in the `proptest` suite
and the `fuzz_html_escape` target ("no bidirectional control codepoint
survives into the escaped output"). The `unicode-security` crate was evaluated
and not adopted — it targets UTS #39 identifier confusables / mixed-script,
which does not fit free-text SARIF display and does not cover bidirectional
controls.
## [0.1.5] - 2026-06-20
### Changed
- Dependency bumps: `bytes` 1.11 → 1.12; `sha2` 0.10 → **0.11** and `sha3` 0.10
→ **0.11** (both now on the RustCrypto `digest` 0.11 generation). The
checksum-sidecar code is unchanged and the NIST known-answer vectors still
pass, so every digest is byte-identical to 0.1.4.
### Notes
- `sha3` is held at **0.11**, not the newer 0.12: `sha3` 0.12 removed the
SHAKE/XOF variants, and the `.shake256-512` sidecar needs `Shake256`.
## [0.1.4] - 2026-06-20
### Added
- A `proptest` property-based test suite (`tests/proptest_invariants.rs`, 10
properties) restating the security-critical invariants — `slugify` /
`unique_id` segment safety, `safe_join` containment, the `escape` XSS
boundary, the Bootstrap builders, the checksum sidecars, the URL/query and
export-token parsers, and the model's severity-tally invariant — with
structured strategies and shrinking. Unlike the nightly-only fuzz targets,
these run on stable under `cargo test` (suite now 92 tests).
- Three more `cargo-fuzz` targets (17 total): `fuzz_html_render` (the Bootstrap
badge/alert/card/page builders and the page-title escaping),
`fuzz_report_html` (the validation-report renderer over arbitrary documents)
and `fuzz_log_render` (the full log-detail view rendered from a hostile SARIF
document, exercising `truncate`, `escape`, the severity badges and the page
shell).
- An `Install` chapter in the three README mirrors (`README.md`, `LIESMICH.md`,
`LISEZMOI.md`) and the Administrator Guide, covering `cargo binstall`
(prebuilt GitLab release asset), `cargo install` (crates.io) and direct binary
download with checksum verification.
### Changed
- Documentation updated to list the 17 fuzz targets and the property suite. No
functional change to the shipped binary (the property suite, fuzz targets and
docs are excluded from the published crate).
## [0.1.3] - 2026-06-16
### Added
- Six more `cargo-fuzz` targets (14 total): `fuzz_import_load`,
`fuzz_export_render`, `fuzz_export_pdf`, `fuzz_token_parsers`,
`fuzz_static_serve`, `fuzz_html_escape` — covering the import pipeline, all
export renderers, the static-asset path guard and the HTML-escaping boundary.
### Changed
- Documentation updated to list all 14 fuzz targets. No functional code change
since 0.1.2.
## [0.1.2] - 2026-06-16
### Changed
- Release cut from the source committed on `main`; `v0.1.2` tag matches the
published crate and the GitLab release binaries (`cargo binstall` aligned).
### Added (since 0.1.0)
- `[package.metadata.binstall]` so `cargo binstall sarif-viewer` fetches the
prebuilt GitLab release binary instead of compiling from source.
## [0.1.0] - 2026-06-16
### Added
- SARIF 2.1.0 + SARIF 2.2 (draft) viewer, validator and multi-format exporter in
a single binary.
- Schema-validation gate enforced on every import and export (structural floor
plus the embedded OASIS 2.1.0 and 2.2 JSON Schemas, with an advisory dual
cross-check).
- Multi-format export: SARIF (JSON), Markdown, ODT and PDF, each with up to five
checksum sidecars (SHA-256, SHA-512, SHA3-512, BLAKE3-512, SHAKE256-512).
- Bootstrap 5.3 web UI matching the ndaal house style: navbar, cards, severity
badges, a light/dark `data-bs-theme` switcher, and an Info menu (About, System
info, Privacy, Security, License, Imprint, Changelog).
- CLI subcommands `serve` (default), `validate` and `export`.
- Exhaustive integration test sequence (`tests/test_routes.rs`), a
path-traversal regression corpus (`tests/test_path_security.rs`), and eight
`cargo-fuzz` targets under `fuzz/`.
- Bruno API test collection under `test/bruno/`.
### Security
- HTTPS only on TLS 1.3, built on rustls with the **aws-lc-rs** provider and
`prefer-post-quantum`, so the **X25519MLKEM768** post-quantum hybrid
key-exchange group is offered first. Self-signed localhost certificate
regenerated at every start-up.
- HTTP/3 over QUIC (UDP), advertised via `Alt-Svc`.
- Defence-in-depth response headers on every response (CSP `script-src 'self'`,
HSTS, `X-Frame-Options: DENY`, `nosniff`, `Referrer-Policy: no-referrer`,
Permissions-Policy deny list, COOP/COEP/CORP).
- `#![forbid(unsafe_code)]`; lint policy denies `unwrap`/`expect`/`panic`,
unchecked arithmetic and unchecked indexing in production code; `cargo-deny`
and `cargo-audit` configured.
- Exports written through capability-scoped `cap-std` directory handles with
create-new semantics (path-traversal / TOCTOU defence).