Documentation ¶
Index ¶
Constants ¶
View Source
const (
KubeJWTAuthenticatorType = "KubeJWTAuthenticator"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubeJWTAuthenticator ¶
type KubeJWTAuthenticator struct {
// contains filtered or unexported fields
}
KubeJWTAuthenticator authenticates K8s JWTs.
func NewKubeJWTAuthenticator ¶
func NewKubeJWTAuthenticator( meshHolder mesh.Holder, client kubernetes.Interface, clusterID cluster.ID, remoteKubeClientGetter RemoteKubeClientGetter, ) *KubeJWTAuthenticator
NewKubeJWTAuthenticator creates a new kubeJWTAuthenticator.
func (*KubeJWTAuthenticator) Authenticate ¶
func (a *KubeJWTAuthenticator) Authenticate(authRequest security.AuthContext) (*security.Caller, error)
Authenticate authenticates the call using the K8s JWT from the context. The returned Caller.Identities is in SPIFFE format.
func (*KubeJWTAuthenticator) AuthenticatorType ¶
func (a *KubeJWTAuthenticator) AuthenticatorType() string
type RemoteKubeClientGetter ¶
Click to show internal directories.
Click to hide internal directories.