Class AbstractVaultEnvironmentRepository
java.lang.Object
org.springframework.cloud.config.server.environment.AbstractVaultEnvironmentRepository
- All Implemented Interfaces:
EnvironmentRepository, org.springframework.core.Ordered
- Direct Known Subclasses:
SpringVaultEnvironmentRepository
public abstract class AbstractVaultEnvironmentRepository
extends Object
implements EnvironmentRepository, org.springframework.core.Ordered
- Author:
- Spencer Gibb, Mark Paluch, Haroun Pacquee, Haytham Mohamed, Scott Frederick
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe backend path in Vault where the secrets are stored.protected StringThe key in vault shared by all applications.protected final Stringprotected final booleanprotected Booleanprotected intprotected @NotEmpty StringVault profile separator.protected final org.springframework.beans.factory.ObjectProvider<jakarta.servlet.http.HttpServletRequest> protected final EnvironmentWatchFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionAbstractVaultEnvironmentRepository(org.springframework.beans.factory.ObjectProvider<jakarta.servlet.http.HttpServletRequest> request, EnvironmentWatch watch, VaultEnvironmentProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.config.environment.EnvironmentintgetOrder()protected abstract StringvoidsetDefaultKey(String defaultKey) voidsetOrder(int order) voidsetProfileSeparator(String profileSeparator) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EnvironmentRepository
findOne
-
Field Details
-
request
protected final org.springframework.beans.factory.ObjectProvider<jakarta.servlet.http.HttpServletRequest> request -
watch
-
defaultKey
The key in vault shared by all applications. Defaults to application. Set to empty to disable. -
backend
The backend path in Vault where the secrets are stored. Used to disambiguate multiple vault paths ending in the same key. -
fullKeyPath
-
profileSeparator
Vault profile separator. Defaults to comma. -
enableLabel
protected final boolean enableLabel -
defaultLabel
-
order
protected int order
-
-
Constructor Details
-
AbstractVaultEnvironmentRepository
public AbstractVaultEnvironmentRepository(org.springframework.beans.factory.ObjectProvider<jakarta.servlet.http.HttpServletRequest> request, EnvironmentWatch watch, VaultEnvironmentProperties properties)
-
-
Method Details
-
findOne
public org.springframework.cloud.config.environment.Environment findOne(String application, String profile, String label) - Specified by:
findOnein interfaceEnvironmentRepository
-
read
-
setDefaultKey
-
setProfileSeparator
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order)
-