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 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 ¶
func New(getter BootstrapUserDataGetter) Password
Click to show internal directories.
Click to hide internal directories.