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

   Why not using the oppoertunity to add the auth mechanism now? I do not think 
this needs a super-generic solution that will work for all hooks. I think there 
are a few operators that really need this kind of pluggable authentication, I 
think this DockerHook change is a good opportunity to add it.
   
   I would say we need something very similar that requests library uses, where 
you can pass auth object 
https://requests.readthedocs.io/en/latest/user/authentication/ - and you could 
add the "auth" class to pass to DockerHook and Docker operators to pass 
"DockerAuth" Protocol / Abstract class that would handle the authentication.
   
   Once we get it implemented here, we could apply similar approach to Postgres 
and fix the current behaviour and any other class that has it done in a similar 
class. I think there could be various auth Classes in "Amazon" - one for 
Docker, one for Postgres, etc. and they could use some common code if needed. 
   
   Do you think of any drawbacks of the approach @Taragolis ?


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