Skip to content
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

Mongoose aws4 wrong service account #14871

Open
1 task done
pedrooct opened this issue Sep 6, 2024 · 1 comment
Open
1 task done

Mongoose aws4 wrong service account #14871

pedrooct opened this issue Sep 6, 2024 · 1 comment
Labels
help wanted help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary

Comments

@pedrooct
Copy link

pedrooct commented Sep 6, 2024

Prerequisites

  • I have written a descriptive issue title

Mongoose version

8.2.0

Node.js version

18.18.0

MongoDB version

6.0

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

alpine3.18

Issue

HI!

I'm trying to connect to mongoatlas using ?authMechanism=MONGODB-AWS and with a service account isra defined.
However eks default service account is being used resulting is the following error.

MongoServerError: Could not find user "arn:aws:sts::XXXXX for 'db $external'

Any ideas?

Versions:
"aws4": "1.13.2"
"mongoose": "8.2.0",

Thank you

@pedrooct pedrooct added help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary help wanted labels Sep 6, 2024
@vkarpov15
Copy link
Collaborator

Are you able to connect using the mongodb node driver?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted help This issue can likely be resolved in GitHub issues. No bug fixes, features, or docs necessary
Projects
None yet
Development

No branches or pull requests

2 participants