Kubernetes, Spring Boot, Vault, Postgres, Docker.
application polls the credential’s file and updates its datasource when there is a change. When the application wants to access the database it does so, using the credentials that were last created by Vault. You may be thinking that there is a timing race between credentials expiring and new ones