New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from version 1.13.0 Vault MicroProfile Config Source stopped working #16123
Comments
/cc @vsevel |
Does this only happens with the Vault source? Can you try without it? |
without vault? |
Yes, are you able to remove Vault and set up the required configuration in I supposed that |
ok, i only replace the db properties referenced by Vault in application.properties (quarkus.datasource.reactive.url, quarkus.datasource.password, quarkus.datasource.username) by equivalent conection params and this works fine. Additional info: vault oidc properties in application.properties work fine. |
Do you have other properties set up in Vault? Is this only failing for expanded properties for Vault? Can you provide me a print of |
the properties set for vault are:
Q: Is this only failing for expanded properties for Vault? ConfigProvider.getConfig().getConfigSources():
|
please best use this data:
I'm not sure but data in previous post maybe is for 1.10.5. Sorry... |
@hernael I took a copy and edited the prints, since these contain some environment variables and I don't want you to accidentally expose any sensitive information. I'll have a look tomorrow. |
Hi @hernael, I didn't find anything suspicious in the data. Could you iterate over I've tried locally with a |
I just updated a demo project that i have hosted for issues purposes: https://github.com/hernael/reactive-demo Maybe seeing this helps us a little better. Please note that i started the app with intellij in dev mode (just click run in idea) |
Ok, let me check |
Ok, I believe this is related with #14960 and more specifically with: Lines 98 to 108 in f4cba6a
This checks if a DS configuration is available to start / not start a database if you need one. But the check happens in build time when the VaultConfigSource is not available so the expansion fails. For code purpose, it is irrelevant if the value is expanded, since we are only interested if the value is set. I'll provide a fix for this. In the meanwhile, I recommend to workaround this by setting an empty default in the expression: Sorry for the inconvenience. |
ok @radcortez, thanks for the solution! |
@radcortez any chance we could have a fix by Tuesday evening? |
Yes, doing it right now. |
Describe the bug
from version 1.13.0 Vault MicroProfile Config Source stopped working to use vault with Databases (Vault MicroProfile Config Source) and OIDC
Expected behavior
quarkus fetched vault kv values first and then try verificted dependent properties. In version 1.12.X works fine, but in 1.13.0 does not work
Actual behavior
on startup throw error:
Hi @radcortez, @vsevel: please note that this error is equal to old #14707 but instead the releases 1.11.0 it happens in new releases 1.13.0
The text was updated successfully, but these errors were encountered: