quarkiverse / quarkus-vault

Quarkus HashiCorp Vault extension
Apache License 2.0
18 stars 22 forks source link

First time fetch in Vault Config Source done multiple times #278

Closed vsevel closed 2 months ago

vsevel commented 3 months ago

This is related to this:

        if (firstTime) {
            log.debug("fetch secrets first time with attempts = " + vaultRuntimeConfig.mpConfigInitialAttempts());
            fetchSecretsFirstTime(properties);
            firstTime = false;

If there is a failure, firstTime is still true, and next attempt will be done as if this was the first time. As a result, the application repeats multiple times, several load attempts, delaying the eventual failure of application startup.