Class KubernetesServiceAccountTokenFile

java.lang.Object
org.springframework.vault.authentication.ResourceCredentialSupplier
org.springframework.vault.authentication.KubernetesServiceAccountTokenFile
All Implemented Interfaces:
Supplier<String>, CredentialSupplier, KubernetesJwtSupplier

public class KubernetesServiceAccountTokenFile extends ResourceCredentialSupplier implements KubernetesJwtSupplier
Mechanism to retrieve a Kubernetes service account token.

A file containing a token for a pod's service account is automatically mounted at /var/run/secrets/kubernetes.io/serviceaccount/token.

Since:
2.0
Author:
Michal Budzyn, Mark Paluch
See Also: