bootstrapauthenticator

package
v0.0.0-...-b9df8bb Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 9

Documentation

Index

Constants

View Source
const (
	// BootstrapUser is the magic bootstrap OAuth user that can perform any action
	BootstrapUser = "kube:admin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapUserData

type BootstrapUserData struct {
	PasswordHash []byte
	UID          string
}

type BootstrapUserDataGetter

type BootstrapUserDataGetter interface {
	Get() (data *BootstrapUserData, ok bool, err error)
	IsEnabled() (bool, error)
}

func NewBootstrapUserDataGetter

func NewBootstrapUserDataGetter(secrets v1.SecretsGetter, namespaces v1.NamespacesGetter) BootstrapUserDataGetter

type Password

type Password interface {
	AuthenticatePassword(ctx context.Context, user, password string) (*authenticator.Response, bool, error)
}

Password checks a username and password against a backing authentication store and returns a Response or an error if the password could not be checked.

This was copied from k8s.io/apiserver/pkg/authentication/authenticator due to its removal in 1.19.

func New

Jump to

Keyboard shortcuts

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