Skip to content

Conversation

menahyouyeah
Copy link
Contributor

Description
chore: update github.com/docker/docker dependency to v28.3.3 to fix GHSA-4vq8-7jfc-9cvp

@menahyouyeah menahyouyeah requested a review from a team as a code owner August 22, 2025 15:36
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @menahyouyeah, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request primarily focuses on a critical security update for the Docker dependencies, bringing github.com/docker/docker and github.com/docker/cli to v28.3.3. Beyond the security fix, the changes involve a broad modernization of the codebase, including updating the Go build environment, refactoring internal YAML and interpolation logic, and a significant evolution of the internal API definitions. These updates introduce new features and deprecate older ones, reflecting a move towards more robust and secure practices. Additionally, improvements to configuration handling and SSH connection management are included.

Highlights

  • Dependency Updates: The core github.com/docker/docker and github.com/docker/cli dependencies have been updated to v28.3.3, addressing a critical security advisory (GHSA-4vq8-7jfc-9cvp). This update also removes previous version pinning, indicating improved compatibility.
  • Go Toolchain Alignment: The Go build environment has been updated, with go:build directives changing from go1.22 to go1.23 across several vendor/github.com/docker/cli files. This aligns the project with a newer Go toolchain.
  • Internal Codebase Refactoring: Significant refactoring occurred in the vendor/github.com/docker/cli codebase, particularly in YAML parsing (migrating from yaml.v2 to yaml.v3) and interpolation logic. This includes explicit error handling for type casting and streamlined recursive key conversion.
  • API Version Bump and Schema Evolution: The internal API definitions have been extensively updated, bumping the API version from 1.47 to 1.51. This includes the introduction of new fields (e.g., image mount type, GwPriority for network endpoints, detailed container stats, DeviceInfo, FirewallInfo), deprecation of older fields, and removal of various internal utility packages related to archiving and filesystem operations, suggesting a shift towards external or more modern alternatives.
  • Configuration and Credential Management: Changes to vendor/github.com/docker/cli/cli/config and vendor/github.com/docker/cli/cli/configfile enhance configuration handling, including improved symlink management and support for DOCKER_AUTH_CONFIG environment variable for credential stores.
  • SSH Connection Handling: Updates to vendor/github.com/docker/cli/cli/connhelper files refine SSH connection handling, specifically by using context.WithoutCancel for exec.CommandContext to prevent premature termination of SSH processes and by improving error formatting.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the github.com/docker/docker dependency to v28.3.3 to address the security vulnerability GHSA-4vq8-7jfc-9cvp. The changes primarily consist of updates to go.mod and go.sum, along with a large number of changes to vendored files from the updated dependency. The update removes a replace directive that was pinning an older version, which is a positive step. The changes within the vendored dependency include numerous refactorings, bug fixes, and cleanups, such as improved error handling, better handling of symlinks, and performance optimizations. The changes appear correct and beneficial. The pull request achieves its goal of updating the dependency to a secure version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant