Skip to content

fix(packaging): declare openssl — plugin-vm shells out to it - #488

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/packaging-openssl
Aug 30, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/packaging-openssl

Conversation

@atrawog

@atrawog atrawog commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

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 R9
requires it declared — so it is added to all four real depends lists: archlinux, rpm,
deb and apk.

Raised by the pr-validator on plugin-vm#8, where it could not be fixed: the dependency is
declared here.

Why openssl and not a Go implementation

Go's stdlib has no crypt(3), and golang.org/x/crypto ships bcrypt/scrypt/argon2 but
not SHA-crypt. The remaining options were a hand-rolled $6$ implementation inside
charly or a package dependency.

A password-hashing primitive is not something charly should carry its own copy of.
openssl passwd -6 is also the exact command Omarchy's unattended-install documentation
gives operators, so charly produces byte-identical hashes to a hand-built seed — which
matters when the two have to be interchangeable.

Why depends and not optdepends

An operator who authors installer.password and does not have openssl gets a hard
failure 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.

ipk keeps its empty list by its own existing comment (OpenWrt's repos already lack the
mandatory podman/qemu/libvirt deps); msix is a deferred stub with no depends.

How tested

$ go test -count=1 ./charly/ -run 'Packaging'
ok  	github.com/opencharly/charly/charly	0.420s

The result was verified by parsing the YAML per format, not by grepping:

archlinux  depends has openssl: True
rpm        depends has openssl: True
deb        depends has openssl: True
apk        depends has openssl: True
ALL FOUR CLEAN: True

That check earned its keep immediately. Two of the four insertions first landed in
suggests lists rather than depends
— rpm's and deb's suggests both end in a package
name (kubernetes-client, kubectl) that made a naive anchor match the wrong list, and a
grep 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/optdepends list.

Diff is 4 lines, one per format.

Rulebook compliance

  • R1 — RCA every anomaly. The misplaced entries were caught and corrected before
    pushing, by checking the parsed structure rather than the text.
  • R3 — no duplication. packaging: is already the single metadata source every
    per-distro package repo builds from; nothing is declared twice.
  • R4 — no workarounds. The alternative rejected was assuming openssl is present because
    it usually is — true in practice, and exactly what R9 exists to stop.
  • R7 — prove the gate. The packaging test pasted above, plus the per-format assertion.
  • R10 — fresh disposable proof. The assertion parses the committed file.

Change classification

Change class packaging metadata (one dependency, four formats); no code change
Verification gate go test -count=1 ./charly/ -run Packaging, plus a per-format parse asserting presence in depends and absence from every optional list
Attribution tier fully 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$ hash

Assisted-by: Claude Code claude-opus-4-6-20260401 (fully tested and validated)

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
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: f6b89ec2ef4a (branch: fix/packaging-openssl)

Security screen: PASS — no embedded directives, no scope mismatch (diff is exactly the 4 openssl depends additions the body describes), no secrets/exfiltration, no weakened guardrails, no supply-chain risk (a packaging dependency declaration, not a code dependency).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: Complete body; config-class gate (go test -run Packaging + per-format parse) matches the change class; attribution tier justified for a config change; body ends with the required *Assisted-by:* line.
  • R1–R10: No failures/warnings; no forbidden framing; no duplication (single metadata source); no workarounds (explicitly rejects assuming openssl present); R9 satisfied (runtime OS dep declared in packaging:); R10 evidence internally consistent — 4 additions in depends (verified from diff context: each hunk precedes suggests/optdepends), none in optional lists; ipk/msix exclusion explained by existing comments.
  • B13–B18: N/A (no candy/schema/cue/code changes, no concurrency, single atomic commit, no destroy/rebuild, no Go code).
  • B16 placement: CORRECT — packaging metadata belongs in packaging/charly.yml.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 30, 2026 12:38
@github-actions
github-actions Bot merged commit 238f8cd into main Aug 30, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 30, 2026
@aitrawog
aitrawog deleted the fix/packaging-openssl branch September 25, 2026 19:06
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