io.quarkus.vault.runtime.VaultRecorder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-vault Show documentation
Show all versions of quarkus-vault Show documentation
Store your credentials securely in HashiCorp Vault
package io.quarkus.vault.runtime;
import org.jboss.logging.Logger;
import io.quarkus.arc.Arc;
import io.quarkus.runtime.annotations.Recorder;
import io.quarkus.vault.runtime.config.VaultBuildTimeConfig;
import io.quarkus.vault.runtime.config.VaultRuntimeConfig;
@Recorder
public class VaultRecorder {
private static final Logger log = Logger.getLogger(VaultRecorder.class);
public void configureRuntimeProperties(VaultBuildTimeConfig vaultBuildTimeConfig, VaultRuntimeConfig vaultRuntimeConfig) {
if (vaultRuntimeConfig.url.isPresent()) {
VaultServiceProducer producer = Arc.container().instance(VaultServiceProducer.class).get();
producer.setVaultConfigs(vaultBuildTimeConfig, vaultRuntimeConfig);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy