Skip to content

Pass SSL configuration arguments to Async Api Client #1655

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 3 commits into from
Sep 7, 2023

Conversation

vxuv
Copy link
Contributor

@vxuv vxuv commented Sep 7, 2023

SSL Configuration Arguments Not Passed to Async Api Client

The current datadog api client fails to pass ssl_verify argument to the AsyncApiClient which will result in
self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)

Linked Issue: #1654

vxuv added 2 commits September 7, 2023 04:41
Configuration arguments aren't correctly passed into the async rest client. This can result in ssl errors even after we've disabled ssl verification in the configuration.

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)
Fix AsyncRestClient Missing SSL Params
@therve
Copy link
Contributor

therve commented Sep 7, 2023

Hi,

Thanks for the patch! Do you mind changing the source at .generator/src/generator/templates/rest.j2?

@vxuv
Copy link
Contributor Author

vxuv commented Sep 7, 2023

Added

@therve therve changed the title SSL Configuration Arguments Not Passed to Async Api Client Pass SSL configuration arguments to Async Api Client Sep 7, 2023
@therve therve merged commit e54f10b into DataDog:master Sep 7, 2023
github-actions bot pushed a commit that referenced this pull request Sep 7, 2023
* Fix AsyncRestClient Missing SSL Params

Configuration arguments aren't correctly passed into the async rest client. This can result in ssl errors even after we've disabled ssl verification in the configuration.

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)

* Update rest.j2 e54f10b
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