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: NewClientFromRefreshableConfig respects SecurityConfig #701

Merged
merged 4 commits into from
Sep 30, 2024

Conversation

bmoylan
Copy link
Contributor

@bmoylan bmoylan commented Sep 30, 2024

Fixes regression from #689, which now depends on the builder's b.TLSConfig being nil in case we should construct a refreshable provider.


This change is Reviewable

@@ -225,7 +223,6 @@ func newClientBuilder() *clientBuilder {
KeepAlive: defaultKeepAlive,
SocksProxyURL: nil,
})),
TLSConfig: defaultTLSConfig,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Build() will now create a TLSConfigProvider if this is not set.

@@ -402,6 +402,12 @@ func newValidatedClientParamsFromConfig(ctx context.Context, config ClientConfig
HTTP2ReadIdleTimeout: derefPtr(config.HTTP2ReadIdleTimeout, defaultHTTP2ReadIdleTimeout),
ProxyFromEnvironment: derefPtr(config.ProxyFromEnvironment, true),
TLSHandshakeTimeout: derefPtr(config.TLSHandshakeTimeout, defaultTLSHandshakeTimeout),
TLS: refreshingclient.TLSParams{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should have been added in #689 - tests now confirm this config is plumbed through

Copy link
Contributor

@tabboud tabboud left a comment

Choose a reason for hiding this comment

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

👍

@bulldozer-bot bulldozer-bot bot merged commit e314b90 into develop Sep 30, 2024
6 checks passed
@bulldozer-bot bulldozer-bot bot deleted the bm/tls-config branch September 30, 2024 20:08
@autorelease3
Copy link

autorelease3 bot commented Sep 30, 2024

Released v2.83.0

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

Successfully merging this pull request may close these issues.

3 participants