Is there a mechanism for refreshing/renewing database credentials without restarting?

System Information
  • Strapi Version: 4.3.9
  • Operating System: Ubuntu 22.04
  • Database: MySQL
  • Node Version: v16.17.1
  • NPM Version: 8.15.0
  • Yarn Version: 1.22.19

I am setting up Strapi to connect with a database that provides dynamic credentials (username and password) that expire and need to be renewed periodically.

I can setup a cron job that will retrieve new credentials and then restart Strapi for me. This does not seem to the most ideal way to handle dynamic credentials.

I am wondering if Strapi has a mechanism already that provides a way to refresh the database connection credentials without needing to be restarted.