Skip to content

Commit

Permalink
Improve log message when we fail to retrieve the client cert pool (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
zmb3 authored Jun 20, 2022
1 parent 8f5382f commit ca52099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/auth/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,8 @@ func (t *TLSServer) GetConfigForClient(info *tls.ClientHelloInfo) (*tls.Config,
if clusterName, err := t.cfg.AccessPoint.GetClusterName(); err == nil {
ourClusterName = clusterName.GetClusterName()
}
t.log.Errorf("Failed to retrieve client pool. Client cluster %v, target cluster %v, error: %v.", clusterName, ourClusterName, trace.DebugReport(err))
t.log.Errorf("Failed to retrieve client pool for client %v, client cluster %v, target cluster %v, error: %v.",
info.Conn.RemoteAddr().String(), clusterName, ourClusterName, trace.DebugReport(err))
// this falls back to the default config
return nil, nil
}
Expand Down

0 comments on commit ca52099

Please sign in to comment.