Postgres DB credentials rotation using Spring Cloud Vault | Spring Boot | Hashicorp Vault
ฝัง
- เผยแพร่เมื่อ 11 ก.ย. 2024
- This video demonstrates how to integrate Spring boot application with Hashicorp Vault and Postgres database to use database credentials rotation. The application doesn't have to configure database username/password in the properties file. The application will get a unique set of DB credentials (from the Vault) to connect to the database. The application uses Spring Cloud Vault.
Although Postgres DB is used in this demo, the concept remains the same for any database that is supported by Vault/Spring Cloud Vault like Apache Cassandra, MongoDB, MySQL, Oracle, MSSQL etc.
Github sourcecode: github.com/vis...
Reference links:
learn.hashicor...
cloud.spring.i...
secrets-as-a-s...
#vault #hashicorpvault #springboot #springcloudvault #dbpasswordrotation #passwordrotation #dbcredentialrotation
Thanks for Great tutorial this is what exactly i'm looking for.
Glad it was helpful!
Hi, Thanks for the video
What are the changes we need to make in case of static usernames?
where we need to get the rotated password only not both username and password?
Cannot renew lease: Status 400 Bad Request lease not found
Getting this error. Can someone help me with this?
I also got same error?
Any solution for it?
Any solution u found?
How to rotate c3p0 connection???
I have not used c3p0 but you can take a look at their documentation www.mchange.com/projects/c3p0/ to see if it provides methods to update the password at runtime by retrieving the datasource object.
can you do the same with node js
can you do it for Mysql? Or can you explain me the differences?
For Mysql, it should not be much different. Just change the queries as per mysql and use the connection url of the mysql db. Also, this documentation should help you developer.hashicorp.com/vault/docs/secrets/databases/mysql-maria