Skip to content
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

Feat/minio reader noverify #10744

Merged

Conversation

ferdinandosimonetti
Copy link
Contributor

Description

The fix allows reading documents from a MinIO instance secured with TLS even if the instance's certificate isn't trusted.
It introduces minio_cert_check option (defaulting to False, so running it against a self-signed MinIO will be fine).

Type of Change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Added new unit/integration tests
  • Added new notebook (that tests end-to-end)
  • I stared at the code and made sure it makes sense

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added Google Colab support for the newly added notebooks.
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I ran make format; make lint to appease the lint gods

Sorry, something went wrong.

Ferdinando Simonetti added 2 commits February 14, 2024 21:12

Verified

This commit was signed with the committer’s verified signature.
scothis Scott Andrews
… instance

Verified

This commit was signed with the committer’s verified signature.
scothis Scott Andrews
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Feb 15, 2024
@@ -29,6 +29,7 @@ def __init__(
file_metadata: Optional[Callable[[str], Dict]] = None,
minio_endpoint: Optional[str] = None,
minio_secure: bool = False,
minio_cert_check: bool = False,
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be True by default as a security best practice?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right. I'll fix that ASAP

Verified

This commit was signed with the committer’s verified signature.
scothis Scott Andrews
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 15, 2024
@ferdinandosimonetti
Copy link
Contributor Author

the same feature was approved as a PR on llamahub about a couple of days ago.

Copy link
Contributor

@hatianzhang hatianzhang left a comment

Choose a reason for hiding this comment

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

thanks!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 15, 2024
@hatianzhang hatianzhang merged commit b06c888 into run-llama:main Feb 15, 2024
8 checks passed
Dominastorm pushed a commit to uptrain-ai/llama_index that referenced this pull request Feb 28, 2024
* allowing connection to a TLS-secured with untrusted certificate MinIO instance

* updated README for MinIO reader

* cert_check should default to True for MinIO reader

---------

Co-authored-by: Ferdinando Simonetti <info@fsimonetti.info>
Izukimat pushed a commit to Izukimat/llama_index that referenced this pull request Mar 29, 2024
* allowing connection to a TLS-secured with untrusted certificate MinIO instance

* updated README for MinIO reader

* cert_check should default to True for MinIO reader

---------

Co-authored-by: Ferdinando Simonetti <info@fsimonetti.info>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants