return mongooseAdapter({
url: <<DOCUMENT_DB_URI>>,
authMechanism: "MONGODB-AWS",
authSource: "$external",
},
});
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
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
https://github.com/thewca/worldcubeassociation.org/pull/11716/files#diff-636eb4e387c2f51f264623909ff6a0599929f4618137c146666770f32b56b0ecR24
Reproduction Steps
Which area(s) are affected? (Select all that apply)
db-mongodb
Environment Info