Switch to sys/wrapping endpoints for response unwrapping.

Cubbyhole and wrapped AppRole authentications now use sys/wrapping endpoints to unwrap responses by default. Both authentication mechanisms can be configured with UnwrappingEndpoints to switch back to cubbyhole.

Closes gh-163.
This commit is contained in:
Mark Paluch
2019-09-09 13:16:09 +02:00
parent fac92ded6a
commit 35079a54bb
18 changed files with 386 additions and 81 deletions

View File

@@ -10,6 +10,7 @@
* `LifecycleAwareSessionManager` and `ReactiveLifecycleAwareSessionManager` emit now ``AuthenticationEvent``s.
* <<vault.authentication.pcf>>.
* Deprecation of `AppIdAuthentication`. Use `AppRoleAuthentication` instead as recommended by HashiCorp Vault.
* `CubbyholeAuthentication` and wrapped `AppRoleAuthentication` now use `sys/wrapping/unwrap` endpoints by default.
[[new-features.2-1-0]]
=== What's new in Spring Vault 2.1

View File

@@ -25,7 +25,7 @@ OS access levels.
====
[source, java]
----
@PropertySource("configuration.properties"),
@PropertySource("configuration.properties")
@Configuration
public class Config extends AbstractVaultConfiguration {
@@ -669,7 +669,7 @@ class AppConfig extends AbstractVaultConfiguration {
====
[source,shell]
----
$ vault token-create
$ vault token create
Key Value
--- -----
token f9e30681-d46a-cdaf-aaa0-2ae0a9ad0819
@@ -678,7 +678,7 @@ token_duration 0s
token_renewable false
token_policies [root]
$ token-create -use-limit=2 -orphan -no-default-policy -policy=none
$ vault token create -use-limit=2 -orphan -no-default-policy -policy=none
Key Value
--- -----
token 895cb88b-aef4-0e33-ba65-d50007290780