Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor the Vault plugin to work in 'flex_mode', with documentation #52
As I chatted on Gitter about, I have a different way that I'd like to use Vault, specifically being able to take a single path and reuse it between different environments instead of having to replicate the value into template-specific namespaces.
Here is my Pull Request for such a "mode" to do this. I added test cases, documentation, and kept it backwards compatible with the existing plugin implementation. I was trying to go for a very unbiased approach. Here's a sample config:
Given a Vault with:
You can create a
Note I also made it possible to use dynamic values in a Vault template path, since I would like to be able to use environment variables to dictate what Vault paths to access. For example, I run different localized versions of my application, so I want to set a
I'm not fully aware of the design philosophy of Tiller so I'm sure you'll have some feedback. The way I've designed the plugin here is exactly how I would like Tiller to work for me, but this may not be the same for everyone else.