cowlib 2.22.0 is pinned, and the service carries its Container diagram (mcl-stations#9) #10

Closed
titan wants to merge 0 commits from titan/9-push-runs-green into main
Member

Purpose (defect): a push to main is green again, so a v0.7.0 tag can pass tag-tested-release.sh (mcl-stations#9).

Two gates were red on main 8ded83a, and both are fixed here by the plain action.

A. Dependency advisories / erlang in . (container) — the cowlib waiver (mcl-stations#5).
The job's own log says it: advisories-waivers.txt:13: EEF-CVE-2026-43966 cowlib: the waiver expired on 2026-11-11, fix it or open a dated one that covers today, exit 2. The row was written when cowlib 2.21.0 was the newest release; cowlib 2.22.0 shipped on 2026-11-09 and carries the upstream fix (4401b85). osv reports Hex cowlib 2.21.0 vulnerable and 2.22.0 clean, so the bump is available and preferred over a renewal:

  • rebar.config pins {cowlib, "2.22.0"} at the top level, where a pin wins over what cowboy asks for (the same shape as the macula line). Without a pin the resolve floats.
  • the expired row goes, and the file keeps its header plus the form a future waiver must take. A waiver is for what cannot be fixed yet.

B. c4-model / c4-model-1 — the Container diagram was missing.
The gate's whole answer was c4_model: no assets/*container*.svg: a service is planned from its Context and Container model (macula-sponsors#113): this repository keeps architecture/README.md, so it asks for a Container diagram beside Context and Components.

  • architecture/c4_diagrams.py gains containers(), drawn from the Containerfile, deploy/docker-compose.yml and config/sys.config.src: the one container on host networking, the ETS read model inside it and no data volume, the identity volume, the Unix-socket health check, and the four environment variables mcl_om refuses to boot without. Same Diagram class and lane form as mcl-context/components here and as mcl-mail's and mcl-rag's container views; no notation invented.
  • assets/c4-container.svg is generated by the script, and architecture/README.md gains a Level 2 section with its table, with the components moved to Level 3.

Proof, on msi00 in the digest test.yml pins (macula-ci-otp@sha256:3e202cf7…), as uid 1000:

  • the c4 gate's own script, taken from ci-images-c4-model.yml: exit 0 over the tree (before: the one line above).
  • the advisories gate's own script, taken from ci-images-dependency-advisories.yml, with osv-scanner v2.7.0 checked against the workflow's pinned sha256: 0 advisory finding(s), 0 waived, 0 left, exit 0. On main the same script exits 2 at the expired row. The SBOM it scans resolves to 8 packages, cowlib 2.22.0 among them, and every one of them answers clean against api.osv.dev when asked directly.
  • rebar3 lint, xref, eunit and dialyzer: each returns 0; eunit reports all 132 tests passed. The PR run below is the same gate end to end on the forge.

Refs macula-services/mcl-stations#5, macula-services/mcl-stations#9

Purpose (defect): a push to main is green again, so a v0.7.0 tag can pass `tag-tested-release.sh` (mcl-stations#9). Two gates were red on main `8ded83a`, and both are fixed here by the plain action. **A. `Dependency advisories` / `erlang in . (container)` — the cowlib waiver (mcl-stations#5).** The job's own log says it: `advisories-waivers.txt:13: EEF-CVE-2026-43966 cowlib: the waiver expired on 2026-11-11, fix it or open a dated one that covers today`, exit 2. The row was written when cowlib 2.21.0 was the newest release; cowlib 2.22.0 shipped on 2026-11-09 and carries the upstream fix (4401b85). osv reports Hex cowlib 2.21.0 vulnerable and 2.22.0 clean, so the bump is available and preferred over a renewal: - `rebar.config` pins `{cowlib, "2.22.0"}` at the top level, where a pin wins over what cowboy asks for (the same shape as the `macula` line). Without a pin the resolve floats. - the expired row goes, and the file keeps its header plus the form a future waiver must take. A waiver is for what cannot be fixed yet. **B. `c4-model` / `c4-model-1` — the Container diagram was missing.** The gate's whole answer was `c4_model: no assets/*container*.svg: a service is planned from its Context and Container model (macula-sponsors#113)`: this repository keeps `architecture/README.md`, so it asks for a Container diagram beside Context and Components. - `architecture/c4_diagrams.py` gains `containers()`, drawn from the `Containerfile`, `deploy/docker-compose.yml` and `config/sys.config.src`: the one container on host networking, the ETS read model inside it and no data volume, the identity volume, the Unix-socket health check, and the four environment variables mcl_om refuses to boot without. Same `Diagram` class and lane form as `mcl-context`/`components` here and as mcl-mail's and mcl-rag's container views; no notation invented. - `assets/c4-container.svg` is generated by the script, and `architecture/README.md` gains a Level 2 section with its table, with the components moved to Level 3. **Proof, on msi00 in the digest `test.yml` pins (`macula-ci-otp@sha256:3e202cf7…`), as uid 1000:** - the c4 gate's own script, taken from `ci-images-c4-model.yml`: exit 0 over the tree (before: the one line above). - the advisories gate's own script, taken from `ci-images-dependency-advisories.yml`, with osv-scanner v2.7.0 checked against the workflow's pinned sha256: `0 advisory finding(s), 0 waived, 0 left`, exit 0. On main the same script exits 2 at the expired row. The SBOM it scans resolves to 8 packages, cowlib 2.22.0 among them, and every one of them answers clean against api.osv.dev when asked directly. - `rebar3 lint`, `xref`, `eunit` and `dialyzer`: each returns 0; eunit reports all 132 tests passed. The PR run below is the same gate end to end on the forge. Refs macula-services/mcl-stations#5, macula-services/mcl-stations#9
cowlib 2.22.0 is pinned, and the service carries its Container diagram (mcl-stations#9)
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
Test / guard-1 (pull_request) Successful in 4s
Test / guard (pull_request) Successful in 0s
Test / erlang in . (pull_request) Has been skipped
Test / erlang in . (container) (pull_request) Successful in 9s
Test / Dependency advisories (pull_request) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m15s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 2s
468c645a7d
The advisories gate on main was red on one row: the cowlib waiver expired on
2026-11-11, and the gate refuses an expired waiver before it scans. The row was
written when no release carried the fix; cowlib 2.22.0 does (upstream 4401b85),
and osv reports 2.21.0 vulnerable and 2.22.0 clean. So the row goes and rebar.config
pins 2.22.0 at the top level, where a pin wins over what cowboy asks for: what
the waiver was covering is now a released version, and the resolve stops
floating.

The c4 gate was red on the whole of one line: this repository keeps
architecture/README.md, so the gate asks for a Container diagram beside the
Context and Component ones, and assets/ held only those two. The diagram is
drawn by architecture/c4_diagrams.py from the Containerfile,
deploy/docker-compose.yml and config/sys.config.src: the one container on host
networking, the ETS read model inside it and no data volume, the identity
volume, the Unix-socket health check, and the four variables mcl_om refuses to
boot without. architecture/README.md gains the Level 2 table, the components
move to Level 3.

Proven on msi00 in the digest test.yml pins, as uid 1000: the c4 gate's own
script exits 0 over the tree; the advisories gate's own script, with osv-scanner
v2.7.0 at the workflow's pinned sha256, reports 0 findings and exits 0 (on main
it exits 2 at the expired row); rebar3 lint, xref, eunit (132 tests) and
dialyzer all return 0.
The container view says its one write is the node key, not that it writes nothing (review r=1)
All checks were successful
Test / guard (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
Test / guard-1 (pull_request) Successful in 4s
Test / erlang in . (pull_request) Has been skipped
Test / Dependency advisories (pull_request) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m16s
Test / erlang in . (container) (pull_request) Successful in 10s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 3s
5a3fe3fb3b
Neptunus, r=1: the service box said 'Writes no disk' while the Identity key box
beside it says mcl_om mints identity.key onto /etc/mcl/secrets on first boot. The
sentence now reads 'Its only write is the node key', which is what the two boxes
say together.
Member

Landed by hand as 8cd16afb1b (--no-ff, gated).

Landed by hand as 8cd16afb1b34be08029ebf1d322ac2349287340d (--no-ff, gated).
terra closed this pull request 2026-11-24 01:53:16 +00:00
All checks were successful
Test / guard (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
Test / guard-1 (pull_request) Successful in 4s
Test / erlang in . (pull_request) Has been skipped
Test / Dependency advisories (pull_request) Successful in 0s
Test / rebar3 lint, xref, eunit, dialyzer (OTP 28.4.3) (pull_request) Successful in 3m16s
Test / erlang in . (container) (pull_request) Successful in 10s
Test / File the tested resolve for the signer (pull_request) Has been skipped
Test / The tested lock arrives whole (pull_request) Successful in 3s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-stations!10
No description provided.