pbacsko commented on code in PR #889:
URL: https://github.com/apache/yunikorn-core/pull/889#discussion_r1634678899


##########
pkg/common/security/usergroup.go:
##########
@@ -153,6 +154,11 @@ func (c *UserGroupCache) ConvertUGI(ugi 
*si.UserGroupInformation, force bool) (U
                        return ug, err
                }
        }
+
+       if !configs.UserRegExp.MatchString(ugi.User) {
+               return UserGroup{}, fmt.Errorf("invalid username. username 
contain invalid characters. ")

Review Comment:
   Nit: "invalid username, it contains invalid characters"



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to