security

package
v0.0.0-...-46ee869 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminPassword

func AdminPassword(secretName, namespace string, k *kube.Kubernetes) (string, error)

func CreateIdentitiesFor

func CreateIdentitiesFor(usr string, pass string) ([]byte, error)

CreateIdentitiesFor creates identities for a given username/password combination

func FindPassword

func FindPassword(usr string, descriptor []byte) (string, error)

FindPassword finds a user's password

func GenerateTruststore

func GenerateTruststore(pemFiles [][]byte, password string) ([]byte, error)

func GetAdminCredentials

func GetAdminCredentials() ([]byte, error)

GetAdminCredentials get admin identities credentials in yaml format

func GetUserCredentials

func GetUserCredentials() ([]byte, error)

GetUserCredentials get identities credentials in yaml format

func UserPassword

func UserPassword(user, secretName, namespace string, k *kube.Kubernetes) (string, error)

Types

type Credentials

type Credentials struct {
	Username string
	Password string
	Roles    []string
}

Credentials represent individual username/password combinations

type Identities

type Identities struct {
	Credentials []Credentials
}

Identities represent identities that can interact with server

Jump to

Keyboard shortcuts

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