Add auth conn string to ssh, use connstr for execs

This commit is contained in:
lash
2025-01-07 13:51:26 +00:00
parent 599815c343
commit 1fa830f286
6 changed files with 19 additions and 9 deletions

View File

@@ -41,6 +41,7 @@ func NewAuther(ctx context.Context, keyStore *SshKeyStore) *auther {
}
func(a *auther) Check(conn ssh.ConnMetadata, pubKey ssh.PublicKey) (*ssh.Permissions, error) {
logg.TraceCtxf(a.Ctx, "looking for publickey", "pubkey", fmt.Sprintf("%x", pubKey))
va, err := a.keyStore.Get(a.Ctx, pubKey)
if err != nil {
return nil, err