Skip to content

Instantly share code, notes, and snippets.

@dghadge
Created May 22, 2017 20:52
Show Gist options
  • Save dghadge/9fdc54120d4a738739aaf6c0313c1745 to your computer and use it in GitHub Desktop.
Save dghadge/9fdc54120d4a738739aaf6c0313c1745 to your computer and use it in GitHub Desktop.
Obfuscating MySQL passwords with Hashicorp Vault - Application Setup
--------Start : src/main/resources/bootstrap.properties --------------------
spring.cloud.vault.ssl.trust-store=file:certificates/keystore.jks
spring.cloud.vault.token=7116175f-02bd-1216-3d9f-7362db6be6cc
spring.cloud.vault.mysql.enabled=true
spring.cloud.vault.mysql.role=readonly
spring.datasource.url=jdbc:mysql://localhost:3306?useSSL=true
--------End : src/main/resources/bootstrap.properties --------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment