![](/img/trans.png)
[英]Mutual Authentication(Two-Way TLS/SSL) with cloud residing KeyStores and TrustStores(Secret Manager) -Spring boot
[英]Spring Boot Google Cloud Secret Manager
我按照在 Spring Boot 上使用 GCP 設置秘密管理器的說明,在 Google Cloud 中創建了一個秘密,並在 application.properties 中添加了以下內容
spring.datasource.password=${sm://DB_PASSWORD}
它沒有用,但是,如果我使用SecretManagerTemplate
,我可以通過secretManagerTemplate.getSecretString("DB_PASSWORD");
但是,我需要在應用程序開始時初始化數據源密碼,有人在 spring 引導中使用過秘密管理器嗎?
通過將 pom.xml 從
<properties>
<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
</properties>
至
<properties>
<spring-cloud.version>Hoxton.SR6</spring-cloud.version>
</properties>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.