Skip to content

Upgrade testcontainers to v0.43 and x/crypto to v0.54 - #1741

Merged
ericyan merged 1 commit into
masterfrom
dep-update
Jul 29, 2026
Merged

Upgrade testcontainers to v0.43 and x/crypto to v0.54#1741
ericyan merged 1 commit into
masterfrom
dep-update

Conversation

@ericyan

@ericyan ericyan commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR upgrades testcontainers to v0.43.0 and x/crypto to v0.54.0. This is to address security vulnerabilities.

Related issue: #1738

Testcontainers v0.42.0 introduced the migration to Moby modules. As a result:

  • github.com/moby/moby has replaced github.com/docker/docker as its Docker client dependency path, which lead to vendor/ churn
  • It introduced a port API change as part of the Moby module migration, which requires a code change in test_utils.go

In case this PR introduced Go code changes:

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

- Upgrade dependencies to address security vulnerabilities.
- Testcontainers v0.42.0 introduced a port API change as part of the Moby module migration which requires a code change in `test_utils.go`
@ericyan ericyan changed the title Upgrade Upgrade testcontainers to v0.43 and x/crypto to v0.54 Jul 29, 2026
@ericyan
ericyan marked this pull request as ready for review July 29, 2026 10:39
@ericyan
ericyan requested a review from timvaillancourt as a code owner July 29, 2026 10:39
Copilot AI review requested due to automatic review settings July 29, 2026 10:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@ericyan
ericyan merged commit 8e498d1 into master Jul 29, 2026
14 checks passed
davidham added a commit to davidham/gh-ost that referenced this pull request Jul 29, 2026
go/logic/test_utils.go has no _test.go suffix, so it is part of the
ordinary build of package logic. It imports testcontainers-go, and
package logic is imported by go/cmd/gh-ost, so testcontainers and its
transitive dependencies are compiled into the released gh-ost binary
and recorded in its build info.

Container-testing infrastructure has no role at runtime. Shipping it
enlarges the binary and widens the dependency surface that scanners
report against, which is how the vendored Docker client came to
account for 3 HIGH CVEs in the v1.1.10 binary (github#1738). Upgrading
testcontainers in github#1741 cleared those particular findings, but the
structural issue remains: a future advisory anywhere in the
container-testing tree would again surface in scans of a binary that
never calls into it.

Rename the file to test_utils_test.go so it stays available to the
tests in the same package while being excluded from the ordinary
build. Every identifier it declares is referenced only from
applier_test.go, streamer_test.go and migrator_test.go, so this is a
pure rename with no content change.

Effect on the linux/amd64 binary, built with go1.25.12:
  - modules recorded in build info: 63 -> 22
  - binary size: 18.64 MB -> 16.99 MB
  - Trivy HIGH/CRITICAL: 0 -> 0, unchanged; master is already clean
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.

3 participants