Skip to content

Support configuring the minimum TLS version - #3141

Merged
kubernetes-prow[bot] merged 1 commit into
mainfrom
copilot/support-configuring-tls-min-version
Nov 24, 2026
Merged

kubernetes-prow[bot] merged 1 commit into
mainfrom
copilot/support-configuring-tls-min-version

Conversation

Copilot AI commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

API connections could not enforce a minimum TLS version. This adds TLS 1.3 enforcement while preserving the Node.js runtime default when unset.

  • Configuration: Add typed KubeConfig.setTLSMinVersion(); passing undefined restores runtime defaults.
  • Transport: Propagate minVersion through direct, HTTP(S)-proxy, and SOCKS connections. Clear cached agents when the setting changes.
  • Documentation: Describe configuration, defaults, and API-server versus proxy TLS scope.
  • Regression coverage: Commit verified failing tests separately from the implementation.
const kc = new k8s.KubeConfig();
kc.loadFromDefault();
kc.setTLSMinVersion('TLSv1.3');

const api = kc.makeApiClient(k8s.CoreV1Api);

@kubernetes-prow kubernetes-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 5, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: brendandburns / name: brendandburns (b3f8bd3)

@kubernetes-prow kubernetes-prow Bot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 5, 2026
Copilot AI linked an issue Nov 5, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add support for configuring minimum TLS version Support configuring the minimum TLS version Nov 5, 2026
@kubernetes-prow kubernetes-prow Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 5, 2026
@brendandburns
brendandburns marked this pull request as ready for review November 8, 2026 20:24
@kubernetes-prow kubernetes-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 8, 2026

@mstruebing mstruebing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we drop the empty Initial plan commit?

Comment thread src/config.ts
*/
public setTLSMinVersion(minVersion?: tls.SecureVersion): void {
this.tlsMinVersion = minVersion;
this.agentCache.clear();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need to destroy existing agents here as well first or is it fine to assume people will call it before?

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.

done.

@brendandburns
brendandburns force-pushed the copilot/support-configuring-tls-min-version branch from d47220b to 3f3e821 Compare November 18, 2026 21:26
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 18, 2026
Add KubeConfig.setTLSMinVersion(), propagate the setting through direct and proxy connections, and destroy cached agents when it changes. Document the configuration and cover transport paths with regression tests.
@brendandburns
brendandburns force-pushed the copilot/support-configuring-tls-min-version branch from c2720bd to b3f8bd3 Compare November 19, 2026 02:21
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 19, 2026
@brendandburns

Copy link
Copy Markdown
Contributor

Comment addressed and commits squashed into a single commit.

Please take another look.

@mstruebing mstruebing left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm
/approve

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 24, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Copilot, mstruebing

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 24, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit 1a08a85 into main Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support configuring the minimum TLS version

3 participants