quarkus-vault icon indicating copy to clipboard operation
quarkus-vault copied to clipboard

The Properties Are Not Being Updated

Open MehmetNuri opened this issue 1 year ago • 1 comments
trafficstars

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=5S

ExampleResource.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;
    }
}


MehmetNuri avatar Jul 25 '24 18:07 MehmetNuri

@vsevel Is reloading changed properties implemented?

kdubb avatar Sep 27 '24 23:09 kdubb