-
Hi all, I'm trying to use "io.quarkiverse.vault:**quarkus-vault:**2.1.0" with dev services in dev mode (quarkus:dev). The vault docker image is started automatically as expected and obviously the server has no secrets inside. So I decided to use the property "quarkus.vault.devservices.init-commands: 'vault kv put secret/config password="p@$$w0rd"" to populate secrets at the startup. And it seems that the command is not ok for quarkus (I tried the command in the started docker container and it works). The problem is that the warning message with the command information is only shown for a millisecond and then it's collapsed / overwritten with the next console information. I was looking the way to log that information to a file or configure the console to avoid overwriting the information but I didn't find any clue on how to do it. Questions;
Steps to reproduce:I'm using VSCode terminal to execute it, but I also checked with the linux console (WSL) with the same result. Quarkus version: 2.14.0.Final pom.xml <--- include the vault dependency in your pom file application.yml <--- include init-command option in your yaml file output "read Read" and "Vault server stat" is part of the vault warning message that was overwritten.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The command issue is that you should only provide the arguments to the vault program because it's already running; you need to drop the With regard to logging, this is how dev services logging is designed to work, I believe it collapses everything unless the service cannot be started; in this case the service is still started. I agree its not ideal. |
Beta Was this translation helpful? Give feedback.
The command issue is that you should only provide the arguments to the vault program because it's already running; you need to drop the
vault
.With regard to logging, this is how dev services logging is designed to work, I believe it collapses everything unless the service cannot be started; in this case the service is still started. I agree its not ideal.