Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePassword ¶ added in v1.38.0
func GeneratePassword() string
func RegisterHook ¶
func RegisterHook(settings HookSettings) bool
RegisterHook returns func to register common hook that generates and stores a password in the Secret. if ExternalAuth is used - secret will be deleted, you can change this behavior by `keepPasswordOnExternalAuth` flag
Types ¶
type Hook ¶ added in v1.38.0
func NewBasicAuthPlainHook ¶ added in v1.38.0
func NewBasicAuthPlainHook(settings HookSettings) *Hook
func (*Hook) ExternalAuthKey ¶ added in v1.38.0
func (*Hook) Filter ¶ added in v1.38.0
func (h *Hook) Filter(obj *unstructured.Unstructured) (go_hook.FilterResult, error)
Filter extracts password from the Secret. Password can be stored as a raw string or as a basic auth plain format (user:{PLAIN}password). Custom FilterFunc is called for custom password extraction.
func (*Hook) Handle ¶ added in v1.38.0
Handle restores password from the configuration or from the Secret and puts it to internal values. It generates new password if there is no password in the configuration and no Secret found.
func (*Hook) PasswordInternalKey ¶ added in v1.38.0
func (*Hook) PasswordKey ¶ added in v1.38.0
type HookSettings ¶ added in v1.51.0
Click to show internal directories.
Click to hide internal directories.