lmccay commented on code in PR #1448:
URL: https://github.com/apache/knox/pull/1448#discussion_r4243647296


##########
gateway-provider-security-jwt/src/main/java/org/apache/knox/gateway/provider/federation/jwt/filter/K8sDestinationAudienceValidator.java:
##########
@@ -401,10 +768,16 @@ private static String paramOrDefault(final FilterConfig 
filterConfig, final Stri
     return (value == null || value.isEmpty()) ? defaultValue : value;
   }
 
+  /**
+   * Splits on {@code ,} and trims each entry, but does not drop an entry that 
trims to empty --
+   * for example a stray {@code ,,} or a trailing {@code ,} in {@link 
#CLUSTER_DOMAINS_PARAM}.
+   * This is operator-supplied configuration, not request data, so it is 
validated strictly: an
+   * empty entry is passed through to {@link ClusterDomain#parse(String)}, 
which rejects it, the
+   * same as any other malformed entry, rather than being silently discarded 
here.
+   */
   private static List<String> parseCommaSeparated(final String 
commaSeparatedList) {
     return Arrays.stream(commaSeparatedList.split(","))

Review Comment:
   Seems valid?



-- 
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