-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
check for CA Bundle when True is specified for verify #2339
Comments
Hi @koelemay, thanks for posting. Can you provide a more concrete example of how you are configuring MLFlow or DVC to use https://mlflow.org/docs/latest/tracking.html#amazon-s3-and-s3-compatible-storage
|
Hi @kdaily , happy to discuss further. DVC creates a Boto3 session here: Using the object's That is forced to be a boolean, validated by the config schema here: That defaults to However, because So a couple things:
MLFlow exhibits the same behavior, as documented in a proposed PR. In that case they were considering updating MLFlow to set the default value of Rather than updating all downstream tools, they would all work if Boto accepted |
Thanks for the details. Marking this as a feature request for now, but need to do some more research on your use case and what impact it could have. |
I encounter this same issue passing |
Any chance we can get the PR merged soon? We are experiencing the same issue. boto never looks at AWS_CA_BUNDLE |
Plz merge this PR ! ( I wasted at least half a day debugging ( initially updating custom local docker images, assuming incomplete root/intermed. cacerts ) .. until I delta-debugged , and removed the verify flag alltogether , and that worked) |
Hey everyone, thanks for opening this feature request and the discussion. This is not a change we're likely to make at this time, and I'm going to close the issue accordingly. This change affects certificate precedence, which is a breaking change. We're closing the pull request for similar reasons. Thanks again for contributing. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
The
verify
argument when creating a client is documented to be of typeboolean/string
and defaults toNone
. While the longer description explains that it can take on a value ofFalse
or a path to a CA bundle, it currently does not allow you to pass a value ofTrue
-- in the case thatTrue
is passed, the current implementation will not check theca_bundle
configuration variable here.This is exacerbated when using other tools such as MLFlow and DVC that allow you to swap out storage interfaces. In such tools you can also set a
verify
parameter toTrue
,False
orpath/to/ca/bundle
however you cannot specifyNone
. In this case it is impossible to use Boto3 when a CA Bundle is required to be used.The solution to this issue is extremely simple, just checking for
verify
being eitherNone
orTrue
hereSteps to reproduce
If you're behind a corporate firewall that requires custom cert bundle, try to create a session with
verify
set toTrue
and it will not load the CA bundle from the env vars.Expected behavior
When a user passes
True
it should work the same as passingNone
Debug logs
The text was updated successfully, but these errors were encountered: