Package io.quarkus.vault.runtime.config
Class VaultAuthenticationConfig
- java.lang.Object
-
- io.quarkus.vault.runtime.config.VaultAuthenticationConfig
-
public class VaultAuthenticationConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description VaultAppRoleAuthenticationConfigappRoleAppRole authentication methodOptional<String>clientTokenVault token, bypassing Vault authentication (kubernetes, userpass or approle).Optional<String>clientTokenWrappingTokenClient token wrapped in a wrapping token, such as what is returned by:VaultKubernetesAuthenticationConfigkubernetesKubernetes authentication methodVaultUserpassAuthenticationConfiguserpassUserpass authentication method
-
Constructor Summary
Constructors Constructor Description VaultAuthenticationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAppRole()booleanisDirectClientToken()booleanisUserpass()
-
-
-
Field Detail
-
clientToken
@ConfigItem public Optional<String> clientToken
Vault token, bypassing Vault authentication (kubernetes, userpass or approle). This is useful in development where an authentication mode might not have been set up. In production we will usually prefer some authentication such as userpass, or preferably kubernetes, where Vault tokens get generated with a TTL and some ability to revoke them. Lease renewal does not apply.
-
clientTokenWrappingToken
@ConfigItem public Optional<String> clientTokenWrappingToken
Client token wrapped in a wrapping token, such as what is returned by:vault token create -wrap-ttl=60s -policy=myapp
client-token and client-token-wrapping-token are exclusive. Lease renewal does not apply.
-
appRole
@ConfigItem public VaultAppRoleAuthenticationConfig appRole
AppRole authentication methodSee https://www.vaultproject.io/api/auth/approle/index.html
-
userpass
@ConfigItem public VaultUserpassAuthenticationConfig userpass
Userpass authentication methodSee https://www.vaultproject.io/api/auth/userpass/index.html
-
kubernetes
@ConfigItem public VaultKubernetesAuthenticationConfig kubernetes
Kubernetes authentication methodSee https://www.vaultproject.io/docs/auth/kubernetes.html
-
-