potiuk commented on PR #66562:
URL: https://github.com/apache/airflow/pull/66562#issuecomment-4399520147

   > Does it make it more secure? Any other middleware could also set manually 
this `request.state.user_authenticated_via = 
USER_INJECTED_BY_TRUSTED_MIDDLEWARE` to make it as though it was set by refresh 
token middleware
   
   It's really so called "defense-in-depth" - of somebody adds a middleware 
that will inject a user, it won't work
   
   So this is not fixing a security issue per se, but makes the architecture 
more resilient in case deployment manager makes a mistake.


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