Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedTypes = []string{ gossh.KeyAlgoRSA, gossh.KeyAlgoECDSA256, gossh.KeyAlgoECDSA384, gossh.KeyAlgoECDSA521, gossh.KeyAlgoED25519, gossh.KeyAlgoSKECDSA256, gossh.KeyAlgoSKED25519, }
View Source
var DisallowedTypes = []string{ gossh.KeyAlgoDSA, }
View Source
var WireSet = wire.NewSet( ProvidePublicKey, )
Functions ¶
This section is empty.
Types ¶
type KeyInfo ¶
func (KeyInfo) Fingerprint ¶
type LocalService ¶
type LocalService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService( publicKeyStore store.PublicKeyStore, pCache store.PrincipalInfoCache, ) LocalService
func (LocalService) ValidateKey ¶
func (s LocalService) ValidateKey( ctx context.Context, publicKey ssh.PublicKey, usage enum.PublicKeyUsage, ) (*types.PrincipalInfo, error)
ValidateKey tries to match the provided key to one of the keys in the database. It updates the verified timestamp of the matched key to mark it as used.
type Service ¶
type Service interface {
ValidateKey(ctx context.Context, publicKey ssh.PublicKey, usage enum.PublicKeyUsage) (*types.PrincipalInfo, error)
}
func ProvidePublicKey ¶
func ProvidePublicKey( publicKeyStore store.PublicKeyStore, pCache store.PrincipalInfoCache, ) Service
Click to show internal directories.
Click to hide internal directories.