-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hello, even though I have changed the property on the Vault, Quarkus is not getting the new value. When the application is restarted, only the first value received is displayed. Then Quarkus will not return this new value, even if the values are changed via Vault.
Quarkus Version: 3.12.3
Java Version: Graalvm CE 21.0.2
Vault Version: v1.17.2
application.properties
quarkus.vault.url=http://127.0.0.1:8200
quarkus.vault.authentication.client-token=hvs.WPuDFcwt4X9bOZHlCrDHuMCq
quarkus.vault.secret-config-kv-path=abc-service
quarkus.vault.kv-secret-engine-mount-path=quarkus
quarkus.vault.kv-secret-engine-version=2
quarkus.vault.secret-config-cache-period=5SExampleResource.java
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import org.eclipse.microprofile.config.inject.ConfigProperty;
@Path("/hello")
public class ExampleResource {
@ConfigProperty(name = "a")
String message;
@GET
@Produces(MediaType.TEXT_PLAIN)
public String hello() {
return "Hello RESTEasy " + message;
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels