publickeys

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUntrustedNamespace = fmt.Errorf("shig: the signature is using an untrusted namespace")
	ErrUntrustedKey       = fmt.Errorf("shig: the signature is using an untrusted key")
)

Functions

This section is empty.

Types

type Validator

type Validator interface {
	Validate(key ssh.PublicKey) error
}

A Validator is responsible for checking that a given public key is trusted to generate signatures for a given namespace.

func NewAuthorizedKeysFileValidator

func NewAuthorizedKeysFileValidator(path string) (Validator, error)

func NewGitHubValidator

func NewGitHubValidator(username string) (Validator, error)

func NewSshKeyValidator

func NewSshKeyValidator(publicKey string) (Validator, error)

func NewThumbprintValidator

func NewThumbprintValidator(thumbprint string) Validator

Jump to

Keyboard shortcuts

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