-
We're trying to use the MongoDB AWS authentication system for securing our connection (https://github.com/mongodb/specifications/blob/master/source/auth/auth.rst#mongodb-aws). Our initial connection is working fine, but we're trying to work out how to refresh these credentials before they expire. Currently we can't see any other way other than:
This gets complicated fast. The initial model references are retrieved after the initial database connection is established in different locations, so replacing them all with newer instances isn't as straight forward as it sounds. Furthermore, if there are db operations that are in progress at the time of establishing a new connection (for example a transaction), it would need to be aware of this, and keep using the old connection until ready to start using the new connection. Is there a way of refreshing the connection with new credentials, without tearing everything down and re-creating the connection and models? (Refreshing the existing AWS credential expiry time isn't an option, as there is a maximum time these credentials can be refreshed). Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There currently isn't any way to easily refresh credentials. You would need to close the old connection and create a new one. We'll open an issue to investigate how we can better support this. |
Beta Was this translation helpful? Give feedback.
There currently isn't any way to easily refresh credentials. You would need to close the old connection and create a new one. We'll open an issue to investigate how we can better support this.