potiuk commented on issue #34718:
URL: https://github.com/apache/airflow/issues/34718#issuecomment-1768605267

   To be honest - I think instead of making this as a code, you should look at 
the AIP-56 implementation that is well in progress. 
https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-56+Extensible+user+management.
 
   
   We are moving away eventually from FAB authentication and replacing it with 
Auth Managers. It will require to upgrade to future versions of Airflow (2.8 
possibly 2.9). but this is much more future-proof approach eventually. 
   
   
   Once this is implemented what you are trying to do is lilkely you should 
manage authentication outside of Airflow and rather than syncing it to FAB 
User/Roles you should write your own custom Auth Manager that will implement 
whatever access scheme you want there. It will be overall way simpler and will 
allow you to also manage more complex schemes - depending on your needs.
   
   My advise would be that instead of trying to see how you can fit-in FAB 
syncing and having it done with FAB you should look (once we release it @hterik 
/ @troxil ) into writing a custom Auth Manager and possibly being the first 
ones to try it out (and possibly let us improve what we will come up with). 
   
   Of course it's much more "future" and maybe you will choose to implement and 
contribute something to the current FAB manager (we will keep it around and you 
will still be able to use it and contribute to it), but once we release AIP-56 
and prove that it works, I doubt any maintainer focus will be on doing 
something in FAB as it will be on its way out eventually.
   
   cc: @vincbeck -> Vinc is looking for people who would like to (when ready) 
make use of the Auth Manager new APIs and provide feedback, so I think it would 
be a good idea you consider it and talk.


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