mik-laj edited a comment on issue #16684: URL: https://github.com/apache/airflow/issues/16684#issuecomment-870862533
@potiuk I also still don't know how you would want to integrate dynamic airflow configuration without using `_CMD`. LocalFilesystemBaackend only supports connection and variable, not airflow configuration. `_CMD` environment variable is a glue that can connect the dynamic secrets mounted in volumes together with Airflow. By convention Vault inject secrets at the path `/vault/secrets/<secret name>`, the following snippet shows an example of this file. ``` databaseUrl: mysql://someuser:somepass@somehost:7777/somedb ``` If you want to use this value with Airflow, you have to pass it to Airflow. The easiest way is to set a `_CMD` variable that will point to this file. ``` export AIRFLOW__CORE__SQL_ALCHEMY_CONN_CMD="cat /vault/secrets/<secret name> | cut -d ":" -f 2-" ``` Do you know an alternative solution without writing custom code and still allow to use sidecar? -- 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]
