[ 
https://issues.apache.org/jira/browse/KNOX-3099?focusedWorklogId=958914&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-958914
 ]

ASF GitHub Bot logged work on KNOX-3099:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Feb/25 10:34
            Start Date: 26/Feb/25 10:34
    Worklog Time Spent: 10m 
      Work Description: hanicz commented on code in PR #995:
URL: https://github.com/apache/knox/pull/995#discussion_r1971346237


##########
gateway-server/src/main/java/org/apache/knox/gateway/services/security/impl/JettySSLService.java:
##########
@@ -236,6 +236,17 @@ public Object buildSslContextFactory(GatewayConfig config) 
throws AliasServiceEx
     return sslContextFactory;
   }
 
+  @Override
+  public void excludeTopologyFromClientAuth(SslContextFactory 
sslContextFactory, GatewayConfig config, String topologyName) {
+    if(config.getClientAuthExclude() != null && topologyName != null
+            && config.isClientAuthNeeded() && 
config.getClientAuthExclude().contains(topologyName)) {

Review Comment:
   Nice catch, I moved the exclude related checks into the GatewayConfigImpl





Issue Time Tracking
-------------------

    Worklog Id:     (was: 958914)
    Time Spent: 50m  (was: 40m)

> Add ability to exclude topologies from client auth
> --------------------------------------------------
>
>                 Key: KNOX-3099
>                 URL: https://issues.apache.org/jira/browse/KNOX-3099
>             Project: Apache Knox
>          Issue Type: Improvement
>          Components: Server
>    Affects Versions: 2.1.0
>            Reporter: Tamás Hanicz
>            Assignee: Tamás Hanicz
>            Priority: Minor
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Currently if the user adds gateway.client.auth.needed as true to the 
> gateway-site.xml every topology will enforce this. There is no option to 
> exclude from this policy. The user can also specify 
> gateway.client.auth.wanted as true however the policy is not enforced in this 
> case.
> We need the ability to be able to exclude topologies.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to