dkalamar opened a new issue, #34015:
URL: https://github.com/apache/airflow/issues/34015

   ### Apache Airflow version
   
   2.7.0
   
   ### What happened
   
   Certain configuration variables fail to evaluate from when `_CMD` pattern is 
applied when specified in `Airflow.cfg`. These include:
   ```
   [celery]
   broker_url
   result_backend
   flower_basic_auth
   
   [core]
   fernet_key
   ```
   Instead the `_CMD` is listed as its own configuration variable and the 
evaluated variable takes its value from `default`.
   
   ### What you think should happen instead
   
   Except from Airflow Configuration values:
   
   Section | Key | Value | Source
   -- | -- | -- | --
   core | fernet_key | < hidden > | default
   core | fernet_key_cmd | /usr/bin/env bash -c "echo -n ${FERNET_KEY}" | 
airflow.cfg
   database | sql_alchemy_conn | < hidden > | cmd
   
   We would expect `fernet_key_cmd` to be evaluated the same way as 
`sql_alchemy_conn_cmd`. Instead, `fernet_key` takes its default value. 
   
   ### How to reproduce
   
   Airflow.cfg excerpt:
   ```
   [core]
   fernet_key_cmd = /usr/bin/env bash -c "echo -n ${FERNET_KEY}"
   
   [database]
   sql_alchemy_conn_cmd = /usr/bin/env bash -c "echo -n 
postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
   
   ```
   
   ### Operating System
   
   ubuntu22.04 
   
   ### Versions of Apache Airflow Providers
   
   
   
   Package Name | Version | Description
   -- | -- | --
   apache-airflow-providers-amazon | 8.5.1 | Amazon integration (including 
Amazon Web Services (AWS)).<br>
   apache-airflow-providers-celery | 3.3.2 | Celery<br>
   apache-airflow-providers-common-sql | 1.7.0 | Common SQL Provider<br>
   apache-airflow-providers-ftp | 3.5.0 | File Transfer Protocol (FTP)<br>
   apache-airflow-providers-http | 4.5.0 | Hypertext Transfer Protocol 
(HTTP)<br>
   apache-airflow-providers-imap | 3.3.0 | Internet Message Access Protocol 
(IMAP)<br>
   apache-airflow-providers-pagerduty | 3.3.0 | Pagerduty<br>
   apache-airflow-providers-postgres | 5.6.0 | PostgreSQL<br>
   apache-airflow-providers-redis | 3.3.1 | Redis<br>
   apache-airflow-providers-slack | 7.3.2 | Slack<br>
   apache-airflow-providers-snowflake | 4.4.2 | Snowflake<br>
   apache-airflow-providers-sqlite | 3.4.3 | SQLite<br>
   apache-airflow-providers-ssh | 3.7.1 | Secure Shell (SSH)<br>
   
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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