package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
IsServiceAccountToken returns true if the secret is a valid api token for the service account.
JWTTokenAuthenticator authenticates tokens as JWT tokens produced by JWTTokenGenerator Token signatures are verified using each of the given public keys until one works (allowing key rotation) If lookup is true, the service account and secret referenced as claims inside the token are retrieved and verified with the provided ServiceAccountTokenGetter.
JWTTokenGenerator returns a TokenGenerator that generates signed JWT tokens, using the given privateKey.
No description provided by the author
No description provided by the author
No description provided by the author
UserInfo returns a user.Info interface for the given namespace, service account name and UID.

# Constants

No description provided by the author
PodNameKey is the key used in a user's "extra" to specify the pod name of the authenticating request.
PodUIDKey is the key used in a user's "extra" to specify the pod UID of the authenticating request.

# Structs

No description provided by the author

# Interfaces

ServiceAccountTokenGetter defines functions to retrieve a named service account and secret.
No description provided by the author
Validator is called by the JWT token authenticator to apply domain specific validation to a token and extract user information.