You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/11/03 11:55:42 UTC

[GitHub] [airflow] raphaelauv edited a comment on pull request #19332: Add a skip parameter to Variable to skip the secret backend

raphaelauv edited a comment on pull request #19332:
URL: https://github.com/apache/airflow/pull/19332#issuecomment-958959534


   Yes it's perflectly true that it's going to be boring to setup almost all the variables to 
   
   `Variable.get("toto",skip_secret_backend=True)`
   
   a better option would be a prefix-pattern-rule for variables to lookup 
   
   so a new common option to `backend_kwargs`
   
   `"only_look_up_prefix_variables" : "secret_"`
   
   for `Variable.get("secret_toto")` the secret_backend would be call
   
   and `Variable.get("toto")` the secret_backend would directly return None and the other backend would then be check
   
   This would be great and explicit
   
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org