Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,55 @@

mvn dependency:tree -DoutputFile=dependency.tree


## Configured Spring Cloud Vault for externalized configuration management
### To run vault server locally, use the following command
### vault is configured through docker compose file in the root directory of the project
### Start docker containers using the following command in the root directory of the project
### docker compose up -d
#### docker exec -it (container-id)b71b52e2a53d sh;
#### / # export VAULT_ADDR='http://127.0.0.1:8200'
#### / # export VAULT_TOKEN=root
#### / # vault status
#### / # vault kv get secret/user-service
Comment thread
ShantanuKumarSinha marked this conversation as resolved.

##### Output of vault kv get secret/user-service command
shantanukumar@Shantanus-MacBook-Air ~ % docker exec -it b71b52e2a53d sh;
/ # vault status
Comment thread
ShantanuKumarSinha marked this conversation as resolved.
Error checking seal status: Get "https://127.0.0.1:8200/v1/sys/seal-status": http: server gave HTTP response to HTTPS client
/ # export VAULT_ADDR='http://127.0.0.1:8200'
/ # vault status
Key Value
--- -----
Seal Type shamir
Initialized true
Sealed false
Total Shares 1
Threshold 1
Version 1.13.3
Build Date 2023-06-06T18:12:37Z
Storage Type inmem
Cluster Name vault-cluster-e26f351e
Cluster ID ab9fff1b-7ed2-3a12-065c-90fab8a994b8
HA Enabled false
/ # export VAULT_TOKEN=root
/ # vault kv get secret/user-service
====== Secret Path ======
secret/data/user-service

======= Metadata =======
Key Value
--- -----
created_time 2026-02-28T09:35:27.868910721Z
custom_metadata <nil>
deletion_time n/a
destroyed false
version 1

=============== Data ===============
Key Value
--- -----

<br/>
spring.datasource.password <your-db-password> <br/>
spring.datasource.username root
15 changes: 9 additions & 6 deletions dependency.tree
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ dev.shann:mcUserService:jar:0.0.1-SNAPSHOT
| | +- org.bouncycastle:bcprov-jdk18on:jar:1.73:compile
| | \- org.bouncycastle:bcutil-jdk18on:jar:1.73:compile
| +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:4.0.3:compile
| | \- org.apache.httpcomponents.client5:httpclient5:jar:5.2.1:compile
| | +- org.apache.httpcomponents.core5:httpcore5:jar:5.2.2:compile
| | \- org.apache.httpcomponents.core5:httpcore5-h2:jar:5.2.2:compile
| +- com.netflix.eureka:eureka-client:jar:2.0.1:compile
| | +- com.netflix.netflix-commons:netflix-eventbus:jar:0.3.0:compile
| | | +- com.netflix.netflix-commons:netflix-infix:jar:0.3.0:runtime
Expand Down Expand Up @@ -149,6 +146,12 @@ dev.shann:mcUserService:jar:0.0.1-SNAPSHOT
| | +- org.ow2.asm:asm-commons:jar:9.6:compile
| | \- org.ow2.asm:asm-tree:jar:9.6:compile
| \- org.jacoco:org.jacoco.report:jar:0.8.11:compile
\- org.springframework.restdocs:spring-restdocs-mockmvc:jar:3.0.5:test
+- org.springframework.restdocs:spring-restdocs-core:jar:3.0.0:test
\- jakarta.servlet:jakarta.servlet-api:jar:6.0.0:test
+- org.springframework.restdocs:spring-restdocs-mockmvc:jar:3.0.5:test
| +- org.springframework.restdocs:spring-restdocs-core:jar:3.0.0:test
| \- jakarta.servlet:jakarta.servlet-api:jar:6.0.0:test
\- org.springframework.cloud:spring-cloud-starter-vault-config:jar:4.0.1:compile
+- org.apache.httpcomponents.client5:httpclient5:jar:5.2.1:compile
| \- org.apache.httpcomponents.core5:httpcore5-h2:jar:5.2.2:compile
+- org.apache.httpcomponents.core5:httpcore5:jar:5.2.2:compile
+- org.springframework.cloud:spring-cloud-vault-config:jar:4.0.1:compile
\- org.springframework.vault:spring-vault-core:jar:3.0.2:compile
Loading
Loading