Publish single rotated on secrets rotation for atomic propertysource updates

We now publish a single SecretLeaseRotatedEvent instead of publishing two events (SecretLeaseExpiredEvent and SecretLeaseCreatedEvent) to atomically update notify listeners such as LeaseAwareVaultPropertySource for atomic updates.

Closes gh-594.
This commit is contained in:
Mark Paluch
2020-12-02 12:02:20 +01:00
parent 6b2da56d50
commit ff57fe73d2
8 changed files with 198 additions and 45 deletions

View File

@@ -10,6 +10,7 @@
* Support for `transform` backend (Enterprise Feature).
* Documentation of <<vault.core.secret-engines,how to use Vault secret backends>>.
* Login credentials for Kubernetes and PCF authentication are reloaded for each login attempt.
* `SecretLeaseContainer` publishes `SecretLeaseRotatedEvent` instead of `SecretLeaseExpiredEvent` and `SecretLeaseCreatedEvent` on successful secret rotation.
[[new-features.2-2-0]]
=== What's new in Spring Vault 2.2