The Vault health indicator missing from spring's actuator /health endpoint
The issue is reproducible with the following versions :
spring-boot-dependencies: 2.4.2
spring-cloud-dependencies : 2020.0.1
Auto-configuration debug output :
VaultHealthIndicatorAutoConfiguration:
Did not match:
- @ConditionalOnBean (types: org.springframework.cloud.vault.config.VaultBootstrapConfiguration; SearchStrategy: all) did not find any beans of type org.springframework.cloud.vault.config.VaultBootstrapConfiguration (OnBeanCondition)
Matched:
- @ConditionalOnClass found required class 'org.springframework.boot.actuate.health.HealthIndicator' (OnClassCondition)
- @ConditionalOnProperty (spring.cloud.vault.enabled) matched (OnPropertyCondition)
- @ConditionalOnEnabledHealthIndicator management.health.defaults.enabled is considered true (OnEnabledHealthIndicatorCondition)
The vault health contributor configuration did not match due to no beans of type VaultBootstrapConfiguration being present in the context.
Issue :
The Vault health indicator missing from spring's actuator /health endpoint The issue is reproducible with the following versions :
Auto-configuration debug output :
The vault health contributor configuration did not match due to no beans of type VaultBootstrapConfiguration being present in the context.
Shouldn't the "@ConditionalOnBean(VaultBootstrapConfiguration.class)" in VaultHealthIndicatorAutoConfiguration be removed since the class VaultBootstrapConfiguration was marked as deprecated since 3.0 ?