Commit Graph

13 Commits

Author SHA1 Message Date
Mark Paluch
22aa877f2f Fix Content-Length handling using Netty
VaultClient now uses a ClientHttpRequestInterceptor to force marshaling. Outgoing data is buffered and available as byte array. This allows setting a Content-Length header using netty. Previously, requests were streamed to the TCP channel without knowing the request body size in advance. Vault expects a Content-Length header and rejected requests with a body but without a Content-Length header.

Fixes gh-8
2016-09-24 10:33:55 +02:00
Mark Paluch
d8e2c22ae1 Provide documenation as zip file.
Fixes gh-5.
2016-09-19 22:56:19 +02:00
Mark Paluch
798d6ed99e Enhance documentation about client support.
Fixes gh-4.
2016-09-19 22:05:39 +02:00
Mark Paluch
9ac40d2695 Polishing.
Add CI profile. Move spring-test dependency management from bom to main pom.
2016-09-19 20:35:48 +02:00
Mark Paluch
21828466a8 Add script to bootstrap test environment. 2016-09-19 20:24:42 +02:00
Mark Paluch
51db8a8593 Polishing.
Reformat code. Enhance JavaDoc.
2016-09-18 22:56:48 +02:00
Mark Paluch
bca07a916c Support Cubbyhole authentication.
Cubbyhole authentication uses Vault primitives to provide a secured authentication workflow. Cubbyhole authentication uses tokens as primary login method. An ephemeral token is used to obtain a second, login VaultToken from Vault’s Cubbyhole secret backend. The login token is usually longer-lived and used to interact with Vault. The login token can be retrieved either from a wrapped response or from the data section.

Fixes gh-3
2016-09-18 22:56:44 +02:00
Mark Paluch
5637f440f3 Polishing.
Update documentation. Provide builder for VaultMount. Rename VaultHealthResponse to VaultHealth. Make VaultMount and VaultHealth immutable.
2016-09-17 22:08:37 +02:00
Mark Paluch
a3ff656c4d Assert compatibility with Vault 0.5.2, 0.6.0 and 0.6.1
Support top level auth mount response and nested (within `data`) mount responses. Add build matrix to TravisCI. Adopt tests to earlier Vault responses.

Fixes gh-2
2016-09-17 20:52:20 +02:00
Mark Paluch
eafcecd11e Polishing.
Reuse existing write and delete methods from VaultSysTemplate.
2016-09-17 20:29:59 +02:00
Mark Paluch
fa9c21f6bb Provide transit backend support #1 2016-09-17 00:43:09 +02:00
Mark Paluch
4d870ed4ff Import documentation 2016-09-14 09:12:20 +02:00
Mark Paluch
b5e09f2d53 Initial import. 2016-09-14 08:51:14 +02:00