Skip to content

Commit 1c322b1

Browse files
authored
PYTHON-3474 Document changes to AWS Credential Handling (#16)
1 parent 9211d11 commit 1c322b1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

CHANGELOG.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Changelog
44
Changes in Version 1.1.0
55
------------------------
66

7-
- Use ``boto3`` to fetch on-demand credentials, expanding and standardizing
7+
- Use ``boto3`` to handle `credentials_`, expanding and standardizing
88
authorization capabilities. This includes EKS IAM credentials that use
99
``AssumeRoleWithWebIdentity``.
1010
- Enable opt-in caching of fetched on-demand credentials, to prevent rate
@@ -13,6 +13,17 @@ Changes in Version 1.1.0
1313
so it can be used in ``pymongocrypt``.
1414

1515

16+
Notes
17+
.....
18+
Because we are now using ``boto3`` to handle credentials, the order and
19+
locations of credentials are slightly different from before. Particularly,
20+
if you have a shared AWS credentials or config file,
21+
then those credentials will be used by default if AWS auth environment
22+
variables are not set. To override this behavior, set ``AWS_PROFILE=""`` in
23+
your shell or add ``os.environ["AWS_PROFILE"] = ""`` to your script or
24+
application. Alternatively, you can create an AWS profile specifically for
25+
your MongoDB credentials and set ``AWS_PROFILE`` to that profile name.
26+
1627
Changes in Version 1.0.2
1728
------------------------
1829

@@ -35,5 +46,8 @@ Changes in Version 1.0.0
3546
- Initial version.
3647
- Implements `MONGODB-AWS authentication`_ support for PyMongo.
3748

49+
.. _credentials:
50+
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html
51+
3852
.. _MONGODB-AWS authentication:
3953
https://github.com/mongodb/specifications/blob/8f16c36/source/auth/auth.rst#mongodb-aws

0 commit comments

Comments
 (0)