Skip to content

fix(docker): one trust store for both server images; ship mcli notices - #295

Merged
Vonng merged 2 commits into
mainfrom
claude/docker-image-review-improvements-5fc338
Nov 9, 2026
Merged

Vonng merged 2 commits into
mainfrom
claude/docker-image-review-improvements-5fc338

Conversation

@Vonng

@Vonng Vonng commented Nov 9, 2026

Copy link
Copy Markdown
Member

Contribution Licensing (no CLA, inbound=outbound, DCO required)

This pull request contributes to PGSTY SILO (pgsty/silo). Code contributions
are accepted under AGPL-3.0-or-later, the same license as the server.
This project does not use a CLA or require a separate Apache-2.0 license grant.
By submitting this pull request I represent that I have the right to contribute
the code changes under this repository's
GNU Affero General Public License v3.0 or later
and retain copyright in my original work. Existing copyright and license
notices remain intact; separately licensed material keeps its applicable terms.
Every commit must carry a DCO Signed-off-by trailer
(git commit -s) certifying the
Developer Certificate of Origin — see
CONTRIBUTING.md.

Description

  • Distroless CA bundle: Dockerfile.distroless now replaces Debian's bundle with the same UBI bundle as Dockerfile.goreleaser. Debian's bundle still contained the two roots the classic image blocklists per RHSB-2026-012 (Comodo AAA Services root, emSign ECC Root CA - G3). The busybox and distroless bases are now pinned by digest.
  • mcli legal files: the classic image ships /licenses/mcli/{LICENSE,NOTICE,CREDITS}, copied from the same verified archive as the bundled binary.
  • mcli pins: MC_*_SHA256 now match RELEASE.2026-10-26T00-00-00Z. The release workflow already overrode them from the attested checksum file, but a plain local build failed with "Published checksum drift".
  • Dependabot: adds a docker update so the digest-pinned bases keep receiving fixes.

Motivation and Context

Found while reviewing the silo, mc and silo-console images: the two server variants trusted different root sets, and the bundled client's notices were missing.

How to test this PR?

  • test-release.yml now asserts the distroless bundle parses (more than 100 subjects) and contains neither blocklisted subject.
  • Locally (linux/arm64): the distroless image has 118 roots and none of the blocked ones, keeps its HEALTHCHECK, and turns healthy when run as --user 10001:10001. A full classic-image build passed with the corrected pins. /licenses/mcli/* is byte-identical to the archive. mcli, mc and curl run, curl reaches public HTTPS, and the server starts as root and as UID 10001.

Compatibility impact

None for clients or configuration. Distroless users who relied on either blocklisted root now see the same TLS failure as classic-image users.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • All commits are signed off (git commit -s) per the DCO
  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • make verifiers passes
  • Relevant package tests and make build pass
  • Compatibility and rollback impact documented
  • Internal documentation updated
  • Public documentation update opened in pgsty/silo.pgsty.com, if needed

🤖 Generated with Claude Code

Vonng and others added 2 commits November 9, 2026 09:36
…assic image

The distroless variant inherited Debian's CA bundle, which still contains
the two roots (Comodo AAA Services root, emSign ECC Root CA - G3) that the
classic image blocklists per RHSB-2026-012. Build the same UBI bundle in a
throwaway stage and replace the only file under /etc/ssl/certs with it.

Pin the busybox and distroless bases by digest like Dockerfile.goreleaser,
and gate the shipped file in test-release: the bundle must parse and must
not contain either blocklisted subject.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
Copy LICENSE, NOTICE and CREDITS from the same verified mcli archive as
the bundled binary into /licenses/mcli; the server's CREDITS covers only
the server's own dependencies.

Correct the mcli archive pins to the RELEASE.2026-10-26T00-00-00Z
checksums. The release workflow overrides them from the attested
checksum file, but a plain local build failed with "Published checksum
drift".

Add a Dependabot docker update so the digest-pinned bases in
Dockerfile.goreleaser and Dockerfile.distroless keep receiving fixes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Feng Ruohang <[email protected]>
@Vonng
Vonng merged commit 16738c2 into main Nov 9, 2026
@Vonng
Vonng deleted the claude/docker-image-review-improvements-5fc338 branch November 9, 2026 01:38
Vonng added a commit that referenced this pull request Nov 9, 2026
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