11

What is the difference between the followings?

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
wltheng
  • 750
  • 1
  • 11
  • 26

1 Answers1

17

Spring Cloud Vault is more lightweight because it does not require to run a java server (Spring Cloud Config Server) as a frontend for Vault, your Spring Boot app connects directly to Vault.

I have a small demo: https://github.com/gmarziou/demo-spring-cloud-vault

Gaël Marziou
  • 16,028
  • 4
  • 38
  • 49
  • 1
    More specific: Spring Cloud Vault Config provides client-side support for externalized configuration by using Vault directly from the client. Spring Cloud Config Server is a configuration server with pluggable backends. You require a client component to access Spring Cloud Config Server to use the config data in your application. – mp911de Aug 04 '17 at 11:24
  • Why Spring Cloud Vault doesn't require to run a java server? Probably Spring Cloud Vault runs tomcat – Matrix12 Nov 30 '18 at 20:51
  • Because Spring Cloud Vault is a *client* library that connects to Vault REST API. – Gaël Marziou Nov 30 '18 at 21:42
  • I am trying to use spring cloud vault config with azure authentication to connect to vault on AKS. having trouble as it seems the config itself is not read correctly : https://stackoverflow.com/questions/69010328/spring-cloud-config-vault-with-azure-authentication . I ahve asked a question here. Please help. – nsharma Sep 01 '21 at 08:54
  • See also https://spring.io/projects/spring-vault, which is perhaps lighter weight, still. – Charlie Reitzel Dec 15 '22 at 22:47
  • Hello, those are very clear answers, many thanks. Is it possible to have an explanation for Spring Vault versus Spring Cloud Vault please? (not Spring Cloud Vault vs Spring Cloud Config Server with Vault backend) – PatPanda Jan 25 '23 at 20:03