Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Spring Cloud Vault Integration (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
MKusber authored Jul 6, 2020
1 parent b690586 commit ac86a35
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 0 deletions.
27 changes: 27 additions & 0 deletions services/distribution/src/main/resources/bootstrap-cloud.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
spring:
application:
name: cwa-server
cloud:
vault:
enabled: true
generic:
enabled: false
kv:
enabled: true
backend: ${VAULT_BACKEND}
profile-separator: '/'
application-name: 'distribution'
default-context: ''
profiles: cloud
fail-fast: true
authentication: KUBERNETES
kubernetes:
role: ${VAULT_ROLE}
kubernetes-path: kubernetes
service-account-token-file: /var/run/secrets/kubernetes.io/serviceaccount/token
uri: ${VAULT_URI}
connection-timeout: 5000
read-timeout: 15000
config:
order: -10
5 changes: 5 additions & 0 deletions services/distribution/src/main/resources/bootstrap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
spring:
cloud:
vault:
enabled: false
5 changes: 5 additions & 0 deletions services/distribution/src/test/resources/bootstrap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
spring:
cloud:
vault:
enabled: false
5 changes: 5 additions & 0 deletions services/submission/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
</properties>

<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-vault-config</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
27 changes: 27 additions & 0 deletions services/submission/src/main/resources/bootstrap-cloud.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
spring:
application:
name: cwa-server
cloud:
vault:
enabled: true
generic:
enabled: false
kv:
enabled: true
backend: ${VAULT_BACKEND}
profile-separator: '/'
application-name: 'submission'
default-context: ''
profiles: cloud
fail-fast: true
authentication: KUBERNETES
kubernetes:
role: ${VAULT_ROLE}
kubernetes-path: kubernetes
service-account-token-file: /var/run/secrets/kubernetes.io/serviceaccount/token
uri: ${VAULT_URI}
connection-timeout: 5000
read-timeout: 15000
config:
order: -10
5 changes: 5 additions & 0 deletions services/submission/src/main/resources/bootstrap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
spring:
cloud:
vault:
enabled: false
5 changes: 5 additions & 0 deletions services/submission/src/test/resources/bootstrap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
spring:
cloud:
vault:
enabled: false

0 comments on commit ac86a35

Please sign in to comment.