I have a Django
application that is working perfectly. It's connected to a MySQL
server hosted on the cloud.
The MySQL
server is set to auto-rotate the password every 30 days for security reasons. Django
can access the new password only when settings.py
is loaded using a custom function I have developed (that will fetch the new password from AWS Secrets Manager
).
I'm looking for a way to allow Django
to detect if a connection has a problem then update the password all transparent to the user.
Is that possible?