Skip to content

Commit

Permalink
make comment clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
xacrimon committed Apr 6, 2022
1 parent 4e56b8a commit af16a58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -1042,13 +1042,17 @@ func (a *Server) generateUserCert(req certRequest) (*proto.Certs, error) {
return nil, trace.Wrap(err)
}

// Add the special join-only principal used for joining sessions.
// All users have access to this and join RBAC rules are checked after the connection is established.
allowedLogins = append(allowedLogins, "-teleport-internal-join")

params := services.UserCertParams{
CASigner: caSigner,
CASigningAlg: sshutils.GetSigningAlgName(userCA),
PublicUserKey: req.publicKey,
Username: req.user.GetName(),
Impersonator: req.impersonator,
AllowedLogins: append(allowedLogins, "-teleport-internal-join"),
AllowedLogins: allowedLogins,
TTL: sessionTTL,
Roles: req.checker.RoleNames(),
CertificateFormat: certificateFormat,
Expand Down

0 comments on commit af16a58

Please sign in to comment.