update versions to 1.0.0
parent
245a62a457
commit
7bd8ecb067
2
Home.md
2
Home.md
@ -27,4 +27,4 @@ Java Vault Connector is a connector library for [Vault](https://www.vaultproject
|
||||
* SQL secret handling
|
||||
* KV v1 and v2 support
|
||||
* Connector Factory with builder pattern
|
||||
* Tested against Vault 1.7.2
|
||||
* Tested against Vault 1.8.3
|
||||
|
@ -12,16 +12,16 @@ The connector is published at Maven Central and may be included into your projec
|
||||
<dependency>
|
||||
<groupId>de.stklcode.jvault</groupId>
|
||||
<artifactId>jvault-connector</artifactId>
|
||||
<version>0.9.4</version>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
### Gradle Dependency
|
||||
```groovy
|
||||
compile group: 'de.stklcode.jvault', name: 'jvault-connector', version: '0.9.4'
|
||||
compile group: 'de.stklcode.jvault', name: 'jvault-connector', version: '1.0.0'
|
||||
```
|
||||
|
||||
### SBT Dependency
|
||||
```
|
||||
libraryDependencies += "de.stklcode.jvault" % "jvault-connector" % "0.9.4"
|
||||
libraryDependencies += "de.stklcode.jvault" % "jvault-connector" % "1.0.0"
|
||||
```
|
||||
|
@ -13,7 +13,7 @@ To do so, use the builder to configure your connector.
|
||||
|
||||
```java
|
||||
// Instantiate using builder pattern style factory (TLS enabled by default)
|
||||
VaultConnector connector = VaultConnectorBuilder.http()
|
||||
VaultConnector connector = HTTPVaultConnector.builder()
|
||||
.withHost("vault.example.com") // Default: 127.0.0.1
|
||||
.withPort(8200) // Default: 8200
|
||||
.withTLS() // Default. Possible without TLS and with explicit version.
|
||||
@ -22,10 +22,10 @@ To do so, use the builder to configure your connector.
|
||||
|
||||
#### Provide custom CA certificate
|
||||
|
||||
For internal sites or to enforce a specific CA you might provide a custom CA certificate to trust.
|
||||
For internal sites or to enforce a specific CA you might provide a custom CA certificate to trust as `Path` or `X509Certificate`.
|
||||
|
||||
```java
|
||||
VaultConnector connector = VaultConnectorBuilder.http()
|
||||
VaultConnector connector = HTTPVaultConnector.builder()
|
||||
.withHost("vault.example.com")
|
||||
.withPort(8200)
|
||||
.withTrustedCA(Paths.get("/path/to/CA.pem"))
|
||||
@ -43,12 +43,12 @@ This feature supports the default Vault environment variables:
|
||||
* `VAULT_TOKEN` - Token for automatic authentication.
|
||||
|
||||
```java
|
||||
VaultConnector connector = VaultConnectorBuilder.http()
|
||||
VaultConnector connector = HTTPVaultConnector.builder()
|
||||
.fromEnv()
|
||||
.build();
|
||||
|
||||
// Or with automatic authentication.
|
||||
VaultConnector connector = VaultConnectorBuilder.http()
|
||||
VaultConnector connector = HTTPVaultConnector.builder()
|
||||
.fromEnv()
|
||||
.buildAndAuth();
|
||||
```
|
||||
|
@ -1,4 +1,4 @@
|
||||
Licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
Licensed under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)
|
||||
•
|
||||
[Project Page](http://jvault.stklcode.de)
|
||||
•
|
||||
|
Loading…
x
Reference in New Issue
Block a user