fix: add MongoDB AWS auth extra#214
Open
scale-ballen wants to merge 1 commit intomainfrom
Open
Conversation
smoreinis
approved these changes
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pymongotopymongo[aws]pymongo-auth-awsand AWS SDK dependencies required forMONGODB-AWSauthContext
This is the app-side dependency needed for the SGP DocumentDB IAM auth migration. Without this extra, PyMongo cannot authenticate using
authMechanism=MONGODB-AWS.Testing
uv lock --checkGreptile Summary
This PR switches the
agentexbackend's PyMongo dependency from plainpymongotopymongo[aws], enabling theMONGODB-AWSauthentication mechanism needed for the SGP DocumentDB IAM auth migration. Theuv.lockis updated to pull inpymongo-auth-aws1.3.0 and its transitive AWS SDK dependencies (boto3,botocore,jmespath,s3transfer).Confidence Score: 5/5
Safe to merge — minimal, targeted dependency change with no logic modifications.
The PR makes exactly one semantic change (adding the
awsextra topymongo) and the lock file is a verified (uv lock --check) mechanical consequence. No application logic, configuration, or security boundaries are altered. All new packages come from PyPI with recorded hashes.No files require special attention.
Important Files Changed
awsextra to thepymongodependency to enableMONGODB-AWSauthentication; version constraints unchanged.pymongo[aws]: addspymongo-auth-aws1.3.0 and its transitive deps (boto31.43.1,botocore1.43.1,jmespath1.1.0,s3transfer0.17.0); all hashes and metadata are present.Sequence Diagram
sequenceDiagram participant App as Agentex Backend participant PyMongo as pymongo[aws] participant AuthAWS as pymongo-auth-aws participant Boto3 as boto3/botocore participant DocDB as DocumentDB (IAM) App->>PyMongo: connect with MONGODB-AWS mechanism PyMongo->>AuthAWS: negotiate AWS authentication AuthAWS->>Boto3: fetch IAM credentials from instance profile Boto3-->>AuthAWS: temporary credentials bundle AuthAWS-->>PyMongo: signed auth payload PyMongo->>DocDB: authenticate via IAM token DocDB-->>App: connection establishedReviews (1): Last reviewed commit: "fix: add MongoDB AWS auth extra" | Re-trigger Greptile