vault

package
v0.17.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAuthServerVault

func InitAuthServerVault()

InitAuthServerVault - entrypoint for initialization of Vault AuthServer implementation

Types

type AuthServerVault

type AuthServerVault struct {
	// contains filtered or unexported fields
}

AuthServerVault implements AuthServer with a config loaded from Vault.

func (*AuthServerVault) AuthMethods

func (a *AuthServerVault) AuthMethods() []mysql.AuthMethod

AuthMethods returns the list of registered auth methods implemented by this auth server.

func (*AuthServerVault) DefaultAuthMethodDescription

func (a *AuthServerVault) DefaultAuthMethodDescription() mysql.AuthMethodDescription

DefaultAuthMethodDescription returns MysqlNativePassword as the default authentication method for the auth server implementation.

func (*AuthServerVault) HandleUser

func (a *AuthServerVault) HandleUser(user string) bool

HandleUser is part of the Validator interface. We handle any user here since we don't check up front.

func (*AuthServerVault) UserEntryWithHash

func (a *AuthServerVault) UserEntryWithHash(conn *mysql.Conn, salt []byte, user string, authResponse []byte, remoteAddr net.Addr) (mysql.Getter, error)

UserEntryWithHash is called when mysql_native_password is used.

Jump to

Keyboard shortcuts

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