Skip to content

Handle Vault standby health responses#1007

Open
henkhofs wants to merge 1 commit into
spring-projects:mainfrom
henkhofs:gh-standby-vault-health
Open

Handle Vault standby health responses#1007
henkhofs wants to merge 1 commit into
spring-projects:mainfrom
henkhofs:gh-standby-vault-health

Conversation

@henkhofs

Copy link
Copy Markdown

ReactiveVaultSysTemplate currently propagates VaultClientResponseException for Vault sys/health responses with non-2xx status codes. Vault uses 429 for standby nodes while still returning a health response body, and the blocking VaultSysTemplate already deserializes that body.

This change aligns the reactive implementation with the blocking one by deserializing the sys/health response body from VaultClientResponseException. It also exposes Vault's ha_connection_healthy field through VaultHealth so downstream health contributors can distinguish healthy HA standbys from standbys without an active-node connection.

Tests added/updated:

  • ReactiveVaultSysTemplate deserializes a 429 standby health response
  • VaultHealth exposes ha_connection_healthy

Verified with:

./mvnw -q -pl spring-vault-core -Dtest=VaultSysTemplateUnitTests,ReactiveVaultSysTemplateUnitTests test

Signed-off-by: henkhofs <henk.hofs@nedap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant