Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SSH incompatibility with v25 #1039

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Fix SSH incompatibility with v25 #1039

merged 2 commits into from
Mar 26, 2024

Conversation

blampe
Copy link
Contributor

@blampe blampe commented Mar 25, 2024

The v25 upgrade made us sensitive to the ordering of our client options.

In particular if a host was specified last it would take precedence over the SSH dialer. This behavior was accounted for in the upstream patch but not in our own host resolution logic.

The PR adds a failing e2e test and a corresponding fix to our client options.

@blampe blampe requested a review from guineveresaenger March 25, 2024 20:58
Copy link

Does the PR have any schema changes?

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@@ -1108,8 +1107,9 @@ func configureDockerClientInner(configs map[string]string, host string) (*client
clientOpts = append(clientOpts,
client.FromEnv,
client.WithAPIVersionNegotiation(),
client.WithHost(helper.Host),
Copy link
Member

Choose a reason for hiding this comment

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

might be worth adding a comment about the ordering constraint.

@blampe blampe merged commit aab039d into master Mar 26, 2024
17 checks passed
@blampe blampe deleted the ssh-v25 branch March 26, 2024 22:39
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.

2 participants