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

ความคิดเห็น • 11

  • @NIKHILSINGH-cd6ih
    @NIKHILSINGH-cd6ih 2 ปีที่แล้ว +1

    Thanks for Great tutorial this is what exactly i'm looking for.

    • @visa2learn
      @visa2learn  2 ปีที่แล้ว

      Glad it was helpful!

  • @lokeshnandanwar9203
    @lokeshnandanwar9203 7 หลายเดือนก่อน

    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?

  • @viratsharma2810
    @viratsharma2810 ปีที่แล้ว +2

    Cannot renew lease: Status 400 Bad Request lease not found
    Getting this error. Can someone help me with this?

    • @CodeBashers
      @CodeBashers ปีที่แล้ว +1

      I also got same error?
      Any solution for it?

    • @CodeBashers
      @CodeBashers ปีที่แล้ว +1

      Any solution u found?

  • @amansingla2112
    @amansingla2112 2 ปีที่แล้ว +1

    How to rotate c3p0 connection???

    • @visa2learn
      @visa2learn  2 ปีที่แล้ว

      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.

  • @denkoech8712
    @denkoech8712 ปีที่แล้ว

    can you do the same with node js

  • @zFlashConti
    @zFlashConti ปีที่แล้ว

    can you do it for Mysql? Or can you explain me the differences?

    • @visa2learn
      @visa2learn  ปีที่แล้ว

      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