Skip to content

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

Merged
merged 16 commits into from
Oct 24, 2022

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Aug 10, 2022

key_vault_client=client_context.client,
codec_options=OPTS,
)
with self.assertRaises(EncryptionError) as ctx:
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed

@blink1073 blink1073 marked this pull request as ready for review October 21, 2022 12:31
@blink1073 blink1073 requested a review from juliusgeo October 21, 2022 12:31
"ocsp": pyopenssl_reqs,
"snappy": ["python-snappy"],
"zstd": ["zstandard"],
"aws": ["pymongo-auth-aws<2.0.0"],
"aws": aws_reqs,
Copy link
Member

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]"

Copy link
Member Author

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?

Copy link
Member

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.

Copy link
Member

@ShaneHarvey ShaneHarvey Oct 21, 2022

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@blink1073 blink1073 requested a review from ShaneHarvey October 24, 2022 18:06
@blink1073 blink1073 merged commit 3fc301c into mongodb:master Oct 24, 2022
@blink1073 blink1073 deleted the PYTHON-3256 branch October 24, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants