diff --git a/builtin/logical/ssh/path_sign.go b/builtin/logical/ssh/path_sign.go index 22e251316..b5c2e0d3c 100644 --- a/builtin/logical/ssh/path_sign.go +++ b/builtin/logical/ssh/path_sign.go @@ -203,8 +203,8 @@ func (b *backend) calculateValidPrincipals(data *framework.FieldData, defaultPri validPrincipals = defaultPrincipal } - parsedPrincipals := strutil.ParseDedupAndSortStrings(validPrincipals, ",") - allowedPrincipals := strutil.ParseDedupAndSortStrings(principalsAllowedByRole, ",") + parsedPrincipals := strutil.RemoveDuplicates(strutil.ParseStringSlice(validPrincipals, ","), false) + allowedPrincipals := strutil.RemoveDuplicates(strutil.ParseStringSlice(principalsAllowedByRole, ","), false) switch { case len(parsedPrincipals) == 0: // There is nothing to process