-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-3256 Obtain AWS credentials for CSFLE in the same way as for MONGODB-AWS #1035
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
Conversation
test/test_encryption.py
Outdated
key_vault_client=client_context.client, | ||
codec_options=OPTS, | ||
) | ||
with self.assertRaises(EncryptionError) as ctx: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this ctx
is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
"ocsp": pyopenssl_reqs, | ||
"snappy": ["python-snappy"], | ||
"zstd": ["zstandard"], | ||
"aws": ["pymongo-auth-aws<2.0.0"], | ||
"aws": aws_reqs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's update the docs to say that pymongo-auth-aws is also required for encryption in these 3 places:
README.rst:135: $ python -m pip install "pymongo[encryption]"
doc/examples/encryption.rst:30: $ python -m pip install 'pymongo[encryption]'
doc/installation.rst:75: $ python3 -m pip install "pymongo[encryption]"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the main point of the extra that the user doesn't need to concern themselves with the libraries used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure but we should still document what libraries will be installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note I'm not saying to change those 3 lines in particular. Just the surrounding text. For example the readme says:
Client-Side Field Level Encryption requires `pymongocrypt
<https://pypi.org/project/pymongocrypt/>`_::
$ python -m pip install "pymongo[encryption]"
But this is now incomplete because it doesn't mention pymongo-auth-aws.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Depends on mongodb/libmongocrypt#440