8000 Fix config parsing when using cert authentication with skip_verify by mayu2010 · Pull Request #107 · cloudcoil/cloudcoil · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix config parsing when using cert authentication with skip_verify #107

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

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Fix config parsing when using cert authentication with skip_verify #107

merged 1 commit into from
Feb 17, 2025

Conversation

mayu2010
Copy link
Contributor

This PR adds/changes/fixes a BUG of APIClient:when skip_verify in KUBECONFIG is True, SSLContext is replaced but certfile & keyfile are not loaded, causing 401 Error.

When skip_verify is True, method load_cert_chain still needs to be called. Alternatively, just keep the previous SSLContext object.

…True

When skip_verify is True, method `load_cert_chain` still needs to be called. Alternatively, just keep the previous SSLContext object.

Signed-off-by: univ <11343398+mayu2010
8000
@users.noreply.github.com>
@sambhav sambhav changed the title Update _config.py, fix ApiClient authing SSLContext when skip_verify=… Fix config parsing when using cert authentication with skip_verify Feb 17, 2025
Copy link
codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Files with missing lines Coverage Δ
cloudcoil/client/_config.py 69.93% <100.00%> (-0.10%) ⬇️

Copy link
Contributor
@sambhav sambhav left a comment

Choose a reason for hiding this comment

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

Thanks for this bug fix!

@sambhav sambhav merged commit 2df6560 into cloudcoil:main Feb 17, 2025
12 checks passed
@sambhav
Copy link
Contributor
sambhav commented Feb 17, 2025

Released as part of v0.5.5

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
0