Skip to content

Add option to disable strict X509 verification - #2685

Open
Vishwa0223 wants to merge 1 commit into
kubernetes-client:masterfrom
Vishwa0223:fix-disable-strict-ssl-verification
Open

Add option to disable strict X509 verification#2685
Vishwa0223 wants to merge 1 commit into
kubernetes-client:masterfrom
Vishwa0223:fix-disable-strict-ssl-verification

Conversation

@Vishwa0223

Copy link
Copy Markdown

Description

Add a synchronous client option to disable strict X509 certificate verification.

Changes

  • Added disable_strict_ssl_verification to the synchronous Configuration.
  • Created an SSL context when the option is enabled.
  • Disabled ssl.VERIFY_X509_STRICT on that context.
  • Passed the SSL context to the urllib3 PoolManager.
  • Added a test for the new option.

Testing

python -m pytest kubernetes/test/test_api_client.py -k disable_strict_ssl_verification -v

1 passed, 12 deselected

@kubernetes-prow

Copy link
Copy Markdown
Contributor

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubernetes-prow kubernetes-prow Bot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Aug 27, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Aug 27, 2026

Copy link
Copy Markdown

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

  • ✅ login: Vishwa0223 / name: Vishwa (37d9561)

@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Vishwa0223
Once this PR has been reviewed and has the lgtm label, please assign roycaihw for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 requested a review from roycaihw August 27, 2026 08:30
@kubernetes-prow kubernetes-prow Bot added the needs-kind Indicates a PR lacks a `kind/foo` label and requires one. label Aug 27, 2026
@kubernetes-prow
kubernetes-prow Bot requested a review from yliaog August 27, 2026 08:30
@kubernetes-prow kubernetes-prow Bot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Aug 27, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

Welcome @Vishwa0223!

It looks like this is your first PR to kubernetes-client/python 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-client/python has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@kubernetes-prow kubernetes-prow Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. 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 Aug 27, 2026
@Vishwa0223

Copy link
Copy Markdown
Author

none

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

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant