Skip to content

Repin rui314/setup-mold to the current v1 and update rustls - #1248

Merged
epompeii merged 1 commit into
develfrom
u/ep/online-lints
Oct 16, 2026
Merged

epompeii merged 1 commit into
develfrom
u/ep/online-lints

Conversation

@epompeii

Copy link
Copy Markdown
Member

Problem

The devel push at badbfa6a (run https://github.com/bencherdev/bencher/actions/runs/38831217036) fails two lint jobs. Both are continue-on-error: true, so neither blocks a merge, but both are red on every pull request.

  • Lint / Zizmor Online exits 13 with 14 medium ref-version-mismatch findings, one for every rui314/setup-mold@10ca16bf91dc22e05ebdc935cad9c75ea248f621 # v1 pin. Upstream's v1 tag moved to 339e96b4ff1f3bd865856ba4cbbe8818a7acb038.
  • Lint / Cargo Deny Advisories fails on four rustls 0.23.45 advisories and unsafe-libyaml being unmaintained, and warns that chacha20 0.10.0 is yanked.

Change

  • Repin all 14 rui314/setup-mold sites to the commit v1 points at today and keep the # v1 comment: .github/actions/setup-rust/action.yml (1), cli.yml (1), deploy.yml (3), lint.yml (1), release.yml (2), test.yml (5), and update_sandbox.yml (1). The hash was resolved from the GitHub refs API (v1 is a lightweight tag on that commit).
  • Update rustls 0.23.45 to 0.23.46 and chacha20 0.10.0 to 0.10.2 in Cargo.lock with cargo update -p rustls --precise 0.23.46 and cargo update -p chacha20. No other package moves.

Upstream range

10ca16bf...339e96b4 is one commit, "Update default version to 3.0.0", which changes the mold-version input default in action.yml from 2.42.1 to 3.0.0. Every call site passes mold-version explicitly: update_sandbox.yml passes "2.34.1", and the rest pass ${{ inputs.mold-version }} from a reusable workflow or the setup-rust action whose mold-version input is required, which ci.yml sets to "2.34.1" at every call. The new default is never read, so CI still installs mold 2.34.1.

Advisories

  • RUSTSEC-2026-0346: Debug impls for client session values expose TLS secrets.
  • RUSTSEC-2026-0347: buffered application data is sent to the outer server after an ECH rejection.
  • RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authentication.
  • RUSTSEC-2026-0349: an unauthenticated ServerHello can downgrade later connections to classical key exchange.

All four are fixed in rustls 0.23.46. chacha20 0.10.0 (via rand 0.10.1) is yanked, as is 0.10.1; 0.10.2 is current. RUSTSEC-2024-0449 (unsafe-libyaml unmaintained) is handled separately by removing serde_yaml.

Verification

zizmor 1.25.2, the version CI pins, from the digest-pinned image zizmor-action runs (ghcr.io/zizmorcore/zizmor@sha256:14ea7f5c...), with --persona=regular --format=github, plus --no-online-audits for the offline job:

Tree Offline Online
devel exit 0 exit 13, the 14 ref-version-mismatch findings
this branch exit 0 exit 0, no findings

cargo-deny 0.19.5, the version cargo-deny-action v2.0.18 bundles, cargo deny --locked check advisories:

Tree Result
devel exit 1: RUSTSEC-2026-0346, -0347, -0348, -0349 (rustls 0.23.45), RUSTSEC-2024-0449 (unsafe-libyaml), yanked chacha20 0.10.0
this branch exit 1: RUSTSEC-2024-0449 (unsafe-libyaml) only

cargo deny --locked check bans licenses sources passes on this branch, and cargo check --workspace --all-targets --locked passes.

CI on this pull request is the final check.

The v1 tag of rui314/setup-mold moved to 339e96b4, which only changes the default mold-version; every call site passes mold-version explicitly.

Update rustls to 0.23.46 for RUSTSEC-2026-0346, -0347, -0348, and -0349, and chacha20 to 0.10.2 since 0.10.0 is yanked.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​rustls@​0.23.45 ⏵ 0.23.4681 +110093100100

View full report

@epompeii
epompeii marked this pull request as ready for review October 16, 2026 01:41
@github-actions

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

ProjectBencher
Branchu/ep/online-lints
Testbedintel-v1
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
Adapter::Json📈 view plot
🚷 view threshold
5.10 µs
(-2.51%)Baseline: 5.23 µs
5.46 µs
(93.36%)
Adapter::Magic (JSON)📈 view plot
🚷 view threshold
4.92 µs
(-2.29%)Baseline: 5.04 µs
5.23 µs
(94.18%)
Adapter::Magic (Rust)📈 view plot
🚷 view threshold
24.20 µs
(-8.78%)Baseline: 26.53 µs
32.24 µs
(75.06%)
Adapter::Rust📈 view plot
🚷 view threshold
4.46 µs
(-4.22%)Baseline: 4.65 µs
5.15 µs
(86.63%)
Adapter::RustBench📈 view plot
🚷 view threshold
4.45 µs
(-4.32%)Baseline: 4.65 µs
5.14 µs
(86.62%)
🐰 View full continuous benchmarking report in Bencher

@epompeii
epompeii merged commit 1deb55e into devel Oct 16, 2026
53 of 54 checks passed
@epompeii
epompeii deleted the u/ep/online-lints branch October 16, 2026 03:41
epompeii added a commit that referenced this pull request Oct 16, 2026
## Problem

`Lint / Cargo Deny Advisories` fails on `devel` (run
https://github.com/bencherdev/bencher/actions/runs/38831217036) with,
among others, RUSTSEC-2024-0449: `unsafe-libyaml` is unmaintained. It
reaches the tree only through `serde_yaml`, which is itself deprecated
(`0.9.34+deprecated`).

The only use of `serde_yaml` is one `serde_yaml::to_string` in
`JsonDisasterRecovery::into_yaml`, which serializes the generated
Litestream config. The API writes that string to `/etc/litestream.yml`
(`etc/litestream.yml` in debug builds) and passes it to `litestream
restore` and `litestream replicate` with `-config <path>
-no-expand-env`.

## Change

- The Litestream config is serialized with
`serde_json::to_string_pretty` and written to the same path. Litestream
reads its config with `gopkg.in/yaml.v2` (v2.4.0 in `go.mod` at both
`v0.5.16` and `v0.5.17`), which reads JSON documents, so the file name
and both Litestream invocations stay as they are. The struct shapes,
`kebab-case` renames, and `skip_serializing_if` attributes are
unchanged, so the parsed config is identical with one exception.
`serde_json` writes U+007F to U+009F, U+FFFE, and U+FFFF unescaped where
`serde_yaml` escaped them, and yaml.v2, a YAML 1.1 parser, rejects all
of them except U+0085, which it reads as a space. A config value
containing one of those characters now makes Litestream refuse to start,
or for U+0085 changes the parsed value. Paths, bucket names, endpoints,
and S3 credentials are ASCII in practice.
- Names that said YAML now say what they are:
`JsonDisasterRecovery::into_litestream_config`,
`LitestreamError::Serialize` (now carrying `serde_json::Error`),
`LitestreamError::WriteConfig`, and the four `into_litestream_config*`
tests, which now assert the emitted JSON.
- `serde_yaml` is removed from the workspace, `bencher_json` (including
the `db` feature), and `bencher_api`, which takes `serde_json` in its
place. `Cargo.lock` drops `serde_yaml` and `unsafe-libyaml`.

## Verification

- `cargo clippy --locked -p bencher_json -p bencher_api --all-features
--all-targets -- -D warnings`: clean.
- `cargo nextest run --locked -p bencher_json --all-features`: 229
passed.
- `cargo deny --locked check advisories`: RUSTSEC-2024-0449 is gone. The
four rustls advisories (RUSTSEC-2026-0346 to -0349) were fixed by #1248,
which this branch is rebased on.
- Parse equivalence: one fully populated config (S3 replica with `path`,
`endpoint`, `region`, `sync_interval`; `snapshot` with `interval` and
`retention`; `validation`; `checkpoint` with all three fields) rendered
by `devel` as YAML and by this branch as JSON. Both load to the same
document, `litestream databases -config <file> -no-expand-env` lists the
same database and replica on 0.5.16 and 0.5.17, and `litestream
replicate` logs the same parsed settings for both:

  ```
msg="replicating to" type=s3 sync-interval=1s bucket=gate-bucket
path=<prefix> region=us-east-1 endpoint=http://127.0.0.1:9000
  msg="starting validation monitor" system=store interval=6h0m0s
  msg="starting compaction monitor" system=store level=9 interval=1h0m0s
  ```

- Edge values: a secret and an S3 path made of a double quote, a
backslash, `$HOME`, `: `, leading and trailing spaces, and `é` parse
identically from the `devel` YAML and this branch's JSON on both
Litestream versions, authenticate against MinIO, and round trip; `$HOME`
is not expanded. The exception above came from feeding U+007F, U+0080,
U+0085, U+0090, U+009F, U+FFFE, and U+FFFF through Litestream's own
config reader at both versions.
- Boot round trip: a debug `api` build with `plus`, its
`plus.disaster_recovery` replicating to a local MinIO container with the
fully populated S3 settings above. On first boot the API writes the JSON
config, `litestream restore` exits 0 (`no matching backups found`), and
`litestream replicate` uploads LTX files to the bucket. A signup through
`POST /v0/auth/signup` then replicates; after stopping the API and
deleting the whole data directory, the next boot's `litestream restore`
recreates the database from MinIO with the same user row (same UUID) and
no migrations to run. The same round trip passes with the `file` replica
scheme, and both pass on Litestream 0.5.16 (what `devel` ships) and
0.5.17.

CI on this pull request is the final check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant