Documentation
¶
Overview ¶
Package validate checks that managed keypairs parse, that the public key matches the private key, and that perms are correct. Ported from facade.validate_keys + _validate_one. Read-only: it never mutates ~/.ssh.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyCheck ¶
type KeyCheck struct {
KeyName string
Profile string
Fingerprint *string
OK bool
Issues []string
Notes []string
}
KeyCheck is the validation result for one managed key.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service validates the manifest's managed keys against ~/.ssh.
func (*Service) ValidateKeys ¶
ValidateKeys validates every managed key, one check per profile+name pair. selector filters by profile, key name, or the composite "profile/key" form (empty means all); an unmatched selector is an error. A bare key name used by several profiles validates every one of them - checking only the first would report a broken key as clean.