This Maven plugin supports pull and pushing Maven project properties from secrets stored in HashiCorp Vault.
Forked project from dechiphernow/vault-maven-plugin 👍
Added new features 🚀 :
- Written with Java 11
- Upgraded vault driver to use KV2 engine
- Added vault authentication methods (see below for details).
- Added Enterprise 🏭 features like Namespace
To include the vault-maven-plugin in your project add the following plugin to your pom.xml
file:
You need to setup an execution phase and configuration.
<build>
<plugins>
<plugin>
<groupId>com.homeofthewizard</groupId>
<artifactId>vault-maven-plugin</artifactId>
<version>1.1.7</version>
<executions>
...
<configuration>
...
</configuration>
</executions>
</plugin>
</plugins>
</build>
The documentation here is where we explain how to do it in detail.
This build uses standard Maven build commands but assumes that the following are installed and configured locally:
- Java (11 or greater)
- Maven (3.0 or greater)
- Docker
But you do need JDK 11 or higher to modify or build the source code of this library itself.
pass it as an environment variable in your pom.xml ${env.MY_GITHUB_PAT_FOR_VAULT_LOGIN}
.
This is needed for integration tests related to authentication features.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request