I am trying to figure out a way to provide user and password without hardcoding them on the same server. I need to fetch them through an api.
<!-- MySQL -->
<property name="javax.persistence.jdbc.url"
value="jdbc:mysql://localhost:3306/mydatabase"/>
<!-- Credentials -->
<property name="javax.persistence.jdbc.user"
value="this is user"/>
<property name="javax.persistence.jdbc.password"
value="this is password"/>
Above is how it is being done right now but I want to wire these so anyone who has code access still can't see the user and password. How can I achieve that? I don't have JPA in this project.
I’m not sure precisely what you’re requirements are, but a very flexible option is to implement a
RectiveConnectionPool.https://hibernate.org/reactive/documentation/1.1/reference/html_single/#_custom_connection_management_and_multitenancy