Quarkus vault configuration with database credentials provider not working if application.properties externalized #24825
Labels
area/vault
kind/bug
Something isn't working
triage/out-of-date
This issue/PR is no longer valid or relevant
Describe the bug
Hi,
in order to decouple dev and prod configuration files, we are trying to start our Quarkus application using the config quarkus.config.locations when running on prod. Our prod config file contains all the vault and database information used to connect to our database and it is not known by developers. Unfortunately it looks like external configurations are loaded after db connection is done through the credentials provider from vault, causing the app to not start and printing multiple exceptions. I have tried many combination and so far what is working:
Expected behavior
Vault configurations fro dynamic credentials provider could be externalized in a configuration file known at runtime.
Actual behavior
Starting the application without the dynamic credentials provider vault configuration in src/main/resources/application.properties does not work
How to Reproduce?
Issue can be reproduced easily:
Note that the issue is not met if using regular user/password without vault.
Output of
uname -a
orver
Linux laptop 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "1.8.0_312"
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.6.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.3.3
Additional information
No response
The text was updated successfully, but these errors were encountered: