Skip to content

feat: add TLSConfigManager for managing TLS configuration#27100

Merged
gwossum merged 2 commits intomaster-1.xfrom
gw/TLSConfigManager
Jan 8, 2026
Merged

feat: add TLSConfigManager for managing TLS configuration#27100
gwossum merged 2 commits intomaster-1.xfrom
gw/TLSConfigManager

Conversation

@gwossum
Copy link
Copy Markdown
Member

@gwossum gwossum commented Jan 7, 2026

No description provided.

@gwossum gwossum self-assigned this Jan 7, 2026
Copy link
Copy Markdown
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

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

A few nits in the testing.

serverResult <- err
return
}
defer conn.Close()
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.

Check error here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Modified to send the Close error over the serverResult channel by joining it with the read error.

Copy link
Copy Markdown
Contributor

@davidby-influx davidby-influx left a comment

Choose a reason for hiding this comment

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

LGTM. I missed the server-side error check in the first review...

@gwossum gwossum merged commit 6298d5a into master-1.x Jan 8, 2026
9 checks passed
@gwossum gwossum deleted the gw/TLSConfigManager branch January 8, 2026 05:43
gwossum added a commit that referenced this pull request Feb 12, 2026
Add `tlsconfig.TLSConfigManager` for managing TLS configurations, handling certificate reloads, logging certificate expiration warnings, etc.

This is backport of the following master-1.x PRs to the 1.12 branch:
- #27100: feat: add TLSConfigManager for managing TLS configuration (clean cherry-pick)
- #27103: feat: add TLSConfigManager.DialWithDialer method (clean cherry-pick)
- #27106: feat: add NewClientTLSConfigManager and NewDisabledTLSConfigManager  (clean cherry-pick)
- #27120: feat: add TLSConfigManager.UseTLS (clean cherry-pick)
- #27150: fix: Clone *tls.Config returned by TLSConfigManager.TLSConfig (clean cherry-pick)
- #27162: feat: multiple TLS configuration improvements  (almost clean cherry-pick)
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.

2 participants