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

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

                Author: ASF GitHub Bot
            Created on: 13/Oct/26 01:09
            Start Date: 13/Oct/26 01:09
    Worklog Time Spent: 10m 
      Work Description: hsheinblatt commented on code in PR #1448:
URL: https://github.com/apache/knox/pull/1448#discussion_r4253754445


##########
gateway-provider-security-jwt/src/main/java/org/apache/knox/gateway/provider/federation/jwt/filter/AudienceResource.java:
##########
@@ -66,20 +77,29 @@ public record AudienceResource(String host, int 
effectivePort, String namespace,
   static final int DEFAULT_HTTPS_PORT = 443;
 
   /**
-   * Parses a single {@code aud} claim entry as a k8s-style destination URL. 
Returns
-   * {@link Optional#empty()} for any entry that is not a well-formed
+   * Parses a single {@code aud} claim entry in the custom form. Returns 
{@link Optional#empty()}
+   * for any entry that is not a well-formed
    * {@code 
https://host[:port]/[skipped-segments/]namespace/service-name[/resource-path]} 
URL --
    * including a {@code null} or blank entry, a non-{@code https} scheme, a 
missing or
    * userinfo-carrying authority, a path that never contains a non-blank 
{@code pathPrefix},
    * fewer than two path segments once past any such prefix, or a resource 
path that is not
-   * already in RFC 3986 remove_dot_segments normal form 

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

    Worklog Id:     (was: 1047118)
    Time Spent: 1h 50m  (was: 1h 40m)

> Extend RequestAudienceValidator for non-delegation, dns form, service-only 
> matching, and for act source validation
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: KNOX-3509
>                 URL: https://issues.apache.org/jira/browse/KNOX-3509
>             Project: Apache Knox
>          Issue Type: Sub-task
>          Components: JWT
>            Reporter: Harrison Sheinblatt
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> Extend the RequestAudienceValidator:
>  # Enable audience validation of non-delegation tokens
>  # Allow audiences in dns service form, for use when there is one trust domain
>  # Allow audiences with no path to match all paths: this indicates that the 
> audience is intended to show only the allowed service destination, not the 
> particular endpoints. When used, the capabilities of the service allowed can 
> be specified otherwise, such as with scopes in the future.
>  # Allow an opt in check for service account actors to validate that the most 
> recent act sub service account matches the source spiffe id from a trusted 
> header. This shows that the service account for which the token was issued is 
> the one using it, and prevents a leaked token from being used by a different 
> source.



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

Reply via email to