chore: three items from the open-issue audit - #174
Merged
Conversation
Up to standards ✅🟢 Issues
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three small items from the open-issue audit. No behaviour changes — one comment
correction, one dead dependency, one stale comment block.
docs(docker)— the resolver's fixed uid is part of the deployment contract (#139)resolver.Dockerfilejustified its fixed uid with "the resolver has no localstate (Redis + upstream vault only), so no volume ownership to worry about".
That is no longer true: a deployment enabling scan telemetry over mTLS
bind-mounts a host PEM via
SCAN_FLUSH_CLIENT_IDENTITY, and the file ismode-restricted because it holds a private key — so its host owner has to match
uid 1000 for the resolver to read it.
Two things worth recording against the issue as filed:
volume into the resolver; the bind mount is operator-supplied in a production
deployment, and the
.env.exampleline is commented out. The comment isconditionally stale, not flatly wrong.
than as an error". It does not —
build_scan_flush_clientis called from thestartup path at
main.rs:188with?, so an unreadable PEM aborts boot witha contextual error naming the path. That lowers the severity considerably.
node.Dockerfileis left alone: its comment says the published deployment pathonly binds named volumes, and that is still accurate — the node service mounts
node-dataandnode-plugins, both named.chore(deps)— drop dpp-node's unusedserde_jcs(#68, item 1)Nothing under
crates/orcli/references it; the only surviving mentions area doc comment in
calc_battery.rsdescribing whatdpp-calcpulls in, and anote in
dpp-types/Cargo.tomlrecording the refactor that orphaned it.The hazard #68 describes is already gone. It argued this was "two
canonicalisers in one signing binary" with the risk of signing bytes core's
verifier cannot reproduce. The lock has a single
serde_jcs 0.2.0, reachedtransitively by
dpp-calc,dpp-crypto,dpp-rulesanddpp-vc. Theworkspace manifest already said
"0.2", not the"0.1"the issue recorded.What was left was one redundant declaration, and this removes it.
Items 2 (
zip0.6.6 vs 8.6.0) and 3 (image0.23.14 vs 0.24.9) are untouchedand still live —
cargo deny check bansstill reports both.docs(deny)— reconcile the duplicate-count comments (#68, side finding)[bans]carried two overlapping comment blocks justifyingmultiple-versions = "warn", one claiming ~70 duplicated pairs and the other~172. Both were stale and they contradicted each other. Replaced with a single
block carrying a dated, measured number (64 distinct crates / 148 crate-version
entries, 2026-08-22, Windows) and an explicit note that the figure is platform
dependent and wants re-measuring on Linux before anyone acts on it.
Verification
just fmt-checkandjust lintgreen;cargo deny check bansreportsbans ok;cargo check -p dpp-nodeclean after the dependency removal.Closes #139.