As we reevaluate how to best support and maintain Staging Ref in the future, we encourage development teams using this environment to highlight their use cases in the following issue: https://gitlab.com/gitlab-com/gl-infra/software-delivery/framework/software-delivery-framework-issue-tracker/-/issues/36.

Skip to content
Snippets Groups Projects
Commit 65d7b672 authored by ghinfey's avatar ghinfey
Browse files

Add log for public key authentication type

parent 2c7d2fbf
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -235,6 +235,8 @@ func (s *serverConfig) get(ctx context.Context) *ssh.ServerConfig {
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()
log.WithContextFields(ctx, log.Fields{"ssh_key_type": key.Type()}).Info("public key authentication")
cert, ok := key.(*ssh.Certificate)
if ok {
return s.handleUserCertificate(ctx, conn.User(), cert)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment