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/16 14:48:43 UTC

[GitHub] [airflow] potiuk edited a comment on issue #19217: Airflow Config connection URI generation from backend/vault similar to Connection done in amazon provider 2.3.0

potiuk edited a comment on issue #19217:
URL: https://github.com/apache/airflow/issues/19217#issuecomment-970345984


   > The _SECRET specifically looks for airflow/config/sql_alchemy_conn in AWS secrets manager where the value needs to be postgresql+psycopg2://<>@<> like connection string instead of separate parameters like username, password, dbinstance, etc.
   > Having a plain connection string causes issue in maintenance as well as rotation after specific interval of time
   
   How about using _CMD and set it to this script:
   
   ```
   #!/bin/bash
   password=$(command to RETRIEVE_CONNECTION_FROM_SECRET)
   echo "postgresql+psycopg2://your_user:${password}/.....@<>"
   ```
   
   


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