Closed
Description
Describe the Bug
"@payloadcms/db-mongodb" currently pins "mongoose": "8.9.5" which pins "mongodb": "~6.12.0", IAM Authentication only works from Version 6.13 as per https://docs.aws.amazon.com/documentdb/latest/developerguide/iam-identity-auth.html#iam-identity-drivers
Solution: Update Mongoose to the latest version
Link to the code that reproduces this issue
Reproduction Steps
- Follow a guide like this https://github.com/aws-samples/amazon-documentdb-samples/tree/master/samples/iam_role_sample_code to add the needed AWS Infrastructure
- try to authenticate to DocumentDB using the mongooseAdapter like
return mongooseAdapter({
url: <<DOCUMENT_DB_URI>>,
authMechanism: "MONGODB-AWS",
authSource: "$external",
},
});
- Get Authentication failed message
Which area(s) are affected? (Select all that apply)
db-mongodb
Environment Info
Binaries:
Node: 22.8.0
npm: 10.8.2
Yarn: 4.9.1
pnpm: N/A
Relevant Packages:
payload: 3.40.0
next: 15.3.3
@payloadcms/db-mongodb: 3.40.0
@payloadcms/graphql: 3.40.0
@payloadcms/live-preview: 3.40.0
@payloadcms/live-preview-react: 3.40.0
@payloadcms/next/utilities: 3.40.0
@payloadcms/translations: 3.40.0
@payloadcms/ui/shared: 3.40.0
react: 19.1.0
react-dom: 19.1.0
Operating System:
Platform: linux
Arch: x64
Version: #26~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 17 19:20:47 UTC 2
Available memory (MB): 32041
Available CPU cores: 12
But this hasn't changed in Version 3.41
Metadata
Metadata
Assignees
Labels
No labels