You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 LeaseAwareVaultPropertySourceignoreSecretNotFound is always true.
2023-03-28T13:22:06.206-04:00 INFO 23668 --- [ main] o.s.v.c.e.LeaseAwareVaultPropertySource : Vault location [foo/bar] not resolvable: I/O error on GET request for "https://bad.site:443/v1/foo/bar": bad.site
2023-03-28T13:22:06.592-04:00 INFO 23668 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=13545f80-8375-3886-af6d-4191f093e243
2023-03-28T13:22:06.862-04:00 INFO 23668 --- [ main] e.b.BugVaultBadConfigNonfatalApplication : Started BugVaultBadConfigNonfatalApplication in 1.657 seconds (process running for 2.251)
The text was updated successfully, but these errors were encountered:
mwisnicki
changed the title
Invalid kubernetes configuration is not fatal
Invalid configuration is not fatal
Mar 28, 2023
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
The text was updated successfully, but these errors were encountered: