Versions in this module Expand all Collapse all v1 v1.16.3 Nov 9, 2022 Changes in this version + const LegacyIssuer + const PodNameKey + const PodUIDKey + func Claims(sa core.ServiceAccount, pod *core.Pod, secret *core.Secret, ...) (*jwt.Claims, interface{}) + func IsServiceAccountToken(secret *v1.Secret, sa *v1.ServiceAccount) bool + func JWTTokenAuthenticator(iss string, keys []interface{}, implicitAuds authenticator.Audiences, ...) authenticator.Token + func LegacyClaims(serviceAccount v1.ServiceAccount, secret v1.Secret) (*jwt.Claims, interface{}) + func UserInfo(namespace, name, uid string) user.Info + type ServiceAccountInfo struct + Name string + Namespace string + PodName string + PodUID string + UID string + func (sa *ServiceAccountInfo) UserInfo() user.Info + type ServiceAccountTokenGetter interface + GetPod func(namespace, name string) (*v1.Pod, error) + GetSecret func(namespace, name string) (*v1.Secret, error) + GetServiceAccount func(namespace, name string) (*v1.ServiceAccount, error) + type TokenGenerator interface + GenerateToken func(claims *jwt.Claims, privateClaims interface{}) (string, error) + func JWTTokenGenerator(iss string, privateKey interface{}) (TokenGenerator, error) + type Validator interface + NewPrivateClaims func() interface{} + Validate func(tokenData string, public *jwt.Claims, private interface{}) (*ServiceAccountInfo, error) + func NewLegacyValidator(lookup bool, getter ServiceAccountTokenGetter) Validator + func NewValidator(getter ServiceAccountTokenGetter) Validator