hyperdx
hyperdx copied to clipboard
Can't connect to mongo using AWS Auth
I'm trying to get hyperdx to connect to mongo using AWS auth instead of creds.
This nearly works by setting mongoUri = mongodb+srv://blahblah...mongodb.net/hyperdx?authSource=%24external&authMechanism=MONGODB-AWS.
However, this fails at runtime as the mongo lib needs the aws4 peer dependency for this to work. Would you accept a PR adding this to the default docker build? I know this is probably an extraneous dep for most installations, but it's a very small one, and it's quite difficult to overcome this otherwise without building my own HyperDX image.