Repository navigation
feat: Run the controllers on an empty base image - #34
Merged
Merged
Conversation
The image ran on Debian's distroless base, so a CA distrust such as the eMudhra removal reached the controllers only through a rebuild against a new Debian package. Debian still trusts emSign ECC Root CA G3 today. Key features/changes: - Build the runtime stage FROM scratch, keeping USER 65532:65532 - Blank-import golang.org/x/crypto/x509roots/fallback in vpc-controller and fabric-identity-controller, at the 20 Oct 2026 version that drops emSign ECC Root CA G3, C1 and C3 - Copy no CA file into the image; Go uses the embedded bundle because scratch has no system pool, and Renovate's gomod manager moves it Neither binary loads time zones or looks up users, so the image carries no tzdata or passwd file.
kevwilliams
approved these changes
Oct 21, 2026
kevwilliams
left a comment
There was a problem hiding this comment.
Go's 2026-10-20 fallback bundle carries no emSign ECC G3, and the scratch image keeps both binaries under user 65532.
This was referenced Oct 21, 2026
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
The VPC and fabric identity controllers still trust the eMudhra emSign ECC Root CA G3, because the Debian distroless base they run on has not dropped it yet.
Each CA change has reached these controllers only through a Debian package update and a rebuild.
This change runs both controllers on an empty base and takes the trusted roots from the Go project's maintained bundle, compiled into each binary, which already excludes the distrusted eMudhra roots. Renovate's weekly Go update now carries future root removals.
Test plan
Fixes #33
Related to datum-cloud/infra#7436