Open mwisnicki opened 1 year ago
PS. I know about fail-fast but spring.config.import has concept of optional and non-optional imports and these should be honored IMHO.
Have you tried setting spring.cloud.vault.fail-fast=true
? This has been in place since the bootstrap context.
Generally, we could switch entirely on the built-in mechanism by throwing ConfigDataResourceNotFoundException
.
Describe the bug If configuration is invalid (e.g. wrong SSL certs) then vault config prints exception and continues execution. Even when spring.config.import is not set to optional.
This is probably because in
LeaseAwareVaultPropertySource
ignoreSecretNotFound
is always true.Sample bug-vault-bad-config-nonfatal.zip
Log