Skip to content

Conversation

@mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Aug 7, 2025

As of go-connections 0.6.0, there is no difference between "server" and "client" configuration; so, take this opportunity to switch from "server" defaults in client contexts, which were used for an unknown reason.

Also, don't use the whole tlsconfig.ClientDefault(), to slightly move into the direction of using the Go built-in defaults, and to get a bit closer to getting out of the business of managing TLS policy.

The TLS configuration in docker/daemon continues to use the full tlsconfig.Client(), because that's (to an extent) consistent with the defaults of github.com/docker/docker/client.

Should not change behavior (but the update from go-connections 0.5.0 to 0.6.0 did change the list of accepted TLS 1.2 cipher suites).

As of go-connections 0.6.0, there is no difference between
"server" and "client" configuration; so, take this opportunity
to switch from "server" defaults in client contexts, which were used
for an unknown reason.

Also, don't use the whole tlsconfig.ClientDefault(), to _slightly_
move into the direction of using the Go built-in defaults, and to
get a _bit_ closer to getting out of the business of managing TLS policy.

The TLS configuration in docker/daemon continues to use the full
tlsconfig.Client(), because that's (to an extent) consistent with
the defaults of github.com/docker/docker/client.

Should not change behavior (but the update from go-connections 0.5.0
to 0.6.0 did change the list of accepted TLS 1.2 cipher suites).

Signed-off-by: Miloslav Trmač <[email protected]>
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

@mtrmac mtrmac merged commit 898f385 into containers:main Aug 8, 2025
10 checks passed
@mtrmac mtrmac deleted the tls branch August 8, 2025 14:21
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