Skip to content

fix(ci): unblock security-audit and docs-and-hygiene on every PR - #641

Merged
vladimirrott merged 2 commits into
mainfrom
fix/ctutils-0385
Oct 24, 2026
Merged

vladimirrott merged 2 commits into
mainfrom
fix/ctutils-0385

Conversation

@vladimirrott

@vladimirrott vladimirrott commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Two required checks went red on every open PR this week for reasons outside the PRs. This fixes both, in one branch because each fix needs the other to go green.

RUSTSEC-2026-0385 (security-audit)

The advisory landed on 2026-10-23 (Humerous spotted it on #640). ctutils 0.4.2 could compile its constant-time mask helpers to branches, and its u128 comparisons branched on 32-bit targets. ctutils reaches the workspace only through digest 0.11 (cargo tree -i ctutils: ed25519-dalek, hmac, and hkdf in the sqlx-postgres SCRAM login). Our own token and receipt comparisons (auth.rs, transactions.rs, store/postgres.rs) use subtle, so they were never on this path. The lockfile moves the one package to 0.4.4, no new dependencies. CHANGELOG entry under Unreleased.

  • cargo audit: rc=0 (was rc=1), only the three catalogued GUI warnings left

systemd-analyze on the new runner image (docs-and-hygiene)

tests/release/systemd-directory-modes.test.sh failed on any systemd-analyze verify output. ubuntu-latest's systemd now warns about the host's own units:

/usr/lib/systemd/system/xfs_scrub_all.service:26: Support for option CPUAccounting= has been removed and it is ignored
/usr/lib/systemd/system/walinuxagent.service:21: Support for option CPUAccounting= has been removed and it is ignored

The test now drops lines naming a unit file under /usr/lib, /lib, /etc or /run systemd/, and still fails on anything else, including every line about our unit (it sits in a mktemp dir). It checks the filter on canned logs before using it. With a stub systemd-analyze:

runner output (host units only)     rc=0
warning about our unit              rc=1  /tmp/tmp.../sysknife-daemon.service:12: Unknown key name 'ProtectSystm' ...
host lines + a pathless warning     rc=1  sysknife-daemon.service: Command /bin/true is not executable ...
filter mutated to drop everything   rc=1  FAIL: own_unit_problems dropped a problem in the unit under test
filter mutated to keep everything   rc=1  FAIL: own_unit_problems kept a host-unit deprecation line

Local: cargo nextest run --workspace --locked 1993 passed; pre-push ci-local.sh --fast PASS. No test count change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UpyrhbDTW1gBwzGAC44GYU

ctutils 0.4.2 could compile its constant-time mask helpers to branches,
and its u128 comparisons branched on 32-bit targets. It reaches the
workspace through digest 0.11 (ed25519-dalek, hmac, sqlx-postgres SCRAM).
The advisory turned the required security-audit check red on every PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UpyrhbDTW1gBwzGAC44GYU
ubuntu-latest's newer systemd warns that CPUAccounting= was removed in
xfs_scrub_all.service and walinuxagent.service. `systemd-analyze verify`
loads those host units next to ours, and the test failed on any output,
so docs-and-hygiene went red on every PR. Drop only lines naming a unit
file under a system unit directory, and check that filter on canned logs
before trusting it with the real one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UpyrhbDTW1gBwzGAC44GYU
@vladimirrott vladimirrott changed the title fix(deps): bump ctutils to 0.4.4 for RUSTSEC-2026-0385 fix(ci): unblock security-audit and docs-and-hygiene on every PR Oct 24, 2026
@vladimirrott
vladimirrott merged commit 814c0cf into main Oct 24, 2026
13 checks passed
@vladimirrott
vladimirrott deleted the fix/ctutils-0385 branch October 24, 2026 15:52
vladimirrott added a commit that referenced this pull request Oct 24, 2026
Patch release: ctutils 0.4.4 for RUSTSEC-2026-0385 (#641) and the CLI's
rolled-back rendering (#632).


Claude-Session: https://claude.ai/code/session_01UpyrhbDTW1gBwzGAC44GYU

Co-authored-by: Claude Opus 5.5 <[email protected]>
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