authenticator

package
v0.0.0-...-a6c227c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenricatorConfig

type AuthenricatorConfig struct {
	RequestHeaderConfig *authenticatorfactory.RequestHeaderConfig

	ClientCert *ClientCertAuthenticationConfig

	// CacheTTL is the length of time that a token authentication answer will be cached.
	TokenSuccessCacheTTL time.Duration
	TokenFailureCacheTTL time.Duration
	APIAudiences         authenticator.Audiences

	TokenRequest *TokenAuthenticationConfig

	Anonymous bool
}

AuthenricatorConfig is the minimal configuration needed to create an authenticator built to delegate authentication to upstream kube API servers

func (AuthenricatorConfig) New

type ClientCertAuthenticationConfig

type ClientCertAuthenticationConfig struct {
	// CAContentProvider are the options for verifying incoming connections using mTLS and directly assigning to users.
	// Generally this is the CA bundle file used to authenticate client certificates
	// If this is nil, then mTLS will not be used.
	CAContentProvider authenticatorfactory.CAContentProvider
	// SNIVerifyOptionsPorvider provides dynamic verifyOptions for each sni hostname
	SNIVerifyOptionsPorvider x509.SNIVerifyOptionsProvider
}

func (*ClientCertAuthenticationConfig) New

type TokenAuthenticationConfig

type TokenAuthenticationConfig struct {

	// remote cluster token auth
	ClusterClientProvider clusters.ClientProvider
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL