You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I start using more SDK based RESTStream taps from the Meltano Hub, I now find myself having to:
clone the tap
update the dependency for singer-sdk to my fork with the merge_environment_settings method
build the tap
install my build of the tap
@edgarrmondragon You had some comments in the original Gitlab issue discussion about making merge_environment_settings configurable by the user.
Having a bit more meltano experience under my belt now after a few months, I understand the meltano approach a bit better.
Those changes that you suggested do make sense to me now.
I'll test out if the get_request_settings() logic that you proposed will work the way a meltano user expects them to work, which would be:
If either http_proxy or https_proxy env vars are present, the SDK based tap's Session.send() method will respect them (btw. I've had some anecdotal experience from a colleague that even without merge_environment_settings, Session.send() already seems to use http_proxy and https_proxy which seems to be by design .. see [1])
If neither http_proxy nor https_proxy are set, the SDK based tap's Session.send() method will not use any user-configured proxies. (transparent intercepting middleman proxies will obviously still intercept the HTTP requests)
If either REQUESTS_CA_BUNDLE or CURL_CA_BUNDLE env vars are present, the SDK based tap's Session.send() method will respect them and TLS inspection of any middleman proxies will function correctly.
It should never be possible to disable TLS verification through configuration options. This is not a feature that the requests library or libcurl provides. And Meltano SDK should not provide it either.
Merges requests-preparedrequest-mergeenvironmentsettings -> main
Migrated from GitLab: https://gitlab.com/meltano/sdk/-/merge_requests/256
GitHub Issue: #345
The text was updated successfully, but these errors were encountered: