Comments (3)
I am unsure how Vault works. But here's more or less the rule of thumb.
A source is what gives you a Stream of the data bytes that will be read by a Loader. As I am not sure how Vault works, could you tell me what it returns when asking for something?
from cfg4k.
If using the Vault Java Client then it returns a String
// Read operation
final String value = vault.logical()
.read("secret/hello")
.getData().get("value");
from cfg4k.
Then you can use it as a Loader. The loader will just return the raw data and the provider is the one that will present it to you in a nice way.
But you need to do one change that is transforming the data. Right now it used dots as separator so you would have to transform it into slashes before querying vault
from cfg4k.
Related Issues (20)
- FileChangeReloadStrategy watcher uses incorrect test HOT 3
- ByteBuddyBinder creates a new class on every method invocation HOT 6
- FileChangeReloadStrategy thread dies on Exception: no error handler HOT 3
- ConfigSources that wraps authorized URL calls HOT 1
- ClassNotFoundException on $DefaultImpls HOT 10
- import com.jdiazcano.cfg4k.json.JsonConfigLoader HOT 2
- Resolving hocon variables does not work for quoted strings HOT 1
- Hocon config mapper does not handle nulls HOT 1
- Spurious WARN at startup on Oracle JDK HOT 1
- HOCON substitutions, override via file and via environment/system prop HOT 2
- Using of EnvironmentConfigLoader based provider requires all the intermediate 'nodes' to be declared HOT 14
- Remake tests HOT 2
- Map of Strings? HOT 4
- Reloading when merging
- [BUG] Unexpected crash in DefaultConfigLoader.get with IllegalArgumentException: Trying to get a key from a primitive HOT 5
- Multiplatform HOT 2
- [BUG] FileChangeReloadStrategy doesn't deal properly with symlink changes HOT 1
- BinTray deprecated, move to Maven Central HOT 2
- Library versions with known CVEs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfg4k.