HyukjinKwon opened a new pull request, #58601:
URL: https://github.com/apache/spark/pull/58601

   ### What changes were proposed in this pull request?
   
   Add an opt-in init parameter `requireExpiration` (default `false` = 
unchanged) to `JWSFilter`.
   When set to `true`, a token whose payload has no `exp` claim is rejected 
with `403`.
   
   ### Why are the changes needed?
   
   Lets a deployment require that JWS tokens carry an expiration, so a token 
cannot be presented
   indefinitely. Off by default, so there is no behavior change unless enabled.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No by default. When the new parameter is enabled, tokens without an `exp` 
claim are rejected.
   
   ### How was this patch tested?
   
   New `JWSFilterSuite` case: a token without an `exp` claim is rejected when 
the parameter is on.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Isaac
   
   This pull request and its description were written by Isaac.
   
   Co-authored-by: Isaac <[email protected]>
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to