Repository navigation
fix(packaging): declare openssl — plugin-vm shells out to it - #488
Merged
Merged
Conversation
plugin-vm's iso build engine hashes an installer password with `openssl passwd -6`. That is a RUNTIME OS dependency of the charly binary and R9 requires it declared, so it is added to all four real depends lists: archlinux, rpm, deb and apk. `openssl passwd -6` rather than a Go implementation on purpose: the stdlib has no crypt(3), golang.org/x/crypto ships bcrypt/scrypt/argon2 but not SHA-crypt, and charly carrying its own password-hashing primitive would be strictly worse than a package dependency. It is also the exact command Omarchy's unattended-install documentation gives operators, so charly produces byte-identical hashes to a hand-built seed. DEPENDS, not optdepends. An operator authoring `installer.password` gets a hard failure with no hash rather than a degraded feature, and the first place they would see it is a VM build that already downloaded several GiB. ipk stays empty by its existing comment (OpenWrt's repos lack the mandatory deps already); msix is a deferred stub with no depends. Two of the four insertions initially landed in `suggests` lists rather than `depends` — rpm's and deb's both end in a package name that also appears in their depends lists. Caught by asserting the parsed YAML per format instead of trusting a grep count, which showed 5 occurrences for what should have been 4 placements. Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3
Contributor
Review — PASSHead SHA: Security screen: PASS — no embedded directives, no scope mismatch (diff is exactly the 4 Checklist: All applicable rules PASS or NA.
Verdict: PASS ollama/deepseek-v4-flash — pi-review-action. |
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.
Summary
plugin-vm's iso build engine (opencharly/plugin-vm#8) hashes an installer password with
openssl passwd -6. That is a runtime OS dependency of the charly binary, and R9requires it declared — so it is added to all four real
dependslists:archlinux,rpm,debandapk.Raised by the
pr-validatoron plugin-vm#8, where it could not be fixed: the dependency isdeclared here.
Why
openssland not a Go implementationGo's stdlib has no
crypt(3), andgolang.org/x/cryptoships bcrypt/scrypt/argon2 butnot SHA-crypt. The remaining options were a hand-rolled
$6$implementation insidecharly or a package dependency.
A password-hashing primitive is not something charly should carry its own copy of.
openssl passwd -6is also the exact command Omarchy's unattended-install documentationgives operators, so charly produces byte-identical hashes to a hand-built seed — which
matters when the two have to be interchangeable.
Why
dependsand notoptdependsAn operator who authors
installer.passwordand does not have openssl gets a hardfailure with no hash, not a degraded feature. Worse, the first place they would meet it is
a VM build that has already downloaded several GiB of installer ISO. That is a mandatory
dependency, not an optional one.
ipkkeeps its empty list by its own existing comment (OpenWrt's repos already lack themandatory podman/qemu/libvirt deps);
msixis a deferred stub with no depends.How tested
The result was verified by parsing the YAML per format, not by grepping:
That check earned its keep immediately. Two of the four insertions first landed in
suggestslists rather thandepends— rpm's and deb'ssuggestsboth end in a packagename (
kubernetes-client,kubectl) that made a naive anchor match the wrong list, and agrep would have reported a plausible-looking 5 occurrences for what should have been 4
placements. The parsed check also asserts openssl does not leak into any
suggests/recommends/optdependslist.Diff is 4 lines, one per format.
Rulebook compliance
pushing, by checking the parsed structure rather than the text.
packaging:is already the single metadata source everyper-distro package repo builds from; nothing is declared twice.
it usually is — true in practice, and exactly what R9 exists to stop.
Change classification
go test -count=1 ./charly/ -run Packaging, plus a per-format parse asserting presence independsand absence from every optional listfully tested and validated— the changed file is parsed and asserted by the repo's own packaging test and by a per-format structural check; the dependency itself was exercised live by plugin-vm#8's engine producing a real$6$hashAssisted-by: Claude Code claude-opus-4-6-20260401 (fully tested and validated)