Skip to content

The Properties Are Not Being Updated #302

@MehmetNuri

Description

@MehmetNuri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions