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 2022/12/09 16:11:07 UTC

[GitHub] [airflow] rodrigocollavo commented on issue #19251: Add a way to skip the secret_backend

rodrigocollavo commented on issue #19251:
URL: https://github.com/apache/airflow/issues/19251#issuecomment-1344491172

   I had to extend the functionality to make it works with airflow connections as well, adding the following function to the code mentioned above:
   
   ```
       def get_conn_value(self, key: str) -> Optional[str]:
           if self.connections_prefix is None:
               return None
   
           if self.secret_lookup_prefix is not None:
               if not key.startswith(self.secret_lookup_prefix):
                   return None
   
           secret = self._get_secret(self.connections_prefix, key)
           return secret
   ```
   
   @maxexcloo probably you would like to add it to your package. I've tried yours first, but then I had to create a custom one to support connections in the secret manager.


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