question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Document How to Externalize Vault's Token w/ VaultPropertySoure

See original GitHub issue

It would be nice to document how to externalize Vault’s Token when using VaultPropertySource. At the moment, there is a bit of a chicken and the egg problem when using standard Spring Environment.

One solution might be to instruct users to leverage system properties for this. We might also discuss how Spring Cloud (and in the future Spring Boot) have bootstrap.properties.

http://docs.spring.io/spring-vault/docs/1.0.0.BUILD-SNAPSHOT/reference/html/#vault.core.propertysupport

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
spencergibbcommented, Oct 27, 2016

I’m curious if you are really intending to talk about Spring Cloud Vault or not.

Yes, you mentioned

We might also discuss how Spring Cloud (and in the future Spring Boot) have bootstrap.properties

I just wanted to point out that Spring Cloud Vault takes advantage of bootstrap to configure vault in the environment. That’s where this project evolved from.

0reactions
mp911decommented, Oct 27, 2016

AbstractVaultConfiguration now provides Environment getEnvironment() without relying on autowiring. Environment is used from ApplicatioContext provided by ApplicationContextAware.setApplicationContext(…).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Vault - Reference Documentation
With HashiCorp's Vault you have a central place to manage external secret data for applications across all environments.
Read more >
Externalized Configuration with Spring Cloud Config and Vault
Externalized Configuration with Spring Cloud Config and Vault. Make your apps pull their configuration and credentials.
Read more >
spring-vault/SecurePropertyUsage.java at main - GitHub
Provides familiar Spring abstractions for HashiCorp Vault ... TokenAuthentication; ... with Spring Vault's property source support. *. * @author Mark Paluch.
Read more >
Spring Vault - Reference Documentation - xy2401.github.io
This document is the reference guide for Spring Vault. ... With. HashiCorp's Vault you have a central place to manage external secret data...
Read more >
Externalize Vault token/backend configuration for SpringBoot ...
It's spring boot's configuration. You can use environment variables ( SPRING_CLOUD_CONFIG_TOKEN=xxx ) or java system properties ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found